|
@@ -9,18 +9,18 @@
|
|
|
>
|
|
|
<div>
|
|
|
<descriptions :column="2">
|
|
|
- <descriptions-item label="购买人数:">{{
|
|
|
- statInfo.buyNum
|
|
|
- }}人</descriptions-item>
|
|
|
- <descriptions-item label="现金总额:">{{
|
|
|
- statInfo.actualAmount | moneyFormat
|
|
|
- }}元</descriptions-item>
|
|
|
- <descriptions-item label="余额总额:">{{
|
|
|
- statInfo.balance | moneyFormat
|
|
|
- }}元</descriptions-item>
|
|
|
- <descriptions-item label="销售总额:">{{
|
|
|
- statInfo.totalAmount | moneyFormat
|
|
|
- }}元</descriptions-item>
|
|
|
+ <descriptions-item label="购买人数:"
|
|
|
+ >{{ statInfo.buyNum }}人</descriptions-item
|
|
|
+ >
|
|
|
+ <descriptions-item label="现金总额:"
|
|
|
+ >{{ statInfo.actualAmount | moneyFormat }}元</descriptions-item
|
|
|
+ >
|
|
|
+ <descriptions-item label="余额总额:"
|
|
|
+ >{{ statInfo.balance | moneyFormat }}元</descriptions-item
|
|
|
+ >
|
|
|
+ <descriptions-item label="销售总额:"
|
|
|
+ >{{ statInfo.totalAmount | moneyFormat }}元</descriptions-item
|
|
|
+ >
|
|
|
</descriptions>
|
|
|
<el-alert
|
|
|
title="直播商品"
|
|
@@ -142,8 +142,8 @@ export default {
|
|
|
statInfo: {
|
|
|
totalAmount: 0,
|
|
|
buyNum: 0,
|
|
|
- balance:0,
|
|
|
- actualPrice:0
|
|
|
+ balance: 0,
|
|
|
+ actualPrice: 0,
|
|
|
},
|
|
|
};
|
|
|
},
|
|
@@ -162,6 +162,13 @@ export default {
|
|
|
this.rules.total = res.data.total;
|
|
|
if (res.data.statInfo) {
|
|
|
this.statInfo = { ...res.data.statInfo };
|
|
|
+ } else {
|
|
|
+ this.statInfo = {
|
|
|
+ totalAmount: 0,
|
|
|
+ buyNum: 0,
|
|
|
+ balance: 0,
|
|
|
+ actualPrice: 0,
|
|
|
+ };
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.log(e);
|