Browse Source

使用决策合格数量和不合格数量总和不等于数量

master_hella_20240701
zhang_li 7 months ago
parent
commit
02d7dc62b5
  1. 4
      src/views/qms/inspection/inspectionRecord/addForm.vue

4
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
}
}

Loading…
Cancel
Save