fix: 数据统计,销售统计搜索框样式调整
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
<el-radio-button value="custom">自定义</el-radio-button>
|
||||
</el-radio-group>
|
||||
<el-date-picker
|
||||
class="u-m-l-10"
|
||||
v-model="query.createdAt"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
@@ -101,7 +102,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="销售额" prop="total">
|
||||
<template v-slot="scope">
|
||||
¥{{ scope.row.total | totalfilter(scope.row.refund) }}
|
||||
¥{{ scope.row.total }}|{{ totalfilter(scope.row.refund) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="微信小程序支付" prop="wxLite">
|
||||
@@ -191,10 +192,6 @@ export default {
|
||||
timeFilter(time) {
|
||||
return dayjs(time).format("YYYY-MM-DD HH:mm:ss");
|
||||
},
|
||||
totalfilter(item, d) {
|
||||
let num = item + d;
|
||||
return num.toFixed(2);
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.resetQuery = { ...this.query };
|
||||
@@ -202,6 +199,10 @@ export default {
|
||||
this.getCategory();
|
||||
},
|
||||
methods: {
|
||||
totalfilter(item, d) {
|
||||
let num = item + d;
|
||||
return num.toFixed(2);
|
||||
},
|
||||
// 获取商品分类
|
||||
async getCategory() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user