From bfaa2d8f6cba0a65cf2132ec577a73c3c61b954f Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 27 Nov 2024 09:02:07 +0800 Subject: [PATCH] =?UTF-8?q?HL-6443QMS=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=EF=BC=8C=E7=89=A9=E6=96=99=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E9=80=89=E6=8B=A9=E5=8A=A8=E6=80=81=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E8=A7=84=E5=88=99=E5=90=8E=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E3=80=82=E6=8F=90=E7=A4=BA=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=BA=EF=BC=9A=E8=AF=B7=E5=9C=A8=E7=89=A9=E6=96=99=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E8=AE=A1=E6=95=B0=E5=99=A8=E7=AE=A1=E7=90=86=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E8=AE=A4=E5=AF=B9=E5=BA=94=E7=89=A9=E6=96=99?= =?UTF-8?q?=E7=9A=84=E6=A3=80=E9=AA=8C=E9=98=B6=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionScheme/index.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/views/qms/inspectionScheme/index.vue b/src/views/qms/inspectionScheme/index.vue index 723f7763e..a51eed27d 100644 --- a/src/views/qms/inspectionScheme/index.vue +++ b/src/views/qms/inspectionScheme/index.vue @@ -197,10 +197,16 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() +const updateRow = ref() const openForm = (type: string, row?: any) => { // if(type=='add'){//新增的时候让动态模版置灰 // InspectionTemplateMain.allSchemas.formSchema.find(item => item.field == 'programmeTemplateCode').componentProps.disabled = true//动态规则来源于模版新增置灰之后选择模版之后赋值之后才能自由选择 // } + if('update' == type){ + updateRow.value = row + }else{ + updateRow.value = null + } basicFormRef.value.open(type, row) } @@ -240,6 +246,12 @@ const submitForm = async (formType, data) => { await InspectionSchemeApi.InspectionSchemeCreat(data1) message.success(t('common.createSuccess')) } else { + if('update' == formType&&updateRow.value&&updateRow.value.dynamicUpdateCode!=data1.dynamicUpdateCode){ + await ElMessageBox.alert( + '请在物料检验计数器管理中,确认对应物料的检验阶段', + '重要提示' + ) + } await InspectionSchemeApi.InspectionSchemeUpdate(data1) message.success(t('common.updateSuccess')) }