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
| const uploadUrl = '/api/blade-resource/oss/endpoint/put-file-attach'
| const propsHttp = {
| url:'link',
| res: 'data'
| }
| let baseUrl = '/api/blade-system/region/lazy-tree?parentCode='
| const labelWidth = '25%'
| import axios from '@/router/axios';
| export default {
| height: 'auto',
| calcHeight: 30,
| tip: false,
| searchShow: true,
| searchMenuSpan: 6,
| border: true,
| index: true,
| viewBtn: true,
| selection: true,
| dialogClickModal: false,
| addBtn:false,
| group: [
| {
| label: '联系人信息',
| icon:'el-icon-user-solid',
| collapse: true,
| prop: 'info',
| arrow: false,
| column: [
| {
| label: "用户名",
| prop: "account",
| labelWidth:labelWidth,
| type: "input",
| hide: true,
| disabled:false
| },
| {
| label: "联系人姓名",
| labelWidth:labelWidth,
| prop: "name",
| type: "input",
| },
| {
| label: "邮件",
| labelWidth:labelWidth,
| prop: "email",
| type: "input",
| },
| {
| label: "手机",
| labelWidth:labelWidth,
| prop: "phone",
| type: "input",
| },
| ]
| },
| {
| label: '企业基本信息',
| icon: 'el-icon-info',
| collapse: true,
| prop: 'enterprise',
| arrow: false,
| column: [
| {
| label: "企业名称",
| labelWidth:labelWidth,
| prop: "enterpriseName",
| type: "input",
| },
| {
| label: "单位地址",
| labelWidth:labelWidth,
| prop: "address",
| type: "input",
| },
| {
| label: "注册省市",
| labelWidth:labelWidth,
| prop: "location",
| type: "cascader",
| props: {
| label: 'title',
| value: 'key'
| },
| separator:'',
| lazy: true,
| lazyLoad(node, resolve) {
| let stop_level = 1;
| let level = node.level;
| let data = node.data || {}
| let code = data.key;
| let list = [];
| let callback = () => {
| resolve((list || []).map(ele => {
| return Object.assign(ele, {
| leaf: level >= stop_level
| })
| }));
| }
| if (level == 0) {
| axios.get(`${baseUrl}00`).then(res => {
| list = res.data.data;
| callback()
| })
| }else if (level == 1) {
| axios.get(`${baseUrl}${code}`).then(res => {
| list = res.data.data;
| callback()
| })
| } else if (level == 2) {
| axios.get(`${baseUrl}${code}`).then(res => {
| list = res.data.data;
| callback()
| })
| }else{
| callback()
| }
| }
| },
| {
| label: "单位类型",
| labelWidth:labelWidth,
| prop: "type",
| type: "select",
| dicData:[
| {
| label:'个体',
| value: 1,
| },
| {
| label:'企业',
| value: 2,
| }
| ]
| },
| {
| label: "法人姓名",
| labelWidth:labelWidth,
| prop: "legalPerson",
| type: "input",
| },
| {
| label: "身份证号",
| labelWidth:labelWidth,
| prop: "idCard",
| type: "input",
| },
| {
| label: "企业电话",
| labelWidth:labelWidth,
| prop: "enterprisePhone",
| type: "input",
| },
| {
| label: "企业传真",
| labelWidth:labelWidth,
| prop: "enterpriseFax",
| type: "input",
| },
| ]
| },
| {
| label: '企业资质信息',
| icon: 'el-icon-s-check',
| collapse: true,
| prop: 'permission',
| arrow: false,
| column: [
| {
| label: "道路运输经营许可证号",
| labelWidth:labelWidth,
| prop: "permitNumber",
| type: "input",
| },
| {
| label: "有效期起",
| labelWidth:labelWidth,
| prop: "startTime",
| type: "date",
| format:'yyyy-MM-dd',
| valueFormat:'yyyy-MM-dd',
| },
| {
| label: "有效期止",
| labelWidth:labelWidth,
| prop: "endTime",
| type: "date",
| format:'yyyy-MM-dd',
| valueFormat:'yyyy-MM-dd',
| },
| ]
| },
| {
| label: '企业资质文件',
| icon: 'el-icon-upload',
| collapse: true,
| prop: 'info',
| arrow: false,
| column: [
| {
| label: "道路运输经营许可证照片",
| labelWidth:'17%',
| prop: "permitUrl",
| type: 'upload',
| loadText: '附件上传中,请稍等',
| span: 24,
| listType: 'picture-card',
| accept:'image/png, image/jpeg',
| propsHttp:propsHttp,
| action: uploadUrl
| },
| ]
| }
| ],
| column: [
| {
| label: "主键",
| prop: "id",
| type: "input",
| addDisplay: false,
| editDisplay: false,
| viewDisplay: false,
| hide: true,
| display:false,
| },
| {
| label: "企业名称",
| labelWidth:labelWidth,
| prop: "enterpriseName",
| type: "input",
| display: false,
| },
| {
| label: "单位地址",
| labelWidth:labelWidth,
| prop: "address",
| type: "input",
| display: false,
| },
| ]
| }
|
|