0
0
Fork 0

hotFix: try to fix myEntries

This commit is contained in:
Alex Moreno 2024-07-24 20:19:55 +02:00
parent 369736f362
commit 29299970f4
1 changed files with 37 additions and 39 deletions

View File

@ -10,52 +10,51 @@ import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n(); const { t } = useI18n();
const quasar = useQuasar(); const quasar = useQuasar();
const columns = computed(() => [ const columns = computed(() => [
{
align: 'left',
name: 'id',
label: t('customer.extendedList.tableVisibleColumns.id'),
chip: {
condition: () => true,
},
isId: true,
isTitle: false,
},
{
align: 'left',
label: t('shipped'),
name: 'shipped',
isTitle: false,
create: true,
cardVisible: true,
component: 'date',
columnField: {
component: null,
},
format: ({ shipped }) => toDate(shipped),
},
// { // {
// align: 'left', // align: 'left',
// label: t('landed'), // name: 'id',
// name: 'landed', // label: t('customer.extendedList.tableVisibleColumns.id'),
// chip: {
// condition: () => true,
// },
// isId: true,
// isTitle: false,
// },
// {
// align: 'left',
// label: t('shipped'),
// name: 'shipped',
// isTitle: false, // isTitle: false,
// create: true, // create: true,
// cardVisible: false, // cardVisible: true,
// component: 'date', // component: 'date',
// columnField: { // columnField: {
// component: null, // component: null,
// }, // },
// format: ({ landed }) => toDate(landed), // format: ({ shipped }) => toDate(shipped),
// },
// {
// align: 'left',
// label: t('globals.wareHouseIn'),
// name: 'warehouseInName',
// isTitle: false,
// cardVisible: true,
// create: false,
// }, // },
{
align: 'left',
label: t('landed'),
name: 'landed',
isTitle: false,
create: true,
cardVisible: false,
component: 'date',
columnField: {
component: null,
},
format: ({ landed }) => toDate(landed),
},
{
align: 'left',
label: t('globals.wareHouseIn'),
name: 'warehouseInName',
isTitle: false,
cardVisible: true,
create: false,
},
// { // {
// align: 'right', // align: 'right',
// name: 'tableActions', // name: 'tableActions',
@ -79,14 +78,13 @@ const columns = computed(() => [
// }; // };
</script> </script>
<template> <template>
<VnSearchbar <!-- <VnSearchbar
data-key="myEntriesList" data-key="myEntriesList"
url="Entries/filter" url="Entries/filter"
:label="t('Search entries')" :label="t('Search entries')"
:info="t('You can search by entry reference')" :info="t('You can search by entry reference')"
/> /> -->
<VnTable <VnTable
ref="myEntriesRef"
data-key="myEntriesList" data-key="myEntriesList"
url="Entries/filter" url="Entries/filter"
:columns="columns" :columns="columns"