forked from verdnatura/salix-front
feat: modify myentries filters
This commit is contained in:
parent
454c229f13
commit
aef83b7e9a
|
@ -17,30 +17,68 @@ const columns = computed(() => [
|
||||||
columnFilter: false,
|
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',
|
align: 'left',
|
||||||
label: t('shipped'),
|
label: t('shipped'),
|
||||||
name: 'shipped',
|
name: 'shipped',
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
|
name: 'toShipped',
|
||||||
|
label: t('toShipped'),
|
||||||
component: 'date',
|
component: 'date',
|
||||||
},
|
},
|
||||||
format: ({ shipped }) => toDate(shipped),
|
format: ({ shipped }) => toDate(shipped),
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'right',
|
||||||
label: t('landed'),
|
label: t('shipped'),
|
||||||
name: 'from',
|
name: 'shipped',
|
||||||
cardVisible: false,
|
cardVisible: false,
|
||||||
columnFilter: {
|
columnFilter: false,
|
||||||
component: 'date',
|
format: ({ shipped }) => toDate(shipped),
|
||||||
},
|
|
||||||
format: ({ landed }) => toDate(landed),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'right',
|
||||||
|
label: t('landed'),
|
||||||
|
name: 'landed',
|
||||||
|
cardVisible: false,
|
||||||
|
columnFilter: false,
|
||||||
|
format: ({ landed }) => toDate(landed),
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
align: 'right',
|
||||||
label: t('globals.wareHouseIn'),
|
label: t('globals.wareHouseIn'),
|
||||||
name: 'warehouseInName',
|
name: 'warehouseInFk',
|
||||||
|
format: (row) => row.warehouseInName,
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
|
columnField: {
|
||||||
|
component: null,
|
||||||
|
},
|
||||||
|
columnFilter: {
|
||||||
|
component: 'select',
|
||||||
|
attrs: {
|
||||||
|
url: 'warehouses',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
optionLabel: 'name',
|
||||||
|
optionValue: 'id',
|
||||||
|
},
|
||||||
|
alias: 't',
|
||||||
|
inWhere: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -77,7 +115,14 @@ const printBuys = (rowId) => {
|
||||||
: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 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>
|
</template>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
|
|
|
@ -8,4 +8,6 @@ entryFilter:
|
||||||
reference: Reference
|
reference: Reference
|
||||||
landed: Landed
|
landed: Landed
|
||||||
shipped: Shipped
|
shipped: Shipped
|
||||||
|
fromShipped: Shipped(from)
|
||||||
|
toShipped: Shipped(to)
|
||||||
printBuys: Print buys
|
printBuys: Print buys
|
||||||
|
|
|
@ -12,4 +12,6 @@ entryFilter:
|
||||||
|
|
||||||
landed: F. llegada
|
landed: F. llegada
|
||||||
shipped: F. salida
|
shipped: F. salida
|
||||||
|
fromShipped: F. salida(desde)
|
||||||
|
toShipped: F. salida(hasta)
|
||||||
Print buys: Imprimir etiquetas
|
Print buys: Imprimir etiquetas
|
||||||
|
|
Loading…
Reference in New Issue