单个会员消费

This commit is contained in:
“wanyongkang”
2021-04-23 10:25:46 +08:00
parent 8210b975fb
commit 73f503c86a

View File

@@ -25,34 +25,34 @@
</el-table-column> </el-table-column>
<el-table-column prop="CreateTime" label="注册时间"></el-table-column> <el-table-column prop="CreateTime" label="注册时间"></el-table-column>
<el-table-column prop="last_pay_time" label="最后消费时间"></el-table-column> <el-table-column prop="last_pay_time" label="最后消费时间"></el-table-column>
<el-table-column label="总消费" sortable="all_amount"> <el-table-column label="总消费">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_all_amount(scope.row,1)">{{scope.row.all_amount}}</el-link> <el-link @click="click_all_amount(scope.row,1)">{{scope.row.all_amount}}</el-link>
</template>value </template>value
</el-table-column> </el-table-column>
<el-table-column label="上月消费" sortable="PrevMonthAmount"> <el-table-column label="上月消费">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_all_amount(scope.row,2)">{{scope.row.PrevMonthAmount}}</el-link> <el-link @click="click_all_amount(scope.row,2)">{{scope.row.PrevMonthAmount}}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="本月消费" sortable="MonthAmount"> <el-table-column label="本月消费">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_all_amount(scope.row,3)">{{scope.row.MonthAmount}}</el-link> <el-link @click="click_all_amount(scope.row,3)">{{scope.row.MonthAmount}}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="AddAmount" label="对比增长金额"></el-table-column> <el-table-column prop="AddAmount" label="对比增长金额"></el-table-column>
<el-table-column prop="persent" label="对比增长百分比"></el-table-column> <el-table-column prop="persent" label="对比增长百分比"></el-table-column>
<el-table-column label="账户总数" sortable="account_count"> <el-table-column label="账户总数">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_account(scope.row,1)">{{scope.row.account_count}}</el-link> <el-link @click="click_account(scope.row,1)">{{scope.row.account_count}}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="使用中个数" sortable="account_used"> <el-table-column label="使用中个数">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_account(scope.row,3)">{{scope.row.account_used}}</el-link> <el-link @click="click_account(scope.row,3)">{{scope.row.account_used}}</el-link>
</template> </template>
</el-table-column>value </el-table-column>value
<el-table-column label="过期个数" sortable="account_expire"> <el-table-column label="过期个数" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="click_account(scope.row,2)">{{scope.row.account_expire}}</el-link> <el-link @click="click_account(scope.row,2)">{{scope.row.account_expire}}</el-link>
</template> </template>
@@ -209,13 +209,13 @@ export default {
}, },
methods: { methods: {
// eslint-disable-next-line standard/object-curly-even-spacing // eslint-disable-next-line standard/object-curly-even-spacing
sort ({column, prop, order }) { // sort ({column, prop, order }) {
this.searchModel.PageIndex = 1 // this.searchModel.PageIndex = 1
this.searchModel.sortLable = column.sortable // this.searchModel.sortLable = column.sortable
// eslint-disable-next-line eqeqeq // // eslint-disable-next-line eqeqeq
this.searchModel.sortOrder = order == 'ascending' ? 1 : 0 // this.searchModel.sortOrder = order == 'ascending' ? 1 : 0
this.get() // this.get()
}, // },
search () { search () {
if (this.last_month && this.last_month.length === 2) { if (this.last_month && this.last_month.length === 2) {
this.searchModel.last_month.s_time = this.last_month[0] this.searchModel.last_month.s_time = this.last_month[0]