From 67b2cd3a0b81a19109cc958e485d5b6800d0f152 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 9 Sep 2024 14:58:26 +0200 Subject: [PATCH] feat: stateGroupedFilter --- src/pages/Ticket/TicketFuture.vue | 19 +++++++++++-------- src/pages/Ticket/TicketFutureFilter.vue | 18 +++++++++--------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/pages/Ticket/TicketFuture.vue b/src/pages/Ticket/TicketFuture.vue index 14a4a5ac8..2078d0595 100644 --- a/src/pages/Ticket/TicketFuture.vue +++ b/src/pages/Ticket/TicketFuture.vue @@ -49,8 +49,8 @@ const exprBuilder = (param, value) => { }; const userParams = reactive({ - futureDated: Date.vnNew().toISOString(), - originDated: Date.vnNew().toISOString(), + futureScopeDays: Date.vnNew().toISOString(), + originScopeDays: Date.vnNew().toISOString(), warehouseFk: user.value.warehouseFk, }); @@ -62,8 +62,8 @@ const arrayData = useArrayData('FutureTickets', { const { store } = arrayData; const params = reactive({ - futureDated: Date.vnNew(), - originDated: Date.vnNew(), + futureScopeDays: Date.vnNew(), + originScopeDays: Date.vnNew(), warehouseFk: user.value.warehouseFk, }); @@ -172,7 +172,7 @@ const ticketColumns = computed(() => [ label: t('futureTickets.availableLines'), name: 'lines', field: 'lines', - align: 'left', + align: 'center', sortable: true, columnFilter: { component: VnInput, @@ -234,7 +234,7 @@ const ticketColumns = computed(() => [ { label: t('futureTickets.futureState'), name: 'futureState', - align: 'left', + align: 'right', sortable: true, columnFilter: null, format: (val) => dashIfEmpty(val), @@ -458,7 +458,7 @@ onMounted(async () => {