From e951894ac391d2a4a93737b75c25672ab64ba037 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 1 Jul 2024 08:43:15 -0300 Subject: [PATCH] Fixes --- src/pages/Monitor/SalesClientsTable.vue | 49 ++++++++++++++++--------- src/pages/Monitor/SalesOrdersTable.vue | 5 +-- src/pages/Monitor/SalesTicketsTable.vue | 26 +++++++++---- 3 files changed, 52 insertions(+), 28 deletions(-) diff --git a/src/pages/Monitor/SalesClientsTable.vue b/src/pages/Monitor/SalesClientsTable.vue index 3f2389471..91325986c 100644 --- a/src/pages/Monitor/SalesClientsTable.vue +++ b/src/pages/Monitor/SalesClientsTable.vue @@ -17,6 +17,7 @@ const { t } = useI18n(); const paginateRef = ref(null); const workersActiveOptions = ref([]); const clientsOptions = ref([]); +const showHeaderFilters = ref(true); const from = ref(Date.vnNew()); const to = ref(Date.vnNew()); @@ -37,9 +38,11 @@ const filter = reactive({ }, }); +const refetch = async () => await paginateRef.value.fetch(); + watch(dateRange, (val) => { filter.where['v.stamp'].between = val; - paginateRef.value.fetch(); + refetch(); }); function exprBuilder(param, value) { @@ -166,23 +169,35 @@ const columns = computed(() => [ :no-data-label="t('globals.noResults')" > -