Browse Source

包装信息api修改

master
chenfang 9 months ago
parent
commit
2f59dc686a
  1. 22
      src/api/wms/itempackage/index.ts

22
src/api/wms/itempackage/index.ts

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

Loading…
Cancel
Save