Commit be0a8d15 authored by yanghao's avatar yanghao

feature: 添加客户投诉

parent 527f8dd6
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'
})
}
import request from '@/utils/request'
// 创建客户投诉跟进
export function createCustomerComplaintFollow(data) {
return request({
url: '/ecw/customer-complaint-follow/create',
method: 'post',
data: data
})
}
// 更新客户投诉跟进
export function updateCustomerComplaintFollow(data) {
return request({
url: '/ecw/customer-complaint-follow/update',
method: 'put',
data: data
})
}
// 删除客户投诉跟进
export function deleteCustomerComplaintFollow(id) {
return request({
url: '/ecw/customer-complaint-follow/delete?id=' + id,
method: 'delete'
})
}
// 获得客户投诉跟进
export function getCustomerComplaintFollow(id) {
return request({
url: '/ecw/customer-complaint-follow/get?id=' + id,
method: 'get'
})
}
// 获得客户投诉跟进分页
export function getCustomerComplaintFollowPage(query) {
return request({
url: '/ecw/customer-complaint-follow/page',
method: 'get',
params: query
})
}
// 导出客户投诉跟进 Excel
export function exportCustomerComplaintFollowExcel(query) {
return request({
url: '/ecw/customer-complaint-follow/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
......@@ -70,7 +70,9 @@ export const DICT_TYPE = {
CUSTOMER_SOURCE: 'customer_source',
CUSTOMER_BALANCE: 'customer_balance',
CUSTOMER_TYPE: 'customer_type',
CUSTOMER_LEVEL: 'customer_level'
CUSTOMER_LEVEL: 'customer_level',
CUSTOMER_COMPLAINT_TYPE: 'customer_complaint_type',
CUSTOMER_COMPLAINT_STATUS: 'customer_complaint_status'
}
......
This diff is collapsed.
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