zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
/*
 * @Author: lixiong
 * @Date: 2019-08-21 14:35:07
 * @Last Modified by: zheng
 * @Last Modified time: 2021-06-09 17:01:55
 */
 
/**
 * 贷款申请查询
 */
 
import ApiModel from '@comprehensive/serve/core/ApiModel'
 
// 表单信息
const formList = [
  {
    type: 'input', // input, select, date, rangeDate
    label: '申请编号',
    value: '',
    name: 'serialNo'
  },
  {
    type: 'input',
    label: '客户名称',
    value: '',
    name: 'customerName'
  },
  {
    type: 'input',
    label: '客户手机号',
    value: '',
    name: 'customerPhone',
    rules: [{ maxLength: 11 }]
  },
  {
    type: 'select',
    label: '当前流程阶段',
    value: [],
    options: [],
    name: 'phaseNo',
    attrs: ['multiple', 'collapse-tags', 'filterable']
  },
  {
    type: 'select',
    label: '业务城市',
    value: [],
    options: [],
    name: 'businessCity',
    attrs: ['multiple', 'collapse-tags', 'filterable']
  },
  /* {
    type: 'input',
    label: '客户编号',
    value: '',
    name: 'customerId'
  }, */
  {
    type: 'input',
    label: '共借人姓名',
    value: '',
    name: 'coBorrowerName'
  },
  {
    type: 'input',
    label: '项目名称',
    value: '',
    name: 'projectname'
  },
  {
    type: 'dateRange',
    label: '报单日期',
    value: [],
    name: 'declaration',
    names: ['beginDate', 'endDate']
  },
  {
    type: 'dateRange',
    label: '计划放款日期',
    value: [],
    name: 'planLendDate',
    names: ['beginPlanLendDate', 'endPlanLendDate']
  },
  {
    type: 'dateRange',
    label: '实际放款日期',
    value: [],
    name: 'actualPutOutDate',
    names: ['beginActualPutOutDate', 'endActualPutOutDate']
  },
  {
    type: 'input',
    label: '推荐人',
    value: '',
    name: 'refereeName'
  },
  {
    type: 'input',
    label: '报单人',
    value: '',
    name: 'operateName'
  }
  /* {
    type: 'select',
    filterable: true,
    label: '贴息标志',
    value: '',
    options: [
      {
        label: '请选择',
        value: ''
      },
      {
        label: '贴息',
        value: '1'
      },
      {
        label: '不贴息',
        value: '0'
      }
    ],
    name: 'discountFlag'
  }, */
  /* {
    type: 'select',
    filterable: true,
    label: '贴息类型',
    value: '',
    options: [],
    name: 'discountType'
  }, */
  /* {
    type: 'select',
    label: '手续费收取方式',
    value: [],
    options: [],
    name: 'poundageCharge',
    attrs: ['multiple', 'collapse-tags']
  }, */
  /* {
    type: 'select',
    filterable: true,
    label: '贷款发放商家标志',
    value: '',
    options: [],
    name: 'isIssuePartners'
  } */
]
 
// 表格信息
const tableList = [
  {
    prop: 'serialNo',
    label: '申请编号',
    width: '160px',
    fixed: true,
    type: 'link' // link, button, buttons
  },
  {
    prop: 'productName',
    label: '产品名称',
    width: '100px'
  },
  {
    prop: 'productdimensionname',
    label: '产品维度',
    width: '180px'
  },
  {
    prop: 'occurTypeDesc',
    label: '业务类型',
    width: '100px'
  },
  {
    prop: 'phaseName',
    label: '当前流程阶段',
    width: '160px'
  },
  {
    prop: 'businessCityDesc',
    label: '业务城市',
    width: '95px'
  },
  {
    prop: 'customerID',
    label: '客户编号',
    width: '185px'
  },
  {
    prop: 'customerName',
    label: '客户名称',
    width: '150px'
  },
  {
    prop: 'phone',
    label: '客户手机号',
    width: '120px'
  },
  {
    prop: 'coborrowers',
    label: '共借人姓名清单',
    width: '130px'
  },
  {
    prop: 'hopebusinesssum',
    label: '申请金额(元)',
    isMoney: true,
    width: '130px'
  },
  {
    prop: 'amountloan',
    label: '授信/放款金额(元)',
    isMoney: true,
    width: '140px'
  },
  {
    prop: 'businessTerm',
    label: '贷款期限',
    width: '85px'
  },
  {
    prop: 'repaymentTypeDesc',
    label: '还款方式',
    width: '120px'
  },
  {
    prop: 'projectname',
    label: '项目名称',
    width: '120px'
  },
  {
    prop: 'signedcityDesc',
    label: '面签城市',
    width: '95px'
  },
  {
    prop: 'inputdate',
    label: '报单日期',
    width: '100px'
  },
  {
    prop: 'inputtime',
    label: '报单时间',
    width: '100px'
  },
  {
    prop: 'planlenddate',
    label: '预计放款日',
    width: '110px'
  },
  {
    prop: 'actualputoutdate',
    label: '实际放款日期',
    width: '110px'
  },
  {
    prop: 'refereename',
    label: '推荐人',
    width: '95px'
  },
  {
    prop: 'refereeorgname',
    label: '推荐人直属机构',
    width: '240px'
  },
  {
    prop: 'refereefirstinternallevelname',
    label: '推荐人所属一级内部机构',
    width: '180px'
  },
  {
    prop: 'operateusername',
    label: '报单人',
    width: '95px'
  },
  {
    prop: 'operateorgname',
    label: '报单人直属机构',
    width: '240px'
  },
  {
    prop: 'operatefirstinternallevelname',
    label: '报单人所属一级内部机构',
    width: '180px'
  },
  {
    prop: 'guarantors',
    label: '担保人姓名清单',
    width: '130px'
  },
  {
    prop: 'obligorname',
    label: '债务人',
    width: '95px'
  },
  {
    prop: 'discountFlagDesc',
    label: '贴息标志',
    width: '85px'
  },
  {
    prop: 'discounttypeDesc',
    label: '贴息类型',
    width: '100px'
  },
  {
    prop: 'discountwayDesc',
    label: '贴息付款方式',
    width: '120px'
  },
  {
    prop: 'rate',
    label: '利率(%)',
    width: '130px'
  },
  {
    prop: 'poundagerate',
    label: '手续费费率(%)',
    width: '120px'
  },
  {
    prop: 'poundagechargeDesc',
    label: '手续费收取方式',
    width: '130px'
  },
  {
    prop: 'loanstoreflagDesc',
    label: '贷款发放商家标志',
    width: '140px'
  }
]
 
export default options => {
  // 接口地址,required
  const api = 'server/qryApplyList'
 
  return new ApiModel({
    api,
    formList,
    tableList,
    request(params) {
      return this.post(params)
    },
    computedItem(item) {
      // 表格部分字段特殊处理
      let {
        termUnit,
        businessTermMonth,
        businessTermDay,
        amountloan,
        businessSum
      } = item
      let businessTerm = ''
      if (termUnit === 'M' && businessTermMonth) {
        businessTerm = `${businessTermMonth}月`
      }
      if (termUnit === 'D' && businessTermDay) {
        businessTerm = `${businessTermDay}天`
      }
      amountloan =
        amountloan === '' || amountloan === '0' ? businessSum : amountloan
 
      return { ...item, businessTerm, amountloan }
    },
    computedValue(val, name, list) {
      // 表单部分字段特殊处理(这里为:多选项按接口要求转换为拼接字符串)
      const { formList } = this
      if (typeof list === 'undefined') {
        list = [...formList]
      }
      if (
        formList.some(
          ({ attrs = [], name: findName }) =>
            attrs.includes('multiple') && findName === name
        )
      ) {
        return Array.isArray(val) ? val.join(',') : val
      }
 
      return val
    }
    // computedValues(values = {}) {
    //   const { formList } = this
    //   return Object.keys(values).reduce((pre, curr) => {
    //     // let { name, value } = curr
    //     let value = values[curr]
    //     const findItem = formList.find(
    //       item =>
    //         item.name === curr &&
    //         (Array.isArray(item.attrs) && item.attrs.includes('multiple'))
    //     )
    //     if (findItem && Array.isArray(value)) {
    //       value = value.join(',')
    //     }
    //     pre[curr] = value
    //     return pre
    //   }, {})
    // }
  })
}