From 4810e02907b2b5b720cb146b2f60e4cefde5c3b6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 9 Feb 2024 20:50:33 -0300 Subject: [PATCH] add basic order to table --- src/pages/Travel/ExtraCommunity.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index 5a72dcf27..4cbb850e1 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -110,6 +110,7 @@ const columns = computed(() => [ name: 'id', align: 'center', showValue: true, + sortable: true, }, { label: t('supplier.pageTitles.supplier'), @@ -117,6 +118,7 @@ const columns = computed(() => [ name: 'cargoSupplierNickname', align: 'left', showValue: true, + sortable: true, }, { label: t('globals.agency'), @@ -124,6 +126,7 @@ const columns = computed(() => [ name: 'agencyModeName', align: 'left', showValue: true, + sortable: true, }, { label: t('globals.amount'), @@ -131,6 +134,7 @@ const columns = computed(() => [ field: 'entries', align: 'left', showValue: true, + sortable: true, format: (value) => toCurrency( value @@ -146,6 +150,7 @@ const columns = computed(() => [ name: 'ref', align: 'left', showValue: false, + sortable: true, }, { label: t('globals.packages'), @@ -153,6 +158,7 @@ const columns = computed(() => [ name: 'stickers', align: 'left', showValue: true, + sortable: true, }, { label: t('kg'), @@ -160,6 +166,7 @@ const columns = computed(() => [ name: 'kg', align: 'left', showValue: false, + sortable: true, }, { label: t('physicKg'), @@ -167,6 +174,7 @@ const columns = computed(() => [ name: 'loadedKg', align: 'left', showValue: true, + sortable: true, }, { label: 'KG Vol.', @@ -174,6 +182,7 @@ const columns = computed(() => [ name: 'volumeKg', align: 'left', showValue: true, + sortable: true, }, { label: t('globals.wareHouseOut'), @@ -181,14 +190,16 @@ const columns = computed(() => [ name: 'warehouseOutName', align: 'left', showValue: true, + sortable: true, }, { label: t('shipped'), field: 'shipped', name: 'shipped', align: 'left', - format: (value) => toDate(value.substring(0, 10)), showValue: true, + sortable: true, + format: (value) => toDate(value.substring(0, 10)), }, { label: t('globals.wareHouseIn'), @@ -196,14 +207,16 @@ const columns = computed(() => [ name: 'warehouseInName', align: 'left', showValue: true, + sortable: true, }, { label: t('landed'), field: 'landed', name: 'landed', align: 'left', - format: (value) => toDate(value.substring(0, 10)), showValue: true, + sortable: true, + format: (value) => toDate(value.substring(0, 10)), }, ]);