#7648 - HOTFIX: myEntries filters #566
|
@ -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,
|
||||
|
||||
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
alexm
commented
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>
|
||||
|
|
|
@ -8,4 +8,6 @@ entryFilter:
|
|||
reference: Reference
|
||||
landed: Landed
|
||||
shipped: Shipped
|
||||
fromShipped: Shipped(from)
|
||||
toShipped: Shipped(to)
|
||||
printBuys: Print buys
|
||||
|
|
|
@ -12,4 +12,6 @@ entryFilter:
|
|||
|
||||
landed: F. llegada
|
||||
shipped: F. salida
|
||||
fromShipped: F. salida(desde)
|
||||
toShipped: F. salida(hasta)
|
||||
Print buys: Imprimir etiquetas
|
||||
|
|
Loading…
Reference in New Issue
Por defecto ja ees
cardVisible: false