From 5e49e223eeb7dbdf72e8251ec925f1bb97915b16 Mon Sep 17 00:00:00 2001 From: Vladimir Voronin Date: Wed, 30 Oct 2024 12:49:10 +0300 Subject: [PATCH] chet novoe --- src/components/budgets/BudgetView.vue | 148 +++++++++++++++----------- src/services/budgetsService.ts | 6 +- 2 files changed, 91 insertions(+), 63 deletions(-) diff --git a/src/components/budgets/BudgetView.vue b/src/components/budgets/BudgetView.vue index f12311f..228abbc 100644 --- a/src/components/budgets/BudgetView.vue +++ b/src/components/budgets/BudgetView.vue @@ -17,7 +17,7 @@
-

Budget for {{ budget.name }}

+

Бюджет {{ budget.name }}

@@ -31,20 +31,24 @@ class="bg-white p-4 shadow-lg rounded-lg flex flex-col gap-4 items-start ">

Аналитика

- - + + + - +
-

Поступление в первый период

-
+

в первый период

+
+{{ formatAmount(incomesByPeriod[0]) }} ₽
-

Траты в первый период

-
+

в первый период

+
-{{ formatAmount(expensesByPeriod[0]) }} ₽
-

Поступления во второй период

-
+

во второй период

+
+{{ formatAmount(incomesByPeriod[1]) }} ₽
-

Траты во второй период

-
+

во второй период

+
-{{ formatAmount(expensesByPeriod[1]) }} ₽
@@ -95,30 +99,30 @@
-
-

{{ transaction.category.name }}

-
- {{ formatAmount(transaction.sum) }} ₽ +
+

{{ categorySum.category.icon }} {{ categorySum.category.name }}

+
+ {{ formatAmount(categorySum.sum) }} ₽
@@ -130,13 +134,14 @@