|
|
@@ -375,12 +375,17 @@
|
|
375
|
375
|
|
|
376
|
376
|
<script>
|
|
377
|
377
|
import moment from "moment"; //导入文件
|
|
378
|
|
-import {
|
|
379
|
|
- addCaseApply,
|
|
380
|
|
- editCaseApply,
|
|
381
|
|
-} from "@/api/caseAccess/caseEntry";
|
|
|
378
|
+import { addCaseApply, editCaseApply } from "@/api/caseAccess/caseEntry";
|
|
382
|
379
|
export default {
|
|
383
|
|
- props: ["visible", "dialogtitle", "form", "getcaseApply", "flag","initpaymentArr","initpaymentArr1"],
|
|
|
380
|
+ props: [
|
|
|
381
|
+ "visible",
|
|
|
382
|
+ "dialogtitle",
|
|
|
383
|
+ "form",
|
|
|
384
|
+ "getcaseApply",
|
|
|
385
|
+ "flag",
|
|
|
386
|
+ "initpaymentArr",
|
|
|
387
|
+ "initpaymentArr1",
|
|
|
388
|
+ ],
|
|
384
|
389
|
data() {
|
|
385
|
390
|
return {
|
|
386
|
391
|
formData: this.form,
|
|
|
@@ -395,8 +400,9 @@ export default {
|
|
395
|
400
|
{
|
|
396
|
401
|
required: true,
|
|
397
|
402
|
message: "案件标的不能为空",
|
|
398
|
|
- trigger: "blur",
|
|
|
403
|
+ trigger: ["change", "blur"],
|
|
399
|
404
|
},
|
|
|
405
|
+ // { type: "Number", message: "案件标的必须为数字值" },
|
|
400
|
406
|
],
|
|
401
|
407
|
loanStartDate: [
|
|
402
|
408
|
{
|
|
|
@@ -432,6 +438,7 @@ export default {
|
|
432
|
438
|
message: "申请人主张欠本金不能为空",
|
|
433
|
439
|
trigger: "blur",
|
|
434
|
440
|
},
|
|
|
441
|
+ // { type: 'number', message: '申请人主张欠本金必须为数字值'}
|
|
435
|
442
|
],
|
|
436
|
443
|
claimInterestOwed: [
|
|
437
|
444
|
{
|
|
|
@@ -439,6 +446,7 @@ export default {
|
|
439
|
446
|
message: "申请人主张欠利息不能为空",
|
|
440
|
447
|
trigger: "blur",
|
|
441
|
448
|
},
|
|
|
449
|
+ // { type: 'number', message: '申请人主张欠利息必须为数字值'}
|
|
442
|
450
|
],
|
|
443
|
451
|
Overduedays: [
|
|
444
|
452
|
{
|
|
|
@@ -446,6 +454,7 @@ export default {
|
|
446
|
454
|
message: "逾期天数不能为空",
|
|
447
|
455
|
trigger: "blur",
|
|
448
|
456
|
},
|
|
|
457
|
+ // { type: 'number', message: '逾期天数必须为数字值'}
|
|
449
|
458
|
],
|
|
450
|
459
|
claimLiquidDamag: [
|
|
451
|
460
|
{
|
|
|
@@ -453,9 +462,10 @@ export default {
|
|
453
|
462
|
message: "申请人主张违约金不能为空",
|
|
454
|
463
|
trigger: "blur",
|
|
455
|
464
|
},
|
|
|
465
|
+ // { type: 'number', message: '申请人主张违约金必须为数字值'}
|
|
456
|
466
|
],
|
|
457
|
467
|
},
|
|
458
|
|
- rules2: {
|
|
|
468
|
+ rulesmain: {
|
|
459
|
469
|
name: [
|
|
460
|
470
|
{
|
|
461
|
471
|
required: true,
|
|
|
@@ -476,6 +486,11 @@ export default {
|
|
476
|
486
|
message: "联系电话不能为空",
|
|
477
|
487
|
trigger: "blur",
|
|
478
|
488
|
},
|
|
|
489
|
+ {
|
|
|
490
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
491
|
+ message: "请输入正确的手机号码",
|
|
|
492
|
+ trigger: "blur",
|
|
|
493
|
+ },
|
|
479
|
494
|
],
|
|
480
|
495
|
workAddress: [
|
|
481
|
496
|
{
|
|
|
@@ -490,6 +505,11 @@ export default {
|
|
490
|
505
|
message: "单位电话不能为空",
|
|
491
|
506
|
trigger: "blur",
|
|
492
|
507
|
},
|
|
|
508
|
+ {
|
|
|
509
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
510
|
+ message: "请输入正确的手机号码",
|
|
|
511
|
+ trigger: "blur",
|
|
|
512
|
+ },
|
|
493
|
513
|
],
|
|
494
|
514
|
contactAddress: [
|
|
495
|
515
|
{
|
|
|
@@ -518,6 +538,11 @@ export default {
|
|
518
|
538
|
message: "联系电话不能为空",
|
|
519
|
539
|
trigger: "blur",
|
|
520
|
540
|
},
|
|
|
541
|
+ {
|
|
|
542
|
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
|
543
|
+ message: "请输入正确的手机号码",
|
|
|
544
|
+ trigger: "blur",
|
|
|
545
|
+ },
|
|
521
|
546
|
],
|
|
522
|
547
|
contactAddressAgent: [
|
|
523
|
548
|
{
|
|
|
@@ -559,44 +584,13 @@ export default {
|
|
559
|
584
|
};
|
|
560
|
585
|
},
|
|
561
|
586
|
watch: {
|
|
562
|
|
- initpaymentArr: {
|
|
|
587
|
+ visible: {
|
|
563
|
588
|
handler(val) {
|
|
564
|
589
|
if (val) {
|
|
565
|
590
|
this.formData = this.form;
|
|
566
|
591
|
if (this.flag == "1" || this.flag == "0") {
|
|
567
|
|
- // this.getInfo(this.formData);
|
|
568
|
|
- this.paymentArr = this.initpaymentArr
|
|
569
|
|
- this.paymentArr1 = this.initpaymentArr1
|
|
570
|
|
- }
|
|
571
|
|
- if(this.flag == "2") {
|
|
572
|
|
- this.paymentArr = [
|
|
573
|
|
- {
|
|
574
|
|
- identityType: 1,
|
|
575
|
|
- name: "",
|
|
576
|
|
- identityNum: "",
|
|
577
|
|
- contactTelphone: "",
|
|
578
|
|
- workAddress: "",
|
|
579
|
|
- workTelphone: "",
|
|
580
|
|
- contactAddress: "",
|
|
581
|
|
- nameAgent: "",
|
|
582
|
|
- contactTelphoneAgent: "",
|
|
583
|
|
- contactAddressAgent: "",
|
|
584
|
|
- },
|
|
585
|
|
- ]
|
|
586
|
|
- this.paymentArr1 = [
|
|
587
|
|
- {
|
|
588
|
|
- identityType: 2,
|
|
589
|
|
- name: "",
|
|
590
|
|
- identityNum: "",
|
|
591
|
|
- contactTelphone: "",
|
|
592
|
|
- workAddress: "",
|
|
593
|
|
- workTelphone: "",
|
|
594
|
|
- contactAddress: "",
|
|
595
|
|
- nameAgent: "",
|
|
596
|
|
- contactTelphoneAgent: "",
|
|
597
|
|
- contactAddressAgent: "",
|
|
598
|
|
- },
|
|
599
|
|
- ]
|
|
|
592
|
+ this.paymentArr = this.initpaymentArr;
|
|
|
593
|
+ this.paymentArr1 = this.initpaymentArr1;
|
|
600
|
594
|
}
|
|
601
|
595
|
}
|
|
602
|
596
|
},
|
|
|
@@ -604,10 +598,8 @@ export default {
|
|
604
|
598
|
},
|
|
605
|
599
|
},
|
|
606
|
600
|
methods: {
|
|
607
|
|
- handleRemove(file, fileList) {
|
|
608
|
|
- },
|
|
609
|
|
- handlePreview(file) {
|
|
610
|
|
- },
|
|
|
601
|
+ handleRemove(file, fileList) {},
|
|
|
602
|
+ handlePreview(file) {},
|
|
611
|
603
|
handleExceed(files, fileList) {
|
|
612
|
604
|
this.$message.warning(
|
|
613
|
605
|
`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
|
|
|
@@ -652,25 +644,7 @@ export default {
|
|
652
|
644
|
contactTelphoneAgent: "",
|
|
653
|
645
|
contactAddressAgent: "",
|
|
654
|
646
|
});
|
|
655
|
|
-
|
|
656
|
647
|
},
|
|
657
|
|
- // // 查找主体信息数据
|
|
658
|
|
- // getInfo(row) {
|
|
659
|
|
- // const id = row.id;
|
|
660
|
|
- // selectCaseApply({ id }).then((res) => {
|
|
661
|
|
- // this.visible = true;
|
|
662
|
|
- // this.formData = res.data;
|
|
663
|
|
- // this.paymentArr = [];
|
|
664
|
|
- // this.paymentArr1 = [];
|
|
665
|
|
- // res.data.caseAffiliates.forEach((item) => {
|
|
666
|
|
- // if (item.identityType == 1) {
|
|
667
|
|
- // this.paymentArr.push(item);
|
|
668
|
|
- // } else {
|
|
669
|
|
- // this.paymentArr1.push(item);
|
|
670
|
|
- // }
|
|
671
|
|
- // });
|
|
672
|
|
- // });
|
|
673
|
|
- // },
|
|
674
|
648
|
// 删除申请人主体信息
|
|
675
|
649
|
deleteData(index) {
|
|
676
|
650
|
this.paymentArr.splice(index, 1);
|