|
@ -545,7 +545,7 @@ const submitForm = async () => { |
|
|
number += parseFloat(cur.sampleAmount) |
|
|
number += parseFloat(cur.sampleAmount) |
|
|
}) |
|
|
}) |
|
|
if(number != data.value.sampleTotalAmount){ |
|
|
if(number != data.value.sampleTotalAmount){ |
|
|
message.error(`采样数量之和不等于采样总数量`) |
|
|
message.error(`采样数量之和必须等于采样总数量`) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -630,7 +630,7 @@ const submitForm = async () => { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(isEmptyNumberList){ |
|
|
if(isEmptyNumberList){ |
|
|
message.error('合格数量和不合格数量之和不等于检验数') |
|
|
message.error('合格数量和不合格数量之和必须等于检验次数') |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (formType.value == 'create') { |
|
|
if (formType.value == 'create') { |
|
|