You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.3 KiB
JavaScript
71 lines
1.3 KiB
JavaScript
import axios from '@/utils/request'
|
|
|
|
export function filterCustomers(query) {
|
|
return axios({
|
|
url: "/spms/customer/list",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function filterCustomersOptimize(query) {
|
|
return axios({
|
|
url: "/spms/customer/listOptimize",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
|
|
|
|
export function getCustomers(query) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/list",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
|
|
|
|
export function updateCustomers(data) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/update",
|
|
method: "post",
|
|
data: data
|
|
});
|
|
}
|
|
|
|
export function deleteCustomers(data) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/delete",
|
|
method: "post",
|
|
data: data
|
|
});
|
|
}
|
|
|
|
export function customersInfo(query) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/detail",
|
|
method: "get",
|
|
params: query
|
|
});
|
|
}
|
|
|
|
export function modifyCustomers(data) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/modify",
|
|
method: "post",
|
|
data: data
|
|
});
|
|
}
|
|
|
|
|
|
export function restAssuredOnCodeAdd(data) {
|
|
return axios({
|
|
url: "/salewarehouse/customer/restAssuredOnCodeAdd",
|
|
method: "post",
|
|
data: data
|
|
});
|
|
}
|