优化
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user