|
|
@@ -264,6 +264,15 @@
|
|
|
<div class="tui-title">实际金额</div>
|
|
|
<div class="detail-price_box" style="font-size: 28upx;">¥{{ detailInfo.realPrice ? parseFloat(detailInfo.realPrice) : 0}}</div>
|
|
|
</tui-list-cell>
|
|
|
+ <!-- 封账后退款不改 realPrice;最终金额 = 实际金额 - 封账后退款 -->
|
|
|
+ <tui-list-cell v-if="Number(detailInfo.nextDayTkPrice) > 0" class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">封账后退款</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 28upx;">-¥{{ parseFloat(detailInfo.nextDayTkPrice) }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
+ <tui-list-cell v-if="Number(detailInfo.nextDayTkPrice) > 0" class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">最终金额</div>
|
|
|
+ <div class="detail-price_box" style="font-size: 28upx;">¥{{ finalPriceAfterSealRefund }}</div>
|
|
|
+ </tui-list-cell>
|
|
|
</div>
|
|
|
</view>
|
|
|
|
|
|
@@ -411,6 +420,15 @@ export default {
|
|
|
const day = Number(this.detailInfo.tkPrice) || 0
|
|
|
const next = Number(this.detailInfo.nextDayTkPrice) || 0
|
|
|
return parseFloat((day + next).toFixed(2))
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 最终金额:实际金额 realPrice - 封账后退款 nextDayTkPrice
|
|
|
+ */
|
|
|
+ finalPriceAfterSealRefund() {
|
|
|
+ const real = Number(this.detailInfo.realPrice) || 0
|
|
|
+ const seal = Number(this.detailInfo.nextDayTkPrice) || 0
|
|
|
+ const final = real - seal
|
|
|
+ return parseFloat((final > 0 ? final : 0).toFixed(2))
|
|
|
}
|
|
|
},
|
|
|
watch: {
|