Commit ad60d709 authored by Marcus's avatar Marcus

新建客户中的联系人-关联账号需要输入关键字搜索,手机号不唯一

http://zentao.jdshangmen.com/bug-view-761.html
parent 03af5f4d
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
> >
<template v-slot = "{row}"> <template v-slot = "{row}">
<el-form-item label=""> <el-form-item label="">
<el-select v-model="row.userid" @change="selectBD" size="mini"> <el-select v-model="row.userid" @change="selectBD" size="mini" filterable>
<el-option v-for="(item,index) in memberList" :value="item.id" :key="item.id" :label="item.nickname + '(' + item.mobile + ')'" ></el-option> <el-option v-for="(item,index) in memberList" :value="item.id" :key="item.id" :label="item.nickname + '(' + item.mobile + ')'" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -431,18 +431,17 @@ export default { ...@@ -431,18 +431,17 @@ export default {
}, },
created() { created() {
this.reset() this.reset()
this.handleAddContact()
if(this.customerId !== '0') { if(this.customerId !== '0') {
// 编辑客户
this.getCustomer(this.customerId).then(() => { this.getCustomer(this.customerId).then(() => {
getCustomerContactsListByCustomer({customerId: this.customerId}).then(r => { getCustomerContactsListByCustomer({customerId: this.customerId}).then(r => {
this.form.customerContacts = r.data this.form.customerContacts = r.data
}) })
}) })
} else { } else {
const obj = Object.assign({}, this.$route, { title: this.$t('自定义标题') }) // 新建客户
this.$tab.updatePage(obj); this.handleAddContact()
this.$tab.updatePage({...this.$route, meta: {...this.$route.meta, name: 'abc'}})
} }
getNodeList().then(r => { getNodeList().then(r => {
......
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