Commit 486e30f1 authored by zhengyi's avatar zhengyi

选定客户后只查询当前客户下的联系人信息

parent b0d6c2a0
......@@ -289,6 +289,25 @@ export default {
} else {
this.form.offerNumber = ""
}
},
"form.customerId"(v) {
if (v) {
getCustomerContactsListByCustomer({
customerId: v
}).then((res) => {
this.customerContactsList = res.data
this.customerContactsList.forEach((item) => {
if (item.id === this.form.contactId) {
this.form.customerNumber = item.customerNumber
this.form.contactName = item.name
this.form.contactPhone = "+" + item.areaCode + item.phoneNew
this.form.followUserId = item.customerService
}
})
})
} else {
this.form.customerNumber = ""
}
}
},
methods: {
......
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