Browse Source

检验模板之和精度问题

master_hella_20240701
zhang_li 7 months ago
parent
commit
712575e6cb
  1. 1
      src/views/qms/inspection/inspectionJob/addForm.vue

1
src/views/qms/inspection/inspectionJob/addForm.vue

@ -533,6 +533,7 @@ const submitForm = async () => {
data.value.packageList.forEach(cur=>{
number += parseFloat(cur.sampleAmount)
})
number = number.toFixed('2')
if(number != data.value.sampleTotalAmount){
message.error(`采样数量之和必须等于采样总数量`)
return

Loading…
Cancel
Save