forked from verdnatura/salix-front
refs #6553 fix business summary traductions
This commit is contained in:
parent
4b44b9a979
commit
6e261b7793
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue