Commit 3b045301 authored by zhengke's avatar zhengke

修改输入清空

parent 71eb5e47
......@@ -170,7 +170,7 @@
<el-row :gutter="20">
<el-col :span="4">
<el-form-item :label="$t('fnc.khleixing')" prop="CustomerType">
<el-select v-model='addMsg.CustomerType' filterable :placeholder="$t('pub.pleaseSel')" @change='getTypePrice();resetSelect();getDdlyList();getKhmdList();getTotalPrice()'>
<el-select v-model='addMsg.CustomerType' filterable :placeholder="$t('pub.pleaseSel')" @change='resetMsg(addMsg.CustomerType),getTypePrice();resetSelect();getDdlyList();getKhmdList();getTotalPrice()'>
<el-option v-for="item in khlxList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1607,9 +1607,16 @@
this.addMsg.CustomerId = ''
}
},
//q清空联系人和联系电话
resetMsg(type){
if(type==3||type==4){
this.addMsg.ContactName = ''
this.addMsg.ContactMobile = ''
}
},
getTypePrice() {
this.addMsg.ContactName = ''
this.addMsg.ContactMobile = ''
//this.addMsg.ContactName = ''
//this.addMsg.ContactMobile = ''
if (this.addMsg.CustomerType == 1) {
this.addMsg.TC_Price = this.addObj.B2BMemberPrice
this.addMsg.Unit_Price = this.addObj.B2BMemberPrice;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment