|
|
@@ -141,101 +141,178 @@
|
|
141
|
141
|
ref="form2"
|
|
142
|
142
|
:model="form2"
|
|
143
|
143
|
label-width="150px"
|
|
144
|
|
- v-for="(item, index) in paymentArr"
|
|
145
|
|
- :key="index"
|
|
146
|
144
|
:disabled="flag == '0'"
|
|
147
|
145
|
>
|
|
148
|
|
- <div>
|
|
|
146
|
+ <div v-for="(item, index) in form2.paymentArr" :key="index">
|
|
149
|
147
|
<div style="display: flex; justify-content: space-between">
|
|
150
|
148
|
<p>申请人主体信息:</p>
|
|
151
|
149
|
<el-button
|
|
152
|
150
|
type="danger"
|
|
153
|
151
|
icon="el-icon-delete"
|
|
154
|
152
|
@click="deleteData(index)"
|
|
155
|
|
- v-if="paymentArr.length > 1 && flag != '0'"
|
|
|
153
|
+ v-if="form2.paymentArr.length > 1 && flag != '0'"
|
|
156
|
154
|
></el-button>
|
|
157
|
155
|
</div>
|
|
158
|
156
|
<el-divider></el-divider>
|
|
159
|
157
|
<el-row>
|
|
160
|
158
|
<el-col :span="12">
|
|
161
|
|
- <el-form-item label="申请人姓名" prop="name">
|
|
162
|
|
- <el-input
|
|
163
|
|
- v-model="paymentArr[index].name"
|
|
164
|
|
- placeholder="请输入"
|
|
165
|
|
- />
|
|
|
159
|
+ <el-form-item
|
|
|
160
|
+ label="申请人姓名"
|
|
|
161
|
+ :prop="'paymentArr.' + index + '.name'"
|
|
|
162
|
+ :rules="[
|
|
|
163
|
+ {
|
|
|
164
|
+ required: true,
|
|
|
165
|
+ message: '申请人不能为空',
|
|
|
166
|
+ trigger: 'blur',
|
|
|
167
|
+ },
|
|
|
168
|
+ ]"
|
|
|
169
|
+ >
|
|
|
170
|
+ <el-input v-model="item.name" placeholder="请输入" />
|
|
166
|
171
|
</el-form-item>
|
|
167
|
172
|
</el-col>
|
|
168
|
173
|
<el-col :span="12">
|
|
169
|
|
- <el-form-item label="身份证号:" prop="identityNum">
|
|
170
|
|
- <el-input
|
|
171
|
|
- v-model="paymentArr[index].identityNum"
|
|
172
|
|
- placeholder="请输入"
|
|
173
|
|
- />
|
|
|
174
|
+ <el-form-item
|
|
|
175
|
+ label="身份证号:"
|
|
|
176
|
+ :prop="'paymentArr.' + index + '.identityNum'"
|
|
|
177
|
+ :rules="[
|
|
|
178
|
+ {
|
|
|
179
|
+ required: true,
|
|
|
180
|
+ message: '身份证号不能为空',
|
|
|
181
|
+ trigger: 'blur',
|
|
|
182
|
+ },
|
|
|
183
|
+ ]"
|
|
|
184
|
+ >
|
|
|
185
|
+ <el-input v-model="item.identityNum" placeholder="请输入" />
|
|
174
|
186
|
</el-form-item>
|
|
175
|
187
|
</el-col>
|
|
176
|
188
|
<el-col :span="12">
|
|
177
|
|
- <el-form-item label="联系电话:" prop="contactTelphone">
|
|
178
|
|
- <el-input
|
|
179
|
|
- v-model="paymentArr[index].contactTelphone"
|
|
180
|
|
- placeholder="请输入"
|
|
181
|
|
- />
|
|
|
189
|
+ <el-form-item
|
|
|
190
|
+ label="联系电话:"
|
|
|
191
|
+ :prop="'paymentArr.' + index + '.contactTelphone'"
|
|
|
192
|
+ :rules="[
|
|
|
193
|
+ {
|
|
|
194
|
+ required: true,
|
|
|
195
|
+ message: '联系电话不能为空',
|
|
|
196
|
+ trigger: 'blur',
|
|
|
197
|
+ },
|
|
|
198
|
+ ]"
|
|
|
199
|
+ >
|
|
|
200
|
+ <el-input v-model="item.contactTelphone" placeholder="请输入" />
|
|
182
|
201
|
</el-form-item>
|
|
183
|
202
|
</el-col>
|
|
184
|
203
|
<el-col :span="12">
|
|
185
|
|
- <el-form-item label="单位地址:" prop="workAddress">
|
|
186
|
|
- <el-input
|
|
187
|
|
- v-model="paymentArr[index].workAddress"
|
|
188
|
|
- placeholder="请输入"
|
|
189
|
|
- />
|
|
|
204
|
+ <el-form-item
|
|
|
205
|
+ label="单位地址:"
|
|
|
206
|
+ :prop="'paymentArr.' + index + '.workAddress'"
|
|
|
207
|
+ :rules="[
|
|
|
208
|
+ {
|
|
|
209
|
+ required: true,
|
|
|
210
|
+ message: '单位地址不能为空',
|
|
|
211
|
+ trigger: 'blur',
|
|
|
212
|
+ },
|
|
|
213
|
+ ]"
|
|
|
214
|
+ >
|
|
|
215
|
+ <el-input v-model="item.workAddress" placeholder="请输入" />
|
|
190
|
216
|
</el-form-item>
|
|
191
|
217
|
</el-col>
|
|
192
|
218
|
<el-col :span="12">
|
|
193
|
|
- <el-form-item label="单位电话:" prop="workTelphone">
|
|
194
|
|
- <el-input
|
|
195
|
|
- v-model="paymentArr[index].workTelphone"
|
|
196
|
|
- placeholder="请输入"
|
|
197
|
|
- />
|
|
|
219
|
+ <el-form-item
|
|
|
220
|
+ label="单位电话:"
|
|
|
221
|
+ :prop="'paymentArr.' + index + '.workTelphone'"
|
|
|
222
|
+ :rules="[
|
|
|
223
|
+ {
|
|
|
224
|
+ required: true,
|
|
|
225
|
+ message: '单位电话不能为空',
|
|
|
226
|
+ trigger: 'blur',
|
|
|
227
|
+ },
|
|
|
228
|
+ ]"
|
|
|
229
|
+ >
|
|
|
230
|
+ <el-input v-model="item.workTelphone" placeholder="请输入" />
|
|
198
|
231
|
</el-form-item>
|
|
199
|
232
|
</el-col>
|
|
200
|
233
|
<el-col :span="12">
|
|
201
|
|
- <el-form-item label="联系地址:" prop="contactAddress">
|
|
202
|
|
- <el-input
|
|
203
|
|
- v-model="paymentArr[index].contactAddress"
|
|
204
|
|
- placeholder="请输入"
|
|
205
|
|
- />
|
|
|
234
|
+ <el-form-item
|
|
|
235
|
+ label="联系地址:"
|
|
|
236
|
+ :prop="'paymentArr.' + index + '.contactAddress'"
|
|
|
237
|
+ :rules="[
|
|
|
238
|
+ {
|
|
|
239
|
+ required: true,
|
|
|
240
|
+ message: '联系地址不能为空',
|
|
|
241
|
+ trigger: 'blur',
|
|
|
242
|
+ },
|
|
|
243
|
+ ]"
|
|
|
244
|
+ >
|
|
|
245
|
+ <el-input v-model="item.contactAddress" placeholder="请输入" />
|
|
206
|
246
|
</el-form-item>
|
|
207
|
247
|
</el-col>
|
|
208
|
248
|
</el-row>
|
|
209
|
249
|
<p>代理人信息:</p>
|
|
210
|
250
|
<el-row>
|
|
211
|
251
|
<el-col :span="12">
|
|
212
|
|
- <el-form-item label="姓名:" prop="nameAgent">
|
|
213
|
|
- <el-input
|
|
214
|
|
- v-model="paymentArr[index].nameAgent"
|
|
215
|
|
- placeholder="请输入"
|
|
216
|
|
- />
|
|
|
252
|
+ <el-form-item
|
|
|
253
|
+ label="姓名:"
|
|
|
254
|
+ :prop="'paymentArr.' + index + '.nameAgent'"
|
|
|
255
|
+ :rules="[
|
|
|
256
|
+ {
|
|
|
257
|
+ required: true,
|
|
|
258
|
+ message: '姓名不能为空',
|
|
|
259
|
+ trigger: 'blur',
|
|
|
260
|
+ },
|
|
|
261
|
+ ]"
|
|
|
262
|
+ >
|
|
|
263
|
+ <el-input v-model="item.nameAgent" placeholder="请输入" />
|
|
217
|
264
|
</el-form-item>
|
|
218
|
265
|
</el-col>
|
|
219
|
266
|
<el-col :span="12">
|
|
220
|
|
- <el-form-item label="身份证号:" prop="identityNumAgent">
|
|
|
267
|
+ <el-form-item
|
|
|
268
|
+ label="身份证号:"
|
|
|
269
|
+ :prop="'paymentArr.' + index + '.identityNumAgent'"
|
|
|
270
|
+ :rules="[
|
|
|
271
|
+ {
|
|
|
272
|
+ required: true,
|
|
|
273
|
+ message: '身份证号不能为空',
|
|
|
274
|
+ trigger: 'blur',
|
|
|
275
|
+ },
|
|
|
276
|
+ ]"
|
|
|
277
|
+ >
|
|
221
|
278
|
<el-input
|
|
222
|
|
- v-model="paymentArr[index].identityNumAgent"
|
|
|
279
|
+ v-model="item.identityNumAgent"
|
|
223
|
280
|
placeholder="请输入"
|
|
224
|
281
|
/>
|
|
225
|
282
|
</el-form-item>
|
|
226
|
283
|
</el-col>
|
|
227
|
284
|
<el-col :span="12">
|
|
228
|
|
- <el-form-item label="联系电话:" prop="contactTelphoneAgent">
|
|
|
285
|
+ <el-form-item
|
|
|
286
|
+ label="联系电话:"
|
|
|
287
|
+ :prop="'paymentArr.' + index + '.contactTelphoneAgent'"
|
|
|
288
|
+ :rules="[
|
|
|
289
|
+ {
|
|
|
290
|
+ required: true,
|
|
|
291
|
+ message: '联系电话不能为空',
|
|
|
292
|
+ trigger: 'blur',
|
|
|
293
|
+ },
|
|
|
294
|
+ ]"
|
|
|
295
|
+ >
|
|
229
|
296
|
<el-input
|
|
230
|
|
- v-model="paymentArr[index].contactTelphoneAgent"
|
|
|
297
|
+ v-model="item.contactTelphoneAgent"
|
|
231
|
298
|
placeholder="请输入"
|
|
232
|
299
|
/>
|
|
233
|
300
|
</el-form-item>
|
|
234
|
301
|
</el-col>
|
|
235
|
302
|
<el-col :span="12">
|
|
236
|
|
- <el-form-item label="联系地址:" prop="contactAddressAgent">
|
|
|
303
|
+ <el-form-item
|
|
|
304
|
+ label="联系地址:"
|
|
|
305
|
+ :prop="'paymentArr.' + index + '.contactAddressAgent'"
|
|
|
306
|
+ :rules="[
|
|
|
307
|
+ {
|
|
|
308
|
+ required: true,
|
|
|
309
|
+ message: '联系地址不能为空',
|
|
|
310
|
+ trigger: 'blur',
|
|
|
311
|
+ },
|
|
|
312
|
+ ]"
|
|
|
313
|
+ >
|
|
237
|
314
|
<el-input
|
|
238
|
|
- v-model="paymentArr[index].contactAddressAgent"
|
|
|
315
|
+ v-model="item.contactAddressAgent"
|
|
239
|
316
|
placeholder="请输入"
|
|
240
|
317
|
/>
|
|
241
|
318
|
</el-form-item>
|
|
|
@@ -255,100 +332,178 @@
|
|
255
|
332
|
ref="form3"
|
|
256
|
333
|
label-width="150px"
|
|
257
|
334
|
:disabled="flag == '0'"
|
|
258
|
|
- v-for="(item, index) in paymentArr1"
|
|
259
|
|
- :key="index + paymentArr.length"
|
|
|
335
|
+ :model="form3"
|
|
260
|
336
|
>
|
|
261
|
|
- <div>
|
|
|
337
|
+ <div
|
|
|
338
|
+ v-for="(itm, index) in form3.paymentArr1"
|
|
|
339
|
+ :key="index + form2.paymentArr.length"
|
|
|
340
|
+ >
|
|
262
|
341
|
<div style="display: flex; justify-content: space-between">
|
|
263
|
342
|
<p>被申请人主体信息:</p>
|
|
264
|
343
|
<el-button
|
|
265
|
344
|
type="danger"
|
|
266
|
345
|
icon="el-icon-delete"
|
|
267
|
346
|
@click="deleteData1(index)"
|
|
268
|
|
- v-if="paymentArr1.length > 1 && flag != '0'"
|
|
|
347
|
+ v-if="form3.paymentArr1.length > 1 && flag != '0'"
|
|
269
|
348
|
></el-button>
|
|
270
|
349
|
</div>
|
|
271
|
350
|
<el-divider></el-divider>
|
|
272
|
351
|
<el-row>
|
|
273
|
352
|
<el-col :span="12">
|
|
274
|
|
- <el-form-item label="被申请人姓名" prop="name">
|
|
275
|
|
- <el-input
|
|
276
|
|
- v-model="paymentArr1[index].name"
|
|
277
|
|
- placeholder="请输入"
|
|
278
|
|
- />
|
|
|
353
|
+ <el-form-item
|
|
|
354
|
+ label="被申请人姓名"
|
|
|
355
|
+ :prop="'paymentArr1.' + index + '.name'"
|
|
|
356
|
+ :rules="[
|
|
|
357
|
+ {
|
|
|
358
|
+ required: true,
|
|
|
359
|
+ message: '被申请人不能为空',
|
|
|
360
|
+ trigger: 'blur',
|
|
|
361
|
+ },
|
|
|
362
|
+ ]"
|
|
|
363
|
+ >
|
|
|
364
|
+ <el-input v-model="itm.name" placeholder="请输入" />
|
|
279
|
365
|
</el-form-item>
|
|
280
|
366
|
</el-col>
|
|
281
|
367
|
<el-col :span="12">
|
|
282
|
|
- <el-form-item label="身份证号:" prop="identityNum">
|
|
283
|
|
- <el-input
|
|
284
|
|
- v-model="paymentArr1[index].identityNum"
|
|
285
|
|
- placeholder="请输入"
|
|
286
|
|
- />
|
|
|
368
|
+ <el-form-item
|
|
|
369
|
+ label="身份证号:"
|
|
|
370
|
+ :prop="'paymentArr1.' + index + '.identityNum'"
|
|
|
371
|
+ :rules="[
|
|
|
372
|
+ {
|
|
|
373
|
+ required: true,
|
|
|
374
|
+ message: '身份证号不能为空',
|
|
|
375
|
+ trigger: 'blur',
|
|
|
376
|
+ },
|
|
|
377
|
+ ]"
|
|
|
378
|
+ >
|
|
|
379
|
+ <el-input v-model="itm.identityNum" placeholder="请输入" />
|
|
287
|
380
|
</el-form-item>
|
|
288
|
381
|
</el-col>
|
|
289
|
382
|
<el-col :span="12">
|
|
290
|
|
- <el-form-item label="联系电话:" prop="contactTelphone">
|
|
291
|
|
- <el-input
|
|
292
|
|
- v-model="paymentArr1[index].contactTelphone"
|
|
293
|
|
- placeholder="请输入"
|
|
294
|
|
- />
|
|
|
383
|
+ <el-form-item
|
|
|
384
|
+ label="联系电话:"
|
|
|
385
|
+ :prop="'paymentArr1.' + index + '.contactTelphone'"
|
|
|
386
|
+ :rules="[
|
|
|
387
|
+ {
|
|
|
388
|
+ required: true,
|
|
|
389
|
+ message: '联系电话不能为空',
|
|
|
390
|
+ trigger: 'blur',
|
|
|
391
|
+ },
|
|
|
392
|
+ ]"
|
|
|
393
|
+ >
|
|
|
394
|
+ <el-input v-model="itm.contactTelphone" placeholder="请输入" />
|
|
295
|
395
|
</el-form-item>
|
|
296
|
396
|
</el-col>
|
|
297
|
397
|
<el-col :span="12">
|
|
298
|
|
- <el-form-item label="单位地址:" prop="workAddress">
|
|
299
|
|
- <el-input
|
|
300
|
|
- v-model="paymentArr1[index].workAddress"
|
|
301
|
|
- placeholder="请输入"
|
|
302
|
|
- />
|
|
|
398
|
+ <el-form-item
|
|
|
399
|
+ label="单位地址:"
|
|
|
400
|
+ :prop="'paymentArr1.' + index + '.workAddress'"
|
|
|
401
|
+ :rules="[
|
|
|
402
|
+ {
|
|
|
403
|
+ required: true,
|
|
|
404
|
+ message: '单位地址不能为空',
|
|
|
405
|
+ trigger: 'blur',
|
|
|
406
|
+ },
|
|
|
407
|
+ ]"
|
|
|
408
|
+ >
|
|
|
409
|
+ <el-input v-model="itm.workAddress" placeholder="请输入" />
|
|
303
|
410
|
</el-form-item>
|
|
304
|
411
|
</el-col>
|
|
305
|
412
|
<el-col :span="12">
|
|
306
|
|
- <el-form-item label="单位电话:" prop="workTelphone">
|
|
307
|
|
- <el-input
|
|
308
|
|
- v-model="paymentArr1[index].workTelphone"
|
|
309
|
|
- placeholder="请输入"
|
|
310
|
|
- />
|
|
|
413
|
+ <el-form-item
|
|
|
414
|
+ label="单位电话:"
|
|
|
415
|
+ :prop="'paymentArr1.' + index + '.workTelphone'"
|
|
|
416
|
+ :rules="[
|
|
|
417
|
+ {
|
|
|
418
|
+ required: true,
|
|
|
419
|
+ message: '单位电话不能为空',
|
|
|
420
|
+ trigger: 'blur',
|
|
|
421
|
+ },
|
|
|
422
|
+ ]"
|
|
|
423
|
+ >
|
|
|
424
|
+ <el-input v-model="itm.workTelphone" placeholder="请输入" />
|
|
311
|
425
|
</el-form-item>
|
|
312
|
426
|
</el-col>
|
|
313
|
427
|
<el-col :span="12">
|
|
314
|
|
- <el-form-item label="联系地址:" prop="contactAddress">
|
|
315
|
|
- <el-input
|
|
316
|
|
- v-model="paymentArr1[index].contactAddress"
|
|
317
|
|
- placeholder="请输入"
|
|
318
|
|
- />
|
|
|
428
|
+ <el-form-item
|
|
|
429
|
+ label="联系地址:"
|
|
|
430
|
+ :prop="'paymentArr1.' + index + '.contactAddress'"
|
|
|
431
|
+ :rules="[
|
|
|
432
|
+ {
|
|
|
433
|
+ required: true,
|
|
|
434
|
+ message: '联系地址不能为空',
|
|
|
435
|
+ trigger: 'blur',
|
|
|
436
|
+ },
|
|
|
437
|
+ ]"
|
|
|
438
|
+ >
|
|
|
439
|
+ <el-input v-model="itm.contactAddress" placeholder="请输入" />
|
|
319
|
440
|
</el-form-item>
|
|
320
|
441
|
</el-col>
|
|
321
|
442
|
</el-row>
|
|
322
|
443
|
<p>代理人信息:</p>
|
|
323
|
444
|
<el-row>
|
|
324
|
445
|
<el-col :span="12">
|
|
325
|
|
- <el-form-item label="姓名:" prop="nameAgent">
|
|
326
|
|
- <el-input
|
|
327
|
|
- v-model="paymentArr1[index].nameAgent"
|
|
328
|
|
- placeholder="请输入"
|
|
329
|
|
- />
|
|
|
446
|
+ <el-form-item
|
|
|
447
|
+ label="姓名:"
|
|
|
448
|
+ :prop="'paymentArr1.' + index + '.nameAgent'"
|
|
|
449
|
+ :rules="[
|
|
|
450
|
+ {
|
|
|
451
|
+ required: true,
|
|
|
452
|
+ message: '姓名不能为空',
|
|
|
453
|
+ trigger: 'blur',
|
|
|
454
|
+ },
|
|
|
455
|
+ ]"
|
|
|
456
|
+ >
|
|
|
457
|
+ <el-input v-model="itm.nameAgent" placeholder="请输入" />
|
|
330
|
458
|
</el-form-item>
|
|
331
|
459
|
</el-col>
|
|
332
|
460
|
<el-col :span="12">
|
|
333
|
|
- <el-form-item label="身份证号:" prop="identityNumAgent">
|
|
334
|
|
- <el-input
|
|
335
|
|
- v-model="paymentArr1[index].identityNumAgent"
|
|
336
|
|
- placeholder="请输入"
|
|
337
|
|
- />
|
|
|
461
|
+ <el-form-item
|
|
|
462
|
+ label="身份证号:"
|
|
|
463
|
+ :prop="'paymentArr1.' + index + '.identityNumAgent'"
|
|
|
464
|
+ :rules="[
|
|
|
465
|
+ {
|
|
|
466
|
+ required: true,
|
|
|
467
|
+ message: '身份证号不能为空',
|
|
|
468
|
+ trigger: 'blur',
|
|
|
469
|
+ },
|
|
|
470
|
+ ]"
|
|
|
471
|
+ >
|
|
|
472
|
+ <el-input v-model="itm.identityNumAgent" placeholder="请输入" />
|
|
338
|
473
|
</el-form-item>
|
|
339
|
474
|
</el-col>
|
|
340
|
475
|
<el-col :span="12">
|
|
341
|
|
- <el-form-item label="联系电话:" prop="contactTelphoneAgent">
|
|
|
476
|
+ <el-form-item
|
|
|
477
|
+ label="联系电话:"
|
|
|
478
|
+ :prop="'paymentArr1.' + index + '.contactTelphoneAgent'"
|
|
|
479
|
+ :rules="[
|
|
|
480
|
+ {
|
|
|
481
|
+ required: true,
|
|
|
482
|
+ message: '联系电话不能为空',
|
|
|
483
|
+ trigger: 'blur',
|
|
|
484
|
+ },
|
|
|
485
|
+ ]"
|
|
|
486
|
+ >
|
|
342
|
487
|
<el-input
|
|
343
|
|
- v-model="paymentArr1[index].contactTelphoneAgent"
|
|
|
488
|
+ v-model="itm.contactTelphoneAgent"
|
|
344
|
489
|
placeholder="请输入"
|
|
345
|
490
|
/>
|
|
346
|
491
|
</el-form-item>
|
|
347
|
492
|
</el-col>
|
|
348
|
493
|
<el-col :span="12">
|
|
349
|
|
- <el-form-item label="联系地址:" prop="contactAddressAgent">
|
|
|
494
|
+ <el-form-item
|
|
|
495
|
+ label="联系地址:"
|
|
|
496
|
+ :prop="'paymentArr1.' + index + '.contactAddressAgent'"
|
|
|
497
|
+ :rules="[
|
|
|
498
|
+ {
|
|
|
499
|
+ required: true,
|
|
|
500
|
+ message: '联系地址不能为空',
|
|
|
501
|
+ trigger: 'blur',
|
|
|
502
|
+ },
|
|
|
503
|
+ ]"
|
|
|
504
|
+ >
|
|
350
|
505
|
<el-input
|
|
351
|
|
- v-model="paymentArr1[index].contactAddressAgent"
|
|
|
506
|
+ v-model="itm.contactAddressAgent"
|
|
352
|
507
|
placeholder="请输入"
|
|
353
|
508
|
/>
|
|
354
|
509
|
</el-form-item>
|
|
|
@@ -389,12 +544,47 @@ export default {
|
|
389
|
544
|
data() {
|
|
390
|
545
|
return {
|
|
391
|
546
|
formData: this.form,
|
|
392
|
|
- form2: {}, //申请人主体信息
|
|
393
|
|
- form3: {}, //被申请人主体信息
|
|
|
547
|
+ form2: {
|
|
|
548
|
+ paymentArr: [
|
|
|
549
|
+ {
|
|
|
550
|
+ identityType: 1,
|
|
|
551
|
+ name: "",
|
|
|
552
|
+ identityNum: "",
|
|
|
553
|
+ contactTelphone: "",
|
|
|
554
|
+ workAddress: "",
|
|
|
555
|
+ workTelphone: "",
|
|
|
556
|
+ contactAddress: "",
|
|
|
557
|
+ nameAgent: "",
|
|
|
558
|
+ contactTelphoneAgent: "",
|
|
|
559
|
+ contactAddressAgent: "",
|
|
|
560
|
+ },
|
|
|
561
|
+ ],
|
|
|
562
|
+ }, //申请人主体信息
|
|
|
563
|
+ form3: {
|
|
|
564
|
+ paymentArr1: [
|
|
|
565
|
+ {
|
|
|
566
|
+ identityType: 2,
|
|
|
567
|
+ name: "",
|
|
|
568
|
+ identityNum: "",
|
|
|
569
|
+ contactTelphone: "",
|
|
|
570
|
+ workAddress: "",
|
|
|
571
|
+ workTelphone: "",
|
|
|
572
|
+ contactAddress: "",
|
|
|
573
|
+ nameAgent: "",
|
|
|
574
|
+ contactTelphoneAgent: "",
|
|
|
575
|
+ contactAddressAgent: "",
|
|
|
576
|
+ },
|
|
|
577
|
+ ],
|
|
|
578
|
+ }, //被申请人主体信息
|
|
394
|
579
|
// 表单校验
|
|
395
|
580
|
rules: {
|
|
396
|
581
|
caseNum: [
|
|
397
|
|
- { required: true, message: "案件编号不能为空", trigger: "blur" },
|
|
|
582
|
+ {
|
|
|
583
|
+ required: true,
|
|
|
584
|
+ message: "案件编号不能为空",
|
|
|
585
|
+ trigger: ["change", "blur"],
|
|
|
586
|
+ },
|
|
|
587
|
+ { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
|
|
398
|
588
|
],
|
|
399
|
589
|
caseSubjectAmount: [
|
|
400
|
590
|
{
|
|
|
@@ -465,122 +655,7 @@ export default {
|
|
465
|
655
|
// { type: 'number', message: '申请人主张违约金必须为数字值'}
|
|
466
|
656
|
],
|
|
467
|
657
|
},
|
|
468
|
|
- rulesmain: {
|
|
469
|
|
- name: [
|
|
470
|
|
- {
|
|
471
|
|
- required: true,
|
|
472
|
|
- message: "申请人不能为空",
|
|
473
|
|
- trigger: "blur",
|
|
474
|
|
- },
|
|
475
|
|
- ],
|
|
476
|
|
- identityNum: [
|
|
477
|
|
- {
|
|
478
|
|
- required: true,
|
|
479
|
|
- message: "身份证号不能为空",
|
|
480
|
|
- trigger: "blur",
|
|
481
|
|
- },
|
|
482
|
|
- ],
|
|
483
|
|
- contactTelphone: [
|
|
484
|
|
- {
|
|
485
|
|
- required: true,
|
|
486
|
|
- message: "联系电话不能为空",
|
|
487
|
|
- trigger: "blur",
|
|
488
|
|
- },
|
|
489
|
|
- {
|
|
490
|
|
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
491
|
|
- message: "请输入正确的手机号码",
|
|
492
|
|
- trigger: "blur",
|
|
493
|
|
- },
|
|
494
|
|
- ],
|
|
495
|
|
- workAddress: [
|
|
496
|
|
- {
|
|
497
|
|
- required: true,
|
|
498
|
|
- message: "单位地址不能为空",
|
|
499
|
|
- trigger: "blur",
|
|
500
|
|
- },
|
|
501
|
|
- ],
|
|
502
|
|
- workTelphone: [
|
|
503
|
|
- {
|
|
504
|
|
- required: true,
|
|
505
|
|
- message: "单位电话不能为空",
|
|
506
|
|
- trigger: "blur",
|
|
507
|
|
- },
|
|
508
|
|
- {
|
|
509
|
|
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
510
|
|
- message: "请输入正确的手机号码",
|
|
511
|
|
- trigger: "blur",
|
|
512
|
|
- },
|
|
513
|
|
- ],
|
|
514
|
|
- contactAddress: [
|
|
515
|
|
- {
|
|
516
|
|
- required: true,
|
|
517
|
|
- message: "联系地址不能为空",
|
|
518
|
|
- trigger: "blur",
|
|
519
|
|
- },
|
|
520
|
|
- ],
|
|
521
|
|
- nameAgent: [
|
|
522
|
|
- {
|
|
523
|
|
- required: true,
|
|
524
|
|
- message: "姓名不能为空",
|
|
525
|
|
- trigger: "blur",
|
|
526
|
|
- },
|
|
527
|
|
- ],
|
|
528
|
|
- identityNumAgent: [
|
|
529
|
|
- {
|
|
530
|
|
- required: true,
|
|
531
|
|
- message: "身份证号不能为空",
|
|
532
|
|
- trigger: "blur",
|
|
533
|
|
- },
|
|
534
|
|
- ],
|
|
535
|
|
- contactTelphoneAgent: [
|
|
536
|
|
- {
|
|
537
|
|
- required: true,
|
|
538
|
|
- message: "联系电话不能为空",
|
|
539
|
|
- trigger: "blur",
|
|
540
|
|
- },
|
|
541
|
|
- {
|
|
542
|
|
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
543
|
|
- message: "请输入正确的手机号码",
|
|
544
|
|
- trigger: "blur",
|
|
545
|
|
- },
|
|
546
|
|
- ],
|
|
547
|
|
- contactAddressAgent: [
|
|
548
|
|
- {
|
|
549
|
|
- required: true,
|
|
550
|
|
- message: "联系地址不能为空",
|
|
551
|
|
- trigger: "blur",
|
|
552
|
|
- },
|
|
553
|
|
- ],
|
|
554
|
|
- },
|
|
555
|
658
|
fileList: [],
|
|
556
|
|
- paymentArr: [
|
|
557
|
|
- {
|
|
558
|
|
- identityType: 1,
|
|
559
|
|
- name: "",
|
|
560
|
|
- identityNum: "",
|
|
561
|
|
- contactTelphone: "",
|
|
562
|
|
- workAddress: "",
|
|
563
|
|
- workTelphone: "",
|
|
564
|
|
- contactAddress: "",
|
|
565
|
|
- nameAgent: "",
|
|
566
|
|
- contactTelphoneAgent: "",
|
|
567
|
|
- contactAddressAgent: "",
|
|
568
|
|
- },
|
|
569
|
|
- ],
|
|
570
|
|
- paymentArr1: [
|
|
571
|
|
- {
|
|
572
|
|
- identityType: 2,
|
|
573
|
|
- name: "",
|
|
574
|
|
- identityNum: "",
|
|
575
|
|
- contactTelphone: "",
|
|
576
|
|
- workAddress: "",
|
|
577
|
|
- workTelphone: "",
|
|
578
|
|
- contactAddress: "",
|
|
579
|
|
- nameAgent: "",
|
|
580
|
|
- contactTelphoneAgent: "",
|
|
581
|
|
- contactAddressAgent: "",
|
|
582
|
|
- },
|
|
583
|
|
- ],
|
|
584
|
659
|
};
|
|
585
|
660
|
},
|
|
586
|
661
|
watch: {
|
|
|
@@ -589,8 +664,10 @@ export default {
|
|
589
|
664
|
if (val) {
|
|
590
|
665
|
this.formData = this.form;
|
|
591
|
666
|
if (this.flag == "1" || this.flag == "0") {
|
|
592
|
|
- this.paymentArr = this.initpaymentArr;
|
|
593
|
|
- this.paymentArr1 = this.initpaymentArr1;
|
|
|
667
|
+ setTimeout(() => {
|
|
|
668
|
+ this.form2.paymentArr = this.initpaymentArr;
|
|
|
669
|
+ this.form3.paymentArr1 = this.initpaymentArr1;
|
|
|
670
|
+ }, 1000);
|
|
594
|
671
|
}
|
|
595
|
672
|
}
|
|
596
|
673
|
},
|
|
|
@@ -617,7 +694,7 @@ export default {
|
|
617
|
694
|
|
|
618
|
695
|
// 新增申请人主体信息
|
|
619
|
696
|
generateForm() {
|
|
620
|
|
- this.paymentArr.push({
|
|
|
697
|
+ this.form2.paymentArr.push({
|
|
621
|
698
|
identityType: 1,
|
|
622
|
699
|
name: "",
|
|
623
|
700
|
identityNum: "",
|
|
|
@@ -632,7 +709,7 @@ export default {
|
|
632
|
709
|
},
|
|
633
|
710
|
// 新增被申请人主体信息
|
|
634
|
711
|
generateForm1() {
|
|
635
|
|
- this.paymentArr1.push({
|
|
|
712
|
+ this.form3.paymentArr1.push({
|
|
636
|
713
|
identityType: 2,
|
|
637
|
714
|
name: "",
|
|
638
|
715
|
identityNum: "",
|
|
|
@@ -647,11 +724,11 @@ export default {
|
|
647
|
724
|
},
|
|
648
|
725
|
// 删除申请人主体信息
|
|
649
|
726
|
deleteData(index) {
|
|
650
|
|
- this.paymentArr.splice(index, 1);
|
|
|
727
|
+ this.form2.paymentArr.splice(index, 1);
|
|
651
|
728
|
},
|
|
652
|
729
|
// 删除被申请人主体信息
|
|
653
|
730
|
deleteData1(index) {
|
|
654
|
|
- this.paymentArr1.splice(index, 1);
|
|
|
731
|
+ this.form3.paymentArr1.splice(index, 1);
|
|
655
|
732
|
},
|
|
656
|
733
|
// 提交立案申请 addCaseApply
|
|
657
|
734
|
submitForm() {
|
|
|
@@ -662,28 +739,40 @@ export default {
|
|
662
|
739
|
this.formData.loanEndDate = moment(this.formData.loanEndDate).format(
|
|
663
|
740
|
"YYYY-MM-DD HH:mm:ss"
|
|
664
|
741
|
);
|
|
665
|
|
- this.formData.caseAffiliates = [
|
|
666
|
|
- ...this.paymentArr,
|
|
667
|
|
- ...this.paymentArr1,
|
|
668
|
|
- ];
|
|
669
|
742
|
if (valid) {
|
|
670
|
|
- if (this.formData.id) {
|
|
671
|
|
- editCaseApply({
|
|
672
|
|
- ...this.formData,
|
|
673
|
|
- caseAffiliates: this.formData.caseAffiliates,
|
|
674
|
|
- }).then((res) => {
|
|
675
|
|
- this.$modal.msgSuccess("修改成功");
|
|
676
|
|
- });
|
|
677
|
|
- } else {
|
|
678
|
|
- addCaseApply({
|
|
679
|
|
- ...this.formData,
|
|
680
|
|
- caseAffiliates: this.formData.caseAffiliates,
|
|
681
|
|
- }).then((response) => {
|
|
682
|
|
- this.$modal.msgSuccess("新增成功");
|
|
683
|
|
- });
|
|
684
|
|
- }
|
|
685
|
|
- this.$emit("cancel");
|
|
686
|
|
- this.getcaseApply();
|
|
|
743
|
+ this.$refs["form2"].validate((valid) => {
|
|
|
744
|
+ if (valid) {
|
|
|
745
|
+ this.$refs["form3"].validate((vail) => {
|
|
|
746
|
+ if (vail) {
|
|
|
747
|
+ this.formData.caseAffiliates = [
|
|
|
748
|
+ ...this.form2.paymentArr,
|
|
|
749
|
+ ...this.form3.paymentArr1,
|
|
|
750
|
+ ];
|
|
|
751
|
+ if (this.formData.id) {
|
|
|
752
|
+ editCaseApply({
|
|
|
753
|
+ ...this.formData,
|
|
|
754
|
+ caseAffiliates: this.formData.caseAffiliates,
|
|
|
755
|
+ }).then((res) => {
|
|
|
756
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
757
|
+ this.$emit("cancel");
|
|
|
758
|
+ this.getcaseApply();
|
|
|
759
|
+ });
|
|
|
760
|
+ } else {
|
|
|
761
|
+ addCaseApply({
|
|
|
762
|
+ ...this.formData,
|
|
|
763
|
+ caseAffiliates: this.formData.caseAffiliates,
|
|
|
764
|
+ }).then((response) => {
|
|
|
765
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
766
|
+ this.$emit("cancel");
|
|
|
767
|
+ this.getcaseApply();
|
|
|
768
|
+ });
|
|
|
769
|
+ }
|
|
|
770
|
+ // this.$emit("cancel");
|
|
|
771
|
+ // this.getcaseApply();
|
|
|
772
|
+ }
|
|
|
773
|
+ });
|
|
|
774
|
+ }
|
|
|
775
|
+ });
|
|
687
|
776
|
}
|
|
688
|
777
|
});
|
|
689
|
778
|
},
|
|
|
@@ -692,4 +781,8 @@ export default {
|
|
692
|
781
|
</script>
|
|
693
|
782
|
|
|
694
|
783
|
<style lang="scss" scoped>
|
|
|
784
|
+::v-deep .el-dialog__body {
|
|
|
785
|
+ height: 700px !important;
|
|
|
786
|
+ overflow: auto !important;
|
|
|
787
|
+}
|
|
695
|
788
|
</style>
|