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

View File

@ -861,6 +861,22 @@ worker:
role: Rol
sipExtension: Extensión
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:
activeNotifications: Notificaciones activas
availableNotifications: Notificaciones disponibles

View File

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

View File

@ -61,6 +61,31 @@ 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'],
},
},
],
},
},
],
};
</script>
@ -164,6 +189,39 @@ const filter = {
</template>
</VnLv>
</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>
</CardSummary>
</template>