|
|
@@ -135,7 +135,7 @@
|
|
135
|
135
|
</el-col>
|
|
136
|
136
|
<el-col :span="24">
|
|
137
|
137
|
<el-form-item label="选择机构或自然人">
|
|
138
|
|
- <el-radio-group v-model="item.applicant.organizeFlag" :disabled="modelFlag" @change="clearValidate">
|
|
|
138
|
+ <el-radio-group v-model="item.applicant.organizeFlag" :disabled="modelFlag" @change="clearValidate($event,index)">
|
|
139
|
139
|
<el-radio :label="0">自然人</el-radio>
|
|
140
|
140
|
<el-radio :label="1">机构</el-radio>
|
|
141
|
141
|
</el-radio-group>
|
|
|
@@ -423,7 +423,7 @@
|
|
423
|
423
|
</el-col>
|
|
424
|
424
|
<el-col :span="24">
|
|
425
|
425
|
<el-form-item label="选择机构或自然人">
|
|
426
|
|
- <el-radio-group v-model="item.res.organizeFlag" :disabled="modelFlag" @change="clearValidateRes">
|
|
|
426
|
+ <el-radio-group v-model="item.res.organizeFlag" :disabled="modelFlag" @change="clearValidateRes($event,index)">
|
|
427
|
427
|
<el-radio :label="0">自然人</el-radio>
|
|
428
|
428
|
<el-radio :label="1">机构</el-radio>
|
|
429
|
429
|
</el-radio-group>
|
|
|
@@ -1239,8 +1239,8 @@ export default {
|
|
1239
|
1239
|
}
|
|
1240
|
1240
|
});
|
|
1241
|
1241
|
},
|
|
1242
|
|
- clearValidate(val) {
|
|
1243
|
|
- console.log(val)
|
|
|
1242
|
+ clearValidate(val,index) {
|
|
|
1243
|
+ if(index==0){
|
|
1244
|
1244
|
if (val == 0) {
|
|
1245
|
1245
|
this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
|
|
1246
|
1246
|
this.$set(this.formData.affiliate.applicant[0].applicant, "idCard", this.getUserInfoList.idCard);
|
|
|
@@ -1249,7 +1249,7 @@ export default {
|
|
1249
|
1249
|
this.$set(this.formData.affiliate.applicant[0].applicant, "idType", this.getUserInfoList.idType);
|
|
1250
|
1250
|
this.$set(this.formData.affiliate.applicant[0].applicant, "nationality", this.getUserInfoList.nationality);
|
|
1251
|
1251
|
if (this.formZipData.affiliate) {
|
|
1252
|
|
- this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
|
|
|
1252
|
+ // this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 0);
|
|
1253
|
1253
|
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
1254
|
1254
|
this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
1255
|
1255
|
this.$set(this.formData.affiliate.applicant[0].applicant, "name", this.getUserInfoList.nickName);
|
|
|
@@ -1269,7 +1269,7 @@ export default {
|
|
1269
|
1269
|
this.$set(this.formData.affiliate.applicant[0].applicantAgent, "email", this.getUserInfoList.email);
|
|
1270
|
1270
|
this.$set(this.formData.affiliate.applicant[0].applicantAgent, "phone", this.getUserInfoList.phonenumber);
|
|
1271
|
1271
|
if (this.formZipData.affiliate) {
|
|
1272
|
|
- this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
|
|
|
1272
|
+ // this.$set(this.formData.affiliate.applicant[0].applicant, 'organizeFlag', 1);
|
|
1273
|
1273
|
this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
1274
|
1274
|
this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
1275
|
1275
|
this.$set(this.formData.affiliate.applicant[0].applicant, 'name', this.formZipData
|
|
|
@@ -1299,12 +1299,15 @@ export default {
|
|
1299
|
1299
|
this.$set(this.formData.affiliate.applicant[0].applicant, 'phone', null);
|
|
1300
|
1300
|
}
|
|
1301
|
1301
|
}
|
|
|
1302
|
+ }
|
|
|
1303
|
+
|
|
1302
|
1304
|
this.$refs["ruleForm"].clearValidate()
|
|
1303
|
1305
|
},
|
|
1304
|
|
- clearValidateRes(val) {
|
|
1305
|
|
- if (val == 0) {
|
|
|
1306
|
+ clearValidateRes(val,index) {
|
|
|
1307
|
+ if(index==0){
|
|
|
1308
|
+ if (val == 0) {
|
|
1306
|
1309
|
if (this.formZipData.affiliate) {
|
|
1307
|
|
- this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
|
|
|
1310
|
+ // this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 0);
|
|
1308
|
1311
|
this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
|
|
1309
|
1312
|
this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
|
|
1310
|
1313
|
this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
|
|
|
@@ -1315,7 +1318,7 @@ export default {
|
|
1315
|
1318
|
}
|
|
1316
|
1319
|
} else if (val == 1) {
|
|
1317
|
1320
|
if (this.formZipData.affiliate) {
|
|
1318
|
|
- this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
|
|
|
1321
|
+ // this.$set(this.formData.affiliate.res[0].res, 'organizeFlag', 1);
|
|
1319
|
1322
|
this.$set(this.formData.affiliate.res[0].res, 'name', this.formZipData.affiliate.res[0].res.name);
|
|
1320
|
1323
|
this.$set(this.formData.affiliate.res[0].res, 'phone', this.formZipData.affiliate.res[0].res.phone);
|
|
1321
|
1324
|
this.$set(this.formData.affiliate.res[0].res, 'idCard', this.formZipData.affiliate.res[0].res.idCard);
|
|
|
@@ -1324,8 +1327,11 @@ export default {
|
|
1324
|
1327
|
this.$set(this.formData.affiliate.res[0].res, 'home', this.formZipData.affiliate.res[0].res.home);
|
|
1325
|
1328
|
this.$set(this.formData.affiliate.res[0].res, 'email', this.formZipData.affiliate.res[0].res.email);
|
|
1326
|
1329
|
}
|
|
|
1330
|
+ this.$set(this.formData.affiliate.res[0].res, 'name', null)
|
|
|
1331
|
+ this.$set(this.formData.affiliate.res[0].res, 'home', null)
|
|
|
1332
|
+ }
|
|
1327
|
1333
|
}
|
|
1328
|
|
- console.log(val)
|
|
|
1334
|
+
|
|
1329
|
1335
|
this.$refs["ruleForm"].clearValidate()
|
|
1330
|
1336
|
},
|
|
1331
|
1337
|
cancel() {
|