From 992ecb07b74708cc12191b546ea09a6a85d111ca Mon Sep 17 00:00:00 2001 From: Juan Felipe Zapata Moreno Date: Thu, 29 Jan 2026 17:39:00 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20a=C3=B1adir=20modal=20para=20generaci?= =?UTF-8?q?=C3=B3n=20de=20reportes=20en=20Excel=20de=20descuentos=20por=20?= =?UTF-8?q?cliente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/POS/ExcelClient.vue | 193 +++++++++++++++++++++++++++++ src/pages/POS/Clients/Index.vue | 22 ++++ 2 files changed, 215 insertions(+) create mode 100644 src/components/POS/ExcelClient.vue diff --git a/src/components/POS/ExcelClient.vue b/src/components/POS/ExcelClient.vue new file mode 100644 index 0000000..bb33cb4 --- /dev/null +++ b/src/components/POS/ExcelClient.vue @@ -0,0 +1,193 @@ + + + diff --git a/src/pages/POS/Clients/Index.vue b/src/pages/POS/Clients/Index.vue index 2d02592..6ab5cbd 100644 --- a/src/pages/POS/Clients/Index.vue +++ b/src/pages/POS/Clients/Index.vue @@ -4,6 +4,7 @@ import { useSearcher, apiURL } from '@Services/Api'; import { can } from './Module.js'; import SearcherHead from '@Holos/Searcher.vue'; +import ExcelModal from '@Components/POS/ExcelClient.vue'; import Table from '@Holos/Table.vue'; import GoogleIcon from '@Shared/GoogleIcon.vue'; import CreateModal from './Create.vue'; @@ -18,6 +19,7 @@ const showCreateModal = ref(false); const showEditModal = ref(false); const showDeleteModal = ref(false); const showStatsModal = ref(false); +const showExcelModal = ref(false); const editingClient = ref(null); const deletingClient = ref(null); const statsClient = ref(null); @@ -108,6 +110,13 @@ const closeStatsModal = () => { showStatsModal.value = false; statsClient.value = null; }; +const openExcelModal = () => { + showExcelModal.value = true; +}; + +const closeExcelModal = () => { + showExcelModal.value = false; +}; const onClientSaved = () => { searcher.search(); @@ -134,6 +143,13 @@ onMounted(() => { Nuevo Cliente +
@@ -257,5 +273,11 @@ onMounted(() => { :client="statsClient" @close="closeStatsModal" /> + + +
\ No newline at end of file