|
|
@ -24,42 +24,42 @@ export const getItempackagingPage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return request.post({ url: '/wms/itempackaging/senior', data }) |
|
|
|
return request.post({ url: '/wms/itempackage/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/wms/itempackaging/page`, params }) |
|
|
|
return await request.get({ url: `/wms/itempackage/page`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 查询物料包装信息 详情
|
|
|
|
export const getItempackaging = async (id: number) => { |
|
|
|
return await request.get({ url: `/wms/itempackaging/get?id=` + id }) |
|
|
|
return await request.get({ url: `/wms/itempackage/get?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 新增物料包装信息
|
|
|
|
export const createItempackaging = async (data: ItempackagingVO) => { |
|
|
|
return await request.post({ url: `/wms/itempackaging/create`, data }) |
|
|
|
return await request.post({ url: `/wms/itempackage/create`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 修改物料包装信息
|
|
|
|
export const updateItempackaging = async (data: ItempackagingVO) => { |
|
|
|
return await request.put({ url: `/wms/itempackaging/update`, data }) |
|
|
|
return await request.put({ url: `/wms/itempackage/update`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 删除物料包装信息
|
|
|
|
export const deleteItempackaging = async (id: number) => { |
|
|
|
return await request.delete({ url: `/wms/itempackaging/delete?id=` + id }) |
|
|
|
return await request.delete({ url: `/wms/itempackage/delete?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
// 导出物料包装信息 Excel
|
|
|
|
export const exportItempackaging = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
const data = {...params} |
|
|
|
return await request.downloadPost({ url: `/wms/itempackaging/export-excel-senior`, data }) |
|
|
|
return await request.downloadPost({ url: `/wms/itempackage/export-excel-senior`, data }) |
|
|
|
} else { |
|
|
|
return await request.download({ url: `/wms/itempackaging/export-excel`, params }) |
|
|
|
return await request.download({ url: `/wms/itempackage/export-excel`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => { |
|
|
|
return request.download({ url: '/wms/itempackaging/get-import-template' }) |
|
|
|
return request.download({ url: '/wms/itempackage/get-import-template' }) |
|
|
|
} |