From 54eb567e39e43fc6c87f8de52c9359a487b59a5c Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 22 Aug 2024 22:13:50 +0200 Subject: [PATCH] perf: date fields --- src/pages/Ticket/TicketAdvance.vue | 2 +- src/pages/Ticket/TicketAdvanceFilter.vue | 4 +--- src/pages/Ticket/TicketFuture.vue | 4 ++-- src/pages/Ticket/TicketFutureFilter.vue | 4 +--- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/pages/Ticket/TicketAdvance.vue b/src/pages/Ticket/TicketAdvance.vue index bf4000fdf..45bd8fd39 100644 --- a/src/pages/Ticket/TicketAdvance.vue +++ b/src/pages/Ticket/TicketAdvance.vue @@ -448,7 +448,7 @@ const handleCloseProgressDialog = () => { const handleCancelProgress = () => (cancelProgress.value = true); onMounted(async () => { - let today = Date.vnNew(); + let today = Date.vnNew().toISOString(); const tomorrow = new Date(today); tomorrow.setDate(tomorrow.getDate() + 1); userParams.dateFuture = tomorrow; diff --git a/src/pages/Ticket/TicketAdvanceFilter.vue b/src/pages/Ticket/TicketAdvanceFilter.vue index c4548763a..ed61d9447 100644 --- a/src/pages/Ticket/TicketAdvanceFilter.vue +++ b/src/pages/Ticket/TicketAdvanceFilter.vue @@ -55,7 +55,7 @@ onMounted(async () => await getItemPackingTypes()); :data-key="props.dataKey" :search-button="true" :hidden-tags="['search']" - :unremovable-params="['warehouseFk', 'dateFuture', 'dateToAdvance']" + :un-removable-params="['warehouseFk', 'dateFuture', 'dateToAdvance']" >