From 9a060b846455aebb7f9d1370d482150f600790c0 Mon Sep 17 00:00:00 2001 From: patrykb Date: Thu, 2 Jan 2025 11:53:59 +0100 Subject: [PATCH] =?UTF-8?q?Poprawki=20b=C5=82=C4=99d=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CancelationModal.vue | 12 +++- src/components/ConfirmedForm.vue | 14 +++-- src/components/MainForm.vue | 5 +- src/components/OrdersSelector.vue | 16 +++--- src/components/SummaryComponent.vue | 89 ++++++++++++++++++++++------- src/main.ts | 9 ++- src/stores/orders.store.ts | 10 +++- src/views/LoginView.vue | 2 +- 8 files changed, 113 insertions(+), 44 deletions(-) diff --git a/src/components/CancelationModal.vue b/src/components/CancelationModal.vue index 79910a3..151040c 100644 --- a/src/components/CancelationModal.vue +++ b/src/components/CancelationModal.vue @@ -5,6 +5,7 @@ import { axiosInstance } from '@/main' import { useSiteControlStore } from '@/stores/siteControl.store' import { useContractorsStore } from '@/stores/contractors.store' import { useCategoriesStore } from '@/stores/categories.store' +import { ref } from 'vue' const ordersStore = useOrdersStore(); const siteControlStore = useSiteControlStore(); @@ -13,9 +14,11 @@ const categoriesStore = useCategoriesStore(); const { uuid } = storeToRefs(ordersStore); const { showCancellationModal, isLoading } = storeToRefs(siteControlStore); +const cancellationReason = ref(); async function cancelOrder() { showCancellationModal.value = false; + // console.log(cancellationReason.value); axiosInstance.delete('/zamowienie/' + uuid.value); siteControlStore.newOrder(true); } @@ -31,10 +34,17 @@ async function cancelOrder() {