From 1c06a22fd79e05fbeaf01c0c2f27aef1b1f3febd Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 05 一月 2026 10:37:17 +0800
Subject: [PATCH] 双奇点 1.首页环状图应收款金额展示错误

---
 src/views/index.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 748fb14..8292b85 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -287,7 +287,7 @@
 	formatter: function (params) {
 		// 鍔ㄦ�佺敓鎴愭彁绀轰俊鎭紝鍩轰簬鏁版嵁椤圭殑 name 灞炴��
 		const description = params.name === '鏈湀鍥炴閲戦' ? '鏈湀鍥炴閲戦' : '搴旀敹娆鹃噾棰�';
-		return `${description} ${formatNumber(params.value)}鍏� ${params.percent}%`;
+		return `${description} ${formattedNumber(params.value)}鍏� ${params.percent}%`;
 	},
 	position: 'right'
 })
@@ -365,6 +365,13 @@
 		businessInfo.value = {...res.data}
 	})
 }
+const formattedNumber = (row, column, cellValue) => {
+	// 濡傛灉鍙紶浜嗕竴涓弬鏁帮紝鐩存帴鏍煎紡鍖栬鍙傛暟
+	if (column === undefined && cellValue === undefined) {
+		return parseFloat(row).toFixed(2)
+	}
+	return parseFloat(cellValue).toFixed(2)
+};
 // 鍚堝悓閲戦
 const analysisCustomer = () => {
 	analysisCustomerContractAmounts().then((res) => {

--
Gitblit v1.9.3