|
@@ -81,7 +81,7 @@
|
|
,已退金额
|
|
,已退金额
|
|
<strong>{{ totalData&&(totalData.refundedAmount || totalData.refundedAmount==0) ? toThousands(totalData.refundedAmount) : '--' }}</strong>
|
|
<strong>{{ totalData&&(totalData.refundedAmount || totalData.refundedAmount==0) ? toThousands(totalData.refundedAmount) : '--' }}</strong>
|
|
<a-tooltip placement="bottom" title="实收金额=已收金额-退款中金额-已退金额">,<span style="color:#ED1c24;">实收金额</span><a-icon type="question-circle" style="margin:0 10px 0 5px;color:#ED1c24;"/></a-tooltip>
|
|
<a-tooltip placement="bottom" title="实收金额=已收金额-退款中金额-已退金额">,<span style="color:#ED1c24;">实收金额</span><a-icon type="question-circle" style="margin:0 10px 0 5px;color:#ED1c24;"/></a-tooltip>
|
|
- <strong style="color:#ED1c24;" v-if="receivedPriceFlag">{{ '¥'+receivedPrice }}</strong>
|
|
|
|
|
|
+ <strong style="color:#ED1c24;" v-if="receivedPriceFlag">{{ receivedPrice?toThousands(receivedPrice):'--' }}</strong>
|
|
<span style="color:#ED1c24;" v-else>--</span>
|
|
<span style="color:#ED1c24;" v-else>--</span>
|
|
</div>
|
|
</div>
|
|
</a-alert>
|
|
</a-alert>
|
|
@@ -266,7 +266,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
tabPaneData: [], // tab列表
|
|
tabPaneData: [], // tab列表
|
|
- rowSelectionInfo: null// 已选数据
|
|
|
|
|
|
+ rowSelectionInfo: null, // 已选数据
|
|
|
|
+ receivedPrice: null// 实收金额
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -284,14 +285,14 @@ export default {
|
|
receivedPriceFlag () {
|
|
receivedPriceFlag () {
|
|
const isShow = this.totalData && (this.totalData.settledAmount || this.totalData.settledAmount == 0) && (this.totalData.refundingAmount || this.totalData.refundingAmount == 0) && (this.totalData.refundedAmount || this.totalData.refundedAmount == 0)
|
|
const isShow = this.totalData && (this.totalData.settledAmount || this.totalData.settledAmount == 0) && (this.totalData.refundingAmount || this.totalData.refundingAmount == 0) && (this.totalData.refundedAmount || this.totalData.refundedAmount == 0)
|
|
return isShow
|
|
return isShow
|
|
- },
|
|
|
|
- // 实收金额
|
|
|
|
- receivedPrice () {
|
|
|
|
- const numInfo = (this.totalData.settledAmount * 100 - this.totalData.refundingAmount * 100 - this.totalData.refundedAmount * 100) / 100
|
|
|
|
- return numInfo.toFixed(2)
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 计算实收金额
|
|
|
|
+ setReceivedPrice () {
|
|
|
|
+ const numInfo = (this.totalData.settledAmount * 100 - this.totalData.refundingAmount * 100 - this.totalData.refundedAmount * 100) / 100
|
|
|
|
+ this.receivedPrice = numInfo
|
|
|
|
+ },
|
|
...mapActions(['GetSettleAccountState']),
|
|
...mapActions(['GetSettleAccountState']),
|
|
// 关联单详情弹框关闭
|
|
// 关联单详情弹框关闭
|
|
handleDetailClose () {
|
|
handleDetailClose () {
|
|
@@ -336,6 +337,7 @@ export default {
|
|
this.totalData = Object.assign(this.totalData, res.data)
|
|
this.totalData = Object.assign(this.totalData, res.data)
|
|
const tab = this.tabPaneData.find(item => item.bizType == this.queryParam.bizType)
|
|
const tab = this.tabPaneData.find(item => item.bizType == this.queryParam.bizType)
|
|
tab.countNum = this.totalData.count || 0
|
|
tab.countNum = this.totalData.count || 0
|
|
|
|
+ this.setReceivedPrice()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -490,6 +492,7 @@ export default {
|
|
'$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
|
|
'$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
|
|
this.setTableH()
|
|
this.setTableH()
|
|
}
|
|
}
|
|
|
|
+
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|