From 314076388f664f8ce1a1d19c4c9717fe54634e05 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期六, 18 四月 2026 15:51:51 +0800
Subject: [PATCH] Merge branch 'dev' of http://115.159.85.185:8098/r/SuZhouGuanHong/ShanMeiXinNengYuan into dev

---
 Code/WMS/WIDESEA_WMSClient/src/views/Home.vue |   31 +++++++++++++++----------------
 1 files changed, 15 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..a14728a 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue
+++ b/Code/WMS/WIDESEA_WMSClient/src/views/Home.vue
@@ -104,6 +104,7 @@
     async loadOverview() {
       try {
         const res = await this.http.get("/api/Dashboard/Overview");
+        console.log("鎬昏鏁版嵁", res.Data);
         if (res.Status && res.Data) {
           this.overviewData = res.Data;
           this.updateTodayChart();
@@ -262,7 +263,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 +272,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