统计篮球订单收益

This commit is contained in:
2024-01-30 20:51:38 +08:00
parent 21de42a7b6
commit 8999ee41ce
2 changed files with 29 additions and 3 deletions

View File

@@ -14,6 +14,13 @@ export function orderAccount(enterId, payMoney) {
return http.post('/member/enter/veneu/account', { 'EnterId': enterId, 'payMoney': payMoney })
}
/**
* 汇总收益
*/
export function orderPageSum(params) {
return http.get('/member/enter/sum/money', params)
}
/**
* 删除篮球进场订单
*/

View File

@@ -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-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> -->
<div class="filter-item" style="float: right; margin-top: 20px;"><span>统计收益:{{orderSumMoney}}</span></div>
</div>
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="全部" name="1">
@@ -129,7 +130,7 @@
</template>
<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 Pagination from '@/components/Pagination'
import moment from 'moment'
@@ -149,6 +150,8 @@ export default {
orderPrice: undefined,
// 订单已退款金额
orderPayMoney: undefined,
// 汇总金额
orderSumMoney: 0,
params: {
search_eq_mobile: '',
orderSn: '',
@@ -179,6 +182,12 @@ export default {
}
},
created() {
orderPageSum(this.params).then(result => {
this.orderSumMoney = result.orderSumMoney
}).catch(err => {
console.log(err)
this.orderSumMoney = 0
})
},
methods: {
/**
@@ -192,7 +201,17 @@ export default {
this.params.starTime = ''
this.params.endTime = ''
}
this.refresh()
},
refresh() {
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
}
this.dialogFormByDay = false
orderAccount(this.orderId,this.form.miniMoney).then(result => {
this.$refs.pagination.handleSearch()
orderAccount(this.orderId, this.form.miniMoney).then(result => {
this.refresh()
})
},