|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|