From 96d3073f679ccc3127db522de305bf99db48ddb7 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 11 Apr 2024 09:01:44 +0200 Subject: [PATCH] Revert "Merge branch '6480-improveCard' of https://gitea.verdnatura.es/verdnatura/salix-front into 6480-improveCard" This reverts commit 984539b70fecbdbb2cc1042c51c846c59d5ed65c, reversing changes made to d7ab6e8a02e8e7e36b325bb93712bca29ddebd40. --- 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, 63 insertions(+), 101 deletions(-) delete mode 100644 src/components/common/VnCardContainer.vue delete mode 100644 src/components/common/VnRightMenu.vue delete mode 100644 src/components/common/VnTeleport.vue delete mode 100644 src/layouts/ViewLayout.vue diff --git a/src/components/common/VnCardContainer.vue b/src/components/common/VnCardContainer.vue deleted file mode 100644 index 1fbc5595c..000000000 --- a/src/components/common/VnCardContainer.vue +++ /dev/null @@ -1,14 +0,0 @@ - - diff --git a/src/components/common/VnRightMenu.vue b/src/components/common/VnRightMenu.vue deleted file mode 100644 index f5065478f..000000000 --- a/src/components/common/VnRightMenu.vue +++ /dev/null @@ -1,26 +0,0 @@ - - diff --git a/src/components/common/VnTeleport.vue b/src/components/common/VnTeleport.vue deleted file mode 100644 index 4f773e8bf..000000000 --- a/src/components/common/VnTeleport.vue +++ /dev/null @@ -1,17 +0,0 @@ - - diff --git a/src/layouts/ViewLayout.vue b/src/layouts/ViewLayout.vue deleted file mode 100644 index 4812e7a83..000000000 --- a/src/layouts/ViewLayout.vue +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/src/pages/Claim/Card/ClaimAction.vue b/src/pages/Claim/Card/ClaimAction.vue index 56f746f97..fa16e6af4 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 } from 'vue-router'; +import { useRoute, useRouter } from 'vue-router'; import axios from 'axios'; import { useStateStore } from 'src/stores/useStateStore'; import { toDate, toPercentage, toCurrency } from 'filters/index'; @@ -10,12 +10,14 @@ 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 VnRightMenu from 'src/components/common/VnRightMenu.vue'; +import VnConfirm from 'src/components/ui/VnConfirm.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(); @@ -191,7 +193,23 @@ 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 06918f6ca..89703c64b 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,6 +17,7 @@ const quasar = useQuasar(); const route = useRoute(); const { t } = useI18n(); +const stateStore = useStateStore(); const arrayData = useArrayData('ClaimLines'); const store = arrayData.store; @@ -156,25 +157,24 @@ function showImportDialog() { }