Commit 80c0cb0f authored by 我在何方's avatar 我在何方

间接客户联系人修复

parent 0450f69a
......@@ -39,9 +39,10 @@ export function updateCustomer(data) {
}
// 根据客户ID获得联系人列表
export function getCustomerContactsListByCustomer(id) {
export function getCustomerContactsListByCustomer(query) {
return request({
url: '/ecw/indirect-customer-contacts/list-by-customer/get?customerId=' + id,
method: 'get'
url: '/ecw/indirect-customer-contacts/list-by-customer',
method: 'get',
params: query
})
}
......@@ -410,6 +410,7 @@ import {
getCustomerList,
memberUserList,
userMemberUserList,
getCustomerSelect,
getCustomerLines, fillupCustomeInfo
} from '@/api/ecw/customer'
import {getNodeList} from "@/api/ecw/node"
......@@ -418,7 +419,7 @@ import { getProductList } from '@/api/ecw/product'
import {getTradeCityList} from "@/api/ecw/region"
import {getWarehouseList} from "@/api/ecw/warehouse"
import CustomerLineTable from '@/components/CustomerLineTable'
import {getCustomerSelect,getCustomerContactsListByCustomer,getCustomer,getCustomerPage,updateCustomer} from "@/api/ecw/indirectCustomer"
import {getCustomerContactsListByCustomer,getCustomer,getCustomerPage,updateCustomer} from "@/api/ecw/indirectCustomer"
import {listServiceUser, listSimpleUsers} from "@/api/system/user"
import { getZhongPaoBest, getZhongPaoPage } from '@/api/ecw/zhongPao'
// import { getCustomerContactsListByCustomer } from '@/api/ecw/customerContacts'
......
......@@ -439,7 +439,7 @@ export default {
})
getCustomer(this.id).then(response => {
this.customer = { ...this.customer, ...response.data }
console.log(this.id)
getCustomerContactsListByCustomer({customerId: this.id}).then(r => {
this.customerContacts = r.data
let list = this.customerContacts.map(r => r.userid)
......
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