區間計費度數定在5月

This commit is contained in:
huliang 2025-06-03 17:26:53 +08:00
parent 2ad24dab08
commit 0616a0d783

View File

@ -58,7 +58,10 @@
</el-col>
<el-col :span="16">
<el-card style="border-radius: 8px">
<h3 class="">區間計費度數 {{ billingDateRange }}</h3>
<h3 class="">
區間計費度數 2025/05/01 - 2025/05/16
<!-- {{ billingDateRange }} -->
</h3>
<EnergyBar :chartData="areaBillingData" />
</el-card>
</el-col>
@ -115,7 +118,7 @@ const loading = computed(() => {
});
const statisticData = computed(() => {
const currentMonth = dayjs().format("YYYY-MM");
const currentMonth = "2025-05";
let intervalFlowCost = 0;
let intervalEleCost = 0;
@ -298,10 +301,12 @@ const areaBillingData = computed(() => {
return { categories: [], series: [] };
}
const today = dayjs();
const currentMonth = today.format("YYYY-MM");
const startDate = dayjs(`${currentMonth}-01`); // Get the first day of the current month
const endDate = today;
// const today = dayjs();
// const currentMonth = today.format("YYYY-MM");
// const startDate = dayjs(`${currentMonth}-01`); // Get the first day of the current month
// const endDate = today;
const startDate = dayjs("2025-05-01");
const endDate = dayjs("2025-05-31");
// Filter daily results within the specified date range
const areaResults = storeElecTotal.elecFlowCostSummary.dailyResults.filter(