import request from '@/config/axios' export interface ExpectinVO { jobNumber: string businessType: string itemCode: string batch: string inventoryStatus: string uom: string qty: number locationCode: string warehouseCode: string ownerCode: string } // 查询预计入库存列表 export const getExpectinPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} return await request.post({ url: '/wms/expectin/senior', data }) } else { return await request.get({ url: `/wms/expectin/page`, params }) } } // 查询预计入库存详情 export const getExpectin = async (id: number) => { return await request.get({ url: `/wms/expectin/get?id=` + id }) } // 新增预计入库存 export const createExpectin = async (data: ExpectinVO) => { return await request.post({ url: `/wms/expectin/create`, data }) } // 修改预计入库存 export const updateExpectin = async (data: ExpectinVO) => { return await request.put({ url: `/wms/expectin/update`, data }) } // 删除预计入库存 export const deleteExpectin = async (id: number) => { return await request.delete({ url: `/wms/expectin/delete?id=` + id }) } // 导出预计入库存 Excel export const exportExpectin = async (params) => { if (params.isSearch) { const data = {...params} return await request.downloadPost({ url: `/wms/expectin/export-excel-senior`, data }) } else { return await request.download({ url: `/wms/expectin/export-excel`, params }) } } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/expectin/get-import-template' }) }