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.
 
 
 
 

399 lines
7.7 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 getDeliveryListExport = row => {
return request({
url: '/api/logpm-distribution/deliveryList/export-distributionDeliveryList',
method: 'get',
params: {
...row
},
responseType: 'blob',
})
};
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 getClientDetail = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/clientDetail',
method: 'get',
params: {
...params,
current,
size,
},
});
};
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,
},
});
};
/**
* 查询指定客户库存品包件
* @param current
* @param size
* @param params
* @returns {AxiosPromise}
*/
export const getReservationPackageList = (current, size, params) => {
return request({
url: '/api/logpm-distribution/deliveryList/getReservationPackageList',
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,
},
});
};
export const $_getPackageListByDeliveryIdAndOrderId = params => {
return request({
url: '/api/logpm-distribution/deliveryList/getPackageListByDeliveryIdAndOrderId',
method: 'get',
params,
});
};
/**
* 取消配送任务
* @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,
});
};
/**
* 包件签收
* @param data
* @returns {AxiosPromise}
*/
export const deliverySign = data => {
return request({
url: '/api/logpm-distribution/deliveryList/deliverySign',
method: 'post',
data: data,
});
};
/**
* 库存品包件签收
* @param data
* @returns {AxiosPromise}
*/
export const deliveryInventorySign = data => {
return request({
url: '/api/logpm-distribution/deliveryList/deliveryInventorySign',
method: 'post',
data: data,
});
};
export const $_getDetail = (params) => {
return request({
url: '/api/logpm-distribution/signfor/detail',
method: 'get',
params
})
}
export const $_judgmentOrderRemove = (params) => {
return request({
url: '/api/logpm-distribution/deliveryList/judgmentOrderRemove',
method: 'get',
params
})
}
export const $_isSignt = params => {
return request({
url: '/api/logpm-distribution/signfor/isSign',
method: 'get',
params,
});
};
// 商配取消配送
export const $_cancelDelivery = data => {
return request({
url: '/api/logpm-distribution/deliveryList/cancelDelivery',
method: 'post',
data: data,
});
};
/**
* 零担签收
* @param data
* @returns {AxiosPromise}
*/
export const $_deliveryZeroPackage = data => {
return request({
url: '/api/logpm-distribution/deliveryList/deliveryZeroPackage',
method: 'post',
data: data,
});
};
// 查看二维码
export const $_showInventoryPackgeCode = params => {
return request({
url: '/api/logpm-distribution/distributionStockList/showInventoryPackgeCode',
method: 'get',
params,
});
};
// 驳回
export const $_loadingAbnormalPackageListTurnDown = params => {
return request({
url: '/api/logpm-distribution/signfor/loadingAbnormalPackageListTurnDown',
method: 'get',
params,
});
};
//滞留
export const $_retentionScan = data => {
return request({
url: '/api/logpm-distribution/deliveryList/retentionPC',
method: 'post',
data,
});
};
//滞留(已弃用!)
export const $_retentionSave = data => {
return request({
url: '/api/logpm-distribution/deliveryList/retentionSave',
method: 'post',
data,
});
};