From e2df00a1b6dfe072f585a41a5146085b55ec90ad Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Thu, 31 Jul 2025 10:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99=E8=B4=9F=E8=B4=A3=E6=9C=BA?= =?UTF-8?q?=E5=85=B7=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/back/backCodeAdd.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/back/backCodeAdd.vue b/src/pages/back/backCodeAdd.vue index 843e715..52f74e6 100644 --- a/src/pages/back/backCodeAdd.vue +++ b/src/pages/back/backCodeAdd.vue @@ -201,13 +201,13 @@ const codeSearch = async () => { const res = await getMachineByCodeApi(param) console.log(res) if (res.code == 200) { - + if(res.data){ maInfo.value = res.data console.log('22222222', maInfo.value) - - // else { - // uni.showToast({ title: '未查询到该设备编号信息!', icon: 'none' }) - // } + }else{ + uni.showToast({ title: '未查询到该设备编号或该编码非您负责的设备!', icon: 'none' }) + } + } else { uni.showToast({ title: res.data.msg, icon: 'none' }) }