indirectCustomer.js 1010 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
// 导出客户 Excel
import request from '@/utils/request'
import query from "@/views/ecw/customer/query";
import * as url from "url";

export function exportCustomerExcel(query) {
  return request({
    url: '/ecw/indirect-customer/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获得客户
export function getCustomer(id) {
  return request({
    url: '/ecw/indirect-customer/get?id=' + id,
    method: 'get'
  })
}

// 获得客户分页
export function getCustomerPage(query) {
  return request({
    url: '/ecw/indirect-customer/page',
    method: 'get',
    params: query
  })
}

// 更新客户
export function updateCustomer(data) {
  return request({
    url: '/ecw/indirect-customer/update',
    method: 'put',
    data: data
  })
}

// 根据客户ID获得联系人列表
42
export function getCustomerContactsListByCustomer(query) {
43
  return request({
44 45 46
    url: '/ecw/indirect-customer-contacts/list-by-customer',
    method: 'get',
    params: query
47 48
  })
}