From faac65091404d0e68bc9aa428770540bf96afde7 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 20 Mar 2024 09:44:29 +0800 Subject: [PATCH] fix: bug --- src/pages/repairOrder/transfer.vue | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/pages/repairOrder/transfer.vue b/src/pages/repairOrder/transfer.vue index d31ffbf..505b847 100644 --- a/src/pages/repairOrder/transfer.vue +++ b/src/pages/repairOrder/transfer.vue @@ -196,10 +196,19 @@ // 重置 function reset() { if (form.value.id) { - form.value.receiverType = ""; - form.value.deviceNumber = ''; - form.value.deviceName = ''; - form.value.receiverUserId = ''; + form.value = { + receiverType: "", + deviceNumber: '', + deviceName: '', + receiverUserId: '', + status: 0, + statusTxt: '设备', + factoryAreaNumber: '', + factoryAreaName: '', + } + form.value.receiverType = deviceMoldType.value[0].value + form.value.receiverTypeTxt = deviceMoldType.value[0].label + selecUserList.value = [] } else { form.value = { id: '', @@ -208,9 +217,13 @@ deviceName: '', receiverUserId: '', status: 0, - statusTxt: '', - factoryAreaNumber: '' + statusTxt: '设备', + factoryAreaNumber: '', + factoryAreaName: '', } + form.value.receiverType = deviceMoldType.value[0].value + form.value.receiverTypeTxt = deviceMoldType.value[0].label + selecUserList.value = [] } } // 扫描设备条码