1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
| <template>
| <div>
| <div class="tab-section" v-if="tableHeader.length === 0">
| <el-tabs v-model="activeName" type="card">
| <el-tab-pane
| v-for="(item, index) in list"
| :key="index"
| :label="item.customername.value"
| :name="`${index}`"
| >
| <FormInfo :info="item" :keys="userBaseInfo" title="个人基本信息" :loading="loading"></FormInfo>
| <FormInfo :info="item" :keys="userBaseSpecialInfo" title="产品个性化信息" :loading="loading"></FormInfo>
| </el-tab-pane>
| </el-tabs>
| </div>
| <div v-else>
| <FormInfo :info="info" :keys="userBaseInfo" title="个人基本信息" :loading="loading"></FormInfo>
| <FormInfo :info="info" :keys="userBaseSpecialInfo" title="产品个性化信息" :loading="loading"></FormInfo>
| <KeysTable :list="contactList" :header="tableHeader" :isShowPages="false" title="联系人信息"></KeysTable>
| </div>
| </div>
| </template>
| <script>
| // 借款人信息
| import {
| qryCustomerBasicInfo,
| qryCustomerInfoList
| } from '@comprehensive/serve/public'
| import FormInfo from '../FormInfo'
| import KeysTable from '../KeysTable'
| import {
| userBaseInfo,
| buildingBusinessFlowUserBaseInfo,
| userBaseSpecialInfo
| } from '@comprehensive/utils/formHeaders'
| import { contactListHeader } from '@comprehensive/utils/tableHeaders'
| import { flownos } from '@comprehensive/utils/comm'
|
| export default {
| props: {
| // 申请编号
| serialNo: {
| type: String,
| required: true
| },
| objectType: {
| type: String,
| default: ''
| },
| customerID: {
| type: String,
| default: ''
| },
| flowno: {
| type: String,
|
| // 默认为案场
| default: 'CreditFlowCase'
| }
| },
| components: {
| FormInfo,
| KeysTable
| },
| data() {
| return {
| info: {},
| list: [],
| loading: false,
| activeName: '0',
| userBaseInfo: [],
| // 联系人
| contactList: [],
| tableHeader: [...contactListHeader],
|
| userBaseSpecialInfo: [...userBaseSpecialInfo],
|
| // 案场排除字段
| creditFlowCaseFilter: [
| 'borrowerrelationship',
| 'idcardexpirationdate',
| 'unitproperties',
| 'enterprisemain',
| 'positionrank',
| 'hashomeDesc',
| 'homecityDesc',
| 'housecountyDesc'
| ],
|
| // 非案场排除字段
| creditFlowCommonFilter: [
| 'borrowerrelationship',
| 'idcardexpirationdate',
| 'positionrank',
| 'querycredittype',
| 'housecountyDesc'
| ],
|
| // 抵押排除字段
| mortgageFlowFilter: [
| 'borrowerrelationship',
| 'querycredittype',
| 'hashomeDesc',
| 'hometel',
| 'kosekiprovince',
| 'kosekicity',
| 'kosekicounty',
| 'kosekifulladd'
| ],
|
| // 抵押包含字段
| buildingBusinessFlowFilter: [
| 'customername',
| 'borrowerrelationship',
| 'certtype',
| 'certid',
| 'phone',
| 'marriage',
| 'kosekiprovince',
| 'kosekicity',
| 'kosekicounty',
| 'kosekifulladd'
| ]
| }
| },
| created() {
| this.init()
| },
| methods: {
| init() {
| const {
| flowno,
| creditFlowCaseFilter,
| creditFlowCommonFilter,
| mortgageFlowFilter
| } = this
| const {
| // 案场
| CreditFlowCase,
|
| // 非案场
| CreditFlowCommon,
|
| // 抵押
| MortgageFlow,
|
| // 赎楼/快贷
| BuildingBusinessFlow
| } = flownos
| let header = []
|
| if (flowno === CreditFlowCase) {
| header = userBaseInfo.filter(
| ({ field }) => !creditFlowCaseFilter.includes(field)
| )
| this.qryCustomerBasicInfo()
| }
|
| if (flowno === CreditFlowCommon) {
| header = userBaseInfo.filter(
| ({ field }) => !creditFlowCommonFilter.includes(field)
| )
| this.qryCustomerBasicInfo()
| }
|
| if (flowno === MortgageFlow) {
| header = userBaseInfo.filter(
| ({ field }) => !mortgageFlowFilter.includes(field)
| )
| this.qryCustomerBasicInfo()
| }
|
| // 赎楼/快贷
| if (flowno === BuildingBusinessFlow) {
| header = [...buildingBusinessFlowUserBaseInfo]
| this.tableHeader = []
| this.activeName = '0'
| this.qryCustomerInfoList()
| }
|
| this.userBaseInfo = [...header]
| },
|
| // 查询顶部流程节点状态
| async qryCustomerBasicInfo() {
| this.loading = true
| const { serialNo, customerID } = this
| const res = await qryCustomerBasicInfo({
| applySerialNo: serialNo,
| customerId: customerID
| })
| this.loading = false
| const { result } = res
| const { contactList, ...other } = result
| this.info = other
| this.contactList = contactList
| },
|
| // 查询顶部流程节点状态
| async qryCustomerInfoList() {
| this.loading = true
| const { serialNo, customerID } = this
| const res = await qryCustomerInfoList({
| applySerialNo: serialNo,
| customerId: customerID
| })
| this.loading = false
| const { result } = res
| this.list = result
| }
| },
| watch: {
| serialNo() {
| this.init()
| }
| }
| }
| </script>
|
| <style lang="postcss" scoped>
| </style>
|
|