customerComplaint.js 1.09 KB
Newer Older
lanbaoming's avatar
lanbaoming 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
import request from '@/utils/request'

// 创建客户投诉
export function createCustomerComplaint(data) {
  return request({
    url: '/ecw/customer-complaint/create',
    method: 'post',
    data: data
  })
}

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

// 删除客户投诉
export function deleteCustomerComplaint(id) {
  return request({
    url: '/ecw/customer-complaint/delete?id=' + id,
    method: 'delete'
  })
}

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

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

// 导出客户投诉 Excel
export function exportCustomerComplaintExcel(query) {
  return request({
    url: '/ecw/customer-complaint/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}