From 2067faa6a9a6bee8f5450f956d5edd16c09e98a6 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 30 三月 2026 11:59:54 +0800
Subject: [PATCH] fix(Home): 修正图表类型,本月趋势改为柱状+折线组合,库龄分布改为柱状图

---
 Code/WMS/WIDESEA_WMSClient/src/views/Home.vue |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue b/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue
index bb42d01..cb29f02 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue
@@ -262,7 +262,7 @@
           }
         ],
         series: [
-          { name: "鍏ュ簱", type: "line", data: this.monthlyData.map(m => m.Inbound), itemStyle: { color: "#5470c6" } },
+          { name: "鍏ュ簱", type: "bar", data: this.monthlyData.map(m => m.Inbound), itemStyle: { color: "#5470c6" } },
           { name: "鍑哄簱", type: "line", data: this.monthlyData.map(m => m.Outbound), itemStyle: { color: "#91cc75" } }
         ]
       };
@@ -271,23 +271,21 @@
 
     updateStockAgeChart() {
       const option = {
-        tooltip: { trigger: "item" },
-        legend: { data: this.stockAgeData.map(s => s.Range), textStyle: { color: "#fff" } },
+        tooltip: { trigger: "axis" },
+        xAxis: {
+          type: "category",
+          data: this.stockAgeData.map(s => s.Range),
+          axisLabel: { color: "#fff" }
+        },
+        yAxis: {
+          type: "value",
+          axisLabel: { color: "#fff" }
+        },
         series: [
           {
-            type: "pie",
-            radius: "60%",
-            data: this.stockAgeData.map((s, i) => ({
-              name: s.Range,
-              value: s.Count
-            })),
-            emphasis: {
-              itemStyle: {
-                shadowBlur: 10,
-                shadowOffsetX: 0,
-                shadowColor: "rgba(0, 0, 0, 0.5)"
-              }
-            }
+            type: "bar",
+            data: this.stockAgeData.map(s => s.Count),
+            itemStyle: { color: "#5470c6" }
           }
         ]
       };

--
Gitblit v1.9.3