统计篮球订单收益
This commit is contained in:
@@ -14,6 +14,13 @@ export function orderAccount(enterId, payMoney) {
|
|||||||
return http.post('/member/enter/veneu/account', { 'EnterId': enterId, 'payMoney': payMoney })
|
return http.post('/member/enter/veneu/account', { 'EnterId': enterId, 'payMoney': payMoney })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 汇总收益
|
||||||
|
*/
|
||||||
|
export function orderPageSum(params) {
|
||||||
|
return http.get('/member/enter/sum/money', params)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除篮球进场订单
|
* 删除篮球进场订单
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<!-- <el-input @keyup.enter.native="handleSearch" style="width: 200px;" class="filter-item" clearable placeholder="订单号" v-model="params.orderSn"></el-input> -->
|
<!-- <el-input @keyup.enter.native="handleSearch" style="width: 200px;" class="filter-item" clearable placeholder="订单号" v-model="params.orderSn"></el-input> -->
|
||||||
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleSearch">搜索</el-button>
|
<el-button class="filter-item" type="primary" v-waves icon="search" @click="handleSearch">搜索</el-button>
|
||||||
<!-- <el-button class="filter-item pull-right" type="success" icon="edit" @click="handleCreate">添加</el-button> -->
|
<!-- <el-button class="filter-item pull-right" type="success" icon="edit" @click="handleCreate">添加</el-button> -->
|
||||||
|
<div class="filter-item" style="float: right; margin-top: 20px;"><span>统计收益:{{orderSumMoney}}元</span></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
|
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="全部" name="1">
|
<el-tab-pane label="全部" name="1">
|
||||||
@@ -129,7 +130,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { remove, orderAccount } from '@/api//member/enter/veneu/log'
|
import { remove, orderAccount, orderPageSum } from '@/api//member/enter/veneu/log'
|
||||||
import waves from '@/directive/waves.js'// 水波纹指令
|
import waves from '@/directive/waves.js'// 水波纹指令
|
||||||
import Pagination from '@/components/Pagination'
|
import Pagination from '@/components/Pagination'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@@ -149,6 +150,8 @@ export default {
|
|||||||
orderPrice: undefined,
|
orderPrice: undefined,
|
||||||
// 订单已退款金额
|
// 订单已退款金额
|
||||||
orderPayMoney: undefined,
|
orderPayMoney: undefined,
|
||||||
|
// 汇总金额
|
||||||
|
orderSumMoney: 0,
|
||||||
params: {
|
params: {
|
||||||
search_eq_mobile: '',
|
search_eq_mobile: '',
|
||||||
orderSn: '',
|
orderSn: '',
|
||||||
@@ -179,6 +182,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
orderPageSum(this.params).then(result => {
|
||||||
|
this.orderSumMoney = result.orderSumMoney
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
this.orderSumMoney = 0
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
@@ -192,7 +201,17 @@ export default {
|
|||||||
this.params.starTime = ''
|
this.params.starTime = ''
|
||||||
this.params.endTime = ''
|
this.params.endTime = ''
|
||||||
}
|
}
|
||||||
|
this.refresh()
|
||||||
|
},
|
||||||
|
|
||||||
|
refresh() {
|
||||||
this.$refs.pagination.handleSearch()
|
this.$refs.pagination.handleSearch()
|
||||||
|
orderPageSum(this.params).then(result => {
|
||||||
|
this.orderSumMoney = result.orderSumMoney
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
|
this.orderSumMoney = 0
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -233,8 +252,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.dialogFormByDay = false
|
this.dialogFormByDay = false
|
||||||
orderAccount(this.orderId,this.form.miniMoney).then(result => {
|
orderAccount(this.orderId, this.form.miniMoney).then(result => {
|
||||||
this.$refs.pagination.handleSearch()
|
this.refresh()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user