diff --git a/src/pages/Worker/Card/WorkerBusiness.vue b/src/pages/Worker/Card/WorkerBusiness.vue index 8a52618db..172a1a6a1 100644 --- a/src/pages/Worker/Card/WorkerBusiness.vue +++ b/src/pages/Worker/Card/WorkerBusiness.vue @@ -9,6 +9,64 @@ const { t } = useI18n(); const route = useRoute(); const tableRef = ref(); const entityId = computed(() => route.params.id); +const businessFilter = { + include: [ + { + relation: 'department', + scope: { + fields: ['id', 'name'], + }, + }, + { + relation: 'workCenter', + scope: { + fields: ['id', 'name'], + }, + }, + { + relation: 'companyCode', + scope: { + fields: ['id', 'code'], + }, + }, + { + relation: 'reasonEnd', + scope: { + fields: ['id', 'reason'], + }, + }, + { + relation: 'occupationCode', + scope: { + fields: ['code', 'name'], + }, + }, + { + relation: 'workerBusinessProfessionalCategory', + scope: { + fields: ['id', 'description'], + }, + }, + { + relation: 'calendarType', + scope: { + fields: ['id', 'description'], + }, + }, + { + relation: 'workerBusinessType', + scope: { + fields: ['id', 'name'], + }, + }, + { + relation: 'workerBusinessAgreement', + scope: { + fields: ['id', 'name'], + }, + }, + ], +}; const columns = computed(() => [ { align: 'left', @@ -176,6 +234,7 @@ const columns = computed(() => [ :url="`Workers/${entityId}/Business`" order="id DESC" :columns="columns" + :user-filter="businessFilter" default-mode="card" auto-load :right-search="false"