资质代码同步

prod
郑明梁 2 years ago
parent b41bdd993c
commit 9aa4ad6a6a

@ -9,7 +9,7 @@
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 35px">
<el-col :span="10" class="el-col">
<el-form-item label="企业名称:" label-width="150px" prop="companyName">
<el-select v-model="inputQuery.companyName" @change="getCompanyId" placeholder="请选择企业名称" style="width: 90%">
<el-select v-model="inputQuery.companyName" @change="getCompanyId" placeholder="请选择企业名称" style="width: 100%">
<el-option
v-for="item in maintainsList"
:key="item.name"
@ -408,7 +408,7 @@ export default {
}
,
created() {
if(isBlank(this.inputQuery.customerId)){
if(this.editType == 1){
this.getCompanyCertList();
}
this.getBasicUnitMaintainsList();
@ -510,8 +510,12 @@ export default {
}
,
getCompanyId(){
this.inputQuery.customerId= this.maintainsList.find(item => item.id == this.inputQuery.companyName).erpId
this.inputQuery.companyName= this.maintainsList.find(item => item.id == this.inputQuery.companyName).name
var row=this.maintainsList.find(item => item.id == this.inputQuery.companyName);
this.inputQuery.customerId= row.erpId
this.inputQuery.companyName= row.name
this.inputQuery.contacts=row.contact
this.inputQuery.mobile=row.mobile
this.inputQuery.detailAddr=row.addr
this.customerId=this.inputQuery.customerId;
},

Loading…
Cancel
Save