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
| /*
| * @Author: Pengjiantian
| * @Date: 2020-06-11 10:03:52
| * @Last Modified by: Pengjiantian
| * @Last Modified time: 2020-07-23 15:46:17
| */
| /**
| * 贷款机构基础信息
| */
|
| import ApiModel from '@/utils/core/apiModel'
| // 贷款机构信息
| const formList = [
| {
| type: 'input',
| label: '贷款机构名称',
| value: '',
| name: 'orgName',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| },
|
| {
| type: 'select',
| label: '贷款机构类型',
| value: '',
| name: 'orgType',
| descName: 'orgTypeDesc',
| options: [],
| attrs: ['filterable', 'clearable', 'collapse-tags', 'readonly'],
| // rules: [{ required: true }],
| },
| {
| type: 'input',
| label: '日限额度',
| value: '',
| name: 'limitAmtDay',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '日剩余可用额度',
| value: '',
| name: 'remainAmtDay',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '月限额度',
| value: '',
| name: 'limitAmtMonth',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '月剩余可用额度',
| value: '',
| name: 'remainAmtMonth',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '总额度',
| value: '',
| name: 'limitAmtTotal',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '总剩余可用额度',
| value: '',
| name: 'remainAmtTotal',
| // rules: [{ required: true }],
| attrs: ['readonly'],
| isMoney: true
| },
| {
| type: 'input',
| label: '最近操作人',
| name: 'updateUserName',
| attrs: ['readonly']
| },
| {
| type: 'input',
| label: '最近修改时间',
| name: 'updateDate',
| attrs: ['readonly']
| }
| ]
| //贷款机构优先级
| const otherFormList = [
| {
| type: 'select',
| label: '资方优先级类型',
| value: '',
| name: 'priorityType',
| descName: 'priorityTypeDesc',
| options: [],
| attrs: ['filterable', 'clearable', 'collapse-tags'],
| rules: [{ required: true }]
| },
| {
| type: 'input',
| label: '贷款机构优先级配置',
| value: '',
| name: 'priorityValue',
| rules: [{ required: true }],
| },
| ]
|
|
| export default options => {
| // 接口地址: required
| const api = 'server/fundRouter/qryFundRouteManageInfo'
| // console.log(options)
| return new ApiModel({
| api,
| formList: options === 1 ? formList : otherFormList,
| // formList,
| request(body) {
| return this.post(body)
| }
| })
| }
|
|