update 统计订单数据

This commit is contained in:
2023-08-11 17:02:07 +08:00
parent bb132a013b
commit 7d4a3540e6
2 changed files with 28 additions and 18 deletions

View File

@@ -140,11 +140,9 @@
v-hasPermi="['order:order:export']"
>导出
</el-button>
<!-- <div>
{{ dateDescription }}期间总用电量{{ sumUsedElectricity }}总消费金额{{
sumOrderAmount
}}总结算金额{{ sumSettleAmount }}
</div>-->
<div>
{{ dateDescription }}期间总用电量{{ sumUsedElectricity }}总消费金额{{ sumOrderAmount }}总结算金额{{ sumSettleAmount }}
</div>
<el-popover placement="top-start" width="400" trigger="click">
<el-checkbox
:indeterminate="isIndeterminate"
@@ -468,12 +466,10 @@ export default {
console.log("加载订单列表页数据...");
// 设置默认日期
await this.defaultDate();
// 查询订单列表
this.getList();
// 查询站点列表
this.getStationList();
// 获取订单总金额
// this.getOrderTotalData();
// 查询数据
this.handleQuery();
},
/** 查询订单列表 */
getList() {
@@ -487,13 +483,13 @@ export default {
},
// 获取订单总金额数据
getOrderTotalData() {
// totalData(this.queryParams).then((response) => {
// console.log("getOrderTotalData", response);
// this.dateDescription = response.data.dateDescription;
// this.sumOrderAmount = response.data.sumOrderAmount;
// this.sumUsedElectricity = response.data.sumUsedElectricity;
// this.sumSettleAmount = response.data.sumSettleAmount;
// });
totalData(this.queryParams).then((response) => {
console.log("getOrderTotalData", response);
this.dateDescription = response.data.dateDescription;
this.sumOrderAmount = response.data.sumOrderAmount;
this.sumUsedElectricity = response.data.sumUsedElectricity;
this.sumSettleAmount = response.data.sumSettleAmount;
});
},
// 取消按钮
cancel() {
@@ -534,7 +530,7 @@ export default {
// 获取订单列表
this.getList();
// 获取订单总金额
// this.getOrderTotalData();
this.getOrderTotalData();
},
/** 重置按钮操作 */
resetQuery() {