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 @@ + + + + + + + + {{ t('globals.collapseMenu') }} + + + + + + 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)" /> - - - - - - {{ t('globals.collapseMenu') }} - - - - - + - + - - - - - - - - + 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() { } - - - - {{ t('Amount') }} - - {{ toCurrency(amount) }} - + + + + + {{ t('Amount') }} + + {{ toCurrency(amount) }} + + + + + {{ t('Amount Claimed') }} + + {{ toCurrency(amountClaimed) }} + + - - - {{ t('Amount Claimed') }} - - {{ toCurrency(amountClaimed) }} - - - - - + + -import { useStateStore } from 'stores/useStateStore'; -import LeftMenu from 'components/LeftMenu.vue'; - -const stateStore = useStateStore(); +import ViewLayout from 'src/layouts/ViewLayout.vue'; - - - - - - - - + diff --git a/src/stores/useStateStore.js b/src/stores/useStateStore.js index 328df9978..0367c125a 100644 --- a/src/stores/useStateStore.js +++ b/src/stores/useStateStore.js @@ -40,6 +40,7 @@ export const useStateStore = defineStore('stateStore', () => { } return { + isMounted, leftDrawer, rightDrawer, setMounted,