This commit is contained in:
zc
2026-03-06 16:29:31 +08:00
parent b4ebebe2a8
commit 006130b4b7
2 changed files with 9 additions and 4 deletions

View File

@@ -497,6 +497,10 @@ const handleConfirm = () => {
Message.error('请输入数量')
return
}
if (!ahDeviceWeight.value || ahDeviceWeight.value.trim() === '') {
Message.error('电子秤称重结果为空!')
return
}
// 生成新的列表数据
const newItem = {
@@ -512,7 +516,7 @@ const handleConfirm = () => {
weighingList.value.push(newItem)
// 重置输入
inputQuantity.value = ''
ahDeviceWeight.value = ''
ahDeviceWeight.value = '10'
calculatedWeight.value = ''
// 称重次数累加
weighingCount.value = weighingList.value.length + 1