refs #7396 fix summary basicData
This commit is contained in:
parent
d7e3303d68
commit
cd21d7817d
|
@ -830,6 +830,7 @@ worker:
|
|||
calendar: Calendar
|
||||
timeControl: Time control
|
||||
locker: Locker
|
||||
|
||||
list:
|
||||
name: Name
|
||||
email: Email
|
||||
|
@ -861,6 +862,15 @@ worker:
|
|||
role: Role
|
||||
sipExtension: Extension
|
||||
locker: Locker
|
||||
fiDueDate: Fecha de caducidad del DNI
|
||||
sex: Sexo
|
||||
seniority: Antigüedad
|
||||
fi: DNI/NIE/NIF
|
||||
birth: Cumpleaños
|
||||
isFreelance: Autónomo
|
||||
isSsDiscounted: Bonificación SS
|
||||
hasMachineryAuthorized: Autorizado para llevar maquinaria
|
||||
isDisable: Trabajador desactivado
|
||||
notificationsManager:
|
||||
activeNotifications: Active notifications
|
||||
availableNotifications: Available notifications
|
||||
|
|
|
@ -78,7 +78,6 @@ const maritalStatus = [
|
|||
<VnInput :label="t('Name')" clearable v-model="data.firstName" />
|
||||
<VnInput :label="t('Last name')" clearable v-model="data.lastName" />
|
||||
</VnRow>
|
||||
{{ data }}
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<VnInput v-model="data.phone" :label="t('Business phone')" clearable />
|
||||
<VnInput
|
||||
|
@ -149,11 +148,33 @@ const maritalStatus = [
|
|||
</VnRow>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<VnInputDate :label="t('fiDueDate')" v-model="data.fiDueDate" />
|
||||
|
||||
<VnInput v-model="data.sex" :label="t('sex')" clearable />
|
||||
</VnRow>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<VnInputDate :label="t('seniority')" v-model="data.seniority" />
|
||||
<VnInput v-model="data.fi" :label="t('fi')" />
|
||||
</VnRow>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<VnInputDate :label="t('birth')" v-model="data.birth" />
|
||||
</VnRow>
|
||||
<VnRow class="row q-gutter-md q-mb-md">
|
||||
<QCheckbox
|
||||
size="sm"
|
||||
:label="t('isFreelance')"
|
||||
v-model="data.isFreelance"
|
||||
/>
|
||||
<QCheckbox
|
||||
size="sm"
|
||||
v-model="data.isSsDiscounted"
|
||||
:label="t(`isSsDiscounted`)"
|
||||
/>
|
||||
<QCheckbox
|
||||
size="sm"
|
||||
v-model="data.hasMachineryAuthorized"
|
||||
:label="t(`hasMachineryAuthorized`)"
|
||||
/>
|
||||
<QCheckbox size="sm" v-model="data.isDisable" :label="t(`isDisable`)" />
|
||||
</VnRow>
|
||||
</template>
|
||||
</FormModel>
|
||||
|
@ -174,4 +195,12 @@ es:
|
|||
SSN: NSS
|
||||
Locker: Taquilla
|
||||
fiDueDate: Fecha de caducidad del DNI
|
||||
seniority: Antigüedad
|
||||
hasMachineryAuthorized: Autorizado para llevar maquinaria
|
||||
isFreelance: Autónomo
|
||||
isDisable: Trabajador desactivado
|
||||
fi: DNI/NIE/NIF
|
||||
sex: Sexo
|
||||
birth: Cumpleaños
|
||||
isSsDiscounted: Bonificación SS
|
||||
</i18n>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { ref, onMounted, computed } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { dashIfEmpty } from 'src/filters';
|
||||
import { dashIfEmpty, toDate } from 'src/filters';
|
||||
import { getUrl } from 'src/composables/getUrl';
|
||||
import VnLv from 'src/components/ui/VnLv.vue';
|
||||
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
|
||||
|
@ -110,6 +110,41 @@ const filter = {
|
|||
</template>
|
||||
</VnLv>
|
||||
<VnLv :label="t('worker.summary.locker')" :value="worker.locker" />
|
||||
<VnLv
|
||||
:label="t('worker.summary.fiDueDate')"
|
||||
:value="toDate(worker.fiDueDate)"
|
||||
/>
|
||||
<VnLv :label="t('worker.summary.sex')" :value="worker.sex" />
|
||||
<VnLv
|
||||
:label="t('worker.summary.seniority')"
|
||||
:value="toDate(worker.seniority)"
|
||||
/>
|
||||
<VnLv :label="t('worker.summary.fi')" :value="worker.fi" />
|
||||
<VnLv :label="t('worker.summary.birth')" :value="toDate(worker.birth)" />
|
||||
<QCheckbox
|
||||
style="padding: 0"
|
||||
:label="t('worker.summary.isFreelance')"
|
||||
v-model="worker.isFreelance"
|
||||
:disable="true"
|
||||
/>
|
||||
<QCheckbox
|
||||
style="padding: 0"
|
||||
:label="t('worker.summary.isSsDiscounted')"
|
||||
v-model="worker.isSsDiscounted"
|
||||
:disable="true"
|
||||
/>
|
||||
<QCheckbox
|
||||
style="padding: 0"
|
||||
:label="t('worker.summary.hasMachineryAuthorized')"
|
||||
v-model="worker.hasMachineryAuthorized"
|
||||
:disable="true"
|
||||
/>
|
||||
<QCheckbox
|
||||
style="padding: 0"
|
||||
:label="t('worker.summary.isDisable')"
|
||||
v-model="worker.isDisable"
|
||||
:disable="true"
|
||||
/>
|
||||
</QCard>
|
||||
<QCard class="vn-one">
|
||||
<VnTitle :text="t('worker.summary.userData')" />
|
||||
|
|
Loading…
Reference in New Issue