From 6c7375701b519377752df5da89e8c3910c1661d8 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 27 一月 2026 17:40:23 +0800
Subject: [PATCH] Merge branch 'dev_New' of http://114.132.189.42:9002/r/product-inventory-management into dev_New

---
 src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue |   41 ++++++++++++++++++++---------------------
 1 files changed, 20 insertions(+), 21 deletions(-)

diff --git a/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue b/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
index 40ac9da..1cbdaa1 100644
--- a/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
+++ b/src/views/reportAnalysis/dataDashboard/components/basic/center-top.vue
@@ -95,7 +95,7 @@
             <div class="todo-division">寰呭姙浜嬬敱锛歿{ item.approveReason }}</div>
               <div style="display: flex;justify-content: space-between;align-items: center;"
               >
-                <div class="todo-title">鐢宠绫诲瀷锛歿{ item.approveId }}</div>
+                <div class="todo-title">鐢宠绫诲瀷锛歿{ item.approveTypeName }}</div>
                 <div class="todo-division">鐢宠閮ㄩ棬锛歿{ item.approveDeptName }}</div>
                 <div class="todo-time">{{ item.approveTime }}</div>
               </div>
@@ -111,10 +111,7 @@
 
 <script setup>
 import { ref, onMounted, onBeforeUnmount, nextTick } from 'vue'
-import { homeTodos } from '@/api/viewIndex.js'
-import { staffOnJobListPage } from '@/api/personnelManagement/employeeRecord.js'
-import { listCustomer } from '@/api/basicData/customerFile.js'
-import { listSupplier } from '@/api/basicData/supplierManageFile.js'
+import { homeTodos, summaryStatistics } from '@/api/viewIndex.js'
 import { getLedgerPage } from '@/api/equipmentManagement/ledger.js'
 import { getRepairPage } from '@/api/equipmentManagement/repair.js'
 import { getUpkeepPage } from '@/api/equipmentManagement/upkeep.js'
@@ -124,10 +121,10 @@
 const totalStaff = ref(0)
 const totalCustomers = ref(0)
 const totalSuppliers = ref(0)
-// 鍚屾瘮锛堝崰浣嶅�硷紝鍙帴鍏ョ湡瀹炴帴鍙o級
-const staffYoY = ref(-0.52) // 绀轰緥锛�-0.52%
-const customersYoY = ref(0.82) // 绀轰緥锛�0.82%
-const suppliersYoY = ref(0.1) // 绀轰緥锛�0.10%
+// 鍚屾瘮
+const staffYoY = ref(0)
+const customersYoY = ref(0)
+const suppliersYoY = ref(0)
 const equipmentNum = ref(0)
 const equipmentRepair = ref(0)
 const equipmentMaintain = ref(0)
@@ -146,18 +143,15 @@
 
 // 鑾峰彇鍛樺伐銆佸鎴枫�佷緵搴斿晢鏁伴噺
 const getNum = () => {
-  const params = {
-    pageNum: -1,
-    pageSize: -1,
-  }
-  staffOnJobListPage({ ...params, staffState: 1 }).then((res) => {
-    totalStaff.value = res.data.total
-  })
-  listCustomer(params).then((res) => {
-    totalCustomers.value = res.total
-  })
-  listSupplier(params).then((res) => {
-    totalSuppliers.value = res.data.total
+  summaryStatistics().then((res) => {
+    totalStaff.value = res.data.totalStaff
+    staffYoY.value = res.data.staffGrowthRate
+    totalCustomers.value = res.data.totalCustomer
+    customersYoY.value = res.data.customerGrowthRate
+    totalSuppliers.value = res.data.totalSupplier
+    suppliersYoY.value = res.data.supplierGrowthRate
+  }).catch(err => {
+    console.error('鑾峰彇鍩虹缁熻鏁版嵁澶辫触:', err)
   })
 }
 
@@ -348,6 +342,11 @@
   color: #d0e7ff;
 }
 
+.card-compare > span:first-child {
+  font-size: 13px;
+  opacity: 0.8;
+}
+
 .compare-value {
   font-weight: 600;
 }

--
Gitblit v1.9.3