refs #7407 Medical Section #667
src
|
@ -259,6 +259,7 @@ globals:
|
||||||
ticketsMonitor: Tickets monitor
|
ticketsMonitor: Tickets monitor
|
||||||
clientsActionsMonitor: Clients and actions
|
clientsActionsMonitor: Clients and actions
|
||||||
serial: Serial
|
serial: Serial
|
||||||
|
medical: Mutual
|
||||||
created: Created
|
created: Created
|
||||||
worker: Worker
|
worker: Worker
|
||||||
now: Now
|
now: Now
|
||||||
|
@ -877,6 +878,7 @@ worker:
|
||||||
timeControl: Time control
|
timeControl: Time control
|
||||||
locker: Locker
|
locker: Locker
|
||||||
balance: Balance
|
balance: Balance
|
||||||
|
medical: Medical
|
||||||
list:
|
list:
|
||||||
name: Name
|
name: Name
|
||||||
email: Email
|
email: Email
|
||||||
|
@ -956,6 +958,15 @@ worker:
|
||||||
amount: Importe
|
amount: Importe
|
||||||
remark: Bonficado
|
remark: Bonficado
|
||||||
hasDiploma: Diploma
|
hasDiploma: Diploma
|
||||||
|
medical:
|
||||||
|
tableVisibleColumns:
|
||||||
|
date: Date
|
||||||
|
time: Hour
|
||||||
|
center: Formation Center
|
||||||
|
invoice: Invoice
|
||||||
|
amount: Amount
|
||||||
|
isFit: Fit
|
||||||
|
remark: Observations
|
||||||
imageNotFound: Image not found
|
imageNotFound: Image not found
|
||||||
balance:
|
balance:
|
||||||
tableVisibleColumns:
|
tableVisibleColumns:
|
||||||
|
|
|
@ -261,6 +261,7 @@ globals:
|
||||||
ticketsMonitor: Monitor de tickets
|
ticketsMonitor: Monitor de tickets
|
||||||
carlossa marked this conversation as resolved
Outdated
|
|||||||
clientsActionsMonitor: Clientes y acciones
|
clientsActionsMonitor: Clientes y acciones
|
||||||
serial: Facturas por serie
|
serial: Facturas por serie
|
||||||
|
medical: Mutua
|
||||||
created: Fecha creación
|
created: Fecha creación
|
||||||
worker: Trabajador
|
worker: Trabajador
|
||||||
now: Ahora
|
now: Ahora
|
||||||
|
@ -878,6 +879,8 @@ worker:
|
||||||
timeControl: Control de horario
|
timeControl: Control de horario
|
||||||
locker: Taquilla
|
locker: Taquilla
|
||||||
balance: Balance
|
balance: Balance
|
||||||
|
formation: Formación
|
||||||
|
medical: Mutua
|
||||||
list:
|
list:
|
||||||
name: Nombre
|
name: Nombre
|
||||||
email: Email
|
email: Email
|
||||||
|
@ -948,6 +951,15 @@ worker:
|
||||||
amount: Importe
|
amount: Importe
|
||||||
remark: Bonficado
|
remark: Bonficado
|
||||||
hasDiploma: Diploma
|
hasDiploma: Diploma
|
||||||
|
medical:
|
||||||
|
tableVisibleColumns:
|
||||||
|
date: Fecha
|
||||||
|
time: Hora
|
||||||
|
center: Centro de Formación
|
||||||
|
invoice: Factura
|
||||||
|
amount: Importe
|
||||||
|
isFit: Apto
|
||||||
|
remark: Observaciones
|
||||||
imageNotFound: No se ha encontrado la imagen
|
imageNotFound: No se ha encontrado la imagen
|
||||||
balance:
|
balance:
|
||||||
tableVisibleColumns:
|
tableVisibleColumns:
|
||||||
|
|
|
@ -0,0 +1,92 @@
|
||||||
|
<script setup>
|
||||||
|
import { ref, computed } from 'vue';
|
||||||
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
|
const tableRef = ref();
|
||||||
|
const { t } = useI18n();
|
||||||
|
const route = useRoute();
|
||||||
|
const entityId = computed(() => route.params.id);
|
||||||
|
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'date',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.date'),
|
||||||
|
create: true,
|
||||||
|
component: 'date',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'time',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.time'),
|
||||||
|
create: true,
|
||||||
|
component: 'time',
|
||||||
|
attrs: {
|
||||||
|
timeOnly: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'centerFk',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.center'),
|
||||||
|
create: true,
|
||||||
|
component: 'select',
|
||||||
|
attrs: {
|
||||||
|
url: 'medicalCenters',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'invoice',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.invoice'),
|
||||||
|
create: true,
|
||||||
|
component: 'input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'amount',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.amount'),
|
||||||
|
create: true,
|
||||||
|
component: 'input',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'isFit',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.isFit'),
|
||||||
|
create: true,
|
||||||
|
component: 'checkbox',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
align: 'left',
|
||||||
|
name: 'remark',
|
||||||
|
label: t('worker.medical.tableVisibleColumns.remark'),
|
||||||
|
create: true,
|
||||||
|
component: 'input',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<VnTable
|
||||||
|
ref="tableRef"
|
||||||
|
data-key="WorkerMedical"
|
||||||
|
:url="`Workers/${entityId}/medicalReview`"
|
||||||
|
save-url="MedicalReviews/crud"
|
||||||
|
:create="{
|
||||||
|
urlCreate: 'medicalReviews',
|
||||||
|
title: t('Create medicalReview'),
|
||||||
|
onDataSaved: () => tableRef.reload(),
|
||||||
|
formInitialData: {
|
||||||
|
workerFk: entityId,
|
||||||
|
},
|
||||||
|
}"
|
||||||
|
order="date DESC"
|
||||||
|
:columns="columns"
|
||||||
|
default-mode="table"
|
||||||
carlossa marked this conversation as resolved
jsegarra
commented
Copy paste? Copy paste?
jsegarra
commented
La propiedad de VnTable ya tiene definido este valor. La propiedad de VnTable ya tiene definido este valor.
Quitar
|
|||||||
|
auto-load
|
||||||
|
:right-search="false"
|
||||||
|
:is-editable="true"
|
||||||
|
:use-model="true"
|
||||||
|
/>
|
||||||
|
</template>
|
|
@ -25,6 +25,7 @@ export default {
|
||||||
'WorkerLocker',
|
'WorkerLocker',
|
||||||
'WorkerBalance',
|
'WorkerBalance',
|
||||||
'WorkerFormation',
|
'WorkerFormation',
|
||||||
|
'WorkerMedical',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -196,6 +197,15 @@ export default {
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Worker/Card/WorkerFormation.vue'),
|
component: () => import('src/pages/Worker/Card/WorkerFormation.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'WorkerMedical',
|
||||||
|
path: 'medical',
|
||||||
|
meta: {
|
||||||
|
title: 'medical',
|
||||||
|
icon: 'medical_information',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Worker/Card/WorkerMedical.vue'),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
No podemos gestionar traducciones en el módulo?