From dfceb9403cc5b69a7da50ea94174f14f4599fc80 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 15 Oct 2024 07:54:52 +0200 Subject: [PATCH] fix: refs #7986 fix front --- src/i18n/locale/en.yml | 12 ++++ src/i18n/locale/es.yml | 13 +++++ src/pages/Worker/Card/WorkerOperator.vue | 73 ++++++------------------ src/router/modules/worker.js | 2 - 4 files changed, 44 insertions(+), 56 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index b73395df2..422c21d82 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -840,6 +840,18 @@ worker: debit: Debt credit: Have concept: Concept + operator: + numberOfWagons: Number of wagons + train: Train + itemPackingType: Item packing type + warehouse: Warehouse + sector: Sector + labeler: Printer + linesLimit: Lines limit + volumeLimit: Volume limit + sizeLimit: Size limit + isOnReservationMode: Reservation mode + Machine: Machine wagon: pageTitles: wagons: Wagons diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 2552c9549..ce2384d89 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -838,6 +838,19 @@ worker: debit: Debe credit: Haber concept: Concepto + operator: + numberOfWagons: Número de vagones + train: tren + itemPackingType: Tipo de embalaje + warehouse: Almacén + sector: Sector + labeler: Impresora + linesLimit: Líneas límite + volumeLimit: Volumen límite + sizeLimit: Tamaño límite + isOnReservationMode: Modo de reserva + Machine: Máquina + wagon: pageTitles: wagons: Vagones diff --git a/src/pages/Worker/Card/WorkerOperator.vue b/src/pages/Worker/Card/WorkerOperator.vue index 13b531a33..ce1c142e9 100644 --- a/src/pages/Worker/Card/WorkerOperator.vue +++ b/src/pages/Worker/Card/WorkerOperator.vue @@ -2,26 +2,17 @@ import { useI18n } from 'vue-i18n'; import { useRoute } from 'vue-router'; import { ref, computed } from 'vue'; - -import axios from 'axios'; -import useNotify from 'src/composables/useNotify.js'; import FetchData from 'components/FetchData.vue'; import FormModelPopup from 'src/components/FormModelPopup.vue'; -import { useVnConfirm } from 'composables/useVnConfirm'; - import VnPaginate from 'src/components/ui/VnPaginate.vue'; import VnRow from 'components/ui/VnRow.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import VnInput from 'src/components/common/VnInput.vue'; -import { size } from 'cypress/types/lodash'; const { t } = useI18n(); -const { notify } = useNotify(); - const paginate = ref(); const dialog = ref(); const route = useRoute(); -const { openConfirmationModal } = useVnConfirm(); const routeId = computed(() => route.params.id); const initialData = computed(() => { @@ -40,52 +31,34 @@ const initialData = computed(() => { machineFk: null, }; }); - -// const deallocatePDA = async (deviceProductionFk) => { -// try { -// await axios.post(`Workers/${route.params.id}/deallocatePDA`, { -// pda: deviceProductionFk, -// }); -// notify(t('PDA deallocated'), 'positive'); -// } catch (err) { -// console.error('Error deallocating PDA'); -// } -// paginate.value.fetch(); -// }; - -function reloadData() { - // initialData.value.deviceProductionFk = null; - // initialData.value.simSerialNumber = null; - paginate.value.fetch(); -}