diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue
index 2a8525f..c8becb5 100644
--- a/src/views/contract/components/paymentRegistration.vue
+++ b/src/views/contract/components/paymentRegistration.vue
@@ -41,7 +41,7 @@
支付占比
-
{{ percentPay() }}%
+
{{ percentPay() }}
已付笔数
@@ -54,7 +54,7 @@
:close-on-close="false"
ref="paymentListPoptip"
>
-
点击查看列表
+
同一支出记录下的其他付款记录
@@ -871,7 +871,11 @@ export default {
// 支付占比
percentPay() {
const total = this.totalMoney()
- return ((total / this.contract.money) * 100).toFixed(2) || 0
+ if (!total || !this.contract || !this.contract.money || isNaN(total) || isNaN(this.contract.money)) {
+ return '0%'
+ }
+ const percent = (total / this.contract.money) * 100
+ return isNaN(percent) ? '0%' : percent.toFixed(2) + '%'
},
// 获取合同信息