// 客户档案页面接口
|
import request from '@/utils/request'
|
|
// 分页查询
|
export function listCustomer(query) {
|
return request({
|
url: '/basic/customer/list',
|
method: 'get',
|
params: query
|
})
|
}
|
// 查询客户档案详细
|
export function getCustomer(id) {
|
return request({
|
url: '/basic/customer/' + id,
|
method: 'get'
|
})
|
}
|
// 新增客户档案
|
export function addCustomer(data) {
|
return request({
|
url: '/basic/customer/addCustomer',
|
method: 'post',
|
data: data
|
})
|
}
|
// 修改客户档案
|
export function updateCustomer(data) {
|
return request({
|
url: '/basic/customer/updateCustomer',
|
method: 'post',
|
data: data
|
})
|
}
|
// 导出客户档案
|
export function exportCustomer(query) {
|
return request({
|
url: '/basic/customer/export',
|
method: 'get',
|
params: query,
|
responseType: 'blob'
|
})
|
}
|
// 删除客户档案
|
export function delCustomer(ids) {
|
return request({
|
url: '/basic/customer/delCustomer',
|
method: 'delete',
|
data: ids
|
})
|
}
|
|
|
// 新增客户跟进
|
export function addCustomerFollow(data) {
|
return request({
|
url: '/basic/customer-follow/add',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改客户跟进
|
export function updateCustomerFollow(data) {
|
return request({
|
url: '/basic/customer-follow/edit',
|
method: 'put',
|
data: data,
|
})
|
}
|
// 删除客户跟进
|
export function delCustomerFollow(id) {
|
return request({
|
url: '/basic/customer-follow/'+id,
|
method: 'delete',
|
})
|
}
|
|
// 回访提醒-新增/更新
|
export function addReturnVisit(data) {
|
return request({
|
url: '/basic/customer-follow/return-visit',
|
method: 'post',
|
data: data
|
})
|
}
|
// 获取回访提醒详情
|
export function getReturnVisit(id) {
|
return request({
|
url: '/basic/customer-follow/return-visit/' + id,
|
method: 'get'
|
})
|
}
|