import request from '@/config/axios' export interface DeliverRecordMainVO { requestNumber: string jobNumber: string deliverPlanNumber: string customerDeliverNumber: string customerCode: string customerDockCode: string carrierCode: string transferMode: string vehiclePlateNumber: string fromWarehouseCode: string toWarehouseCode: string outTransactionType: string inTransactionType: string executeTime: Date activeDate: Date requestTime: Date dueTime: Date departmentCode: string interfaceType: string number: string businessType: string remark: string createTime: Date creator: string code: string fromLocationTypes: string fromAreaCodes: string toLocationTypes: string toAreaCodes: string fromDockCode: string available: string } // 查询发货记录主列表 export const getDeliverRecordMainPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/deliver-record-main/senior', data }) } else { return await request.get({ url: `/wms/deliver-record-main/page`, params }) } } // 查询发货记录主详情 export const getDeliverRecordMain = async (id: number) => { return await request.get({ url: `/wms/deliver-record-main/get?id=` + id }) } // 新增发货记录主 export const createDeliverRecordMain = async (data: DeliverRecordMainVO) => { return await request.post({ url: `/wms/deliver-record-main/create`, data }) } // 修改发货记录主 export const updateDeliverRecordMain = async (data: DeliverRecordMainVO) => { return await request.put({ url: `/wms/deliver-record-main/update`, data }) } // 删除发货记录主 export const deleteDeliverRecordMain = async (id: number) => { return await request.delete({ url: `/wms/deliver-record-main/delete?id=` + id }) } // 导出发货记录主 Excel export const exportDeliverRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/deliver-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/deliver-record-main/export-excel`, params }) } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/deliver-record-main/get-import-template' }) }