feat: crm初步

This commit is contained in:
砂糖
2025-12-16 09:27:37 +08:00
parent 8f110f6a58
commit dbc9ac727a
15 changed files with 1328 additions and 45 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询客户信息列表
export function listCustomer(query) {
return request({
url: '/crm/customer/list',
method: 'get',
params: query
})
}
// 查询客户信息详细
export function getCustomer(customerId) {
return request({
url: '/crm/customer/' + customerId,
method: 'get'
})
}
// 新增客户信息
export function addCustomer(data) {
return request({
url: '/crm/customer',
method: 'post',
data: data
})
}
// 修改客户信息
export function updateCustomer(data) {
return request({
url: '/crm/customer',
method: 'put',
data: data
})
}
// 删除客户信息
export function delCustomer(customerId) {
return request({
url: '/crm/customer/' + customerId,
method: 'delete'
})
}