From 60f8b863a212693b0da258f632de88c6491d495d Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev Date: Sat, 4 Apr 2026 08:45:53 +0700 Subject: [PATCH] Simplify manager section layouts --- app/components/ui/SectionSearchHero.vue | 64 ++++++++-------- app/pages/bonus-system/index.vue | 98 ++++++++++--------------- app/pages/client-orders/index.vue | 48 +++++------- app/pages/clients/index.vue | 8 +- app/pages/orders.vue | 46 ++++-------- 5 files changed, 111 insertions(+), 153 deletions(-) diff --git a/app/components/ui/SectionSearchHero.vue b/app/components/ui/SectionSearchHero.vue index 528e859..6979b03 100644 --- a/app/components/ui/SectionSearchHero.vue +++ b/app/components/ui/SectionSearchHero.vue @@ -18,36 +18,40 @@ function updateValue(event: Event) {

{{ props.title }}

- +
+ + + +
diff --git a/app/pages/bonus-system/index.vue b/app/pages/bonus-system/index.vue index 9a1a677..e81ab9e 100644 --- a/app/pages/bonus-system/index.vue +++ b/app/pages/bonus-system/index.vue @@ -45,57 +45,9 @@ const filteredTransactions = computed(() => { v-model="search" title="Бонусы" search-placeholder="Пользователь, причина, заказ или сумма" - > -
- Создать связь - Добавить бонус -
- -
-
-

Баланс

-

{{ bonusQuery.result.value?.referralStats.availableBalance ?? 0 }}

-
-
-

Рефералы

-

{{ bonusQuery.result.value?.referralStats.referralsCount ?? 0 }}

-
-
-

Заявки на вывод

-

{{ withdrawals.length }}

-
-
- - -
-
-

История транзакций

- -
- Загружаем историю... -
-
- Транзакции по текущему запросу не найдены. -
-
-
-
-
-

{{ transaction.reason }}

-

Пользователь: {{ transaction.userId }}

-
-
- {{ transaction.amount }} -
-
-
- {{ new Date(transaction.createdAt).toLocaleString() }} - Заказ: {{ transaction.orderId }} -
-
-
-
+ /> +

Заявки на вывод

@@ -106,16 +58,44 @@ const filteredTransactions = computed(() => { Активных заявок на вывод сейчас нет.
-
-
-

Пользователь: {{ withdrawal.requesterId }}

-

Сумма: {{ withdrawal.amount }}

-

{{ new Date(withdrawal.createdAt).toLocaleString() }}

+
+
+
+

Пользователь: {{ withdrawal.requesterId }}

+

Сумма: {{ withdrawal.amount }}

+

{{ new Date(withdrawal.createdAt).toLocaleString() }}

+
+
+ + Проверить вывод + +
-
- - Проверить вывод - +
+
+
+ +
+

История транзакций

+ +
+ Загружаем историю... +
+
+ Транзакции по текущему запросу не найдены. +
+
+
+
+
+

{{ transaction.reason }}

+

Пользователь: {{ transaction.userId }}

+

Заказ: {{ transaction.orderId }}

+

{{ new Date(transaction.createdAt).toLocaleString() }}

+
+
+ {{ transaction.amount }} +
diff --git a/app/pages/client-orders/index.vue b/app/pages/client-orders/index.vue index d8038ba..6ea1ffd 100644 --- a/app/pages/client-orders/index.vue +++ b/app/pages/client-orders/index.vue @@ -59,19 +59,14 @@ const filteredOrders = computed(() => { title="Заказы клиентов" search-placeholder="Номер заказа, клиент, адрес или товар" > -
-
- -
-
+
@@ -91,25 +86,22 @@ const filteredOrders = computed(() => {

{{ order.code }}

-
- Клиент: {{ order.customerId }} - {{ new Date(order.createdAt).toLocaleString() }} -
+

Клиент: {{ order.customerId }}

+

Создан: {{ new Date(order.createdAt).toLocaleString() }}

+

Адрес: {{ order.deliveryAddress }}

-
-
- Позиций: {{ order.items.length }} -
-
- Итого: {{ order.totalPrice ?? 'без оффера' }} -
-
- Адрес: {{ order.deliveryAddress || 'не выбран' }} -
-
+
    +
  • + {{ item.productName }} × {{ item.quantity }} +
  • +
diff --git a/app/pages/clients/index.vue b/app/pages/clients/index.vue index bfd0ec7..5045d58 100644 --- a/app/pages/clients/index.vue +++ b/app/pages/clients/index.vue @@ -65,15 +65,11 @@ const filteredClients = computed(() => { title="Клиенты" search-placeholder="Компания, контакт, email или ИНН" > -
-
- Всего карточек: {{ filteredClients.length }} -
- +
diff --git a/app/pages/orders.vue b/app/pages/orders.vue index 25501d8..14dc929 100644 --- a/app/pages/orders.vue +++ b/app/pages/orders.vue @@ -53,19 +53,14 @@ const filteredOrders = computed(() => { title="Мои заказы" search-placeholder="Номер заказа или товар" > -
-
- -
-
+
Загрузка заказов...
@@ -80,35 +75,26 @@ const filteredOrders = computed(() => { class="surface-card rounded-3xl p-4 md:p-5" >
-
+

{{ order.code }}

-

{{ new Date(order.createdAt).toLocaleString() }}

+

Создан: {{ new Date(order.createdAt).toLocaleString() }}

+

Адрес: {{ order.deliveryAddress }}

+

Доставка: {{ order.deliveryTerms }}

+
+
+
-
  • {{ item.productName }} × {{ item.quantity }}
- -
-
- Условия доставки: {{ order.deliveryTerms || 'ожидает обработки менеджером' }} -
-
- Итого: {{ order.totalPrice ?? 'после обработки менеджером' }} -
-
- -
- Адрес доставки: {{ order.deliveryAddress || 'адрес не был выбран' }} -