✨ ERP:初始化其它入库的表单 50%

This commit is contained in:
YunaiV committed 2024-02-06 15:58:25 +08:00
1 parent 53c94af027
commit 9cbdfe0ecb
7 files changed
+19 -26

No files matched your search

+9 -9
View File
@@ -1,6 +1,6 @@
import request from '@/config/axios'
// ERP 商品分类 VO
// ERP 产品分类 VO
export interface ProductCategoryVO {
id: number // 分类编号
parentId: number // 父分类编号
@@ -10,39 +10,39 @@ export interface ProductCategoryVO {
status: number // 开启状态
}
// ERP 商品分类 API
// ERP 产品分类 API
export const ProductCategoryApi = {
// 查询商品分类列表
// 查询产品分类列表
getProductCategoryList: async (params) => {
return await request.get({ url: `/erp/product-category/list`, params })
},
// 查询商品分类精简列表
// 查询产品分类精简列表
getProductCategorySimpleList: async () => {
return await request.get({ url: `/erp/product-category/simple-list` })
},
// 查询商品分类详情
// 查询产品分类详情
getProductCategory: async (id: number) => {
return await request.get({ url: `/erp/product-category/get?id=` + id })
},
// 新增商品分类
// 新增产品分类
createProductCategory: async (data: ProductCategoryVO) => {
return await request.post({ url: `/erp/product-category/create`, data })
},
// 修改商品分类
// 修改产品分类
updateProductCategory: async (data: ProductCategoryVO) => {
return await request.put({ url: `/erp/product-category/update`, data })
},
// 删除商品分类
// 删除产品分类
deleteProductCategory: async (id: number) => {
return await request.delete({ url: `/erp/product-category/delete?id=` + id })
},
// 导出商品分类 Excel
// 导出产品分类 Excel
exportProductCategory: async (params) => {
return await request.download({ url: `/erp/product-category/export-excel`, params })
}
+1 -1
View File
@@ -14,7 +14,7 @@ export const ProductUnitApi = {
return await request.get({ url: `/erp/product-unit/page`, params })
},
// 查询商品单位精简列表
// 查询产品单位精简列表
getProductUnitSimpleList: async () => {
return await request.get({ url: `/erp/product-unit/simple-list` })
},
File renamed without changes.