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