From 0d99c5f609ce7e7a73b995669f028bfddeca4d01 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 23 Aug 2024 15:30:22 +0200 Subject: [PATCH] feat: CustomerConsumptionFilter --- src/composables/usePrintService.js | 1 + .../Customer/Card/CustomerConsumption.vue | 166 ++++++++++++++++++ .../Card/CustomerConsumptionFilter.vue | 15 +- 3 files changed, 180 insertions(+), 2 deletions(-) diff --git a/src/composables/usePrintService.js b/src/composables/usePrintService.js index edf9598b2..ff43c65a1 100644 --- a/src/composables/usePrintService.js +++ b/src/composables/usePrintService.js @@ -17,6 +17,7 @@ export function usePrintService() { } function openReport(path, params) { + if (typeof params === 'string') params = JSON.parse(params); params = Object.assign( { access_token: getTokenMultimedia(), diff --git a/src/pages/Customer/Card/CustomerConsumption.vue b/src/pages/Customer/Card/CustomerConsumption.vue index 4d3da1116..a8c34991a 100644 --- a/src/pages/Customer/Card/CustomerConsumption.vue +++ b/src/pages/Customer/Card/CustomerConsumption.vue @@ -1,15 +1,181 @@ es: + Group by item: Agrupar por artículo + Enter a new search: Introduce una nueva búsqueda diff --git a/src/pages/Customer/Card/CustomerConsumptionFilter.vue b/src/pages/Customer/Card/CustomerConsumptionFilter.vue index 91536e954..0f5148007 100644 --- a/src/pages/Customer/Card/CustomerConsumptionFilter.vue +++ b/src/pages/Customer/Card/CustomerConsumptionFilter.vue @@ -12,14 +12,23 @@ const { t } = useI18n(); defineProps({ dataKey: { type: String, required: true } });