diff --git a/src/views/qms/inspection/inspectionRecord/addForm.vue b/src/views/qms/inspection/inspectionRecord/addForm.vue index a426b4e5c..3edc0775a 100644 --- a/src/views/qms/inspection/inspectionRecord/addForm.vue +++ b/src/views/qms/inspection/inspectionRecord/addForm.vue @@ -250,10 +250,10 @@ const submitForm = async () => { data.value.useDecision = data1.useDecision if(data1.useDecision == 2 || data1.useDecision == 6){ if(data.value.packageList.length>0){ - let isBol = data.value.packageList.filter(cur=>parseFloat(cur.qualifiedAmount)+parseFloat(cur.noQualifiedAmount)>parseFloat(cur.amount)) + let isBol = data.value.packageList.filter(cur=>parseFloat(cur.qualifiedAmount)+parseFloat(cur.noQualifiedAmount)!=parseFloat(cur.amount)) console.log(isBol) if(isBol&&isBol.length>0){ - message.error(`合格数量和不合格数量总和不可以大于数量`) + message.error(`合格数量和不合格数量总和不等于数量`) return } }