客商信息、人事相关
This commit is contained in:
68
src/api/base/coreCustomer.js
Normal file
68
src/api/base/coreCustomer.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: Do not edit
|
||||
* @Date: 2023-10-21 11:50:46
|
||||
* @LastEditTime: 2023-11-02 20:25:36
|
||||
* @LastEditors: DY
|
||||
* @Description:
|
||||
*/
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建客户
|
||||
export function createCustomer(data) {
|
||||
return request({
|
||||
url: '/base/core-customer/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新客户
|
||||
export function updateCustomer(data) {
|
||||
return request({
|
||||
url: '/base/core-customer/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除客户
|
||||
export function deleteCustomer(id) {
|
||||
return request({
|
||||
url: '/base/core-customer/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得客户
|
||||
export function getCustomer(id) {
|
||||
return request({
|
||||
url: '/base/core-customer/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得客户code
|
||||
export function getCode() {
|
||||
return request({
|
||||
url: '/base/core-customer/getCode',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得客户分页
|
||||
export function getCustomerPage(query) {
|
||||
return request({
|
||||
url: '/base/core-customer/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获得所有列表
|
||||
export function getCustomerList(query) {
|
||||
return request({
|
||||
url: '/base/core-customer/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user