diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index a43c5fe7c..3241d155d 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -446,6 +446,24 @@ export default { uncompleteTrays: 'There are incomplete trays', } }, + route: { + pageTitles: { + routes: 'Routes', + cmrsList: 'External CMRs list', + }, + cmr: { + list: { + cmrFk: 'Cmr id', + hasCmrDms: `Attached in gestdoc`, + true: 'Yes', + false: 'No', + ticketFk: 'Ticketd id', + country: 'Country', + clientFk: 'Client id', + shipped: 'Preparation date', + }, + }, + }, components: { topbar: {}, userPanel: { diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 6328c8f5d..6ac3a28ea 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -444,7 +444,25 @@ export default { minHeightBetweenTrays: 'La distancia mínima entre bandejas es ', maxWagonHeight: 'La altura máxima del vagón es ', uncompleteTrays: 'Hay bandejas sin completar', - } + }, + }, + route: { + pageTitles: { + routes: 'Rutas', + cmrsList: 'Listado de CMRs externos', + }, + cmr: { + list: { + cmrFk: 'Id cmr', + hasCmrDms: 'Adjuntado en gestdoc', + true: 'Sí', + false: 'No', + ticketFk: 'Id ticket', + country: 'País', + clientFk: 'Id cliente', + shipped: 'Fecha preparación', + }, + }, }, components: { topbar: {}, diff --git a/src/pages/Route/Cmr/CmrFilter.vue b/src/pages/Route/Cmr/CmrFilter.vue new file mode 100644 index 000000000..3bf7c6791 --- /dev/null +++ b/src/pages/Route/Cmr/CmrFilter.vue @@ -0,0 +1,127 @@ + + + + (countries = data)" auto-load /> + + + + {{ t(`params.${tag.label}`) }}: + {{ formatFn(tag.value) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/Route/Cmr/CmrList.vue b/src/pages/Route/Cmr/CmrList.vue new file mode 100644 index 000000000..04166c010 --- /dev/null +++ b/src/pages/Route/Cmr/CmrList.vue @@ -0,0 +1,130 @@ + + + + + + + + + + {{ value }} + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/Route/RouteMain.vue b/src/pages/Route/RouteMain.vue new file mode 100644 index 000000000..66ce78f23 --- /dev/null +++ b/src/pages/Route/RouteMain.vue @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/src/router/modules/index.js b/src/router/modules/index.js index 30c51939d..2916b98ef 100644 --- a/src/router/modules/index.js +++ b/src/router/modules/index.js @@ -4,6 +4,7 @@ import Claim from './claim'; import InvoiceOut from './invoiceOut'; import Worker from './worker'; import Wagon from './wagon'; +import Route from './route'; export default [ Customer, @@ -11,5 +12,6 @@ export default [ Claim, InvoiceOut, Worker, - Wagon + Wagon, + Route ] diff --git a/src/router/modules/route.js b/src/router/modules/route.js new file mode 100644 index 000000000..a3550885c --- /dev/null +++ b/src/router/modules/route.js @@ -0,0 +1,35 @@ +import { RouterView } from 'vue-router'; + +export default { + path: '/route', + name: 'Route', + meta: { + title: 'routes', + icon: 'vn:delivery', + }, + component: RouterView, + redirect: { name: 'RouteMain' }, + menus: { + main: ['CmrList'], + card: [], + }, + children: [ + { + path: '/route', + name: 'RouteMain', + component: () => import('src/pages/Route/RouteMain.vue'), + redirect: { name: 'CmrList' }, + children: [ + { + path: 'cmr/list', + name: 'CmrList', + meta: { + title: 'cmrsList', + icon: 'fact_check', + }, + component: () => import('src/pages/Route/Cmr/CmrList.vue') + }, + ], + }, + ], +}; diff --git a/src/router/routes.js b/src/router/routes.js index 17a56505d..08491e475 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -4,6 +4,7 @@ import claim from './modules/claim'; import worker from './modules/worker'; import invoiceOut from './modules/invoiceOut'; import wagon from './modules/wagon'; +import route from './modules/route'; const routes = [ { @@ -35,7 +36,8 @@ const routes = [ name: 'NotFound', component: () => import('../pages/NotFound.vue'), }, - wagon + wagon, + route ], }, ]; diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js index bcaeeb953..168c1f9dc 100644 --- a/src/stores/useNavigationStore.js +++ b/src/stores/useNavigationStore.js @@ -6,7 +6,7 @@ import { useRole } from 'src/composables/useRole'; import routes from 'src/router/modules'; export const useNavigationStore = defineStore('navigationStore', () => { - const modules = ['customer', 'claim', 'ticket', 'invoiceOut', 'worker', 'wagon']; + const modules = ['customer', 'claim', 'ticket', 'invoiceOut', 'worker', 'wagon', 'route']; const pinnedModules = ref([]); const role = useRole();