diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 58a7abda0..5194de3f1 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -219,6 +219,8 @@ export enum DICT_TYPE { ERP_PRODUCT_FAULT_PART = 'erp_product_fault_part', // 产品的故障部位 ERP_FILE_ORDER_TYPE = 'erp_file_order_type', // 文件单据类型 ERP_ORDER_PRE_STATUS = 'erp_order_pre_status', // 订单预报价单状态 + ERP_PRODUCT_PROPERTIES_CATEGORY = 'erp_product_properties_category', // 产品属性的分类 + // ========== AI - 人工智能模块 ========== AI_PLATFORM = 'ai_platform', // AI 平台 diff --git a/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue index 181597288..f167f034e 100644 --- a/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue +++ b/src/views/erp/product/category/erpproductcategoryfault/ProductCategoryFaultForm.vue @@ -7,9 +7,9 @@ label-width="100px" v-loading="formLoading" > - + - + @@ -110,7 +110,7 @@ const formData = ref({ affectRecycleMoney: undefined }) const formRules = reactive({ - productCategoryId: [{ required: true, message: '类别不能为空', trigger: 'blur' }], + productCategoryId: [{ required: true, message: '产品分类不能为空', trigger: 'blur' }], productFaultPart: [{ required: true, message: '故障部位不能为空', trigger: 'change' }], productFault: [{ required: true, message: '具体故障不能为空', trigger: 'blur' }] }) @@ -184,7 +184,7 @@ const resetForm = () => { formRef.value?.resetFields() } -/** 获取现在的类别id,通过类别id查询类别部位数组 */ +/** 获取现在的产品分类id,通过产品分类id查询产品分类部位数组 */ const limitFaultPart = (productCategoryId: number) => { if (productCategoryId) { // 清空故障部位 diff --git a/src/views/erp/product/category/erpproductcategoryfault/index.vue b/src/views/erp/product/category/erpproductcategoryfault/index.vue index 8adb915f2..2f019a7f8 100644 --- a/src/views/erp/product/category/erpproductcategoryfault/index.vue +++ b/src/views/erp/product/category/erpproductcategoryfault/index.vue @@ -8,10 +8,10 @@ :inline="true" label-width="68px" > - + - + @@ -323,7 +323,7 @@ const handleExport = async () => { } } -/** 根据用户输入搜索类别 */ +/** 根据用户输入搜索产品分类 */ const searchProductCategory = async () => { //构建param对象 const params = { @@ -336,11 +336,11 @@ const searchProductCategory = async () => { } } -/** 根据 productCategoryId 获取类别名称 */ +/** 根据 productCategoryId 获取产品分类名称 */ const getCategoryName = (id: number | undefined) => { if (!id) return '' const category = productCategoryList.value.find(item => item.id === id) - return category ? category.name : '' // 假设类别名称字段为 name + return category ? category.name : '' // 假设产品分类名称字段为 name } /** 初始化 **/ diff --git a/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue b/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue index e14ddc5ff..1f6b0e7f5 100644 --- a/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue +++ b/src/views/erp/product/category/productcategorypart/ProductCategoryPartForm.vue @@ -7,8 +7,8 @@ label-width="100px" v-loading="formLoading" > - - + + - + - + @@ -224,7 +224,7 @@ const handleExport = async () => { } } -/** 根据用户输入搜索类别 */ +/** 根据用户输入搜索产品分类 */ const searchProductCategory = async () => { //构建param对象 const params = { @@ -237,11 +237,11 @@ const searchProductCategory = async () => { } } -/** 根据 productCategoryId 获取类别名称 */ +/** 根据 productCategoryId 获取产品分类名称 */ const getCategoryName = (id: number | undefined) => { if (!id) return '' const category = productCategoryList.value.find(item => item.id === id) - return category ? category.name : '' // 假设类别名称字段为 name + return category ? category.name : '' // 假设产品分类名称字段为 name } /** 初始化 **/ onMounted(() => { diff --git a/src/views/erp/product/category/productcategoryproperties/ProductCategoryPropertiesForm.vue b/src/views/erp/product/category/productcategoryproperties/ProductCategoryPropertiesForm.vue index 0f0442478..cf906b632 100644 --- a/src/views/erp/product/category/productcategoryproperties/ProductCategoryPropertiesForm.vue +++ b/src/views/erp/product/category/productcategoryproperties/ProductCategoryPropertiesForm.vue @@ -7,8 +7,8 @@ label-width="100px" v-loading="formLoading" > - - + + - - + + { productPropertiesEn: undefined, productPropertiesCn: undefined, ifRequired: undefined, - ifAttachment: undefined, + productPropertiesCategory: undefined, ifSn: undefined } formRef.value?.resetFields() diff --git a/src/views/erp/product/category/productcategoryproperties/index.vue b/src/views/erp/product/category/productcategoryproperties/index.vue index cacedfde0..e322d41a7 100644 --- a/src/views/erp/product/category/productcategoryproperties/index.vue +++ b/src/views/erp/product/category/productcategoryproperties/index.vue @@ -72,15 +72,15 @@ /> - + - + @@ -158,9 +158,9 @@ - + @@ -241,7 +241,7 @@ const queryParams = reactive({ productPropertiesEn: undefined, productPropertiesCn: undefined, ifRequired: undefined, - ifAttachment: undefined, + productPropertiesCategory: undefined, ifSn: undefined, createTime: [] })