Commit 6df338bc authored by Facius's avatar Facius

feat: 退款或欠款为零的时候显示0

parent 5aa89ee9
Pipeline #6483 canceled with stages
<template> <template>
<view class="collapse-body"> <view class="collapse-body">
<view class="collapse-body-title">{{detail.classCProject}}</view> <view class="collapse-body-title">{{detail.classCProject}}</view>
<view class="collapse-body-desc">{{detail.pubRemark || detail.chargeDesc}}</view> <view class="collapse-body-desc">{{detail.pubRemark || detail.chargeDesc || ''}}</view>
<view class="collapse-body-bottom"> <view class="collapse-body-bottom">
<text class="collapse-body-bottom-price"> <text class="collapse-body-bottom-price">
<text>¥</text> <text>¥</text>
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<image :src="detail.extend&&detail.extend.customerSign" mode="widthFix" class="sign-view" <image :src="detail.extend&&detail.extend.customerSign" mode="widthFix" class="sign-view"
v-if="detail.extend&&detail.extend.customerSign"></image> v-if="detail.extend&&detail.extend.customerSign"></image>
</block> </block>
<text v-else>{{ detail[item.value] || '' }}</text> <text v-else>{{ detail[item.value] || ''}}</text>
</view> </view>
</view> </view>
</block> </block>
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
receivableAmount, receivableAmount,
actualAmount actualAmount
} = this.detail; } = this.detail;
return parseFloat(receivableAmount) - parseFloat(actualAmount); return (parseFloat(receivableAmount) - parseFloat(actualAmount)) || '0';
}, },
expenseCount() { expenseCount() {
if (this.detail.expenseDetails && this.detail.expenseDetails.length) { if (this.detail.expenseDetails && this.detail.expenseDetails.length) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment