|
@@ -42,8 +42,10 @@
|
|
|
<a-card size="small" :bordered="false" class="salesReturnEdit-cont">
|
|
|
<a-alert style="margin-bottom: 10px;" type="info">
|
|
|
<div slot="message" class="total-bar">
|
|
|
- <span>申请退货数量:{{ statisticsObj&&(statisticsObj.qty || statisticsObj.qty == 0 )? statisticsObj.qty : '--' }};</span>
|
|
|
- <span>退货金额:{{ statisticsObj&&statisticsObj.totalCost }}元;</span>
|
|
|
+ <div>
|
|
|
+ <span>申请退货数量:{{ statisticsObj&&(statisticsObj.qty || statisticsObj.qty == 0 )? statisticsObj.qty : '--' }};</span>
|
|
|
+ <span>退货金额:{{ statisticsObj&&statisticsObj.totalCost }}元;</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</a-alert>
|
|
|
<div class="table-page-search-wrapper" style="display:flex;align-items: center;justify-content: space-between;">
|
|
@@ -420,8 +422,12 @@ export default {
|
|
|
getStatisticsData () {
|
|
|
queryPageCount({ sparePartsReturnSn: this.sparePartsReturnSn }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
- res.data.totalCost = (res.data && (res.data.totalCost || res.data.totalCost == 0)) ? toFixedDecimal(res.data.totalCost, 2) : '--'
|
|
|
- this.statisticsObj = res.data
|
|
|
+ if (res.data) {
|
|
|
+ res.data.totalCost = (res.data && (res.data.totalCost || res.data.totalCost == 0)) ? toFixedDecimal(res.data.totalCost, 2) : '--'
|
|
|
+ this.statisticsObj = res.data
|
|
|
+ } else {
|
|
|
+ this.statisticsObj = null
|
|
|
+ }
|
|
|
} else {
|
|
|
this.statisticsObj = null
|
|
|
}
|