0
0
Fork 0

add basic order to table

This commit is contained in:
William Buezas 2024-02-09 20:50:33 -03:00
parent 254d5a291f
commit 4810e02907
1 changed files with 15 additions and 2 deletions

View File

@ -110,6 +110,7 @@ const columns = computed(() => [
name: 'id', name: 'id',
align: 'center', align: 'center',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('supplier.pageTitles.supplier'), label: t('supplier.pageTitles.supplier'),
@ -117,6 +118,7 @@ const columns = computed(() => [
name: 'cargoSupplierNickname', name: 'cargoSupplierNickname',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('globals.agency'), label: t('globals.agency'),
@ -124,6 +126,7 @@ const columns = computed(() => [
name: 'agencyModeName', name: 'agencyModeName',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('globals.amount'), label: t('globals.amount'),
@ -131,6 +134,7 @@ const columns = computed(() => [
field: 'entries', field: 'entries',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
format: (value) => format: (value) =>
toCurrency( toCurrency(
value value
@ -146,6 +150,7 @@ const columns = computed(() => [
name: 'ref', name: 'ref',
align: 'left', align: 'left',
showValue: false, showValue: false,
sortable: true,
}, },
{ {
label: t('globals.packages'), label: t('globals.packages'),
@ -153,6 +158,7 @@ const columns = computed(() => [
name: 'stickers', name: 'stickers',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('kg'), label: t('kg'),
@ -160,6 +166,7 @@ const columns = computed(() => [
name: 'kg', name: 'kg',
align: 'left', align: 'left',
showValue: false, showValue: false,
sortable: true,
}, },
{ {
label: t('physicKg'), label: t('physicKg'),
@ -167,6 +174,7 @@ const columns = computed(() => [
name: 'loadedKg', name: 'loadedKg',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: 'KG Vol.', label: 'KG Vol.',
@ -174,6 +182,7 @@ const columns = computed(() => [
name: 'volumeKg', name: 'volumeKg',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('globals.wareHouseOut'), label: t('globals.wareHouseOut'),
@ -181,14 +190,16 @@ const columns = computed(() => [
name: 'warehouseOutName', name: 'warehouseOutName',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('shipped'), label: t('shipped'),
field: 'shipped', field: 'shipped',
name: 'shipped', name: 'shipped',
align: 'left', align: 'left',
format: (value) => toDate(value.substring(0, 10)),
showValue: true, showValue: true,
sortable: true,
format: (value) => toDate(value.substring(0, 10)),
}, },
{ {
label: t('globals.wareHouseIn'), label: t('globals.wareHouseIn'),
@ -196,14 +207,16 @@ const columns = computed(() => [
name: 'warehouseInName', name: 'warehouseInName',
align: 'left', align: 'left',
showValue: true, showValue: true,
sortable: true,
}, },
{ {
label: t('landed'), label: t('landed'),
field: 'landed', field: 'landed',
name: 'landed', name: 'landed',
align: 'left', align: 'left',
format: (value) => toDate(value.substring(0, 10)),
showValue: true, showValue: true,
sortable: true,
format: (value) => toDate(value.substring(0, 10)),
}, },
]); ]);