From e96c9d352bfbb17846ebe95a195585af118dad61 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 19 Dec 2025 15:40:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/seeContract.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/contract/seeContract.vue b/src/views/contract/seeContract.vue index 4a07bfe..4a6daf3 100644 --- a/src/views/contract/seeContract.vue +++ b/src/views/contract/seeContract.vue @@ -821,7 +821,12 @@ export default { label: '支付占比', width: 140, customFn: (row) => { - const per = ((((row.fund_log_total) / row.money) || 0) * 100)?.toFixed(2) || 0 + const fundLogTotal = Number(row.fund_log_total) || 0 + const money = Number(row.money) || 0 + let per = 0 + if (money > 0) { + per = ((fundLogTotal / money) * 100).toFixed(2) + } return (
110 ? 'red' : 'green'