Browse Source

调试

master_hella_20240701
zhaoyiran 7 months ago
parent
commit
6c7ec8870c
  1. 8
      src/views/qms/samplingProcess/index.vue

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

Loading…
Cancel
Save