|
@@ -217,8 +217,9 @@
|
|
|
<div class="amount_list flex align_center flex-between">
|
|
|
<span class="amountName">折后金额</span>
|
|
|
<span class="amount" style="color: #f0ad4e"
|
|
|
- v-if="info.settleAmount">¥{{toThousands(info.settleAmount,2)}}</span>
|
|
|
- <span class="amount" style="color: #f0ad4e" v-else>¥0.00</span>
|
|
|
+ v-if="info.billStatus == 'UNSETTLE'">¥{{info.settleAmount?toThousands(info.settleAmount,2):'0.00'}}</span>
|
|
|
+ <span class="amount" style="color: #f0ad4e"
|
|
|
+ v-else>¥{{foldPrice}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="downLoadCon">
|
|
@@ -293,6 +294,17 @@
|
|
|
this.ajaxUrl = window.location.origin + '/qpls-md/'
|
|
|
this.loadData()
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ // 折后金额
|
|
|
+ foldPrice(){
|
|
|
+ let totalAmount = this.info.totalAmount?this.info.totalAmount:0
|
|
|
+ let discountPrice=this.info.discountAmount?this.info.discountAmount:0
|
|
|
+ let foldAmount = totalAmount - discountPrice
|
|
|
+ foldAmount=Number(foldAmount)>0 ? foldAmount : 0
|
|
|
+ const newFoldPrice = foldAmount.toFixed(2)
|
|
|
+ return newFoldPrice
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
loadData () {
|
|
|
const ajaxData = {
|