diff --git a/app/pages/client-orders/index.vue b/app/pages/client-orders/index.vue index aeaddd3..52a29c1 100644 --- a/app/pages/client-orders/index.vue +++ b/app/pages/client-orders/index.vue @@ -27,15 +27,13 @@ const usersQuery = useQuery(ManagerUsersDocument); const search = ref(''); const statusFilter = ref('ALL'); -const viewMode = computed<'cards' | 'calendar' | 'kanban'>(() => ( +const viewMode = computed<'list' | 'calendar'>(() => ( route.query.view === 'calendar' ? 'calendar' - : route.query.view === 'kanban' - ? 'kanban' - : 'cards' + : 'list' )); -function setViewMode(view: 'cards' | 'calendar' | 'kanban') { +function setViewMode(view: 'list' | 'calendar') { void router.replace({ query: { ...route.query, @@ -139,38 +137,6 @@ const statusTabs = computed { - const columns = [ - { - id: 'NEW' as const, - title: 'Заявки', - tone: 'from-[#f5fff8] to-[#eefaf2]', - }, - { - id: 'PRICED' as const, - title: 'Предложения', - tone: 'from-[#fff9ef] to-[#fff1d9]', - }, - { - id: 'IN_PROGRESS' as const, - title: 'В работе', - tone: 'from-[#eef7ff] to-[#e2f0ff]', - }, - { - id: 'CLOSED' as const, - title: 'Закрытые', - tone: 'from-[#f6f7f8] to-[#eceff2]', - }, - ]; - - return columns - .filter((column) => statusFilter.value === 'ALL' || statusFilter.value === column.id) - .map((column) => ({ - ...column, - orders: searchedOrders.value.filter((order) => getOrderGroup(order) === column.id), - })); -}); - const calendarOptions = computed(() => ({ plugins: [dayGridPlugin], locale: ruLocale, @@ -210,10 +176,10 @@ const calendarOptions = computed(() => ({
-
@@ -265,46 +224,6 @@ const calendarOptions = computed(() => ({ -
-
-
-
-
-

{{ column.title }}

-

Заказов: {{ column.orders.length }}

-
- - {{ column.orders.length }} - -
-
- -
- В этой колонке пока пусто. -
- -
- -
-
-
-