import request from '@/config/axios' export interface TransferissueRecordMainVO { requestNumber: string jobNumber: string carrierCode: string transferMode: string vehiclePlateNumber: string fromWarehouseCode: string toWarehouseCode: string code: string interfaceType: string outTransactionType: string inTransactionType: string executeTime: Date activeDate: Date requestTime: Date dueTime: Date departmentCode: string number: string businessType: string remark: string createTime: Date creator: string fromDockCode: string fromAreaTypes: string fromAreaCodes: string toAreaTypes: string toAreaCodes: string available: string } // 查询调拨出库记录主列表 export const getTransferissueRecordMainPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/transferissue-record-main/senior', data }) } else { return await request.get({ url: `/wms/transferissue-record-main/page`, params }) } } // 查询调拨出库记录主详情 export const getTransferissueRecordMain = async (id: number) => { return await request.get({ url: `/wms/transferissue-record-main/get?id=` + id }) } // 新增调拨出库记录主 export const createTransferissueRecordMain = async (data: TransferissueRecordMainVO) => { return await request.post({ url: `/wms/transferissue-record-main/create`, data }) } // 修改调拨出库记录主 export const updateTransferissueRecordMain = async (data: TransferissueRecordMainVO) => { return await request.put({ url: `/wms/transferissue-record-main/update`, data }) } // 删除调拨出库记录主 export const deleteTransferissueRecordMain = async (id: number) => { return await request.delete({ url: `/wms/transferissue-record-main/delete?id=` + id }) } // 导出调拨出库记录主 Excel export const exportTransferissueRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/transferissue-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/transferissue-record-main/export-excel`, params }) } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/transferissue-record-main/get-import-template' }) }