From f0a1598fa30dd81415ff9da21767cf7733060787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 24 Nov 2025 18:27:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E5=A4=8DcurrentTab?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=8F=8A=E4=BB=93=E5=BA=93ID?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=97=B6=E8=8E=B7=E5=8F=96=E6=9D=90=E6=96=99?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复currentTab默认值从空字符串改为undefined,避免潜在的类型问题 调整仓库ID变更时的逻辑,确保总是触发getMaterialCoil --- klp-ui/src/views/wms/coil/panels/do.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index 40af6725..0eebb444 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -360,7 +360,7 @@ export default { if (newVal.length > 0) { // this.materialQueryParams.warehouseId = newVal[0]?.value || '' // 设置currentTab为第一个tab的value - this.currentTab = newVal[0]?.value || '' + this.currentTab = newVal[0]?.value || undefined } }, immediate: true @@ -369,8 +369,8 @@ export default { handler(newVal) { if (newVal) { this.materialQueryParams.warehouseId = newVal - this.getMaterialCoil() } + this.getMaterialCoil() }, immediate: true }