From cbbd372216b5a3d79e5ce01497f8e0336a76d0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E9=92=B1?= Date: Mon, 10 Mar 2025 13:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=83=A8=E5=88=86=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E5=88=86=E7=B1=BB=E5=B1=9E=E6=80=A7=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productcategoryproperties/index.ts | 2 +- .../propertiescategorymap/index.ts | 42 ++++ .../erpproductcategoryfault/index.vue | 2 +- .../category/productcategorypart/index.vue | 2 +- .../productcategoryproperties/index.vue | 8 +- ...oductCategoryPropertiesCategoryMapForm.vue | 162 +++++++++++++ .../category/propertiescategorymap/index.vue | 219 ++++++++++++++++++ 7 files changed, 433 insertions(+), 4 deletions(-) create mode 100644 src/api/erp/product/category/productcategoryproperties/propertiescategorymap/index.ts create mode 100644 src/views/erp/product/category/propertiescategorymap/ProductCategoryPropertiesCategoryMapForm.vue create mode 100644 src/views/erp/product/category/propertiescategorymap/index.vue 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