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
/**
 * 财务凭证明细核对
 */
 
import ApiModel from '@/utils/core/apiModel';
 
// 表单信息
const formList = [
  {
    type: 'select',
    label: '核对类型',
    value: '',
    name: 'checkType',
    descName: 'checkTypeName',
    options: [],
    attrs: ['filterable', 'clearable', 'collapse-tags'],
    rules: [{ required: true }]
  },
  {
    type: 'dateRange',
    label: '交易日期',
    value: '',
    name: 'beginAndEndDate',
    names: ['beginDate', 'endDate'],
    rules: [{ required: true }]
  }
];
 
// 支付通道回款表单信息
const payFormList = [
  {
    type: 'select',
    label: '支付公司名称',
    value: '',
    name: 'institution',
    options: [],
    attrs: ['filterable', 'clearable', 'collapse-tags'],
    rules: [{ required: true }]
  },
  {
    type: 'input',
    label: '商户号',
    value: '',
    name: 'identifier',
    attrs: ['readonly'],
    rules: [{ required: true }]
  }
];
 
const netRutBankFormList = [
  {
    type: 'select',
    label: '出账渠道',
    value: '',
    name: 'accountingChannel',
    descName: 'institution',
    options: [],
    attrs: ['filterable', 'clearable', 'collapse-tags']
  }
];
 
// 客户线下转账&开发商贴息转账表单信息
const cusDevFormList = [
  {
    type: 'select',
    label: '收款账户账号',
    value: '',
    name: 'identifier',
    attrs: ['filterable', 'clearable', 'collapse-tags'],
    rules: [{ required: true }]
  },
  {
    type: 'input',
    label: '收款账户户名',
    value: '',
    name: 'institution',
    attrs: ['readonly']
  }
];
 
// 放款表单信息
const loanFormList = [
  {
    type: 'select',
    label: '放款账户账号',
    value: '',
    name: 'identifier',
    attrs: ['filterable', 'clearable', 'collapse-tags'],
    rules: [{ required: true }]
  },
  {
    type: 'input',
    label: '放款账户户名',
    value: '',
    name: 'institution',
    attrs: ['readonly']
  }
];
 
// 返回结果基本列表
const resFormList = [
  {
    type: 'input',
    label: '财务分录金额',
    value: '',
    name: 'coreMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '财务差额',
    value: '',
    name: 'financialBalance',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '核对结果',
    value: '',
    name: 'statusName',
    attrs: ['readonly']
  }
];
 
// 支付通道回款
const resPayFormList = [
  {
    type: 'input',
    label: '清算款总金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '清算款笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
// 客户线下转账&开发商贴息转账
const resCusDisFormList = [
  {
    type: 'input',
    label: '流水收款金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '流水收款笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  },
  {
    type: 'input',
    label: '流水剩余金额',
    value: '',
    name: 'surplusAmount',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '流水退款金额',
    value: '',
    name: 'fallBackAmount',
    attrs: ['readonly'],
    isMoney: true
  }
];
 
// 客户转账认领&开发商转账认领
const resCusClaimFormList = [
  {
    type: 'input',
    label: '认领金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '认领笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
// 放款
const resLoanFormList = [
  {
    type: 'input',
    label: '放款金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '放款笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
// 转账认领撤销
const resCancelFormList = [
  {
    type: 'input',
    label: '撤销金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '撤销笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
// 财务网银退款&通道代付退款
const resNetPassFormList = [
  {
    type: 'input',
    label: '退款金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '退款笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
// 贷款撤销
const resRevokeFormList = [
  {
    type: 'input',
    label: '撤销归还金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '本金损失金额',
    value: '',
    name: 'checkLossMoney',
    // descName:'checkLossMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '财务分录本金损失金额',
    value: '',
    name: 'coreLossMoney',
    // descName: 'coreLossMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '财务本金损失差额',
    value: '',
    name: 'lossBalanceMoney',
    attrs: ['readonly'],
    isMoney: true
  }
];
 
// 营业外收入
const resIncomeFormList = [
  {
    type: 'input',
    label: '收入金额',
    value: '',
    name: 'checkMoney',
    attrs: ['readonly'],
    isMoney: true
  },
  {
    type: 'input',
    label: '收入笔数',
    value: '',
    name: 'checkNumber',
    attrs: ['readonly']
  }
];
 
export default (options = {}) => {
  // 接口地址,required
  const api = 'voucherDetail/voucherDetailCheck';
  const { command, serialNo = false } = options;
  // console.log(command, serialNo);
  let tempForm = null;
  if (serialNo) {
    if (command === 'FK') {
      tempForm = [...resFormList, ...resLoanFormList];
    } else if (command === 'TD') {
      tempForm = [...resFormList, ...resPayFormList];
    } else if (command === 'KHZK' || command === 'KFSZK') {
      tempForm = [...resFormList, ...resCusDisFormList];
    } else if (command === 'KHRL' || command === 'KFSRL') {
      tempForm = [...resFormList, ...resCusClaimFormList];
    } else if (command === 'RLCX') {
      tempForm = [...resFormList, ...resCancelFormList];
    } else if (command === 'WYTK' || command === 'TDTK') {
      tempForm = [...resFormList, ...resNetPassFormList];
    } else if (command === 'DKCX') {
      tempForm = [...resFormList, ...resRevokeFormList];
    } else if (command === 'YYWSR') {
      tempForm = [...resFormList, ...resIncomeFormList];
    } else {
      tempForm = resFormList;
    }
  } else {
    if (command === 'TD') {
      tempForm = [...formList, ...payFormList];
    } else if (command === 'WYTK' || command === 'TDTK') {
      tempForm = [...formList, ...netRutBankFormList];
    } else if (command === 'KHZK' || command === 'KFSZK') {
      tempForm = [...formList, ...cusDevFormList];
    } else if (command === 'FK') {
      tempForm = [...formList, ...loanFormList];
    } else {
      tempForm = formList;
    }
  }
  return new ApiModel({
    api,
    formList: tempForm,
    request(params) {
      return this.post(params);
    }
  });
};