From 73d112ddc9bdfeb7eaaf3b7308cfb4dbeb470c89 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 八月 2026 17:28:10 +0800
Subject: [PATCH] 天津_意博凯信 1.备件管理-新增独立备件出库功能入口,支持直接完成备件领用出库操作。 2.设备保养-支持按日期分组折叠展示,分组条目可展开查看明细;单条明细行末尾增加【保养完成】操作按钮,可单独办结单条保养任务;折叠汇总状态下,新增【一键保养完成】批量操作按钮,快速办结当前分组全部保养项。 3.设备巡检-按日期分组折叠展示,分组支持展开查看明细;每条巡检明细后增设【巡检完成】按钮,支持单独办结单条巡检记录;分组折叠未展开状态下,提供【一键巡检完成】批量操作,统一办结该分组下所有巡检任务。 4.增值税对比-优化数据展示逻辑,列表展示各订单增值税明细;页面右侧新增柱状可视化图表,直观对比进销项增值税数据。 5.管理驾驶舱-指标修改:将顶部「销售产品数」调整为「销售订单数」;时间筛选:页面左上角新增日期范围下拉筛选控件,所有统计指标标注当前筛选时段;

---
 src/views/reportAnalysis/financialAnalysis/components/left-top.vue |   51 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 40 insertions(+), 11 deletions(-)

diff --git a/src/views/reportAnalysis/financialAnalysis/components/left-top.vue b/src/views/reportAnalysis/financialAnalysis/components/left-top.vue
index 1c9f085..c735dba 100644
--- a/src/views/reportAnalysis/financialAnalysis/components/left-top.vue
+++ b/src/views/reportAnalysis/financialAnalysis/components/left-top.vue
@@ -20,7 +20,7 @@
 
 <script setup>
 import { ref, onMounted } from 'vue'
-import { productSalesAnalysis } from '@/api/viewIndex.js'
+import { getAmountHalfYear } from '@/api/viewIndex.js'
 import PanelHeader from './PanelHeader.vue'
 import Echarts from '@/components/Echarts/echarts.vue'
 
@@ -30,13 +30,16 @@
 }
 
 const grid = { left: '3%', right: '4%', bottom: '3%', top: '10%', containLabel: true }
-const barLegend = { show: true, textStyle: { color: '#B8C8E0' }, data: ['閲戦'] }
+const barLegend = {
+  show: true,
+  textStyle: { color: '#B8C8E0' },
+  data: ['寮�绁ㄩ噾棰�', '鍥炴閲戦'],
+}
 const barSeries1 = ref([
   {
-    name: '閲戦',
+    name: '寮�绁ㄩ噾棰�',
     type: 'bar',
-    barGap: 0,
-    barWidth: 30,
+    barWidth: 20,
     emphasis: { focus: 'series' },
     itemStyle: {
       color: {
@@ -46,8 +49,29 @@
         x2: 0,
         y2: 1,
         colorStops: [
-          { offset: 1, color: '#00A4ED' },
-          { offset: 0, color: '#4EE4FF' },
+          { offset: 1, color: 'rgba(0, 164, 237, 0)' },
+          { offset: 0, color: 'rgba(78, 228, 255, 1)' },
+        ],
+      },
+    },
+    data: [],
+  },
+  {
+    name: '鍥炴閲戦',
+    type: 'bar',
+    barGap: '40%',
+    barWidth: 20,
+    emphasis: { focus: 'series' },
+    itemStyle: {
+      color: {
+        type: 'linear',
+        x: 0,
+        y: 0,
+        x2: 0,
+        y2: 1,
+        colorStops: [
+          { offset: 1, color: 'rgba(83, 126, 245, 0.19)' },
+          { offset: 0, color: 'rgba(144, 97, 248, 1)' },
         ],
       },
     },
@@ -71,16 +95,21 @@
 const yAxis1 = [{ type: 'value', axisLabel: { color: '#B8C8E0' } }]
 
 const fetchData = () => {
-  productSalesAnalysis()
+  getAmountHalfYear()
     .then((res) => {
       if (res.code === 200 && Array.isArray(res.data)) {
         const items = res.data
-      xAxis1.value[0].data = items.map((item) => item.name)
-      barSeries1.value[0].data = items.map((item) => parseFloat(item.value) || 0)
+        xAxis1.value[0].data = items.map((item) => item.month)
+        barSeries1.value[0].data = items.map(
+          (item) => parseFloat(item.invoiceAmount) || 0
+        )
+        barSeries1.value[1].data = items.map(
+          (item) => parseFloat(item.receiptAmount) || 0
+        )
       }
     })
     .catch((err) => {
-      console.error('鑾峰彇浜у搧閿�鍞噾棰濆垎鏋愬け璐�:', err)
+      console.error('鑾峰彇杩戝崐骞村洖娆句笌寮�绁ㄦ暟鎹け璐�:', err)
     })
 }
 

--
Gitblit v1.9.3