From 8c1ba2bf07fa186e905d7b4a2354ba68ddc67609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Tue, 5 May 2026 15:19:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms/report):=20=E7=A7=BB=E9=99=A4wareh?= =?UTF-8?q?ouseOptions=E7=9A=84watch=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 立即执行watch可能导致不必要的初始查询,改为手动触发查询更合理 --- klp-ui/src/views/wms/report/template/out.vue | 21 ++++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/klp-ui/src/views/wms/report/template/out.vue b/klp-ui/src/views/wms/report/template/out.vue index b38e61bd..a90f18c0 100644 --- a/klp-ui/src/views/wms/report/template/out.vue +++ b/klp-ui/src/views/wms/report/template/out.vue @@ -165,17 +165,16 @@ export default { outputColumns: [], } }, - watch: { - warehouseOptions: { - handler(newVal, oldVal) { - if (newVal !== oldVal) { - this.warehouseIds = newVal.map(item => item.value) - this.handleQuery() - } - }, - immediate: true, - } - }, + // watch: { + // warehouseOptions: { + // handler(newVal, oldVal) { + // if (newVal !== oldVal) { + // this.warehouseIds = newVal.map(item => item.value) + // this.handleQuery() + // } + // }, + // } + // }, computed: { summary() { // 总钢卷数量、总重、均重