Commit e828d321 authored by zhengyi's avatar zhengyi

跟进列表进行新增跟进时联系人id未传值的bug修复

parent b015ae00
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<el-col :span="12" v-else> <el-col :span="12" v-else>
<el-form-item :label="$t('联系人')" required> <el-form-item :label="$t('联系人')" required>
<div class="contact"> <div class="contact">
<el-input :value="form.contactName" placeholder="" disabled /> <el-input v-model="form.contactName" :value="form.customerContactsId" placeholder="" disabled />
<img src="@/assets/svg/contacts.svg" class="phonebook" @click="ChooseContactDialog = true" /> <img src="@/assets/svg/contacts.svg" class="phonebook" @click="ChooseContactDialog = true" />
</div> </div>
</el-form-item> </el-form-item>
...@@ -268,12 +268,14 @@ export default { ...@@ -268,12 +268,14 @@ export default {
console.log(item) console.log(item)
if (item) { if (item) {
this.form.contactId = item.customerContactsId
this.form.contactName = item.contactsName this.form.contactName = item.contactsName
this.form.customerId = item.customerId this.form.customerId = item.customerId
this.form.contactPhone = "+" + item.areaCode + item.phoneNew this.form.contactPhone = "+" + item.areaCode + item.phoneNew
if (item.customerService) this.form.followUserId = item.customerService if (item.customerService) this.form.followUserId = item.customerService
if (item.customerNumber) this.form.customerNumber = item.customerNumber if (item.customerNumber) this.form.customerNumber = item.customerNumber
} else { } else {
this.form.contactId = null
this.form.contactName = null this.form.contactName = null
this.form.contactPhone = null this.form.contactPhone = null
} }
...@@ -283,6 +285,7 @@ export default { ...@@ -283,6 +285,7 @@ export default {
if (val) { if (val) {
for (const item of this.customerContactsList) { for (const item of this.customerContactsList) {
if (item.id == val) { if (item.id == val) {
this.form.contactId = item.id
this.form.contactName = item.name this.form.contactName = item.name
this.form.customerId = item.customerId this.form.customerId = item.customerId
this.form.contactPhone = "+" + item.areaCode + item.phoneNew this.form.contactPhone = "+" + item.areaCode + item.phoneNew
......
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