diff --git a/src/api/erp/product/category/index.ts b/src/api/erp/product/category/index.ts index dd8a1dc2..72f47dc9 100644 --- a/src/api/erp/product/category/index.ts +++ b/src/api/erp/product/category/index.ts @@ -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 }) } diff --git a/src/api/erp/product/unit/index.ts b/src/api/erp/product/unit/index.ts index e6af6125..1e1c8ac3 100644 --- a/src/api/erp/product/unit/index.ts +++ b/src/api/erp/product/unit/index.ts @@ -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` }) }, diff --git a/src/api/erp/stock/stockRecord/index.ts b/src/api/erp/stock/record/index.ts similarity index 100% rename from src/api/erp/stock/stockRecord/index.ts rename to src/api/erp/stock/record/index.ts diff --git a/src/views/erp/stock/in/components/StockInItemForm.vue b/src/views/erp/stock/in/components/StockInItemForm.vue index a3adc1b8..8b67d547 100644 --- a/src/views/erp/stock/in/components/StockInItemForm.vue +++ b/src/views/erp/stock/in/components/StockInItemForm.vue @@ -84,7 +84,7 @@ - +