import request from '@/config/axios' export interface TransferreceiptRecordMainVO { requestNumber: string jobNumber: string receiptDock: 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 code: string interfaceType: string number: string businessType: string remark: string createTime: Date creator: string fromAreaTypes: string fromAreaCodes: string toDockCode: string toAreaTypes: string toAreaCodes: string available: string } // 查询调拨入库记录主列表 export const getTransferreceiptRecordMainPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/transferreceipt-record-main/senior', data }) } else { return await request.get({ url: `/wms/transferreceipt-record-main/page`, params }) } } // 查询调拨入库记录主详情 export const getTransferreceiptRecordMain = async (id: number) => { return await request.get({ url: `/wms/transferreceipt-record-main/get?id=` + id }) } // 新增调拨入库记录主 export const createTransferreceiptRecordMain = async (data: TransferreceiptRecordMainVO) => { return await request.post({ url: `/wms/transferreceipt-record-main/create`, data }) } // 修改调拨入库记录主 export const updateTransferreceiptRecordMain = async (data: TransferreceiptRecordMainVO) => { return await request.put({ url: `/wms/transferreceipt-record-main/update`, data }) } // 删除调拨入库记录主 export const deleteTransferreceiptRecordMain = async (id: number) => { return await request.delete({ url: `/wms/transferreceipt-record-main/delete?id=` + id }) } // 导出调拨入库记录主 Excel export const exportTransferreceiptRecordMain = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.downloadPost({ url: '/wms/transferreceipt-record-main/export-excel-senior', data }) } else { return await request.download({ url: `/wms/transferreceipt-record-main/export-excel`, params }) } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/transferreceipt-record-main/get-import-template' }) }