ERP:完成 product 信息、分类、单位的实现

(cherry picked from commit 36a0330277)
This commit is contained in:
YunaiV
2024-02-05 00:15:40 +08:00
committed by shizhong
parent 1c034ca575
commit 7f19593cc5
8 changed files with 212 additions and 115 deletions

View File

@ -32,33 +32,33 @@ export interface ProductVO {
// ERP 产品 API
export const ProductApi = {
// 查询ERP 产品分页
// 查询产品分页
getProductPage: async (params: any) => {
return await request.get({ url: `/erp/product/page`, params })
},
// 查询ERP 产品详情
// 查询产品详情
getProduct: async (id: number) => {
return await request.get({ url: `/erp/product/get?id=` + id })
},
// 新增ERP 产品
// 新增产品
createProduct: async (data: ProductVO) => {
return await request.post({ url: `/erp/product/create`, data })
},
// 修改ERP 产品
// 修改产品
updateProduct: async (data: ProductVO) => {
return await request.put({ url: `/erp/product/update`, data })
},
// 删除ERP 产品
// 删除产品
deleteProduct: async (id: number) => {
return await request.delete({ url: `/erp/product/delete?id=` + id })
},
// 导出ERP 产品 Excel
// 导出产品 Excel
exportProduct: async (params) => {
return await request.download({ url: `/erp/product/export-excel`, params })
}
}
}