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
| /*
| * @Author: Pengjiantian
| * @Date: 2020-07-22 14:59:46
| * @Last Modified by: Pengjiantian
| * @Last Modified time: 2020-07-22 15:42:21
| */
|
| /**
| * 退回任务池
| */
| const formList = [
| {
| type: 'input',
| attrs: ['readonly'],
| label: '申请编号',
| name: 'objectNo'
| },
| {
| type: 'input',
| attrs: ['readonly'],
| label: '贷款机构类型',
| name: 'fundTypeDesc'
| },
| {
| type: 'input',
| attrs: ['readonly'],
| label: '贷款机构编码',
| name: 'fundCode'
| },
| {
| type: 'input',
| attrs: ['readonly'],
| label: '贷款机构名称',
| name: 'fundName'
| },
| {
| type: 'input',
| attrs: ['readonly'],
| label: '当前阶段',
| name: 'phaseName'
| },
| {
| type: 'input',
| attrs: ['readonly'],
| label: '当前处理人',
| name: 'currentUserName'
| }
| ]
|
| import ApiModel from '@/utils/core/apiModel'
|
| export default options => {
| // 接口地址: required
| const api = 'server/returnTaskPool'
| const { queryType } = options
| let typeName = ''
| // 01 贷款机构 02 资金单元 03 业务通道 04 兜底机构
| if (queryType === '01') {
| typeName = '贷款机构'
| } else if (queryType === '02') {
| typeName = '资金单元'
| } else if (queryType === '03') {
| typeName = '业务通道'
| } else if (queryType === '04') {
| typeName = '兜底机构'
| }
| formList[1].label = typeName + formList[1].label.slice(4)
| formList[2].label = typeName + formList[2].label.slice(4)
| formList[3].label = typeName + formList[3].label.slice(4)
| return new ApiModel({
| api,
| formList,
| request(body) {
| return this.post(body)
| }
| })
| }
|
|