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