import request from '@/config/axios' export interface DeliverJobMainVO { requestNumber: string deliverPlanNumber: string customerDeliverNumber: string customerCode: string customerDockCode: string deliverDock: string carrierCode: string transferMode: string vehiclePlateNumber: string fromWarehouseCode: string toWarehouseCode: string requestTime: Date requestDueTime: Date status: string expiredTime: Date updateTime: Date updater: string jobStageStatus: string priority: number priorityincrement: number departmentCode: string acceptUserId: string acceptTime: Date completeUserId: string completeTime: Date fromAreaTypes: string toAreaTypes: string number: string businessType: string remark: string createTime: Date creator: string ruleUserId: number fromAreaCodes: string toAreaCodes: string fromDockCode: string autoComplete: string allowModifyLocation: string allowModifyQty: string allowBiggerQty: string allowSmallerQty: string allowModifyInventoryStatus: string allowContinuousScanning: string allowPartialComplete: string allowModifyBatch: string allowModifyPackingNumber: string } // 查询发货任务主列表 export const getDeliverJobMainPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/deliver-job-main/senior', data }) } else { return await request.get({ url: `/wms/deliver-job-main/page`, params }) } } // 查询发货任务主详情 export const getDeliverJobMain = async (id: number) => { return await request.get({ url: `/wms/deliver-job-main/get?id=` + id }) } // 新增发货任务主 export const createDeliverJobMain = async (data: DeliverJobMainVO) => { return await request.post({ url: `/wms/deliver-job-main/create`, data }) } // 修改发货任务主 export const updateDeliverJobMain = async (data: DeliverJobMainVO) => { return await request.put({ url: `/wms/deliver-job-main/update`, data }) } // 删除发货任务主 export const deleteDeliverJobMain = async (id: number) => { return await request.delete({ url: `/wms/deliver-job-main/delete?id=` + id }) } // 导出发货任务主 Excel export const exportDeliverJobMain = async (params) => { if (params.isSearch) { const data = {...params} return await request.downloadPost({ url: `/wms/deliver-job-main/export-excel-senior`, data }) } else { return await request.download({ url: `/wms/deliver-job-main/export-excel`, params }) } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/deliver-job-main/get-import-template' }) } // 承接发货任务 Excel export const acceptDeliverJobMain = async (id) => { return await request.put({ url: `/wms/deliver-job-main/accept?id=` + id }) } // 取消承接发货任务 Excel export const abandonDeliverJobMain = async (id) => { return await request.put({ url: `/wms/deliver-job-main/abandon?id=` + id }) } // 关闭发货任务主 Excel export const closeDeliverJobMain = async (id) => { return await request.put({ url: `/wms/deliver-job-main/close?id=` + id }) } // 执行发货任务主 export const executeDeliverJobMain = async (data: DeliverJobMainVO) => { return await request.put({ url: `/wms/deliver-job-main/execute`, data }) }