From 7a72616e762d7555a9cebcd3131492eab311790d Mon Sep 17 00:00:00 2001 From: zch Date: Thu, 9 Jan 2025 09:45:02 +0800 Subject: [PATCH] =?UTF-8?q?change(hwmom-mes):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA=E5=B9=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=E8=AF=9D=E6=A1=86=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E5=80=BC=E9=BB=98=E8=AE=A4=E4=B8=BA"?= =?UTF-8?q?=E6=98=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为多个基础数据组件设置 初始化activeFlag 默认值为 '1'(添加对话框默认标识值为是) - 调整计量单位信息对话框组件的激活标识显示和输入方式 - 移除班组对话框不必要的表单验证规则 --- src/views/mes/baseClassTeamInfo/index.vue | 9 +++----- src/views/mes/baseEqualMaterialInfo/index.vue | 2 +- src/views/mes/baseMaterialInfo/index.vue | 6 ++--- src/views/mes/baseMaterialType/index.vue | 2 +- .../mes/baseMeasurementUnitInfo/index.vue | 22 ++++++++++++++----- src/views/mes/baseShiftInfo/index.vue | 6 ++--- src/views/mes/baseToolingInfo/index.vue | 2 +- 7 files changed, 29 insertions(+), 20 deletions(-) diff --git a/src/views/mes/baseClassTeamInfo/index.vue b/src/views/mes/baseClassTeamInfo/index.vue index 655c639..0ff022e 100644 --- a/src/views/mes/baseClassTeamInfo/index.vue +++ b/src/views/mes/baseClassTeamInfo/index.vue @@ -314,7 +314,7 @@ const initFormData: BaseClassTeamInfoForm = { processId: undefined, stationId: undefined, deviceId: undefined, - activeFlag: undefined, + activeFlag: '1', createDept: undefined, createBy: undefined, createTime: undefined, @@ -345,16 +345,13 @@ const data = reactive>({ } }, rules: { - classTeamId: [ - { required: true, message: "主键标识不能为空", trigger: "blur" } - ], teamCode: [ { required: true, message: "班组编号不能为空", trigger: "blur" } ], teamName: [ { required: true, message: "班组名称不能为空", trigger: "blur" } ], - teamHead: [ + /*teamHead: [ { required: true, message: "班组负责人不能为空", trigger: "blur" } ], shiftId: [ @@ -368,7 +365,7 @@ const data = reactive>({ ], deviceId: [ { required: true, message: "设备ID不能为空", trigger: "blur" } - ], + ],*/ activeFlag: [ { required: true, message: "激活标识不能为空", trigger: "change" } ], diff --git a/src/views/mes/baseEqualMaterialInfo/index.vue b/src/views/mes/baseEqualMaterialInfo/index.vue index ac76396..87aaac6 100644 --- a/src/views/mes/baseEqualMaterialInfo/index.vue +++ b/src/views/mes/baseEqualMaterialInfo/index.vue @@ -170,7 +170,7 @@ const initFormData: BaseEqualMaterialInfoForm = { equalMaterialInfoId: undefined, materialId: undefined, equalMaterialId: undefined, - activeFlag: undefined, + activeFlag: '1', remark: undefined, } const data = reactive>({ diff --git a/src/views/mes/baseMaterialInfo/index.vue b/src/views/mes/baseMaterialInfo/index.vue index 9c7a1fc..d0bd5c5 100644 --- a/src/views/mes/baseMaterialInfo/index.vue +++ b/src/views/mes/baseMaterialInfo/index.vue @@ -22,8 +22,8 @@ --> - - + + @@ -719,7 +719,7 @@ const initFormData: BaseMaterialInfoForm = { createOrgId: undefined, useOrgId: undefined, prodLineId: undefined, - activeFlag: undefined, + activeFlag: '1', deletedFlag: undefined, purchasePriceUnitId: undefined, approveDate: undefined, diff --git a/src/views/mes/baseMaterialType/index.vue b/src/views/mes/baseMaterialType/index.vue index 58172ba..8e5c5b0 100644 --- a/src/views/mes/baseMaterialType/index.vue +++ b/src/views/mes/baseMaterialType/index.vue @@ -226,7 +226,7 @@ const initFormData: BaseMaterialTypeForm = { materialCategories: undefined, materialSubclass: undefined, processId: undefined, - activeFlag: undefined, + activeFlag: '1', remark: undefined, } diff --git a/src/views/mes/baseMeasurementUnitInfo/index.vue b/src/views/mes/baseMeasurementUnitInfo/index.vue index a4a1004..e0a2d39 100644 --- a/src/views/mes/baseMeasurementUnitInfo/index.vue +++ b/src/views/mes/baseMeasurementUnitInfo/index.vue @@ -71,7 +71,11 @@ - + + + - + @@ -123,7 +127,8 @@ - + +