From 319295f2c2d8e1eca264da56375b0cc025d13d3d Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 11 Mar 2024 16:53:33 -0300 Subject: [PATCH 1/6] Workers PDA --- src/i18n/en/index.js | 7 ++ src/i18n/es/index.js | 7 ++ src/pages/Worker/Card/WorkerPda.vue | 141 ++++++++++++++++++++++++++++ src/router/modules/worker.js | 11 ++- 4 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 src/pages/Worker/Card/WorkerPda.vue diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 94d552be3..116cd9d01 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 bcd780f5b..728b99702 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 000000000..e01c80838 --- /dev/null +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -0,0 +1,141 @@ + + + + + +es: + PDA deallocated: PDA desasignada + diff --git a/src/router/modules/worker.js b/src/router/modules/worker.js index 27a6f19a9..57a879536 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'), + }, ], }, ], From 029fc043dea983806eb97b4b041303983070aeed Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 12 Mar 2024 08:08:20 -0300 Subject: [PATCH 2/6] Change title translation --- src/i18n/es/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 728b99702..b8ec8dc6b 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -876,7 +876,7 @@ export default { unsubscribed: 'Se ha dado de baja de la notificación', }, pda: { - newPDA: 'Nueva PDA', + newPDA: 'PDA Actual', model: 'Modelo', serialNumber: 'Número de serie', removePDA: 'Desasignar PDA', From dad2711311e4ef05747501cf8c83b9662d899cb6 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Tue, 12 Mar 2024 08:13:27 -0300 Subject: [PATCH 3/6] fix translation --- src/i18n/en/index.js | 1 + src/i18n/es/index.js | 3 ++- src/pages/Worker/Card/WorkerPda.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index 116cd9d01..ece6d516a 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -877,6 +877,7 @@ export default { }, pda: { newPDA: 'New PDA', + currentPDA: 'Current PDA', model: 'Model', serialNumber: 'Serial number', removePDA: 'Deallocate PDA', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index b8ec8dc6b..be16e3671 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -876,7 +876,8 @@ export default { unsubscribed: 'Se ha dado de baja de la notificación', }, pda: { - newPDA: 'PDA Actual', + newPDA: 'Nueva PDA', + currentPDA: 'PDA Actual', model: 'Modelo', serialNumber: 'Número de serie', removePDA: 'Desasignar PDA', diff --git a/src/pages/Worker/Card/WorkerPda.vue b/src/pages/Worker/Card/WorkerPda.vue index e01c80838..a487f2495 100644 --- a/src/pages/Worker/Card/WorkerPda.vue +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -83,7 +83,7 @@ onMounted(async () => await fetchCurrentDeviceRef.value.fetch());