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