From cc241c6a4e2029c89437ad2ee483be30a9adf4a1 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 22 Apr 2024 14:24:23 +0200 Subject: [PATCH] feat: #6321 new route --- ...ketLackDialog.vue => TicketLackDetail.vue} | 0 .../Ticket/Negative/TicketLackDialogProxy.vue | 71 +++++++++---------- src/pages/Ticket/Negative/TicketLackList.vue | 19 +++-- src/router/modules/ticket.js | 8 +++ 4 files changed, 54 insertions(+), 44 deletions(-) rename src/pages/Ticket/Negative/{TicketLackDialog.vue => TicketLackDetail.vue} (100%) diff --git a/src/pages/Ticket/Negative/TicketLackDialog.vue b/src/pages/Ticket/Negative/TicketLackDetail.vue similarity index 100% rename from src/pages/Ticket/Negative/TicketLackDialog.vue rename to src/pages/Ticket/Negative/TicketLackDetail.vue diff --git a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue index 7aa72ccf6..eb395dc7e 100644 --- a/src/pages/Ticket/Negative/TicketLackDialogProxy.vue +++ b/src/pages/Ticket/Negative/TicketLackDialogProxy.vue @@ -1,6 +1,6 @@ diff --git a/src/pages/Ticket/Negative/TicketLackList.vue b/src/pages/Ticket/Negative/TicketLackList.vue index 8eb41b299..2ee2ef1e3 100644 --- a/src/pages/Ticket/Negative/TicketLackList.vue +++ b/src/pages/Ticket/Negative/TicketLackList.vue @@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; import VnPaginate from 'components/ui/VnPaginate.vue'; import TicketLackFilter from 'pages/Ticket/Negative/TicketLackFilter.vue'; -import TicketLackDialogProxy from 'src/pages/Ticket/Negative/TicketLackDialogProxy.vue'; +// import TicketLackDialogProxy from 'src/pages/Ticket/Negative/TicketLackDialogProxy.vue'; import NegativeOriginDialog from 'pages/Ticket/Negative/NegativeOriginDialog.vue'; import TotalNegativeOriginDialog from 'pages/Ticket/Negative/TotalNegativeOriginDialog.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; @@ -19,10 +19,17 @@ const showNegativeOriginDialog = ref(false); const showTotalNegativeOriginDialog = ref(false); const currentRow = ref(null); const { dialogRef, onDialogHide } = useDialogPluginComponent(); +import { useRoute, useRouter } from 'vue-router'; -const viewSummary = (value) => { - showTicketDialog.value = true; - currentRow.value = value; +const route = useRoute(); +const router = useRouter(); +const viewSummary = ({ itemFk: id }) => { + router.push({ + name: 'TicketLackCard', + params: { + id: '1', + }, + }); }; const originDialogRef = ref(); const totalNegativeDialogRef = ref(); @@ -199,12 +206,12 @@ const columns = computed(() => [ - + import('src/pages/Ticket/Negative/TicketLackList.vue'), + children: [ + { + name: 'TicketLackCard', + path: ':id/edit', + component: () => + import('src/pages/Ticket/Negative/TicketLackDetail.vue'), + }, + ], }, { name: 'TicketCreate',