update 计算总量

This commit is contained in:
2024-01-04 16:34:34 +08:00
parent d9b7418145
commit 77c50cc1fe

View File

@@ -77,8 +77,12 @@
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
v-hasPermi="['order:order:export']">导出 v-hasPermi="['order:order:export']">导出
</el-button> </el-button>
<div v-for="totalDate in totalDateList"> <div >
<ul>
<li v-for="totalDate in totalDateList" >
{{ totalDate.dateDescription }}期间总用电量{{totalDate.sumUsedElectricity}}总消费金额{{ totalDate.sumOrderAmount }}总结算金额{{totalDate.sumSettleAmount}} {{ totalDate.dateDescription }}期间总用电量{{totalDate.sumUsedElectricity}}总消费金额{{ totalDate.sumOrderAmount }}总结算金额{{totalDate.sumSettleAmount}}
</li>
</ul>
</div> </div>
<el-popover placement="top-start" width="400" trigger="click"> <el-popover placement="top-start" width="400" trigger="click">
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选 <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选
@@ -379,10 +383,12 @@ export default {
getOrderTotalData() { getOrderTotalData() {
totalData(this.queryParams).then((response) => { totalData(this.queryParams).then((response) => {
console.log("getOrderTotalData", response); console.log("getOrderTotalData", response);
this.dateDescription = response.data.dateDescription; // this.dateDescription = response.data.dateDescription;
this.sumOrderAmount = response.data.sumOrderAmount; // this.sumOrderAmount = response.data.sumOrderAmount;
this.sumUsedElectricity = response.data.sumUsedElectricity; // this.sumUsedElectricity = response.data.sumUsedElectricity;
this.sumSettleAmount = response.data.sumSettleAmount; // this.sumSettleAmount = response.data.sumSettleAmount;
this.totalDateList = response.data;
}); });
}, },
// 取消按钮 // 取消按钮