/* * @Author: zhp * @Date: 2023-10-18 09:33:57 * @LastEditTime: 2023-10-18 16:18:12 * @LastEditors: zhp * @Description: */ import request from '@/utils/request' // 创建包装 export function createPacking(data) { return request({ url: '/base/packaging-print-log/create', method: 'post', data: data }) } // 获得包装code export function getCode() { return request({ url: '/base/packaging-print-log/getPackagingSerialCode', method: 'get' }) } // 更新包装 export function updatePacking(data) { return request({ url: '/base/packaging-print-log/update', method: 'put', data: data }) } // 删除包装 export function deletePacking(id) { return request({ url: '/base/packaging-print-log/delete?id=' + id, method: 'delete' }) } // 获得包装 export function getPacking(id) { return request({ url: '/base/packaging-print-log/get?id=' + id, method: 'get' }) } // 获得包装分页 export function getPackingPage(query) { return request({ url: '/base/packaging-print-log/page', method: 'get', params: query }) } // 导出包装 Excel export function exportPackingExcel(query) { return request({ url: '/base/packaging-print-log/export-excel', method: 'get', params: query, responseType: 'blob' }) } export function getWorkOrderList(query) { return request({ url: '/base/core-work-order/listbyfilter', method: 'get', params: query, }) } export function getCustomerList(query) { return request({ url: '/base/core-customer/listAll', method: 'get', params: query, }) } export function getModelList(query) { return request({ url: '/base/packaging-print-model/listbyfilter', method: 'get', params: query, }) }