From f1c41818393a2678d69852f0d65a5ff6018613ee Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 22 五月 2026 13:09:24 +0800
Subject: [PATCH] fix(financial): 修复财务数据处理中的数值转换和异常处理问题

---
 src/views/index.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index e0e9cf3..e12ded2 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1307,9 +1307,12 @@
 
 const statisticsReceivable = async () => {
   const res = await statisticsReceivablePayable({ type: 1 });
+  const data = res?.data || {};
+  const payableMoney = Number(data.payableMoney ?? 0);
+  const receivableMoney = Number(data.receivableMoney ?? 0);
   barSeries.value[0].data = [
-    { value: res.data.payableMoney, itemStyle: { color: barColors2[0] } },
-    { value: res.data.receivableMoney, itemStyle: { color: barColors2[1] } },
+    { value: payableMoney, itemStyle: { color: barColors2[0] } },
+    { value: receivableMoney, itemStyle: { color: barColors2[1] } },
   ];
 };
 

--
Gitblit v1.9.3