diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue index 2940aa293..ea5ddcdec 100644 --- a/src/pages/Worker/Card/WorkerSummary.vue +++ b/src/pages/Worker/Card/WorkerSummary.vue @@ -26,11 +26,6 @@ const entityId = computed(() => $props.id || route.params.id); const basicDataUrl = ref(null); const advancedSummary = ref(); -onBeforeMount(async () => { - advancedSummary.value = await useAdvancedSummary('Workers', entityId.value); - basicDataUrl.value = `#/worker/${entityId.value}/basic-data`; -}); - const filter = { include: [ { @@ -74,33 +69,37 @@ const filter = { { relation: 'sip', }, - { - relation: 'business', - scope: { - include: [ - { - relation: 'department', - scope: { - fields: ['id', 'name'], - }, - }, - { - relation: 'reasonEnd', - scope: { - fields: ['id', 'reason'], - }, - }, - { - relation: 'workerBusinessProfessionalCategory', - scope: { - fields: ['id', 'description'], - }, - }, - ], - }, - }, + // { + // relation: 'business', + // scope: { + // include: [ + // { + // relation: 'department', + // scope: { + // fields: ['id', 'name'], + // }, + // }, + // { + // relation: 'reasonEnd', + // scope: { + // fields: ['id', 'reason'], + // }, + // }, + // { + // relation: 'workerBusinessProfessionalCategory', + // scope: { + // fields: ['id', 'description'], + // }, + // }, + // ], + // }, + // }, ], }; +onBeforeMount(async () => { + advancedSummary.value = await useAdvancedSummary('Workers', entityId.value); + basicDataUrl.value = `#/worker/${entityId.value}/basic-data`; +});