From 67db3bc5bb432ac03a9ca606c604d30b818f0e54 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 21 May 2024 21:07:27 +0200 Subject: [PATCH] updates --- src/i18n/locale/en.yml | 3 ++ src/i18n/locale/es.yml | 3 ++ src/pages/Worker/Card/WorkerPda.vue | 49 ++++++++++++++++++++++++++--- 3 files changed, 51 insertions(+), 4 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 0e6edeab2..2b11448f1 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -882,6 +882,9 @@ worker: model: Model serialNumber: Serial number removePDA: Deallocate PDA + sendToTablet: Send to sign + refresh: Refresh + download: Download create: name: Name lastName: Last name diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index d78e1762c..2c73741df 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -870,6 +870,9 @@ worker: model: Modelo serialNumber: NĂºmero de serie removePDA: Desasignar PDA + sendToTablet: Enviar a tablet + refresh: Refrescar + download: Descargar justificante create: name: Nombre lastName: Apellido diff --git a/src/pages/Worker/Card/WorkerPda.vue b/src/pages/Worker/Card/WorkerPda.vue index a8ba699cf..4e12bb9c8 100644 --- a/src/pages/Worker/Card/WorkerPda.vue +++ b/src/pages/Worker/Card/WorkerPda.vue @@ -21,7 +21,6 @@ const paginate = ref(); const downloadDocuware = ref(true); const sendToTablet = ref(true); const dialog = ref(); -const docuwarePDARef = ref(null); const route = useRoute(); const { openConfirmationModal } = useVnConfirm(); const routeId = computed(() => route.params.id); @@ -52,19 +51,19 @@ function reloadData() { paginate.value.fetch(); } -const handleSendToTablet = async () => { +const handleSendToTablet = async (deviceProductionFk) => { try { await axios.post(`Docuwares/upload`, { fileCabinet: 'hr', worker: route.params.id, - // pda: currentPDA.value.deviceProductionFk, + pda: deviceProductionFk, }); notify(t('PDA Signed'), 'positive'); } catch (err) { console.error('Error removing department'); } }; -const handleDownloadDocuware = async () => {}; +const handleDownloadDocuware = async (deviceProductionFk) => {};