This commit is contained in:
zc
2026-04-12 23:18:33 +08:00
parent 9927382054
commit fce1099b38
5 changed files with 487 additions and 5 deletions

View File

@@ -528,7 +528,7 @@ const workOrderResp = ref<WorkOrderResp>({
const inputQuantity = ref()
const calculateNumber = ref()
// todo
const ahDeviceWeight = ref('6')
const ahDeviceWeight = ref()
const calculatedWeight = ref('')
const weighingCount = ref(1)
@@ -759,9 +759,17 @@ const printLabel = async (labelData: any) => {
setTimeout(() => {
printWindow.focus()
printWindow.print()
printWindow.close()
}, 500)
}
// 监听打印完成事件
printWindow.onafterprint = () => {
printWindow.close()
Message.success('打印成功,正在初始化称重管理页面...')
// 重新加载页面以初始化称重管理
window.location.reload()
}
}
}
@@ -927,7 +935,7 @@ const handleBackToFirst = () => {
// 重置称重登记页面数据
inputQuantity.value = ''
// todo
ahDeviceWeight.value = '6'
ahDeviceWeight.value = ''
calculatedWeight.value = ''
weighingCount.value = 1
// 清空称重列表
@@ -1014,7 +1022,7 @@ const handleConfirm = async () => {
// 重置输入(让用户能继续输入)
inputQuantity.value = ''
// todo
ahDeviceWeight.value = '6'
ahDeviceWeight.value = ''
calculatedWeight.value = ''
weighingCount.value = weighingList.value.length + 1