You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

235 lines
4.5 KiB

import request from '@/axios';
export const getList = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/list',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getPage = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/page',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getstatistics = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/statistics',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getDetail = id => {
return request({
url: '/api/logpm-distribution/deliveryList/detail',
method: 'get',
params: {
id,
},
});
};
export const getOneclick = data => {
return request({
url: '/api/logpm-distribution/deliveryList/oneloading',
method: 'post',
data: data,
});
};
export const getWrapdetail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/wrapdetail',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getpackdetail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/packdetail',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getinventorydetail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/inventory',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const getorddetail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/order',
method: 'get',
params: {
...params,
current,
size,
},
});
};
export const remove = ids => {
return request({
url: '/api/logpm-distribution/deliveryList/remove',
method: 'post',
params: {
ids,
},
});
};
export const add = row => {
return request({
url: '/api/logpm-distribution/deliveryList/submit',
method: 'post',
data: row,
});
};
export const update = row => {
return request({
url: '/api/logpm-distribution/deliveryList/submit',
method: 'post',
data: row,
});
};
/**
* 查询配送任务信息
* @param id
* @returns {AxiosPromise}
*/
export const getDeliveryList = id => {
return request({
url: '/api/logpm-distribution/deliveryList/getDeliveryList',
method: 'get',
params: {
id,
},
});
};
/**
* 查询市配任务
* @param id
* @returns {AxiosPromise}
*/
export const getMarketDeliveryList = id => {
return request({
url: '/api/logpm-distribution/deliveryList/getMarketDeliveryList',
method: 'get',
params: {
id,
},
});
};
/**
* 修改配送计划
* @param data
* @returns {AxiosPromise}
*/
export const updateDeliveryList = data => {
return request({
url: '/api/logpm-distribution/deliveryList/updateDeliveryList',
method: 'put',
data: data,
});
};
/**
* 修改配送计划
* @param data
* @returns {AxiosPromise}
*/
export const updateMarketDelivery = data => {
return request({
url: '/api/logpm-distribution/deliveryList/updateMarketDelivery',
method: 'put',
data: data,
});
};
/**
* 查询配送任务订单地图信息
* @param data
* @returns {AxiosPromise}
*/
export const selectStockArticleAtlasInfo = id => {
return request({
url: '/api/logpm-distribution/deliveryList/selectStockArticleAtlasInfo',
method: 'get',
params: {
id,
},
});
};
/**
* 查询配送任务订单地图信息
* @param data
* @returns {AxiosPromise}
*/
export const getPackageListByDeliveryIdAndOrderId = (current,size,deliveryId,orderId) => {
return request({
url: '/api/logpm-distribution/deliveryList/getPackageListByDeliveryIdAndOrderId',
method: 'get',
params: {
current,
size,
deliveryId,
orderId,
},
});
};
/**
* 取消配送任务
* @param data
* @returns {AxiosPromise}
*/
export const cancelDeliveryListTask = data => {
return request({
url: '/api/logpm-distribution/deliveryList/cancelMarketDeliveryListTask',
method: 'post',
data: data,
});
};
/**
* 批量打印
* @param data
* @returns {AxiosPromise}
*/
export const printBatch = data => {
return request({
url: '/api/logpm-distribution/deliveryList/printBatch',
method: 'post',
params: data,
});
};