diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 94d552be34..116cd9d012 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -833,6 +833,7 @@ export default { notifications: 'Notifications', workerCreate: 'New worker', department: 'Department', + pda: 'PDA', }, list: { name: 'Name', @@ -874,6 +875,12 @@ export default { subscribed: 'Subscribed to the notification', unsubscribed: 'Unsubscribed from the notification', }, + pda: { + newPDA: 'New PDA', + model: 'Model', + serialNumber: 'Serial number', + removePDA: 'Deallocate PDA', + }, create: { name: 'Name', lastName: 'Last name', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index bcd780f5b4..728b997021 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -833,6 +833,7 @@ export default { notifications: 'Notificaciones', workerCreate: 'Nuevo trabajador', department: 'Departamentos', + pda: 'PDA', }, list: { name: 'Nombre', @@ -874,6 +875,12 @@ export default { subscribed: 'Se ha suscrito a la notificación', unsubscribed: 'Se ha dado de baja de la notificación', }, + pda: { + newPDA: 'Nueva PDA', + model: 'Modelo', + serialNumber: 'Número de serie', + removePDA: 'Desasignar PDA', + }, create: { name: 'Nombre', lastName: 'Apellido', diff --git a/src/pages/Worker/Card/WorkerPda.vue b/src/pages/Worker/Card/WorkerPda.vue new file mode 100644 index 0000000000..e01c808387 --- /dev/null +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -0,0 +1,141 @@ + + + + (deviceProductionsOptions = data)" + /> + setCurrentPDA(data[0])" + /> + + setCurrentPDA(data)" + > + + + + + {{ currentPDA.description }} + + + + + + {{ t('worker.pda.removePDA') }} + + + + + + + + + + ID: {{ scope.opt?.id }} + + {{ scope.opt?.modelFk }}, + {{ scope.opt?.serialNumber }} + + + + + + + + + + + +es: + PDA deallocated: PDA desasignada + diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 27a6f19a9b..57a8795369 100644 --- a/src/router/modules/worker.js +++ b/src/router/modules/worker.js @@ -11,7 +11,7 @@ export default { redirect: { name: 'WorkerMain' }, menus: { main: ['WorkerList', 'WorkerDepartment'], - card: ['WorkerNotificationsManager'], + card: ['WorkerNotificationsManager', 'WorkerPda'], departmentCard: ['BasicData'], }, children: [ @@ -75,6 +75,15 @@ export default { component: () => import('src/pages/Worker/Card/WorkerNotificationsManager.vue'), }, + { + name: 'WorkerPda', + path: 'pda', + meta: { + title: 'pda', + icon: 'phone_android', + }, + component: () => import('src/pages/Worker/Card/WorkerPda.vue'), + }, ], }, ],