优化
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ const columns = ref<TableInstanceColumns[]>(processColumns([
|
||||
{ title: '物料编码', dataIndex: 'encoding' },
|
||||
{ title: '单位克重', dataIndex: 'unitWeight' ,slotName: 'unitWeight'},
|
||||
{ title: '总重量', dataIndex: 'totalWeight' ,slotName: 'totalWeight'},
|
||||
{ title: '称重次数', dataIndex: 'totalCount' },
|
||||
{ title: '总数量', dataIndex: 'totalCount' },
|
||||
{ title: '创建时间', dataIndex: 'createTime', width: 180 },
|
||||
{
|
||||
title: '操作',
|
||||
|
||||
Reference in New Issue
Block a user