From 12c236276d1d321ae657a2a005630df210917af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Thu, 24 Oct 2024 19:32:20 +0200 Subject: [PATCH] feat: refs #8087 Traspasar redadas a travels --- src/i18n/locale/en.yml | 3 +- src/i18n/locale/es.yml | 3 +- src/pages/Entry/Card/EntryDescriptor.vue | 19 +++++----- src/pages/Entry/EntryList.vue | 43 ++++++++++++---------- src/pages/Entry/locale/en.yml | 1 - src/pages/Entry/locale/es.yml | 1 - src/pages/Travel/Card/TravelBasicData.vue | 17 ++++++++- src/pages/Travel/Card/TravelDescriptor.vue | 17 +++++++++ src/pages/Travel/Card/TravelSummary.vue | 2 +- src/pages/Travel/TravelList.vue | 15 ++++++++ 10 files changed, 86 insertions(+), 35 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index d1ea5ceb9..928553293 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -106,7 +106,6 @@ globals: weight: Weight error: Ups! Something went wrong recalc: Recalculate - daysInForward: Forward days pageTitles: logIn: Login addressEdit: Update address @@ -313,6 +312,7 @@ globals: changePass: Change password deleteConfirmTitle: Delete selected elements changeState: Change state + raid: 'Raid {daysInForward} days' errors: statusUnauthorized: Access denied statusInternalServerError: An internal server error has ocurred @@ -1039,6 +1039,7 @@ travel: warehouseIn: Warehouse In delivered: Delivered received: Received + daysInForward: Days in forward thermographs: code: Code temperature: Temperature diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 18e580893..52bc821d1 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -108,7 +108,6 @@ globals: weight: Peso error: ¡Ups! Algo salió mal recalc: Recalcular - daysInForward: Días en el futuro pageTitles: logIn: Inicio de sesión addressEdit: Modificar consignatario @@ -317,6 +316,7 @@ globals: changePass: Cambiar contraseña deleteConfirmTitle: Eliminar los elementos seleccionados changeState: Cambiar estado + raid: 'Redada {daysInForward} días' errors: statusUnauthorized: Acceso denegado statusInternalServerError: Ha ocurrido un error interno del servidor @@ -1037,6 +1037,7 @@ travel: warehouseIn: Alm. entrada delivered: Enviada received: Recibida + daysInForward: Días redada thermographs: code: Código temperature: Temperatura diff --git a/src/pages/Entry/Card/EntryDescriptor.vue b/src/pages/Entry/Card/EntryDescriptor.vue index d85e5e1a0..bbfc73138 100644 --- a/src/pages/Entry/Card/EntryDescriptor.vue +++ b/src/pages/Entry/Card/EntryDescriptor.vue @@ -7,7 +7,6 @@ import CardDescriptor from 'components/ui/CardDescriptor.vue'; import VnLv from 'src/components/ui/VnLv.vue'; import useCardDescription from 'src/composables/useCardDescription'; -import { useState } from 'src/composables/useState'; import { toDate } from 'src/filters'; import { usePrintService } from 'composables/usePrintService'; import { getUrl } from 'src/composables/getUrl'; @@ -23,7 +22,6 @@ const $props = defineProps({ const route = useRoute(); const { t } = useI18n(); const { openReport } = usePrintService(); -const state = useState(); const entryDescriptorRef = ref(null); const url = ref(); @@ -74,8 +72,6 @@ const data = ref(useCardDescription()); const setData = (entity) => (data.value = useCardDescription(entity.supplier?.nickname, entity.id)); -const currentEntry = computed(() => state.get('entry')); - const getEntryRedirectionFilter = (entry) => { let entryTravel = entry && entry.travel; @@ -132,24 +128,29 @@ watch; :value="entity.travel?.warehouseOut?.name" /> - +