From 3eb98be1722b51134830c08fb40e1c0a7ebf4d39 Mon Sep 17 00:00:00 2001 From: zc Date: Fri, 3 Apr 2026 16:06:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/weightManage/index.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/views/weightManage/index.vue b/src/views/weightManage/index.vue index 3edf8cc..a55637c 100644 --- a/src/views/weightManage/index.vue +++ b/src/views/weightManage/index.vue @@ -476,7 +476,7 @@ const workOrderResp = ref({ // 称重登记页面数据 const inputQuantity = ref() // todo -const ahDeviceWeight = ref('100') +const ahDeviceWeight = ref('') const calculatedWeight = ref('') const weighingCount = ref(1) @@ -644,11 +644,8 @@ const handleNext = async () => { // 调用后端接口获取比对结果 // todo const res = await vmSend(materialCode); - // compareMatchResult.value = res.data || ''; - compareMatchResult.value = 'success' - - if (compareMatchResult.value === 'success') { - // 比对成功,按钮变为下一步 + if (res.data && res.data == materialCode) { + compareMatchResult.value === 'success'; Message.success('比对成功') } else { // 比对失败,提示错误 @@ -711,7 +708,7 @@ const handleBackToFirst = () => { // 重置称重登记页面数据 inputQuantity.value = '' // todo - ahDeviceWeight.value = '100' + ahDeviceWeight.value = '' calculatedWeight.value = '' weighingCount.value = 1 // 清空称重列表 @@ -798,7 +795,7 @@ const handleConfirm = async () => { // 重置输入(让用户能继续输入) inputQuantity.value = '' // todo - ahDeviceWeight.value = '100' + ahDeviceWeight.value = '' calculatedWeight.value = '' weighingCount.value = weighingList.value.length + 1