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' }) }