0
0
Fork 0

refs #6553 fix business summary traductions

This commit is contained in:
Carlos Satorres 2024-06-03 14:38:48 +02:00
parent 4b44b9a979
commit 6e261b7793
4 changed files with 106 additions and 8 deletions

View File

@ -863,15 +863,22 @@ worker:
role: Role role: Role
sipExtension: Extension sipExtension: Extension
locker: Locker locker: Locker
fiDueDate: Fecha de caducidad del DNI fiDueDate: DNI expiration date
sex: Sexo sex: Sex
seniority: Antigüedad seniority: Antiquity
fi: DNI/NIE/NIF fi: DNI/NIE/NIF
birth: Fecha de nacimiento birth: Date of birth
isFreelance: Autónomo isFreelance: Autonomous
isSsDiscounted: Bonificación SS isSsDiscounted: Bonus SS
hasMachineryAuthorized: Autorizado para llevar maquinaria hasMachineryAuthorized: Authorized to carry machinery
isDisable: Trabajador desactivado isDisable: Disabled worker
business: Business
started: Start Date
ended: End Date
reasonEnd: Reason for Termination
department: Deparment
workerBusinessCategory: Professional Category
notes: Notes
notificationsManager: notificationsManager:
activeNotifications: Active notifications activeNotifications: Active notifications
availableNotifications: Available notifications availableNotifications: Available notifications

View File

@ -861,6 +861,22 @@ worker:
role: Rol role: Rol
sipExtension: Extensión sipExtension: Extensión
locker: Taquilla locker: Taquilla
fiDueDate: Fecha de caducidad del DNI
sex: Sexo
seniority: Antigüedad
fi: DNI/NIE/NIF
birth: Fecha de nacimiento
isFreelance: Autónomo
isSsDiscounted: Bonificación SS
hasMachineryAuthorized: Autorizado para llevar maquinaria
isDisable: Trabajador desactivado
business: Contrato
started: Fecha de incio
ended: Finalización
reasonEnd: Razón de finalización
department: Departamento
workerBusinessCategory: Categoria profesional
notes: Notas
notificationsManager: notificationsManager:
activeNotifications: Notificaciones activas activeNotifications: Notificaciones activas
availableNotifications: Notificaciones disponibles availableNotifications: Notificaciones disponibles

View File

@ -75,6 +75,7 @@ const columns = computed(() => [
format: ({ started }) => toDate(started), format: ({ started }) => toDate(started),
component: VnInputDate, component: VnInputDate,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -83,6 +84,7 @@ const columns = computed(() => [
format: ({ ended }) => toDate(ended), format: ({ ended }) => toDate(ended),
component: VnInputDate, component: VnInputDate,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -95,6 +97,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -119,6 +122,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -131,6 +135,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -143,6 +148,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -155,6 +161,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -179,6 +186,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -199,6 +207,7 @@ const columns = computed(() => [
}, },
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -207,6 +216,7 @@ const columns = computed(() => [
component: 'input', component: 'input',
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -215,6 +225,7 @@ const columns = computed(() => [
component: 'input', component: 'input',
disable: false, disable: false,
cardVisible: true, cardVisible: true,
created: true,
}, },
{ {
align: 'left', align: 'left',
@ -232,6 +243,12 @@ const columns = computed(() => [
ref="tableRef" ref="tableRef"
data-key="WorkerBusiness" data-key="WorkerBusiness"
:url="`Workers/${entityId}/Business`" :url="`Workers/${entityId}/Business`"
:create="{
urlCreate: `Workers/${entityId}/Business`,
title: 'Create business',
onDataSaved: ({ id }) => tableRef.redirect(id),
formInitialData: {},
}"
order="id DESC" order="id DESC"
:columns="columns" :columns="columns"
:user-filter="businessFilter" :user-filter="businessFilter"

View File

@ -61,6 +61,31 @@ const filter = {
{ {
relation: 'sip', relation: 'sip',
}, },
{
relation: 'business',
scope: {
include: [
{
relation: 'department',
scope: {
fields: ['id', 'name'],
},
},
{
relation: 'reasonEnd',
scope: {
fields: ['id', 'reason'],
},
},
{
relation: 'workerBusinessProfessionalCategory',
scope: {
fields: ['id', 'description'],
},
},
],
},
},
], ],
}; };
</script> </script>
@ -164,6 +189,39 @@ const filter = {
</template> </template>
</VnLv> </VnLv>
</QCard> </QCard>
<QCard class="vn-one">
<VnTitle
:url="`#/worker/${entityId}/business`"
:text="t('worker.summary.business')"
/>
<VnLv
:label="t('worker.summary.started')"
:value="toDate(worker.business[0].started)"
/>
<VnLv
:label="t('worker.summary.ended')"
:value="toDate(worker.business[0].ended)"
/>
<VnLv
:label="t('worker.summary.reasonEnd')"
:value="worker.business[0].reasonEndFk"
/>
<VnLv
:label="t('worker.summary.department')"
:value="worker.business[0].department.name"
/>
<VnLv
:label="t('worker.summary.workerBusinessCategory')"
:value="
worker.business[0].workerBusinessProfessionalCategory.description
"
/>
<VnLv
:label="t('worker.summary.notes')"
:value="worker.business[0].notes"
/>
</QCard>
</template> </template>
</CardSummary> </CardSummary>
</template> </template>