From 4f16b2a8472583f18042df610e76caa5113371f2 Mon Sep 17 00:00:00 2001 From: hwj Date: Tue, 9 Jun 2026 16:43:46 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BA=A7=E5=93=81=E7=89=A9?= =?UTF-8?q?=E6=96=99=E4=BF=A1=E6=81=AF-=E6=96=B0=E5=A2=9E/=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/en.ts | 24 + src/locales/zh-CN.ts | 24 + src/utils/dict.ts | 1 + src/views/erp/product/product/ProductForm.vue | 420 +++++++++++++++++- 4 files changed, 465 insertions(+), 4 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index 3c3bafa7..95bc39b1 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -565,6 +565,16 @@ export default { validatorStatusRequired: 'Status is required' } }, + ErpPurchase: { + Supplier: { + name: 'Supplier Name', + contact: 'Contact', + mobile: 'Mobile', + telephone: 'Telephone', + placeholderName: 'Please enter supplier name', + placeholderMobile: 'Please enter mobile' + } + }, lock: { lockScreen: 'Lock screen', lock: 'Lock', @@ -2082,6 +2092,20 @@ export default { validatorCategoryTypeRequired: 'Type can not be empty', validatorUnitRequired: 'Unit id can not be empty', validatorStatusRequired: 'Product status can not be empty', + dialogPackagingSchemeLabel: 'Packaging Scheme', + dialogPackagingSchemeTitle: 'Select Packaging Scheme', + dialogPackagingSchemePlaceholder: 'Please select packaging scheme', + dialogDefaultStatusLabel: 'Default Scheme', + validatorPackagingSchemeRequired: 'Packaging scheme is required', + dialogSupplierLabel: 'Supplier', + dialogSupplierTitle: 'Select Supplier', + dialogSupplierPlaceholder: 'Please select supplier', + validatorSupplierRequired: 'Supplier is required', + dialogFragileFlagLabel: 'Fragile', + dialogSparePartLevelLabel: 'Spare Part Level', + dialogPurchaseCycleLabel: 'Purchase Cycle (Days)', + dialogBrandLabel: 'Brand', + dialogBrandPlaceholder: 'Please enter brand', categoryTree: 'Category Tree', addCategory: 'Add Category', refreshTree: 'Refresh' diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index f4833ac4..c4819fa3 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -565,6 +565,16 @@ export default { validatorStatusRequired: '状态不能为空' } }, + ErpPurchase: { + Supplier: { + name: '供应商名称', + contact: '联系人', + mobile: '手机号码', + telephone: '联系电话', + placeholderName: '请输入供应商名称', + placeholderMobile: '请输入手机号码' + } + }, lock: { lockScreen: '锁定屏幕', lock: '锁定', @@ -3235,6 +3245,20 @@ export default { validatorCategoryTypeRequired: '类型不能为空', validatorUnitRequired: '单位编号不能为空', validatorStatusRequired: '产品状态不能为空', + dialogPackagingSchemeLabel: '包装方案', + dialogPackagingSchemeTitle: '选择包装方案', + dialogPackagingSchemePlaceholder: '请选择包装方案', + dialogDefaultStatusLabel: '是否默认方案', + validatorPackagingSchemeRequired: '包装方案不能为空', + dialogSupplierLabel: '供应商', + dialogSupplierTitle: '选择供应商', + dialogSupplierPlaceholder: '请选择供应商', + validatorSupplierRequired: '供应商不能为空', + dialogFragileFlagLabel: '是否易损件', + dialogSparePartLevelLabel: '备件等级', + dialogPurchaseCycleLabel: '采购周期(天)', + dialogBrandLabel: '品牌', + dialogBrandPlaceholder: '请输入品牌', categoryTree: '产品分类树', addCategory: '新增分类', refreshTree: '刷新' diff --git a/src/utils/dict.ts b/src/utils/dict.ts index ec3bbc45..6d70292c 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -236,6 +236,7 @@ export enum DICT_TYPE { ERP_AUTOCODE_CYCLEMETHOD = "erp_autocode_cyclemethod", ERP_AUTOCODE_PARTTYPE = "erp_autocode_parttype", MATERIAL_CLASSIFICATION_TYPE = 'material_classification_type', + SPARE_PARTS_LEVEL = 'spare_parts_level', // ========== MES - 生产管理模块 ========== diff --git a/src/views/erp/product/product/ProductForm.vue b/src/views/erp/product/product/ProductForm.vue index f397106c..4488191a 100644 --- a/src/views/erp/product/product/ProductForm.vue +++ b/src/views/erp/product/product/ProductForm.vue @@ -110,6 +110,61 @@ /> + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + + {{ t('common.yes') }} + {{ t('common.no') }} + + + + + + + + + + + + + @@ -204,6 +259,99 @@ + + + + + + + + + + {{ t('FactoryModeling.ProductInformation.searchButtonText') }} + {{ t('FactoryModeling.ProductInformation.resetButtonText') }} + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + + + {{ t('FactoryModeling.ProductInformation.searchButtonText') }} + {{ t('FactoryModeling.ProductInformation.resetButtonText') }} + + + + + + + + + + + + +
+ +
+ +