From 6c7ec8870ca1c96ab822f71d9bd7966cb6563e1f Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Fri, 12 Apr 2024 17:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/samplingProcess/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/qms/samplingProcess/index.vue b/src/views/qms/samplingProcess/index.vue index 7961bab91..77b485750 100644 --- a/src/views/qms/samplingProcess/index.vue +++ b/src/views/qms/samplingProcess/index.vue @@ -164,6 +164,8 @@ const openForm = async (type: string, row?: any) => { item.componentProps.disabled = true } }) + SamplingProcessRules.sampleSize[0].required = false; + SamplingProcessRules.sampleProgCode[0].required = false; }else if(row.sampleType == "2"){ SamplingProcess.allSchemas.formSchema.forEach(item=>{ if(item.field == "sampleSize"){ @@ -175,6 +177,8 @@ const openForm = async (type: string, row?: any) => { item.componentProps.disabled = true } }) + SamplingProcessRules.sampleSize[0].required = true; + SamplingProcessRules.sampleProgCode[0].required = false; }else if(row.sampleType == "3"){ SamplingProcess.allSchemas.formSchema.forEach(item=>{ if(item.field == "sampleSize"){ @@ -186,6 +190,8 @@ const openForm = async (type: string, row?: any) => { item.componentProps.disabled = true } }) + SamplingProcessRules.sampleSize[0].required = true; + SamplingProcessRules.sampleProgCode[0].required = false; }else if(row.sampleType == "4"){ SamplingProcess.allSchemas.formSchema.forEach(item=>{ if(item.field == "sampleSize"){ @@ -196,6 +202,8 @@ const openForm = async (type: string, row?: any) => { item.componentProps.disabled = false } }) + SamplingProcessRules.sampleSize[0].required = false; + SamplingProcessRules.sampleProgCode[0].required = true; } } })