add basic order to table
gitea/salix-front/pipeline/pr-dev This commit looks good Details

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',
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)),
},
]);