|
|
@ -30,16 +30,6 @@ |
|
|
|
<el-form-item><el-input class="addinputInfo" style="width: 30%" v-model="formobj.weixin" clearable placeholder="" /></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row v-if="formobj.customerType == '个人'"> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">公司名称</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" style="width: 40%" v-model="formobj.customerOrgSid" filterable clearable placeholder="" @change="customerOrgChange"> |
|
|
|
<el-option v-for="item in customerOrg_list" :key="item.sid" :label="item.orgName" :value="item.sid"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<div class="span-sty">客户地址</div> |
|
|
@ -308,7 +298,6 @@ export default { |
|
|
|
viewTitle: '', |
|
|
|
viewState: 1, |
|
|
|
submitdisabled: false, |
|
|
|
customerOrg_list: [], |
|
|
|
province_list: [], |
|
|
|
city_list: [], |
|
|
|
county_list: [], |
|
|
@ -415,19 +404,6 @@ export default { |
|
|
|
this.source_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
req.selCustomerOrgList({ useOrgSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.customerOrg_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
customerOrgChange(value) { |
|
|
|
const choose = this.customerOrg_list.filter((item) => item.sid === value) |
|
|
|
if (choose.length > 0 && choose !== null) { |
|
|
|
this.formobj.customerOrgName = choose[0].orgName |
|
|
|
} else { |
|
|
|
this.formobj.customerOrgName = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
provinceChange(value) { |
|
|
|
const choose = this.province_list.filter((item) => item.name === value) |
|
|
|