39 lines
709 B
JavaScript
39 lines
709 B
JavaScript
/**
|
|
* Created by liushengnan on 2021/8/31.
|
|
*/
|
|
import { request } from '@cmp/cmp-element'
|
|
import { wrapperParams } from 'utils'
|
|
|
|
const url = '/scms/v1/customer_info/list'
|
|
const infoUrl = '/scms/v1/customer_info'
|
|
|
|
/**
|
|
* 获取客户信息接口
|
|
*/
|
|
export function getCustomerList(params) {
|
|
return request.get(url, {
|
|
params
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 查看处理说明
|
|
*/
|
|
export function addExplain(params) {
|
|
return request.post('/scms/v1/customer_info/handle', wrapperParams(params))
|
|
}
|
|
|
|
/**
|
|
* 查看处理说明:
|
|
*/
|
|
export function getHandleList(id) {
|
|
return request.get(`${infoUrl}/${id}`)
|
|
}
|
|
|
|
/**
|
|
* 删除客户处理
|
|
*/
|
|
export function removeInfo(id) {
|
|
return request.delete(`${infoUrl}/${id}`)
|
|
}
|