From 0bcb34eef4fda05a0fad3c655e1d83ef3949e5b9 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Wed, 31 Dec 2025 16:12:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=93=E5=AD=98=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=98=BE=E7=A4=BA=E5=AE=9E=E6=97=B6=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E8=A1=A8=E5=8F=8A=E5=B7=AE=E5=BC=82=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改RealTimeInventory.vue默认显示库存差异并自动加载差异数据 - 调整plan/index.vue默认加载实时库存表而非设备状态表 - 重新排序页面按钮位置 --- src/views/plan/RealTimeInventory.vue | 6 +++++- src/views/plan/index.vue | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/plan/RealTimeInventory.vue b/src/views/plan/RealTimeInventory.vue index c8daa11..076d104 100644 --- a/src/views/plan/RealTimeInventory.vue +++ b/src/views/plan/RealTimeInventory.vue @@ -120,7 +120,7 @@ const currentWmsSpecification = ref('') const wmsTableRef = ref(null) // 显示控制 -const showDifference = ref(false) +const showDifference = ref(true) // 计算属性:动态列 const dynamicColumns = computed(() => { @@ -348,6 +348,10 @@ const handleCellDblClick = (row, column, cell, event) => { // 组件挂载时获取数据 onMounted(() => { fetchData(); + // 如果默认显示库存变化,则同时获取差值数据 + if (showDifference.value) { + fetchDifferenceData(); + } }); diff --git a/src/views/plan/index.vue b/src/views/plan/index.vue index 8fe17c9..bb636e2 100644 --- a/src/views/plan/index.vue +++ b/src/views/plan/index.vue @@ -3,6 +3,12 @@ + 实时库存表 设备运行状态 - 实时库存表 @@ -91,9 +91,9 @@ const equipmentData = ref([]) // 当前显示的组件 const currentComponent = shallowRef(EmptyContent) -// 页面加载时自动显示漆包机台运行状态表 +// 页面加载时自动显示实时库存表 onMounted(() => { - handleEnamellingMachineStatus() + handleRealTimeInventory() }) const data = reactive({