Commit 86fb1684 authored by dcy's avatar dcy

客户列表关联账号回显

parent 35380c6c
...@@ -21,11 +21,11 @@ export function itemTypeListApi(query){ ...@@ -21,11 +21,11 @@ export function itemTypeListApi(query){
}) })
} }
// //
export function customerDropDownList(query){ export function customerDropDownList(params){
return request({ return request({
url:'/ecw/customer/select', url:'/ecw/customer/select',
method:'get', method:'get',
query, params,
}) })
} }
//商品 //商品
......
...@@ -406,7 +406,7 @@ import { ...@@ -406,7 +406,7 @@ import {
orderStatistics, orderStatistics,
creditLogCreate, creditLogCreate,
creditScoreStatistic, creditScoreStatistic,
infoListReceiptPage, userMemberUserList infoListReceiptPage, userMemberUserList, memberUserList
} from '@/api/ecw/customer' } from '@/api/ecw/customer'
import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict' import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from '@/utils/dict'
import { getProductTypeList } from '@/api/ecw/productType' import { getProductTypeList } from '@/api/ecw/productType'
...@@ -444,6 +444,10 @@ export default { ...@@ -444,6 +444,10 @@ export default {
getCustomerContactsListByCustomer({customerId: this.id}).then(r => { getCustomerContactsListByCustomer({customerId: this.id}).then(r => {
this.customerContacts = r.data this.customerContacts = r.data
let list = this.customerContacts.map(r => r.userid)
memberUserList({ids:list.join(',')}).then(r => {
this.memberList = r.data
})
}) })
getCountry(this.customer.country ? this.customer.country : 0 ).then(r => { getCountry(this.customer.country ? this.customer.country : 0 ).then(r => {
...@@ -469,9 +473,7 @@ export default { ...@@ -469,9 +473,7 @@ export default {
this.creditScoreStatisticFn() this.creditScoreStatisticFn()
this.infoListReceiptFn() this.infoListReceiptFn()
userMemberUserList().then(r => {
this.memberList = r.data
})
}, },
data() { data() {
return { return {
......
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