From 05986c52289ef95d7bea4780762fe18515db4af8 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 12 Dec 2024 17:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/distribution/artery/VehicleNodeImgs.vue | 7 +++---- .../distribution/inventory/delivery/OrderInTransit.vue | 7 +++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/distribution/artery/VehicleNodeImgs.vue b/src/views/distribution/artery/VehicleNodeImgs.vue index 55c6c1a7..f6c6bbd6 100644 --- a/src/views/distribution/artery/VehicleNodeImgs.vue +++ b/src/views/distribution/artery/VehicleNodeImgs.vue @@ -495,10 +495,9 @@ const initImgList = async () => { _obj.nodeId = carsLoadLineEntity.nodeId; _obj.nowWarehouseId = nowWarehouseId; - if (details.myWarehouseId === _obj.nodeId) { - details.nowWarehoseIndex = i; - details.activeIndex = i; - } + if (details.myWarehouseId === _obj.nodeId) details.activeIndex = i; + + if (nowWarehouseId === _obj.nodeId) details.nowWarehoseIndex = i; } else { ElMessage.warning('存在异常节点信息'); return; diff --git a/src/views/distribution/inventory/delivery/OrderInTransit.vue b/src/views/distribution/inventory/delivery/OrderInTransit.vue index 26dbc7ba..e72f5a73 100644 --- a/src/views/distribution/inventory/delivery/OrderInTransit.vue +++ b/src/views/distribution/inventory/delivery/OrderInTransit.vue @@ -318,8 +318,11 @@ const initData = async () => { onLoad(false), ]); - await nextTick(); - handleTranslationDataSeclect(details.data, details.columnList); + const timer = setTimeout(() => { + handleTranslationDataSeclect(details.data, details.columnList); + clearTimeout(timer); + }, 100); + console.log('details.columnList :>> ', details.columnList); } catch (error) { console.log('error :>> ', error);