From 2d9d58f79c500294e90797ee1dc58be0277ef9a4 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 17 Dec 2024 12:45:02 +0100 Subject: [PATCH 1/2] fix: monitorPayMethodFilter --- src/pages/Monitor/Ticket/MonitorTickets.vue | 25 ++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/pages/Monitor/Ticket/MonitorTickets.vue b/src/pages/Monitor/Ticket/MonitorTickets.vue index 05aee1607..225038e76 100644 --- a/src/pages/Monitor/Ticket/MonitorTickets.vue +++ b/src/pages/Monitor/Ticket/MonitorTickets.vue @@ -26,6 +26,7 @@ const provinceOpts = ref([]); const stateOpts = ref([]); const zoneOpts = ref([]); const DepartmentOpts = ref([]); +const PayMethodOpts = ref([]); const ItemPackingTypeOpts = ref([]); const stateStore = useStateStore(); const { viewSummary } = useSummaryDialog(); @@ -223,7 +224,16 @@ const columns = computed(() => [ label: t('salesTicketsTable.payMethod'), name: 'payMethod', align: 'left', - columnFilter: false, + columnFilter: { + component: 'select', + url: 'PayMethods', + attrs: { + options: PayMethodOpts.value, + optionValue: 'id', + optionLabel: 'name', + dense: true, + }, + }, }, { label: t('salesTicketsTable.total'), @@ -247,7 +257,7 @@ const columns = computed(() => [ url: 'Departments', attrs: { options: DepartmentOpts.value, - optionValue: 'name', + optionValue: 'id', optionLabel: 'name', dense: true, }, @@ -364,6 +374,15 @@ const openTab = (id) => auto-load @on-fetch="(data) => (DepartmentOpts = data)" /> +