diff --git a/src/api/erp/product/category/productcategoryproperties/index.ts b/src/api/erp/product/category/productcategoryproperties/index.ts index 03151a355..7ee426298 100644 --- a/src/api/erp/product/category/productcategoryproperties/index.ts +++ b/src/api/erp/product/category/productcategoryproperties/index.ts @@ -7,8 +7,8 @@ export interface ProductCategoryPropertiesVO { ifSingleProperty: boolean // 是否单数属性 productPropertiesEn: string // 设备属性英文 productPropertiesCn: string // 设备属性中文 + productPropertiesCategory: string // 设备属性分类 ifRequired: boolean // 是否必填 - ifAttachment: boolean // 是否配件 ifSn: boolean // 是否允许记录sn } diff --git a/src/api/erp/product/category/productcategoryproperties/propertiescategorymap/index.ts b/src/api/erp/product/category/productcategoryproperties/propertiescategorymap/index.ts new file mode 100644 index 000000000..0dc53419f --- /dev/null +++ b/src/api/erp/product/category/productcategoryproperties/propertiescategorymap/index.ts @@ -0,0 +1,42 @@ +import request from '@/config/axios' + +// ERP 产品分类属性绑定 VO +export interface ProductCategoryPropertiesCategoryMapVO { + id: number // 编号 + productCategoryPropertiesId: number // 类别属性 + productCategoryId: number // 产品分类 + productCategoryPropertiesValue: string // 类别属性值 +} + +// ERP 产品分类属性绑定 API +export const ProductCategoryPropertiesCategoryMapApi = { + // 查询ERP 产品分类属性绑定分页 + getProductCategoryPropertiesCategoryMapPage: async (params: any) => { + return await request.get({ url: `/erp/product-category-properties-category-map/page`, params }) + }, + + // 查询ERP 产品分类属性绑定详情 + getProductCategoryPropertiesCategoryMap: async (id: number) => { + return await request.get({ url: `/erp/product-category-properties-category-map/get?id=` + id }) + }, + + // 新增ERP 产品分类属性绑定 + createProductCategoryPropertiesCategoryMap: async (data: ProductCategoryPropertiesCategoryMapVO) => { + return await request.post({ url: `/erp/product-category-properties-category-map/create`, data }) + }, + + // 修改ERP 产品分类属性绑定 + updateProductCategoryPropertiesCategoryMap: async (data: ProductCategoryPropertiesCategoryMapVO) => { + return await request.put({ url: `/erp/product-category-properties-category-map/update`, data }) + }, + + // 删除ERP 产品分类属性绑定 + deleteProductCategoryPropertiesCategoryMap: async (id: number) => { + return await request.delete({ url: `/erp/product-category-properties-category-map/delete?id=` + id }) + }, + + // 导出ERP 产品分类属性绑定 Excel + exportProductCategoryPropertiesCategoryMap: async (params) => { + return await request.download({ url: `/erp/product-category-properties-category-map/export-excel`, params }) + } +} \ 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 index 2f019a7f8..f07cab240 100644 --- a/src/views/erp/product/category/erpproductcategoryfault/index.vue +++ b/src/views/erp/product/category/erpproductcategoryfault/index.vue @@ -242,7 +242,7 @@ const total = ref(0) // 列表的总页数 const queryParams = reactive({ pageNo: 1, pageSize: 10, - productCategoryId: null as number | null, + productCategoryId: null as any, productFaultPart: undefined, productFault: undefined, createTime: [], diff --git a/src/views/erp/product/category/productcategorypart/index.vue b/src/views/erp/product/category/productcategorypart/index.vue index 4dd017eea..84ec87699 100644 --- a/src/views/erp/product/category/productcategorypart/index.vue +++ b/src/views/erp/product/category/productcategorypart/index.vue @@ -155,7 +155,7 @@ const total = ref(0) // 列表的总页数 const queryParams = reactive({ pageNo: 1, pageSize: 10, - productCategoryId: null as number | null, + productCategoryId: null as any, productFaultPart: undefined, createTime: [] }) diff --git a/src/views/erp/product/category/productcategoryproperties/index.vue b/src/views/erp/product/category/productcategoryproperties/index.vue index 24ce95ee2..288df31f8 100644 --- a/src/views/erp/product/category/productcategoryproperties/index.vue +++ b/src/views/erp/product/category/productcategoryproperties/index.vue @@ -180,6 +180,12 @@ /> + \ No newline at end of file diff --git a/src/views/erp/product/category/propertiescategorymap/index.vue b/src/views/erp/product/category/propertiescategorymap/index.vue new file mode 100644 index 000000000..71020ab5d --- /dev/null +++ b/src/views/erp/product/category/propertiescategorymap/index.vue @@ -0,0 +1,219 @@ + + + \ No newline at end of file