diff --git a/src/pages/Entry/Card/EntryBasicData.vue b/src/pages/Entry/Card/EntryBasicData.vue index 3288616fb..07f4426ba 100644 --- a/src/pages/Entry/Card/EntryBasicData.vue +++ b/src/pages/Entry/Card/EntryBasicData.vue @@ -44,9 +44,8 @@ const onFilterTravelSelected = (formData, id) => { auto-load /> diff --git a/src/pages/Entry/Card/EntryCard.vue b/src/pages/Entry/Card/EntryCard.vue index 436f5b9cd..f05f76b50 100644 --- a/src/pages/Entry/Card/EntryCard.vue +++ b/src/pages/Entry/Card/EntryCard.vue @@ -2,11 +2,56 @@ import VnCard from 'components/common/VnCard.vue'; import EntryDescriptor from './EntryDescriptor.vue'; import EntryFilter from '../EntryFilter.vue'; + +const filter = { + include: [ + { + relation: 'travel', + scope: { + fields: [ + 'id', + 'landed', + 'shipped', + 'agencyModeFk', + 'warehouseOutFk', + 'daysInForward', + ], + include: [ + { + relation: 'agency', + scope: { + fields: ['name'], + }, + }, + { + relation: 'warehouseOut', + scope: { + fields: ['name'], + }, + }, + { + relation: 'warehouseIn', + scope: { + fields: ['name'], + }, + }, + ], + }, + }, + { + relation: 'supplier', + scope: { + fields: ['id', 'nickname'], + }, + }, + ], +};