From db09e248daf72ad0ffe0f55ebf204e7d8595ce74 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 11 二月 2026 16:54:07 +0800
Subject: [PATCH] 进销存升级 1.选择台账时,若台账未开票和未来票金额为0时,开票登记和来票登记按钮置灰 2.文档管理分页展示有误 3.销售报价分页展示有误

---
 src/views/reportAnalysis/financialAnalysis/components/center-bottom.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/views/reportAnalysis/financialAnalysis/components/center-bottom.vue b/src/views/reportAnalysis/financialAnalysis/components/center-bottom.vue
index 1d15a39..20a612d 100644
--- a/src/views/reportAnalysis/financialAnalysis/components/center-bottom.vue
+++ b/src/views/reportAnalysis/financialAnalysis/components/center-bottom.vue
@@ -22,6 +22,7 @@
 import { ref, onMounted } from 'vue'
 import Echarts from '@/components/Echarts/echarts.vue'
 import PanelHeader from './PanelHeader.vue'
+import { profitTrendAnalysis } from '@/api/viewIndex.js'
 
 const chartStyle = { width: '100%', height: '150%' }
 const grid = { left: '3%', right: '4%', bottom: '3%', top: '4%', containLabel: true }
@@ -70,10 +71,22 @@
 
 const yAxis1 = [{ type: 'value', axisLabel: { color: '#B8C8E0' } }]
 
+const fetchData = () => {
+  profitTrendAnalysis()
+    .then((res) => {
+      if (res.code === 200 && Array.isArray(res.data)) {
+        const list = res.data
+        xAxis1.value[0].data = list.map((d) => d.name)
+        barSeries1.value[0].data = list.map((d) => parseFloat(d.value) || 0)
+      }
+    })
+    .catch((err) => {
+      console.error('鑾峰彇鍒╂鼎瓒嬪娍鍒嗘瀽澶辫触:', err)
+    })
+}
+
 onMounted(() => {
-  // 鍏堢敤鏈湴鍋囨暟鎹紙鍚庣画濡傛湁鎺ュ彛鍙浛鎹級
-  xAxis1.value[0].data = ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�']
-  barSeries1.value[0].data = [12000, 18000, 9000, 16000, 14000, 20000]
+  fetchData()
 })
 </script>
 
@@ -88,7 +101,7 @@
   border: 1px solid #1a58b0;
   padding: 18px;
   width: 100%;
-  height: 428px;
+  height: 432px;
 }
 </style>
 

--
Gitblit v1.9.3