diff --git a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue index 956c79747..f6d67ae35 100644 --- a/src/views/qms/basicDataManage/inspectionScheme/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionScheme/addForm.vue @@ -436,7 +436,7 @@ { +const changeFeatureType = (e,item) => { + item.inspectionCharacteristicsBaseVO.quantifyIsCapping = false + item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit = false + item.inspectionCharacteristicsBaseVO.quantifyIsTarget = false + item.inspectionCharacteristicsBaseVO.quantifyCapping = '' + item.inspectionCharacteristicsBaseVO.quantifyLowlimit = '' + item.inspectionCharacteristicsBaseVO.quantifyTarget= '' + item.inspectionCharacteristicsBaseVO.quantifyQuantifyCode= '' + item.inspectionCharacteristicsBaseVO.quantifyQuantifyName= '' console.log(e) - // if (e) { - // rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = true - // } else { - // rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = false - // } + if (e) { + rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = true + } else { + rules.value['inspectionCharacteristicsBaseVO.quantifyQuantifyCode'][0].required = false + } } const searchTableRef = ref() const opensearchTable = ( diff --git a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue index 9efcb93b5..a57e0d20b 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue @@ -257,7 +257,7 @@