From 73049f7282bd76737360be1e772c65ce62bce7d7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 11 Jul 2024 19:56:37 +0200 Subject: [PATCH] add new filter by days --- src/pages/Entry/MyEntries.vue | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index 58a69f70c..5317645b6 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -7,6 +7,7 @@ import { toDate } from 'src/filters/index'; import { useQuasar } from 'quasar'; import EntryBuysTableDialog from './EntryBuysTableDialog.vue'; import VnTable from 'components/VnTable/VnTable.vue'; +import VnInput from 'src/components/common/VnInput.vue'; const stateStore = useStateStore(); const { t } = useI18n(); @@ -34,6 +35,10 @@ const columns = computed(() => [ isTitle: false, create: true, cardVisible: true, + component: 'date', + columnField: { + component: null, + }, format: ({ shipped }) => toDate(shipped), }, { @@ -43,6 +48,10 @@ const columns = computed(() => [ isTitle: false, create: true, cardVisible: false, + component: 'date', + columnField: { + component: null, + }, format: ({ landed }) => toDate(landed), }, { @@ -75,6 +84,7 @@ const printBuys = (rowId) => { }, }); }; +const DEFAULT_INTERVAL_DAYS = 3; +en: + params: + scopeDays: Days onward es: - Search entries: Buscar entradas + params: + scopeDays: Días adelante You can search by entry reference: Puedes buscar por referencia de la entrada