diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index af0ba0996..3df52f4a7 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -289,8 +289,8 @@ globals: createInvoiceIn: Create invoice in myAccount: My account noOne: No one - maxTemperature: Maximum Temperature - minTemperature: Minimum Temperatura + maxTemperature: Max + minTemperature: Min params: clientFk: Client id salesPersonFk: Sales person diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index f56cd6761..7eece7d78 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -293,8 +293,8 @@ globals: createInvoiceIn: Crear factura recibida myAccount: Mi cuenta noOne: Nadie - maxTemperature: Temperatura máxima - minTemperature: Temperatura mínima + maxTemperature: Máx + minTemperature: Mín params: clientFk: Id cliente salesPersonFk: Comercial diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index 829eb3a17..4be198493 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -121,6 +121,20 @@ const thermographsTableColumns = computed(() => { name: 'temperatureFk', align: 'left', }, + { + label: t('globals.maxTemperature'), + field: 'maxTemperature', + name: 'maxTemperature', + align: 'left', + format: (val) => (val ? `${val}°` : ''), + }, + { + label: t('globals.minTemperature'), + field: 'minTemperature', + name: 'minTemperature', + align: 'left', + format: (val) => (val ? `${val}°` : ''), + }, { label: t('travel.thermographs.state'), field: 'result', @@ -133,7 +147,7 @@ const thermographsTableColumns = computed(() => { name: 'destination', align: 'left', format: (val) => - warehouses.value.find((warehouse) => warehouse.id === val).name, + warehouses.value.find((warehouse) => warehouse.id === val)?.name, }, { label: t('travel.thermographs.created'), diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue index 38b9125b1..e308243e3 100644 --- a/src/pages/Travel/Card/TravelThermographs.vue +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -52,12 +52,14 @@ const TableColumns = computed(() => { field: 'maxTemperature', name: 'maxTemperature', align: 'left', + format: (val) => (val ? `${val}°` : ''), }, { label: t('globals.minTemperature'), field: 'minTemperature', name: 'minTemperature', align: 'left', + format: (val) => (val ? `${val}°` : ''), }, { label: t('travel.thermographs.state'), @@ -219,6 +221,4 @@ es: Thermograph removed: Termógrafo eliminado Are you sure you want to remove the thermograph?: ¿Seguro que quieres quitar el termógrafo? No results: Sin resultados - Max Temperature: Temperatura máxima - Min Temperature: Temperatura mínima diff --git a/src/pages/Zone/locale/es.yml b/src/pages/Zone/locale/es.yml index dd919a0c5..7ecfb580d 100644 --- a/src/pages/Zone/locale/es.yml +++ b/src/pages/Zone/locale/es.yml @@ -87,7 +87,7 @@ eventsPanel: travelingDays: Días de viaje price: Precio bonus: Bonificación - m3Max: Meidida máxima + m3Max: Medida máxima everyday: Todos los días delete: Eliminar deleteTitle: Este elemento será eliminado