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; }; } }