From 557c2b3c50027c2eb6fb9f7e562fc2c7b2b38203 Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 11:37:17 +0800
Subject: [PATCH] 修复: 生产领料后的退料应该是选择领料的记录,不是选择库存的记录(同时库存数据需要根据领料退料变动,比如库存100,领用80,然后领用80中退料30,库存应由原来的20变成50)
---
src/views/dashboard/analytics/index.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/views/dashboard/analytics/index.vue b/src/views/dashboard/analytics/index.vue
index 6085aef..13794de 100644
--- a/src/views/dashboard/analytics/index.vue
+++ b/src/views/dashboard/analytics/index.vue
@@ -9,6 +9,7 @@
import { getHomeSummary } from '#/api/mes/home';
import { defaultSummary } from './data';
+import AiInsights from './modules/ai-insights.vue';
import AlertPanel from './modules/alert-panel.vue';
import BizCards from './modules/biz-cards.vue';
import KpiCards from './modules/kpi-cards.vue';
@@ -76,6 +77,12 @@
<!-- ERP/WMS/BPM 缁忚惀 KPI -->
<BizCards @navigate="handleNavigate" />
+ <!-- AI 鏅鸿兘鍒嗘瀽 -->
+ <AiInsights
+ :active-order-count="summary.workOrderActiveCount"
+ @navigate="handleNavigate"
+ />
+
<!-- 鐢熶骇瓒嬪娍 + 棰勮闈㈡澘 -->
<Row :gutter="16" class="mb-4">
<Col :lg="14" :md="24" :sm="24" :xl="14" :xs="24" class="mb-4">
@@ -88,7 +95,6 @@
</Col>
<Col :lg="10" :md="24" :sm="24" :xl="10" :xs="24" class="mb-4">
<AlertPanel
- :andon-active-count="summary.andonActiveCount"
:repair-active-count="summary.repairActiveCount"
@navigate="handleNavigate"
/>
--
Gitblit v1.9.3