diff --git a/src/pages/Route/RouteAutonomous.vue b/src/pages/Route/RouteAutonomous.vue index 2ed024d29..eee9ff9c5 100644 --- a/src/pages/Route/RouteAutonomous.vue +++ b/src/pages/Route/RouteAutonomous.vue @@ -4,22 +4,22 @@ import { useStateStore } from 'stores/useStateStore'; import { useI18n } from 'vue-i18n'; import { computed, onMounted, onUnmounted, ref } from 'vue'; import { dashIfEmpty, toCurrency, toDate } from 'src/filters'; -import RouteSummaryDialog from 'pages/Route/Card/RouteSummaryDialog.vue'; import VnSearchbar from 'components/ui/VnSearchbar.vue'; import RouteDescriptorProxy from 'pages/Route/Card/RouteDescriptorProxy.vue'; import InvoiceInDescriptorProxy from 'pages/InvoiceIn/Card/InvoiceInDescriptorProxy.vue'; import SupplierDescriptorProxy from 'pages/Supplier/Card/SupplierDescriptorProxy.vue'; import VnLv from 'components/ui/VnLv.vue'; -import { useQuasar } from 'quasar'; import useNotify from 'composables/useNotify'; import RouteAutonomousFilter from 'pages/Route/Card/RouteAutonomousFilter.vue'; import { useRouter } from 'vue-router'; +import RouteSummary from "pages/Route/Card/RouteSummary.vue"; +import {useSummaryDialog} from "composables/useSummaryDialog"; const stateStore = useStateStore(); const { t } = useI18n(); -const quasar = useQuasar(); const { notify } = useNotify(); const router = useRouter(); +const { viewSummary } = useSummaryDialog(); onMounted(() => (stateStore.rightDrawer = true)); onUnmounted(() => (stateStore.rightDrawer = false)); @@ -131,18 +131,6 @@ const openCreateInvoiceIn = () => { router.push({ name: 'RouteAutonomousCreateInvoiceIn', query: { q: params } }); }; - -function previewRoute(id) { - if (!id) { - return; - } - quasar.dialog({ - component: RouteSummaryDialog, - componentProps: { - id, - }, - }); -}