From 1f9aef96cab35973e5623f446057c3e4a91edd6e Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 7 Feb 2024 14:42:51 +0100 Subject: [PATCH 1/3] fix: refs #6657 full-width --- src/pages/Claim/Card/ClaimSummaryDialog.vue | 2 +- src/pages/Customer/Card/CustomerSummaryDialog.vue | 2 +- src/pages/Entry/Card/EntrySummaryDialog.vue | 2 +- src/pages/InvoiceIn/Card/InvoiceInSummaryDialog.vue | 2 +- src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue | 2 +- src/pages/Order/Card/OrderSummaryDialog.vue | 4 ++-- src/pages/Route/Card/RouteSummaryDialog.vue | 2 +- src/pages/Shelving/Card/ShelvingSummaryDialog.vue | 4 ++-- src/pages/Supplier/Card/SupplierSummaryDialog.vue | 2 +- src/pages/Ticket/Card/TicketSummaryDialog.vue | 2 +- src/pages/Travel/Card/TravelSummaryDialog.vue | 2 +- src/pages/Worker/Card/WorkerSummaryDialog.vue | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/pages/Claim/Card/ClaimSummaryDialog.vue b/src/pages/Claim/Card/ClaimSummaryDialog.vue index 5a2b965eb..78673f54d 100644 --- a/src/pages/Claim/Card/ClaimSummaryDialog.vue +++ b/src/pages/Claim/Card/ClaimSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Customer/Card/CustomerSummaryDialog.vue b/src/pages/Customer/Card/CustomerSummaryDialog.vue index d9571ac54..b19917712 100644 --- a/src/pages/Customer/Card/CustomerSummaryDialog.vue +++ b/src/pages/Customer/Card/CustomerSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Entry/Card/EntrySummaryDialog.vue b/src/pages/Entry/Card/EntrySummaryDialog.vue index 527421ce2..6bf65f0ef 100644 --- a/src/pages/Entry/Card/EntrySummaryDialog.vue +++ b/src/pages/Entry/Card/EntrySummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/InvoiceIn/Card/InvoiceInSummaryDialog.vue b/src/pages/InvoiceIn/Card/InvoiceInSummaryDialog.vue index 8657bf6ac..f0c37f8e3 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInSummaryDialog.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInSummaryDialog.vue @@ -16,7 +16,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue b/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue index 76283ff10..89ea808e4 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Order/Card/OrderSummaryDialog.vue b/src/pages/Order/Card/OrderSummaryDialog.vue index ebe891f4a..4ba02f21d 100644 --- a/src/pages/Order/Card/OrderSummaryDialog.vue +++ b/src/pages/Order/Card/OrderSummaryDialog.vue @@ -1,6 +1,6 @@ diff --git a/src/pages/Route/Card/RouteSummaryDialog.vue b/src/pages/Route/Card/RouteSummaryDialog.vue index 4a943a93a..00f0e8e18 100644 --- a/src/pages/Route/Card/RouteSummaryDialog.vue +++ b/src/pages/Route/Card/RouteSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Shelving/Card/ShelvingSummaryDialog.vue b/src/pages/Shelving/Card/ShelvingSummaryDialog.vue index 783e47395..8416a080e 100644 --- a/src/pages/Shelving/Card/ShelvingSummaryDialog.vue +++ b/src/pages/Shelving/Card/ShelvingSummaryDialog.vue @@ -1,6 +1,6 @@ diff --git a/src/pages/Supplier/Card/SupplierSummaryDialog.vue b/src/pages/Supplier/Card/SupplierSummaryDialog.vue index 6353caa38..0bbcb1198 100644 --- a/src/pages/Supplier/Card/SupplierSummaryDialog.vue +++ b/src/pages/Supplier/Card/SupplierSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Ticket/Card/TicketSummaryDialog.vue b/src/pages/Ticket/Card/TicketSummaryDialog.vue index 11e12c8a9..57df6c807 100644 --- a/src/pages/Ticket/Card/TicketSummaryDialog.vue +++ b/src/pages/Ticket/Card/TicketSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Travel/Card/TravelSummaryDialog.vue b/src/pages/Travel/Card/TravelSummaryDialog.vue index 8351d6e5b..fe9d5e95f 100644 --- a/src/pages/Travel/Card/TravelSummaryDialog.vue +++ b/src/pages/Travel/Card/TravelSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/pages/Worker/Card/WorkerSummaryDialog.vue b/src/pages/Worker/Card/WorkerSummaryDialog.vue index 59ea702e0..700bd5a39 100644 --- a/src/pages/Worker/Card/WorkerSummaryDialog.vue +++ b/src/pages/Worker/Card/WorkerSummaryDialog.vue @@ -15,7 +15,7 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); From 2ac20d5f15dc8794a0ddbc945a3bc771ca9a3f28 Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 8 Feb 2024 12:11:12 +0100 Subject: [PATCH 2/3] feat: refs #6657 create component & composable --- src/components/common/VnSummaryDialog.vue | 23 +++++++++++++++++++ src/composables/useSummaryDialog.js | 15 ++++++++++++ src/pages/Claim/ClaimList.vue | 12 +++++----- src/pages/Customer/CustomerList.vue | 17 ++++---------- .../CustomerExtendedListActions.vue | 19 ++++----------- src/pages/Entry/EntryList.vue | 19 ++++----------- src/pages/InvoiceIn/InvoiceInList.vue | 17 ++++---------- src/pages/InvoiceOut/InvoiceOutList.vue | 17 ++++---------- src/pages/Order/OrderList.vue | 17 ++++---------- src/pages/Shelving/ShelvingList.vue | 17 ++++---------- src/pages/Supplier/SupplierList.vue | 19 ++++----------- src/pages/Ticket/TicketList.vue | 17 ++++---------- src/pages/Travel/TravelList.vue | 19 ++++----------- src/pages/Worker/WorkerList.vue | 17 ++++---------- test/cypress/integration/vnLog.spec.js | 2 +- 15 files changed, 90 insertions(+), 157 deletions(-) create mode 100644 src/components/common/VnSummaryDialog.vue create mode 100644 src/composables/useSummaryDialog.js diff --git a/src/components/common/VnSummaryDialog.vue b/src/components/common/VnSummaryDialog.vue new file mode 100644 index 000000000..08fc8870d --- /dev/null +++ b/src/components/common/VnSummaryDialog.vue @@ -0,0 +1,23 @@ + + diff --git a/src/composables/useSummaryDialog.js b/src/composables/useSummaryDialog.js new file mode 100644 index 000000000..7d431129b --- /dev/null +++ b/src/composables/useSummaryDialog.js @@ -0,0 +1,15 @@ +import VnSummaryDialog from 'src/components/common/VnSummaryDialog.vue'; +import { useQuasar } from 'quasar'; + +export function useSummaryDialog() { + const quasar = useQuasar(); + + function viewSummary(id, summary) { + quasar.dialog({ + component: VnSummaryDialog, + componentProps: { id, summary }, + }); + } + + return { viewSummary }; +} diff --git a/src/pages/Claim/ClaimList.vue b/src/pages/Claim/ClaimList.vue index 1b5979f5a..492963399 100644 --- a/src/pages/Claim/ClaimList.vue +++ b/src/pages/Claim/ClaimList.vue @@ -1,7 +1,6 @@