From 1bc99cbd228b092c5dc956ea07b7d22a67e8ff82 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 3 Jun 2024 16:30:59 +0200 Subject: [PATCH] feat: refs #6243 show all cmrs & filter by warehouse --- CHANGELOG.md | 1 + src/i18n/locale/en.yml | 2 +- src/i18n/locale/es.yml | 2 +- src/pages/Route/Cmr/CmrFilter.vue | 30 ++++++++++++++++++++++-------- src/pages/Route/Cmr/CmrList.vue | 21 ++++++++++++++++++--- 5 files changed, 43 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 250aa01a2..f589b5e9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - (Item) => Se añade la opción de añadir un comentario del motivo de hacer una foto +- (Route) => Ahora se muestran todos los cmrs ## [2418.01] diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 0ce21e9b2..010a9f481 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -956,7 +956,7 @@ roadmap: route: pageTitles: routes: Routes - cmrsList: External CMRs list + cmrsList: CMRs list RouteList: List routeCreate: New route basicData: Basic Data diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index c2f61d001..d469046bc 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -944,7 +944,7 @@ roadmap: route: pageTitles: routes: Rutas - cmrsList: Listado de CMRs externos + cmrsList: Listado de CMRs RouteList: Listado routeCreate: Nueva ruta basicData: Datos básicos diff --git a/src/pages/Route/Cmr/CmrFilter.vue b/src/pages/Route/Cmr/CmrFilter.vue index 553f19431..32040ddd6 100644 --- a/src/pages/Route/Cmr/CmrFilter.vue +++ b/src/pages/Route/Cmr/CmrFilter.vue @@ -1,11 +1,11 @@ - - en: params: diff --git a/src/pages/Route/Cmr/CmrList.vue b/src/pages/Route/Cmr/CmrList.vue index 6963baf41..5198e9fa2 100644 --- a/src/pages/Route/Cmr/CmrList.vue +++ b/src/pages/Route/Cmr/CmrList.vue @@ -9,12 +9,14 @@ import { toDate } from 'filters/index'; import CmrFilter from './CmrFilter.vue'; import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue'; import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy.vue'; +import FetchData from 'src/components/FetchData.vue'; const stateStore = useStateStore(); const { t } = useI18n(); const { getTokenMultimedia } = useSession(); const token = getTokenMultimedia(); const selected = ref([]); +const warehouses = ref([]); const columns = computed(() => [ { @@ -64,6 +66,13 @@ const columns = computed(() => [ sortable: true, headerStyle: 'padding-left: 33px', }, + { + name: 'warehouseFk', + label: t('globals.warehouse'), + field: ({ warehouseFk }) => warehouseFk, + align: 'center', + sortable: true, + }, { name: 'icons', align: 'center', @@ -108,6 +117,7 @@ function downloadPdfs() { +
+