From 9fda94af79aa883d49504ebeb85dde2ac2b915c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Mon, 26 Oct 2026 09:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2=E5=A4=9Asi?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/inventory/label-query.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/modules/inventory/label-query.vue b/src/views/modules/inventory/label-query.vue index c08fe87..342d35f 100644 --- a/src/views/modules/inventory/label-query.vue +++ b/src/views/modules/inventory/label-query.vue @@ -298,6 +298,12 @@ export default { this.scanRequestSeq += 1; const requestSeq = this.scanRequestSeq; + if (!this.site) { + this.loading = false; + this.$message.error('缺少工厂,无法查询'); + return; + } + // 传登录大工厂。后端按 site_sub 取出全部小工厂,再用小工厂范围查标签。- rqrq queryLabelInfo({ site: this.site, labelCode: this.labelCode.trim()