|
|
@@ -1312,6 +1312,7 @@
|
|
|
let key = this.form.type == '1' || !this.form.type ? 'partb' : 'parta';
|
|
|
let keyArr = [
|
|
|
key + 'Name',
|
|
|
+ key + 'Id',
|
|
|
key + 'UnifiedSocialCreditCode',
|
|
|
key + 'Fax',
|
|
|
key + 'Address'
|
|
|
@@ -1321,21 +1322,26 @@
|
|
|
(item) => item.name == this.form[keyArr[0]]
|
|
|
);
|
|
|
this.form[keyArr[0]] = data.name;
|
|
|
- this.form[keyArr[1]] = data.unifiedSocialCreditCode;
|
|
|
- this.form[keyArr[2]] = data.fax;
|
|
|
- this.form[keyArr[3]] = data.address;
|
|
|
+ this.form[keyArr[1]] = data.id;
|
|
|
+ this.form[keyArr[2]] = data.unifiedSocialCreditCode;
|
|
|
+ this.form[keyArr[3]] = data.fax;
|
|
|
+ this.form[keyArr[4]] = data.address;
|
|
|
return;
|
|
|
}
|
|
|
if (this.enterprisePage.length > 0) {
|
|
|
this.form[keyArr[0]] =
|
|
|
this.form[keyArr[0]] || this.enterprisePage[0].name;
|
|
|
this.form[keyArr[1]] =
|
|
|
- this.form[keyArr[1]] ||
|
|
|
+ this.form[keyArr[1]] || this.enterprisePage[0].id;
|
|
|
+ this.form[keyArr[2]] =
|
|
|
+ this.form[keyArr[2]] ||
|
|
|
this.enterprisePage[0].unifiedSocialCreditCode;
|
|
|
this.form[keyArr[2]] =
|
|
|
this.form[keyArr[2]] || this.enterprisePage[0].fax;
|
|
|
this.form[keyArr[3]] =
|
|
|
- this.form[keyArr[3]] || this.enterprisePage[0].address;
|
|
|
+ this.form[keyArr[3]] || this.enterprisePage[0].fax;
|
|
|
+ this.form[keyArr[4]] =
|
|
|
+ this.form[keyArr[4]] || this.enterprisePage[0].address;
|
|
|
}
|
|
|
},
|
|
|
//选择合同分类
|