From 5f502c2aad88b8e82e107295c857727d01c2bf94 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 10 Apr 2024 20:52:45 +0200 Subject: [PATCH] #6480: POC Claims --- src/components/common/VnCardContainer.vue | 14 +++++++++ src/components/common/VnRightMenu.vue | 26 ++++++++++++++++ src/components/common/VnTeleport.vue | 17 ++++++++++ src/layouts/ViewLayout.vue | 16 ++++++++++ src/pages/Claim/Card/ClaimAction.vue | 26 +++------------- src/pages/Claim/Card/ClaimCard.vue | 12 ++----- src/pages/Claim/Card/ClaimLines.vue | 38 +++++++++++------------ src/pages/Claim/ClaimMain.vue | 14 ++------- src/stores/useStateStore.js | 1 + 9 files changed, 101 insertions(+), 63 deletions(-) create mode 100644 src/components/common/VnCardContainer.vue create mode 100644 src/components/common/VnRightMenu.vue create mode 100644 src/components/common/VnTeleport.vue create mode 100644 src/layouts/ViewLayout.vue diff --git a/src/components/common/VnCardContainer.vue b/src/components/common/VnCardContainer.vue new file mode 100644 index 000000000..1fbc5595c --- /dev/null +++ b/src/components/common/VnCardContainer.vue @@ -0,0 +1,14 @@ + + diff --git a/src/components/common/VnRightMenu.vue b/src/components/common/VnRightMenu.vue new file mode 100644 index 000000000..f5065478f --- /dev/null +++ b/src/components/common/VnRightMenu.vue @@ -0,0 +1,26 @@ + + diff --git a/src/components/common/VnTeleport.vue b/src/components/common/VnTeleport.vue new file mode 100644 index 000000000..4f773e8bf --- /dev/null +++ b/src/components/common/VnTeleport.vue @@ -0,0 +1,17 @@ + + diff --git a/src/layouts/ViewLayout.vue b/src/layouts/ViewLayout.vue new file mode 100644 index 000000000..4812e7a83 --- /dev/null +++ b/src/layouts/ViewLayout.vue @@ -0,0 +1,16 @@ + + diff --git a/src/pages/Claim/Card/ClaimAction.vue b/src/pages/Claim/Card/ClaimAction.vue index fa16e6af4..56f746f97 100644 --- a/src/pages/Claim/Card/ClaimAction.vue +++ b/src/pages/Claim/Card/ClaimAction.vue @@ -2,7 +2,7 @@ import { ref, computed, onMounted } from 'vue'; import { useQuasar } from 'quasar'; import { useI18n } from 'vue-i18n'; -import { useRoute, useRouter } from 'vue-router'; +import { useRoute } from 'vue-router'; import axios from 'axios'; import { useStateStore } from 'src/stores/useStateStore'; import { toDate, toPercentage, toCurrency } from 'filters/index'; @@ -10,14 +10,12 @@ import { tMobile } from 'src/composables/tMobile'; import CrudModel from 'src/components/CrudModel.vue'; import FetchData from 'src/components/FetchData.vue'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; -import VnConfirm from 'src/components/ui/VnConfirm.vue'; +import VnRightMenu from 'src/components/common/VnRightMenu.vue'; import TicketDescriptorProxy from 'src/pages/Ticket/Card/TicketDescriptorProxy.vue'; import { useArrayData } from 'composables/useArrayData'; - const { t } = useI18n(); const quasar = useQuasar(); const route = useRoute(); -const router = useRouter(); const stateStore = computed(() => useStateStore()); const claim = ref(null); const claimRef = ref(); @@ -193,23 +191,7 @@ async function importToNewRefundTicket() { auto-load @on-fetch="(data) => (destinationTypes = data)" /> - + - + - - - -
- -
-
-
+ diff --git a/src/pages/Claim/Card/ClaimLines.vue b/src/pages/Claim/Card/ClaimLines.vue index 89703c64b..06918f6ca 100644 --- a/src/pages/Claim/Card/ClaimLines.vue +++ b/src/pages/Claim/Card/ClaimLines.vue @@ -4,12 +4,12 @@ import { ref, computed } from 'vue'; import { useI18n } from 'vue-i18n'; import { useQuasar } from 'quasar'; import { useRoute } from 'vue-router'; -import { useStateStore } from 'stores/useStateStore'; import { useArrayData } from 'composables/useArrayData'; import { toDate, toCurrency, toPercentage } from 'filters/index'; import CrudModel from 'components/CrudModel.vue'; import FetchData from 'components/FetchData.vue'; import VnDiscount from 'components/common/vnDiscount.vue'; +import VnTeleport from 'components/common/VnTeleport.vue'; import ClaimLinesImport from './ClaimLinesImport.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; @@ -17,7 +17,6 @@ const quasar = useQuasar(); const route = useRoute(); const { t } = useI18n(); -const stateStore = useStateStore(); const arrayData = useArrayData('ClaimLines'); const store = arrayData.store; @@ -157,24 +156,25 @@ function showImportDialog() { }