From ad1f7877e64de92e4efbf45b5132d9907567e7e0 Mon Sep 17 00:00:00 2001 From: huangjinysf Date: Thu, 25 Dec 2025 14:31:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=9E=E6=97=B6=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E8=A1=A8=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=9F=A5=E7=9C=8BWMS=E7=B1=BB=E5=9E=8B1=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=92=8C=E6=BB=9A=E5=8A=A8=E6=9D=A1=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/api.js | 3 +- src/views/plan/RealTimeInventory.vue | 257 +++++++++++++++++++ src/views/plan/index.vue | 14 + src/views/qc/index.vue | 2 +- src/views/warehouse/WmsImportTable/index.vue | 12 +- 5 files changed, 280 insertions(+), 8 deletions(-) create mode 100644 src/views/plan/RealTimeInventory.vue diff --git a/src/config/api.js b/src/config/api.js index 374d7a4..92d9cc9 100644 --- a/src/config/api.js +++ b/src/config/api.js @@ -10,6 +10,7 @@ export const API_CONFIG = { PARETO_ANALYSIS: '/api/qc/pareto', WORKBENCH_BADNESS: '/api/qc/badness/workbench', EQUIPMENT_STATUS: '/api/plan/equipment/status/', - REPAIR_SUMMARY: '/api/eq-repair/enamelling-repair-summary' + REPAIR_SUMMARY: '/api/eq-repair/enamelling-repair-summary', + WMS_TYPE_1_RECORDS: '/api/wms/type/1/records' } } \ No newline at end of file diff --git a/src/views/plan/RealTimeInventory.vue b/src/views/plan/RealTimeInventory.vue new file mode 100644 index 0000000..92c7824 --- /dev/null +++ b/src/views/plan/RealTimeInventory.vue @@ -0,0 +1,257 @@ + + + + + \ No newline at end of file diff --git a/src/views/plan/index.vue b/src/views/plan/index.vue index e502a2e..7e7062f 100644 --- a/src/views/plan/index.vue +++ b/src/views/plan/index.vue @@ -9,6 +9,12 @@ @click="handleEquipmentStatus" v-hasPermi="['warehouse:WmsImportResult:query']" >设备运行状态 + 实时库存表 @@ -53,6 +59,7 @@ import { getDateRangeByTimeRange } from "@/utils/dateFormat" import ParetoAnalysis from './ParetoAnalysis.vue' import ItemAnalysis from './ItemAnalysis.vue' import EquipmentStatus from './EquipmentStatus.vue' +import RealTimeInventory from './RealTimeInventory.vue' import EmptyContent from './EmptyContent.vue' const showSearch = ref(true) @@ -156,6 +163,13 @@ function handleEquipmentStatus() { }); } +// 实时库存表按钮点击事件 +function handleRealTimeInventory() { + message.value = '正在获取实时库存数据...'; + // 直接切换到实时库存组件,组件内部会自行获取数据 + currentComponent.value = RealTimeInventory; +} +