From 3ac1a5c3f370aadc52233c79c09b37fa71628140 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 25 Sep 2025 08:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=B8=8D=E5=90=88=E6=A0=BC?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/recv/qualifiedStorage.vue | 12 ++++++++---- src/views/modules/recv/recv.vue | 7 +++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/modules/recv/qualifiedStorage.vue b/src/views/modules/recv/qualifiedStorage.vue index 5af7604..3fd0be6 100644 --- a/src/views/modules/recv/qualifiedStorage.vue +++ b/src/views/modules/recv/qualifiedStorage.vue @@ -119,7 +119,7 @@ - + @@ -259,10 +259,14 @@ export default { this.resetInboundData(); // 默认入库数量为合格数量 this.inboundData.inboundQty = item.qualifiedQty; - this.inboundData.targetLocationId = item.locationId; // 默认使用原库位 this.inboundData.inboundDate = this.getCurrentDate(); this.inboundData.operatorName = this.$store.state.user.userDisplay; // 这里应该从用户信息中获取 this.processFlag = 2; + this.$nextTick(() => { + if (this.$refs.scanLocationRef) { + this.$refs.scanLocationRef.focus(); + } + }); }, // 确认入库 @@ -371,8 +375,8 @@ export default { mounted() { this.$nextTick(() => { - if (this.$refs.scanCodeRef) { - this.$refs.scanCodeRef.focus(); + if (this.$refs.scanLocationRef) { + this.$refs.scanLocationRef.focus(); } }); // 默认加载检验合格列表 diff --git a/src/views/modules/recv/recv.vue b/src/views/modules/recv/recv.vue index f7f2055..5dbde95 100644 --- a/src/views/modules/recv/recv.vue +++ b/src/views/modules/recv/recv.vue @@ -80,10 +80,8 @@ - - + +