diff --git a/src/i18n/en/index.js b/src/i18n/en/index.js index ce7fada9c..5bf4be887 100644 --- a/src/i18n/en/index.js +++ b/src/i18n/en/index.js @@ -888,6 +888,7 @@ export default { create: 'Create', basicData: 'Basic Data', summary: 'Summary', + RouteRoadmap: 'Roadmaps', tickets: 'Tickets', log: 'Log', autonomous: 'Autonomous', diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index 44d282f44..cea9c9a6c 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -941,7 +941,8 @@ export default { RouteList: 'Listado', create: 'Crear', basicData: 'Datos básicos', - summary: 'Summary', + summary: 'Resumen', + RouteRoadmap: 'Troncales', tickets: 'Tickets', log: 'Historial', autonomous: 'Autónomos', diff --git a/src/pages/Route/Roadmap/RoadmapFilter.vue b/src/pages/Route/Roadmap/RoadmapFilter.vue new file mode 100644 index 000000000..b3fb7bf34 --- /dev/null +++ b/src/pages/Route/Roadmap/RoadmapFilter.vue @@ -0,0 +1,183 @@ + + + + (supplierList = data)" + auto-load + /> + + + + {{ t(`params.${tag.label}`) }}: + {{ formatFn(tag.value) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ opt.id }} - {{ opt.nickname }} + + + + + + + + + + + + + + + + + + + + + + + + + + +en: + params: + tractorPlate: Tractor Plate + trailerPlate: Trailer Plate + supplierFk: Carrier + price: Price + driverName: Driver name + phone: Phone + from: From + to: To +es: + params: + tractorPlate: Matrícula del tractor + trailerPlate: Matrícula del trailer + supplierFk: Transportista + price: Precio + driverName: Nombre del conductor + phone: Teléfono + from: Desde + to: Hasta + From: Desde + To: Hasta + Tractor Plate: Matrícula del tractor + Trailer Plate: Matrícula del trailer + Carrier: Transportista + Price: Precio + Driver name: Nombre del conductor + Phone: Teléfono + diff --git a/src/pages/Route/RouteRoadmap.vue b/src/pages/Route/RouteRoadmap.vue new file mode 100644 index 000000000..6962176e4 --- /dev/null +++ b/src/pages/Route/RouteRoadmap.vue @@ -0,0 +1,291 @@ + + + + + + + + + + + + {{ t('globals.collapseMenu') }} + + + + + + + + + + + + + + + {{ t('Select the estimated date of departure (ETD)') }} + + + + + + + + + + {{ t('Clone') }} + + + + + + + + + {{ t('Clone Selected Routes') }} + + + {{ t('Delete roadmap(s)') }} + + + + + + + + + + + + {{ props.value }} + + + + + + + + + {{ t('Preview') }} + + + + + + + + + + + + + + + + + + + + + + +es: + Search roadmap: Buscar trocal + You can search by roadmap reference: Puedes buscar por referencia de la trocal + Delete roadmap(s): Eliminar trocal(es) + Selected roadmaps will be removed: Las trocales seleccionadas serán eliminadas + Are you sure you want to continue?: ¿Seguro que quieres continuar? + The date can't be empty: La fecha no puede estar vacía + Clone Selected Routes: Clonar rutas seleccionadas + Roadmap: Trocal + Carrier: Transportista + Plate: Placa + Price: Precio + Observations: Observaciones + diff --git a/src/router/modules/route.js b/src/router/modules/route.js index 4430fd19e..32e4619ba 100644 --- a/src/router/modules/route.js +++ b/src/router/modules/route.js @@ -10,7 +10,7 @@ export default { component: RouterView, redirect: { name: 'RouteMain' }, menus: { - main: ['RouteList', 'RouteAutonomous', 'CmrList'], + main: ['RouteList', 'RouteAutonomous', 'RouteRoadmap', 'CmrList'], card: ['RouteBasicData', 'RouteTickets', 'RouteLog'], }, children: [ @@ -29,6 +29,15 @@ export default { }, component: () => import('src/pages/Route/RouteList.vue'), }, + { + path: 'roadmap', + name: 'RouteRoadmap', + meta: { + title: 'RouteRoadmap', + icon: 'vn:troncales', + }, + component: () => import('src/pages/Route/RouteRoadmap.vue'), + }, { path: 'create', name: 'RouteCreate',
+ {{ t('Select the estimated date of departure (ETD)') }} +