Commit ec9c03db authored by Marcus's avatar Marcus

客户关联账号回显

parent b7af33a8
......@@ -265,9 +265,8 @@
label="关联账号"
>
<template v-slot = "{row}">
{{row.userid}}
<el-select v-model="row.userid" @change="selectBD" multiple>
<el-option :disabled="selectMembers.indexOf(item.id) > -1" v-for="(item,index) in memberList" :value="item.id" :key="item.id" :label="item.mobile" ></el-option>
<el-select v-model="row.userid" @change="selectBD">
<el-option v-for="(item,index) in memberList" :value="item.id" :key="item.id" :label="item.nickname + '(' + item.mobile + ')'" ></el-option>
</el-select>
</template>
</el-table-column>
......@@ -406,9 +405,6 @@ export default {
this.getCustomer(this.customerId).then(() => {
getCustomerContactsListByCustomer({customerId: this.customerId}).then(r => {
this.form.customerContacts = r.data
this.form.customerContacts.forEach( item => {
item.userid = item.userid ? item.userid.split(',').map(e => Number(e)) : []
})
})
})
}
......@@ -614,16 +610,6 @@ export default {
productListFilter(){
return this.productList.filter((p) => p.typeId === this.form.productType)
},
selectMembers(){
let m = []
if(!this.form.customerContacts) return []
this.form.customerContacts.forEach(e => {
if(e.userid){
m.push(...e.userid)
}
})
return m
}
},
watch: {
zhongLines() {
......
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