From ff29f8b93499f0db338cf6ceb9f2d4e157c491f5 Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 7 May 2025 09:41:21 +0200 Subject: [PATCH] feat: refs #6123 add control option to globals and create ZoneControl page --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + src/pages/Zone/ZoneControl.vue | 275 +++++++++++++++++++++++++++++++++ src/router/modules/zone.js | 10 ++ 4 files changed, 287 insertions(+) create mode 100644 src/pages/Zone/ZoneControl.vue diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 8ccdf500b..be11fadb9 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -352,6 +352,7 @@ globals: vehicle: Vehicle entryPreAccount: Pre-account management: Worker management + control: Control unsavedPopup: title: Unsaved changes will be lost subtitle: Are you sure exit without saving? diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 2858464ab..d38ee2da1 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -355,6 +355,7 @@ globals: vehicle: Vehículo entryPreAccount: Precontabilizar management: Gestión de trabajadores + control: Control unsavedPopup: title: Los cambios que no haya guardado se perderán subtitle: ¿Seguro que quiere salir sin guardar? diff --git a/src/pages/Zone/ZoneControl.vue b/src/pages/Zone/ZoneControl.vue new file mode 100644 index 000000000..1c173dd1a --- /dev/null +++ b/src/pages/Zone/ZoneControl.vue @@ -0,0 +1,275 @@ + + + + en: + minTicketsToCloseZone: Min tickets to close + isZoneClosedByExpeditionActivated: Closed by expedition + es: + minTicketsToCloseZone: Tickets minimos para cerrar zona + isZoneClosedByExpeditionActivated: Zona cerrada por expedición activada + + diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js index f48a715b9..3a33fe914 100644 --- a/src/router/modules/zone.js +++ b/src/router/modules/zone.js @@ -85,6 +85,7 @@ export default { 'ZoneDeliveryDays', 'ZoneUpcomingList', 'ZoneUpcomingDeliveries', + 'ZoneControl', ], }, component: RouterView, @@ -131,6 +132,15 @@ export default { }, component: () => import('src/pages/Zone/ZoneUpcoming.vue'), }, + { + name: 'ZoneControl', + path: 'control', + meta: { + title: 'control', + icon: 'track_changes', + }, + component: () => import('src/pages/Zone/ZoneControl.vue'), + }, ], }, ],