From 1b52659752417c0dbafad8f9d34f6a597178c68d Mon Sep 17 00:00:00 2001 From: jheng <2067776502@qq.com> Date: Thu, 22 Jan 2026 20:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=8C=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/wms/inventoryConfirm.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pages/work/wms/inventoryConfirm.vue b/pages/work/wms/inventoryConfirm.vue index 7de670d..8b93c4a 100644 --- a/pages/work/wms/inventoryConfirm.vue +++ b/pages/work/wms/inventoryConfirm.vue @@ -9,7 +9,8 @@ - + @@ -160,7 +161,7 @@ }, //查询获取的单据信息 billInfo: { - nowQty: 0, //库存数量 + nowQty: "", //库存数量 checkPltInfos: [] //盘点托盘明细表 }, //table 相关 @@ -338,6 +339,15 @@ inventoryConfirm(this.formData).then(response => { console.log("response", response) this.$modal.msgSuccess("盘点确认成功") + this.formData.palletCode = ""; + this.billInfo.checkPltInfos = []; + // 核心:提交成功后聚焦到托盘编号输入框 + this.$nextTick(() => { + // 方式1:兼容uni-easyinput的聚焦方法(推荐) + if (this.$refs.palletCodeInput) { + this.$refs.palletCodeInput.focus(); + } + }); }) }) } @@ -374,6 +384,7 @@ console.log("billInfo", billInfo) if (billInfo) { this.billInfo = billInfo.data; + this.billInfo.checkPltInfos[0].actQty = null; }; } }