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.
359 lines
7.3 KiB
359 lines
7.3 KiB
import request from '@/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getReservationList = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/reservation_list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getDetail = id => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/detail', |
|
method: 'get', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约数据导出 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const reservationExport = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/export-distrbutionReservation', |
|
method: 'get', |
|
params: { |
|
...row, |
|
}, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约订单数据详情导出 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const reservationInfoStockArticleExport = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservationStockarticle/export-distributionReservationStockarticle', |
|
method: 'get', |
|
params: { |
|
...row, |
|
}, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
/** |
|
* 预约包件数据详情导出 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const reservationInfoPackageExport = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservationPackage/distributionReservationPackage/export-distributionReservationPackage', |
|
method: 'get', |
|
params: { |
|
...row, |
|
}, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
/** |
|
* 预约库存平数据详情导出 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const reservationInfoStockListExport = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservationStocklist/distributionReservationStocklist/export-distributionReservationStocklist', |
|
method: 'get', |
|
params: { |
|
...row, |
|
}, |
|
responseType: 'blob', |
|
}); |
|
}; |
|
|
|
export const remove = ids => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
|
|
export const add = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/save', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
/** |
|
* 取消预约指定包件 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const cancelReservationPackage = data => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/cancelReservationPackage', |
|
method: 'post', |
|
data: data, |
|
}); |
|
}; |
|
// 零担批量取消 |
|
export const $_cancelZeroPackage = data => { |
|
return request({ |
|
url: '/api/logpm-distribution/deliveryList/cancelZeroPackage', |
|
method: 'post', |
|
data: data, |
|
}); |
|
}; |
|
|
|
export const autonomouslySave = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/autonomouslySave', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
export const update = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/update', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
export const updateReservation = row => { |
|
//修改用户信息 |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/updateClient', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
/** |
|
* 批量转备货 |
|
* @param ids 预约列表id |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const confirms = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/stockUpTask', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约批量确认 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const addReservations = row => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/confirmReservations', |
|
method: 'post', |
|
data: row, |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约批量确认 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getReservationAddr = ids => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationAddr', |
|
method: 'get', |
|
params: { |
|
ids, |
|
}, |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约转配送任务 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const deliveryTask = data => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/deliveryTask', |
|
method: 'post', |
|
data: data, |
|
}); |
|
}; |
|
|
|
export const getReservationInfo = reservationId => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationInfo', |
|
method: 'get', |
|
params: { |
|
reservationId, |
|
}, |
|
}); |
|
}; |
|
|
|
/** |
|
* 预约批量确认 |
|
* @param row |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const deliveryBusinessTask = data => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/deliveryBusinessTask', |
|
method: 'post', |
|
data: data, |
|
}); |
|
}; |
|
|
|
/** |
|
* 取消预约 |
|
* @param data |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const cancelReservation = data => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/cancelReservation', |
|
method: 'put', |
|
data: data, |
|
}); |
|
}; |
|
|
|
// 取消预约-新 |
|
export const $_batchCancelReservation = params => { |
|
return request({ |
|
url: '/api/logpm-distribution/mall/order/batchCancelMallReservation', |
|
method: 'delete', |
|
params, |
|
}); |
|
}; |
|
|
|
export const getReservationDetail = id => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationDetail', |
|
method: 'get', |
|
params: { |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getReservationPackage = (reservationId, id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationPackage', |
|
method: 'get', |
|
params: { |
|
reservationId, |
|
id, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getReservationPackageList = (reservationId, id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationPackageList', |
|
method: 'get', |
|
params: { |
|
reservationId, |
|
}, |
|
}); |
|
}; |
|
|
|
export const getReservationStockListInfo = reservationId => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationStockListInfo', |
|
method: 'get', |
|
params: { |
|
reservationId, |
|
}, |
|
}); |
|
}; |
|
|
|
/** |
|
* 批量打印预约单 |
|
* @param {*} ids |
|
* @returns |
|
*/ |
|
export const patchPrintList = ids => { |
|
return request({ |
|
url: '/api/logpm-distribution/deliveryList/printBatchByReservation', |
|
method: 'post', |
|
params: ids, |
|
}); |
|
}; |
|
|
|
/** |
|
* 查询预约计划零担详情 |
|
* @param ids |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getReservationZeroOrderDetail = (reservationId, id) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationZeroOrderDetail', |
|
method: 'get', |
|
params: { id, reservationId }, |
|
}); |
|
}; |
|
|
|
/** |
|
* 查询预约计划零担详情 |
|
* @param ids |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getDeliveryZeroOrderDetail = (deliveryId, orderId) => { |
|
return request({ |
|
url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail', |
|
method: 'get', |
|
params: { deliveryId, orderId }, |
|
}); |
|
}; |
|
export const $_getDeliveryZeroOrderDetail = params => { |
|
return request({ |
|
url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail', |
|
method: 'get', |
|
params, |
|
}); |
|
}; |
|
/** |
|
* 查询预约计划零担详情 |
|
* @param ids |
|
* @returns {AxiosPromise} |
|
*/ |
|
export const getReservationPackageListByOrderId = (current, size, params) => { |
|
return request({ |
|
url: '/api/logpm-distribution/reservation/getReservationPackageListByOrderId', |
|
method: 'get', |
|
params: { current, size, ...params }, |
|
}); |
|
};
|
|
|