Commit 527f8dd6 authored by yanghao's avatar yanghao

feature: 添加客户和联系人

parent e68b7c5e
import request from '@/utils/request'
// 创建客户
export function createCustomer(data) {
return request({
url: '/ecw/customer/create',
method: 'post',
data: data
})
}
// 更新客户
export function updateCustomer(data) {
return request({
url: '/ecw/customer/update',
method: 'put',
data: data
})
}
// 删除客户
export function deleteCustomer(id) {
return request({
url: '/ecw/customer/delete?id=' + id,
method: 'delete'
})
}
// 获得客户
export function getCustomer(id) {
return request({
url: '/ecw/customer/get?id=' + id,
method: 'get'
})
}
// 获得客户分页
export function getCustomerPage(query) {
return request({
url: '/ecw/customer/page',
method: 'get',
params: query
})
}
// 导出客户 Excel
export function exportCustomerExcel(query) {
return request({
url: '/ecw/customer/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
import request from '@/utils/request'
// 创建客户联系人
export function createCustomerContacts(data) {
return request({
url: '/ecw/customer-contacts/create',
method: 'post',
data: data
})
}
// 更新客户联系人
export function updateCustomerContacts(data) {
return request({
url: '/ecw/customer-contacts/update',
method: 'put',
data: data
})
}
// 删除客户联系人
export function deleteCustomerContacts(id) {
return request({
url: '/ecw/customer-contacts/delete?id=' + id,
method: 'delete'
})
}
// 获得客户联系人
export function getCustomerContacts(id) {
return request({
url: '/ecw/customer-contacts/get?id=' + id,
method: 'get'
})
}
// 获得客户联系人分页
export function getCustomerContactsPage(query) {
return request({
url: '/ecw/customer-contacts/page',
method: 'get',
params: query
})
}
// 导出客户联系人 Excel
export function exportCustomerContactsExcel(query) {
return request({
url: '/ecw/customer-contacts/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
...@@ -64,6 +64,14 @@ export const DICT_TYPE = { ...@@ -64,6 +64,14 @@ export const DICT_TYPE = {
ECW_TRANSPORT_TYPE: 'transport_type', //货运方式 ECW_TRANSPORT_TYPE: 'transport_type', //货运方式
ECW_CHARGE_TYPE: 'warehouse_charge_type', //仓储收费方式 ECW_CHARGE_TYPE: 'warehouse_charge_type', //仓储收费方式
ECW_SHELF_TYPE: 'shelf_type', //货架类型 ECW_SHELF_TYPE: 'shelf_type', //货架类型
//--------ecw---------
CUSTOMER_STATUS: 'customer_status',
CUSTOMER_SOURCE: 'customer_source',
CUSTOMER_BALANCE: 'customer_balance',
CUSTOMER_TYPE: 'customer_type',
CUSTOMER_LEVEL: 'customer_level'
} }
/** /**
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment