#7648 - HOTFIX: myEntries filters #566

Merged
jsegarra merged 7 commits from hotfix_myEntries into master 2024-07-26 05:50:36 +00:00
3 changed files with 59 additions and 10 deletions
Showing only changes of commit aef83b7e9a - Show all commits

View File

@ -17,30 +17,68 @@ const columns = computed(() => [
columnFilter: false,
},
{
visible: false,
align: 'right',
label: t('shipped'),
name: 'shipped',
cardVisible: false,
columnFilter: {
name: 'fromShipped',
label: t('fromShipped'),
component: 'date',
},
format: ({ shipped }) => toDate(shipped),
},
{
visible: false,
align: 'left',
label: t('shipped'),
name: 'shipped',
columnFilter: {
name: 'toShipped',
label: t('toShipped'),
component: 'date',
},
format: ({ shipped }) => toDate(shipped),
cardVisible: true,
},
{
align: 'left',
label: t('landed'),
name: 'from',
align: 'right',
label: t('shipped'),
name: 'shipped',
cardVisible: false,
columnFilter: {
component: 'date',
},
format: ({ landed }) => toDate(landed),
columnFilter: false,
Review

Por defecto ja ees cardVisible: false

Por defecto ja ees `cardVisible: false`
format: ({ shipped }) => toDate(shipped),
},
{
align: 'left',
align: 'right',
label: t('landed'),
name: 'landed',
cardVisible: false,
columnFilter: false,
format: ({ landed }) => toDate(landed),
},
{
align: 'right',
label: t('globals.wareHouseIn'),
name: 'warehouseInName',
name: 'warehouseInFk',
format: (row) => row.warehouseInName,
cardVisible: true,
columnField: {
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Realmente no hace falta si el filter ya se ha puesto aparte

Realmente no hace falta si el filter ya se ha puesto aparte
component: null,
},
columnFilter: {
component: 'select',
attrs: {
url: 'warehouses',
fields: ['id', 'name'],
optionLabel: 'name',
optionValue: 'id',
},
alias: 't',
inWhere: true,
},
},
{
align: 'left',
@ -77,7 +115,14 @@ const printBuys = (rowId) => {
:label="t('Search entries')"
:info="t('You can search by entry reference')"
/>
<VnTable data-key="myEntriesList" url="Entries/filter" :columns="columns" auto-load />
<VnTable
data-key="myEntriesList"
url="Entries/filter"
:columns="columns"
default-mode="table"
order="shipped DESC"
auto-load
/>
</template>
<i18n>

View File

@ -8,4 +8,6 @@ entryFilter:
reference: Reference
landed: Landed
shipped: Shipped
fromShipped: Shipped(from)
toShipped: Shipped(to)
printBuys: Print buys

View File

@ -12,4 +12,6 @@ entryFilter:
landed: F. llegada
shipped: F. salida
fromShipped: F. salida(desde)
toShipped: F. salida(hasta)
Print buys: Imprimir etiquetas