From f6f84e191b243b9556126900ec8b489073c9cc38 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 23 Jan 2024 11:14:46 +0100 Subject: [PATCH] refs #6321 feat dialog approach --- .../Ticket/Negative/TicketDescriptor.vue | 273 ++++++++++++++++++ .../Negative/TicketDescriptorDialog.vue | 15 + src/pages/Ticket/Negative/TicketList.vue | 67 +++-- 3 files changed, 324 insertions(+), 31 deletions(-) create mode 100644 src/pages/Ticket/Negative/TicketDescriptor.vue create mode 100644 src/pages/Ticket/Negative/TicketDescriptorDialog.vue diff --git a/src/pages/Ticket/Negative/TicketDescriptor.vue b/src/pages/Ticket/Negative/TicketDescriptor.vue new file mode 100644 index 000000000..a5bd86012 --- /dev/null +++ b/src/pages/Ticket/Negative/TicketDescriptor.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/src/pages/Ticket/Negative/TicketDescriptorDialog.vue b/src/pages/Ticket/Negative/TicketDescriptorDialog.vue new file mode 100644 index 000000000..1b6086d17 --- /dev/null +++ b/src/pages/Ticket/Negative/TicketDescriptorDialog.vue @@ -0,0 +1,15 @@ + + diff --git a/src/pages/Ticket/Negative/TicketList.vue b/src/pages/Ticket/Negative/TicketList.vue index 69190bf41..5ea224e30 100644 --- a/src/pages/Ticket/Negative/TicketList.vue +++ b/src/pages/Ticket/Negative/TicketList.vue @@ -5,25 +5,34 @@ import { useStateStore } from 'stores/useStateStore'; import VnPaginate from 'components/ui/VnPaginate.vue'; import { useSession } from 'src/composables/useSession'; import TicketFilter from 'pages/Ticket/Negative/TicketFilter.vue'; -// import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue'; -// import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue'; +import TicketDescriptorDialog from 'pages/Ticket/Negative/TicketDescriptorDialog.vue'; +import { useQuasar } from 'quasar'; const stateStore = useStateStore(); const { t } = useI18n(); const session = useSession(); const selected = ref([]); +const quasar = useQuasar(); +const viewSummary = (value) => { + quasar.dialog({ + component: TicketDescriptorDialog, + componentProps: { + id: value, + }, + }); +}; const columns = computed(() => [ { name: 'itemFk', label: t('ticket.negative.id'), - field: ({itemFk}) => itemFk, + field: ({ itemFk }) => itemFk, sortable: true, }, { name: 'longName', label: t('ticket.negative.longName'), - field: ({longName}) => longName, + field: ({ longName }) => longName, align: 'center', sortable: true, headerStyle: 'padding-left: 35px', @@ -31,32 +40,32 @@ const columns = computed(() => [ { name: 'producer', label: t('ticket.negative.supplier'), - field: ({producer}) => producer, + field: ({ producer }) => producer, sortable: true, }, { name: 'inkFk', label: t('ticket.negative.colour'), - field: ({inkFk}) => inkFk, + field: ({ inkFk }) => inkFk, sortable: true, }, { name: 'size', label: t('ticket.negative.size'), - field: ({size}) => size, + field: ({ size }) => size, sortable: true, }, { name: 'category', label: t('ticket.negative.origen'), - field: ({category}) => category, + field: ({ category }) => category, align: 'left', sortable: true, }, { name: 'lack', label: t('ticket.negative.lack'), - field: ({lack}) => lack, + field: ({ lack }) => lack, align: 'center', sortable: true, headerStyle: 'padding-left: 33px', @@ -86,21 +95,16 @@ const columns = computed(() => [ headerStyle: 'padding-left: 33px', },*/ { - align: 'right', - field: 'actions', - label: '', - name: 'actions', - } + name: 'icons', + align: 'center', + field: (row) => row, + }, ]);