diff --git a/src/api/erp/product/category/erpproductcategoryfault/index.ts b/src/api/erp/product/category/erpproductcategoryfault/index.ts new file mode 100644 index 000000000..97cb4db5b --- /dev/null +++ b/src/api/erp/product/category/erpproductcategoryfault/index.ts @@ -0,0 +1,48 @@ +import request from '@/config/axios' + +// ERP 产品分类故障 VO +export interface ProductCategoryFaultVO { + id: number // 类别故障编号 + productCategoryId: number // 类别id + productFaultPart: string // 故障部位 + productFault: string // 具体故障 + ifAffectSale: boolean // 影响销售 + affectSalePercentage: string // 影响销售% + affectSaleMoney: number // 影响销售金额 + ifAffectRecycle: boolean // 影响回收 + affectRecyclePercentage: string // 影响回收% + affectRecycleMoney: number // 影响回收金额 +} + +// ERP 产品分类故障 API +export const ProductCategoryFaultApi = { + // 查询ERP 产品分类故障分页 + getProductCategoryFaultPage: async (params: any) => { + return await request.get({ url: `/erp/product-category-fault/page`, params }) + }, + + // 查询ERP 产品分类故障详情 + getProductCategoryFault: async (id: number) => { + return await request.get({ url: `/erp/product-category-fault/get?id=` + id }) + }, + + // 新增ERP 产品分类故障 + createProductCategoryFault: async (data: ProductCategoryFaultVO) => { + return await request.post({ url: `/erp/product-category-fault/create`, data }) + }, + + // 修改ERP 产品分类故障 + updateProductCategoryFault: async (data: ProductCategoryFaultVO) => { + return await request.put({ url: `/erp/product-category-fault/update`, data }) + }, + + // 删除ERP 产品分类故障 + deleteProductCategoryFault: async (id: number) => { + return await request.delete({ url: `/erp/product-category-fault/delete?id=` + id }) + }, + + // 导出ERP 产品分类故障 Excel + exportProductCategoryFault: async (params) => { + return await request.download({ url: `/erp/product-category-fault/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/api/erp/product/category/productcategoryproperties/index.ts b/src/api/erp/product/category/productcategoryproperties/index.ts new file mode 100644 index 000000000..03151a355 --- /dev/null +++ b/src/api/erp/product/category/productcategoryproperties/index.ts @@ -0,0 +1,46 @@ +import request from '@/config/axios' + +// ERP 产品分类属性 VO +export interface ProductCategoryPropertiesVO { + id: number // 类别属性编号 + productCategoryId: number // 类别属性id + ifSingleProperty: boolean // 是否单数属性 + productPropertiesEn: string // 设备属性英文 + productPropertiesCn: string // 设备属性中文 + ifRequired: boolean // 是否必填 + ifAttachment: boolean // 是否配件 + ifSn: boolean // 是否允许记录sn +} + +// ERP 产品分类属性 API +export const ProductCategoryPropertiesApi = { + // 查询ERP 产品分类属性分页 + getProductCategoryPropertiesPage: async (params: any) => { + return await request.get({ url: `/erp/product-category-properties/page`, params }) + }, + + // 查询ERP 产品分类属性详情 + getProductCategoryProperties: async (id: number) => { + return await request.get({ url: `/erp/product-category-properties/get?id=` + id }) + }, + + // 新增ERP 产品分类属性 + createProductCategoryProperties: async (data: ProductCategoryPropertiesVO) => { + return await request.post({ url: `/erp/product-category-properties/create`, data }) + }, + + // 修改ERP 产品分类属性 + updateProductCategoryProperties: async (data: ProductCategoryPropertiesVO) => { + return await request.put({ url: `/erp/product-category-properties/update`, data }) + }, + + // 删除ERP 产品分类属性 + deleteProductCategoryProperties: async (id: number) => { + return await request.delete({ url: `/erp/product-category-properties/delete?id=` + id }) + }, + + // 导出ERP 产品分类属性 Excel + exportProductCategoryProperties: async (params) => { + return await request.download({ url: `/erp/product-category-properties/export-excel`, params }) + } +} \ No newline at end of file diff --git a/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue new file mode 100644 index 000000000..5ecc171b4 --- /dev/null +++ b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue @@ -0,0 +1,146 @@ + + \ No newline at end of file diff --git a/src/views/erp/product/category/erpproductcategoryfault/index.vue b/src/views/erp/product/category/erpproductcategoryfault/index.vue new file mode 100644 index 000000000..5fa5412df --- /dev/null +++ b/src/views/erp/product/category/erpproductcategoryfault/index.vue @@ -0,0 +1,279 @@ + + + \ No newline at end of file