diff --git a/src/views/contract/components/paymentRegistration.vue b/src/views/contract/components/paymentRegistration.vue index 12e1b8e..3419698 100644 --- a/src/views/contract/components/paymentRegistration.vue +++ b/src/views/contract/components/paymentRegistration.vue @@ -446,7 +446,7 @@ export default { //支付占比 percentPay() { let total = this.totalMoney(); - return ((total / this.contract.money) * 100).toFixed(2) || 0; + return Number(this.contract.money) ? ((total / Number(this.contract.money)) * 100).toFixed(2) : 0; }, //获取合同信息 diff --git a/src/views/contract/contractList.vue b/src/views/contract/contractList.vue index 68e5e49..6c0d00f 100644 --- a/src/views/contract/contractList.vue +++ b/src/views/contract/contractList.vue @@ -303,7 +303,7 @@ >