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

间接客户联系人修复

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