/* * @Author: zwq * @Date: 2024-04-16 15:08:37 * @LastEditors: zwq * @LastEditTime: 2024-07-15 13:42:39 * @Description: */ import request from '@/utils/request' // 创建出库单 export function createDelivery(data) { return request({ url: '/asrs/delivery/create', method: 'post', data: data }) } // 创建点对点出库单 export function createDeliveryList(data) { return request({ url: '/asrs/delivery/createList', method: 'post', data: data }) } // 更新出库单 export function updateDelivery(data) { return request({ url: '/asrs/delivery/update', method: 'put', data: data }) } // 删除出库单 export function deleteDelivery(id) { return request({ url: '/asrs/delivery/delete?id=' + id, method: 'delete' }) } // 获得出库单 export function getDelivery(id) { return request({ url: '/asrs/delivery/get?id=' + id, method: 'get' }) } // 获得出库单分页 export function getDeliveryPage(query) { return request({ url: '/asrs/delivery/page', method: 'get', params: query }) } // 重启当前出库单 export function restartDelivery(data) { return request({ url: '/asrs/delivery/restart', method: 'put', data: data }) } // 暂停当前出库单 export function pauseDelivery(data) { return request({ url: '/asrs/delivery/pause', method: 'put', data: data }) } // 提升当前出库单 export function improveDelivery(data) { return request({ url: '/asrs/delivery/improve', method: 'put', data: data }) } // 取消当前出库单 export function cancelDelivery(data) { return request({ url: '/asrs/delivery/cancel', method: 'put', data: data }) } // 获得出库单历史分页 export function getDeliveryHisPage(query) { return request({ url: '/asrs/delivery-history/page', method: 'get', params: query }) } // 获得出库单历史和膜卷关系 export function getDeliveryHisProPage(query) { return request({ url: '/asrs/delivery-history-product/page', method: 'get', params: query }) } // 获得code export function getCode() { return request({ url: '/asrs/delivery/getCode', method: 'post' }) } // 导出历史 Excel export function exportDeliveryHisExcel(query) { return request({ url: '/asrs/delivery-history-product/export-excel', method: 'get', params: query, responseType: 'blob' }) } // 出库后同步mes信息 export function mesoutsync(data) { return request({ url: '/asrs/delivery-history/mesoutsync', method: 'post', data: data, timeout: 100000, }) }