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

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

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 })
}

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` })
},