diff --git a/src/api/distribution/distributionReservation.js b/src/api/distribution/distributionReservation.js index e315e83a..1d0c3bfe 100644 --- a/src/api/distribution/distributionReservation.js +++ b/src/api/distribution/distributionReservation.js @@ -9,8 +9,8 @@ export const getList = (current, size, params) => { current, size, }, - }) -} + }); +}; export const getReservationList = (current, size, params) => { return request({ @@ -21,98 +21,98 @@ export const getReservationList = (current, size, params) => { current, size, }, - }) -} + }); +}; -export const getDetail = (id) => { +export const getDetail = id => { return request({ url: '/api/logpm-distribution/reservation/detail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; /** * 预约数据导出 * @param row * @returns {AxiosPromise} */ -export const reservationExport = (row) => { +export const reservationExport = row => { return request({ url: '/api/logpm-distribution/reservation/export-distrbutionReservation', method: 'get', params: { - ...row + ...row, }, responseType: 'blob', - }) -} + }); +}; /** * 预约订单数据详情导出 * @param row * @returns {AxiosPromise} */ -export const reservationInfoStockArticleExport = (row) => { +export const reservationInfoStockArticleExport = row => { return request({ url: '/api/logpm-distribution/reservationStockarticle/export-distributionReservationStockarticle', method: 'get', params: { - ...row + ...row, }, responseType: 'blob', - }) -} + }); +}; /** * 预约包件数据详情导出 * @param row * @returns {AxiosPromise} */ -export const reservationInfoPackageExport = (row) => { +export const reservationInfoPackageExport = row => { return request({ url: '/api/logpm-distribution/reservationPackage/distributionReservationPackage/export-distributionReservationPackage', method: 'get', params: { - ...row + ...row, }, responseType: 'blob', - }) -} + }); +}; /** * 预约库存平数据详情导出 * @param row * @returns {AxiosPromise} */ -export const reservationInfoStockListExport = (row) => { +export const reservationInfoStockListExport = row => { return request({ url: '/api/logpm-distribution/reservationStocklist/distributionReservationStocklist/export-distributionReservationStocklist', method: 'get', params: { - ...row + ...row, }, responseType: 'blob', - }) -} + }); +}; -export const remove = (ids) => { +export const remove = ids => { return request({ url: '/api/logpm-distribution/reservation/remove', method: 'post', params: { ids, - } - }) -} + }, + }); +}; -export const add = (row) => { +export const add = row => { return request({ url: '/api/logpm-distribution/reservation/save', method: 'post', - data: row - }) -} + data: row, + }); +}; /** * 取消预约指定包件 @@ -123,203 +123,204 @@ export const cancelReservationPackage = data => { return request({ url: '/api/logpm-distribution/reservation/cancelReservationPackage', method: 'post', - data: data - }) -} - + data: data, + }); +}; -export const autonomouslySave = (row) => { +export const autonomouslySave = row => { return request({ url: '/api/logpm-distribution/reservation/autonomouslySave', method: 'post', - data: row - }) -} + data: row, + }); +}; -export const update = (row) => { +export const update = row => { return request({ url: '/api/logpm-distribution/reservation/update', method: 'post', - data: row - }) -} - - + data: row, + }); +}; -export const updateReservation = (row) => { //修改用户信息 +export const updateReservation = row => { + //修改用户信息 return request({ url: '/api/logpm-distribution/reservation/updateClient', method: 'post', - data: row - }) -} + data: row, + }); +}; /** * 批量转备货 * @param ids 预约列表id * @returns {AxiosPromise} */ -export const confirms = (row) => { +export const confirms = row => { return request({ url: '/api/logpm-distribution/reservation/stockUpTask', method: 'post', - data:row - }) -} + data: row, + }); +}; /** * 预约批量确认 * @param row * @returns {AxiosPromise} */ -export const addReservations = (row) => { +export const addReservations = row => { return request({ url: '/api/logpm-distribution/reservation/confirmReservations', method: 'post', - data:row - }) -} + data: row, + }); +}; /** * 预约批量确认 * @param row * @returns {AxiosPromise} */ -export const getReservationAddr = (ids) => { +export const getReservationAddr = ids => { return request({ url: '/api/logpm-distribution/reservation/getReservationAddr', method: 'get', - params:{ - ids - } - }) -} - + params: { + ids, + }, + }); +}; /** * 预约转配送任务 * @param row * @returns {AxiosPromise} */ -export const deliveryTask = (data) => { +export const deliveryTask = data => { return request({ url: '/api/logpm-distribution/reservation/deliveryTask', method: 'post', - data:data - }) -} - + data: data, + }); +}; -export const getReservationInfo = (reservationId) => { +export const getReservationInfo = reservationId => { return request({ url: '/api/logpm-distribution/reservation/getReservationInfo', method: 'get', - params:{ - reservationId - } - }) -} + params: { + reservationId, + }, + }); +}; /** * 预约批量确认 * @param row * @returns {AxiosPromise} */ -export const deliveryBusinessTask = (data) => { +export const deliveryBusinessTask = data => { return request({ url: '/api/logpm-distribution/reservation/deliveryBusinessTask', method: 'post', - data:data - }) -} + data: data, + }); +}; /** * 取消预约 * @param data * @returns {AxiosPromise} */ -export const cancelReservation = (data) => { +export const cancelReservation = data => { return request({ url: '/api/logpm-distribution/reservation/cancelReservation', method: 'put', - data:data - }) -} + data: data, + }); +}; -export const getReservationDetail = (id) => { +export const getReservationDetail = id => { return request({ url: '/api/logpm-distribution/reservation/getReservationDetail', method: 'get', params: { - id - } - }) -} + id, + }, + }); +}; -export const getReservationPackage = (reservationId,id) => { +export const getReservationPackage = (reservationId, id) => { return request({ url: '/api/logpm-distribution/reservation/getReservationPackage', method: 'get', params: { reservationId, - id - } - }) -} + id, + }, + }); +}; -export const getReservationPackageList = (reservationId,id) => { +export const getReservationPackageList = (reservationId, id) => { return request({ url: '/api/logpm-distribution/reservation/getReservationPackageList', method: 'get', params: { reservationId, - } - }) -} + }, + }); +}; -export const getReservationStockListInfo = (reservationId) => { +export const getReservationStockListInfo = reservationId => { return request({ url: '/api/logpm-distribution/reservation/getReservationStockListInfo', method: 'get', params: { reservationId, - } - }) -} + }, + }); +}; -export const patchPrintList = (ids) => { +/** + * 批量打印预约单 + * @param {*} ids + * @returns + */ +export const patchPrintList = ids => { return request({ url: '/api/logpm-distribution/deliveryList/printBatchByReservation', method: 'post', - params: ids + params: ids, }); -} +}; /** * 查询预约计划零担详情 * @param ids * @returns {AxiosPromise} */ -export const getReservationZeroOrderDetail = (reservationId,id) => { +export const getReservationZeroOrderDetail = (reservationId, id) => { return request({ url: '/api/logpm-distribution/reservation/getReservationZeroOrderDetail', method: 'get', - params: { id,reservationId } + params: { id, reservationId }, }); -} +}; /** * 查询预约计划零担详情 * @param ids * @returns {AxiosPromise} */ -export const getDeliveryZeroOrderDetail = (deliveryId,orderId) => { +export const getDeliveryZeroOrderDetail = (deliveryId, orderId) => { return request({ url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail', method: 'get', - params: { deliveryId,orderId } + params: { deliveryId, orderId }, }); -} +}; export const $_getDeliveryZeroOrderDetail = params => { return request({ url: '/api/logpm-distribution/deliveryList/getDeliveryZeroOrderDetail', @@ -332,21 +333,10 @@ export const $_getDeliveryZeroOrderDetail = params => { * @param ids * @returns {AxiosPromise} */ -export const getReservationPackageListByOrderId = (current, size,params) => { +export const getReservationPackageListByOrderId = (current, size, params) => { return request({ url: '/api/logpm-distribution/reservation/getReservationPackageListByOrderId', method: 'get', - params: { current, size,...params } + params: { current, size, ...params }, }); -} - - - - - - - - - - - +}; diff --git a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue index de74e03e..5092a19f 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue @@ -1,5 +1,5 @@