From 3511a8541657f23a20d823b2969c0b55e1d17492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Thu, 7 May 2026 11:35:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms=E6=8A=A5=E8=A1=A8):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BB=93=E5=BA=93=E9=80=89=E9=A1=B9=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E6=97=B6=E6=9C=AA=E6=9B=B4=E6=96=B0=E4=BB=93=E5=BA=93ID?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 取消watch中handleQuery的调用并添加immediate选项,确保仓库ID能正确同步 --- klp-ui/src/views/wms/report/template/out.vue | 21 ++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/klp-ui/src/views/wms/report/template/out.vue b/klp-ui/src/views/wms/report/template/out.vue index a90f18c0..ba029829 100644 --- a/klp-ui/src/views/wms/report/template/out.vue +++ b/klp-ui/src/views/wms/report/template/out.vue @@ -165,16 +165,17 @@ export default { outputColumns: [], } }, - // watch: { - // warehouseOptions: { - // handler(newVal, oldVal) { - // if (newVal !== oldVal) { - // this.warehouseIds = newVal.map(item => item.value) - // this.handleQuery() - // } - // }, - // } - // }, + watch: { + warehouseOptions: { + handler(newVal, oldVal) { + if (newVal !== oldVal) { + this.warehouseIds = newVal.map(item => item.value) + // this.handleQuery() + } + }, + immediate: true, + } + }, computed: { summary() { // 总钢卷数量、总重、均重