This commit is contained in:
zc
2026-03-09 16:06:00 +08:00
parent d8273464c5
commit a3cb2263fd
2 changed files with 26 additions and 1 deletions

View File

@@ -554,6 +554,8 @@ const workOrderResp = ref<WorkOrderResp>({
totalCount: '',
createUserString: '',
updateUserString: '',
totalCalculatedWeight: '',
workOrderInfos: [],
matchResult: 'failed'
})
@@ -771,7 +773,30 @@ const handlePrevious = () => {
// 返回第一步
const handleBackToFirst = () => {
// 重置所有数据
activeStep.value = 1
// 重置表单数据
formData.inputMaterialCode = ''
formData.id = ''
formData.encoding = ''
formData.materialName = ''
formData.materialSpec = ''
formData.unitWeight = 0
formData.photoUrl = ''
formData.matchResult = ''
// 重置称重登记页面数据
inputQuantity.value = ''
ahDeviceWeight.value = '10'
calculatedWeight.value = ''
weighingCount.value = 1
// 清空称重列表
weighingList.value = []
// 重置工作订单响应数据
workOrderResp.value = {}
// 离开称重页面时关闭WebSocket连接
closeWebSocket()
}