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({