From f1a57ceba1fe150b3ac730a5e21b1a8e0657ad0a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 19 Feb 2025 14:09:00 +0100 Subject: [PATCH] feat: refs #6321 init --- src/composables/showResultsTable.js | 30 ++ .../Negative/components/ChangeItemDialog.vue | 29 +- .../Negative/components/HandleSplitDialog.vue | 281 ++++++++++++++++++ .../Negative/components/HandleSplited.vue | 281 ++++++++++++++++++ 4 files changed, 612 insertions(+), 9 deletions(-) create mode 100644 src/composables/showResultsTable.js create mode 100644 src/pages/Ticket/Negative/components/HandleSplitDialog.vue create mode 100644 src/pages/Ticket/Negative/components/HandleSplited.vue diff --git a/src/composables/showResultsTable.js b/src/composables/showResultsTable.js new file mode 100644 index 000000000..c7e43ef7c --- /dev/null +++ b/src/composables/showResultsTable.js @@ -0,0 +1,30 @@ +import { useI18n } from 'vue-i18n'; + +import { useQuasar } from 'quasar'; + +export function showResultsAsTable(dialog, results, key) { + const quasar = useQuasar(); + const { t } = useI18n(); + function openTable() { + quasar.notify({ + message: t('negative.detail.modal.changeItem.success'), + color: 'positive', + actions: [ + { + label: t('globals.ok'), + color: 'white', + handler: () => { + quasar.dialog({ + component: dialog, + componentProps: { + results, + key, + }, + }); + }, + }, + ], + }); + } + return { openTable }; +} diff --git a/src/pages/Ticket/Negative/components/ChangeItemDialog.vue b/src/pages/Ticket/Negative/components/ChangeItemDialog.vue index e419b85c0..b0a670080 100644 --- a/src/pages/Ticket/Negative/components/ChangeItemDialog.vue +++ b/src/pages/Ticket/Negative/components/ChangeItemDialog.vue @@ -1,9 +1,18 @@ + + + + diff --git a/src/pages/Ticket/Negative/components/HandleSplited.vue b/src/pages/Ticket/Negative/components/HandleSplited.vue new file mode 100644 index 000000000..b2bf94f26 --- /dev/null +++ b/src/pages/Ticket/Negative/components/HandleSplited.vue @@ -0,0 +1,281 @@ + + + + +