customerFollow.js 1.18 KB
Newer Older
Marcus's avatar
Marcus committed
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
import request from '@/utils/request'

// 创建跟进
export function createCustomerFollow(data) {
  return request({
    url: '/ecw/customer-follow/create',
    method: 'post',
    data: data
  })
}

// 更新跟进
export function updateCustomerFollow(data) {
  return request({
    url: '/ecw/customer-follow/update',
    method: 'put',
    data: data
  })
}

// 删除跟进
export function deleteCustomerFollow(id) {
  return request({
    url: '/ecw/customer-follow/delete?id=' + id,
    method: 'delete'
  })
}

// 获得跟进
export function getCustomerFollow(id) {
  return request({
    url: '/ecw/customer-follow/get?id=' + id,
    method: 'get'
  })
}

// 获得跟进分页
export function getCustomerFollowPage(query) {
  return request({
dcy's avatar
dcy committed
40
    url: '/customer/detail/infoList/followPage',
Marcus's avatar
Marcus committed
41 42 43 44
    method: 'get',
    params: query
  })
}
dcy's avatar
dcy committed
45 46 47 48 49 50 51
export function getCustomerFollowPage2(query) {
  return request({
    url: '/ecw/customer-follow/page',
    method: 'get',
    params: query
  })
}
Marcus's avatar
Marcus committed
52 53 54 55 56 57 58 59 60 61

// 导出跟进 Excel
export function exportCustomerFollowExcel(query) {
  return request({
    url: '/ecw/customer-follow/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}