huminmin
20 小时以前 ef3aab90e71b07ff22ecc40a0a49236b371c04cd
src/api/basicData/customerFile.js
@@ -1,51 +1,39 @@
// 客户档案页面接口
import request from '@/utils/request'
// 分页查询
export function listCustomer(query) {
export function addCustomerFollow(data) {
    return request({
        url: '/basic/customer/list',
        method: 'get',
        params: query
        url: '/basic/customer-follow/add',
        method: 'post',
        data: data
    })
}
// 查询客户档案详细
export function getCustomer(id) {
export function updateCustomerFollow(data) {
    return request({
        url: '/basic/customer/' + id,
        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'
    })
}
// 新增客户档案
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(id) {
    return request({
        url: '/basic/customer/' + id,
        method: 'delete'
    })
}