diff --git a/src/app/content/hemat-app/cost-management/cost-management.component.ts b/src/app/content/hemat-app/cost-management/cost-management.component.ts index 9c32a27..251e6c8 100644 --- a/src/app/content/hemat-app/cost-management/cost-management.component.ts +++ b/src/app/content/hemat-app/cost-management/cost-management.component.ts @@ -92,7 +92,9 @@ export class CostManagementComponent implements OnInit { .subscribe((response) => { this.data = response.results.data; this.filteredRows = this.data; - this.kwhTerm = response.results.kwh; + let kwhData = parseFloat(response.results.kwh) + this.kwhTerm = kwhData.toFixed(1); + this.costTerm = response.results.cost; this.data_cost = this.filteredRows.map((item) => ({ @@ -100,7 +102,7 @@ export class CostManagementComponent implements OnInit { roomName: item.room_name, categoryName: item.category_name, estimationCost: item.estimation_cost, - totalUse: item.total_use, + totalUse: item.total_use.toFixed(1), endDate: this.convertToUTC7(item.end_date), // endDate: item.end_date, statusId: item.status_id, diff --git a/src/app/content/hemat-app/monitoring/detail/detail.component.html b/src/app/content/hemat-app/monitoring/detail/detail.component.html index 5a600bd..fa5d110 100644 --- a/src/app/content/hemat-app/monitoring/detail/detail.component.html +++ b/src/app/content/hemat-app/monitoring/detail/detail.component.html @@ -13,7 +13,7 @@