diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue index d41d922db..f8cf4ff51 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue @@ -739,17 +739,17 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any editableTabsValue.value = index + 1 item.name = index + 1 // 编辑判断上限下限目标值是否必填 - if (item.quantifyIsCapping) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false } - if (item.quantifyIsLowlimit) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false } - if (item.quantifyIsTarget) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false @@ -1025,17 +1025,17 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => { editableTabsValue.value = index + 1 item.name = index + 1 // 编辑判断上限下限目标值是否必填 - if (item.quantifyIsCapping) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false } - if (item.quantifyIsLowlimit) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false } - if (item.quantifyIsTarget) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false diff --git a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue index d73e00ebb..686f41670 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue @@ -547,17 +547,17 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any editableTabsValue.value = index + 1 item.name = index + 1 // 编辑判断上限下限目标值是否必填 - if (item.quantifyIsCapping) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsCapping) { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = false } - if (item.quantifyIsLowlimit) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsLowlimit) { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false } - if (item.quantifyIsTarget) { + if (item.inspectionCharacteristicsBaseVO.quantifyIsTarget) { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = true } else { rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false