diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 05241747b..7dc5777bf 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1236,16 +1236,10 @@ item/itemType: itemType: Item type basicData: Basic data summary: Summary -zone: - pageTitles: - zones: Zone - zonesList: Zones - deliveryList: Delivery days - upcomingList: Upcoming deliveries monitor: pageTitles: - monitors: Monitores - list: Listado + monitors: Monitors + list: List components: topbar: {} itemsFilterPanel: diff --git a/src/pages/Zone/Card/ZoneDescriptor.vue b/src/pages/Zone/Card/ZoneDescriptor.vue index f257a3159..b3a55bbe0 100644 --- a/src/pages/Zone/Card/ZoneDescriptor.vue +++ b/src/pages/Zone/Card/ZoneDescriptor.vue @@ -60,7 +60,7 @@ const setData = (entity) => { flat dense size="md" - icon="preview" + icon="vn:zone" color="white" class="link" :to="{ name: 'ZoneList' }" diff --git a/src/pages/Zone/Card/ZoneSummary.vue b/src/pages/Zone/Card/ZoneSummary.vue index b39d2aaab..d46282c10 100644 --- a/src/pages/Zone/Card/ZoneSummary.vue +++ b/src/pages/Zone/Card/ZoneSummary.vue @@ -32,7 +32,7 @@ const filter = computed(() => { fields: ['name'], }, where: { - id: route.params.id, + id: entityId, }, }; return filter; diff --git a/src/pages/Zone/ZoneCreate.vue b/src/pages/Zone/ZoneCreate.vue index c287bce42..e25ccae3a 100644 --- a/src/pages/Zone/ZoneCreate.vue +++ b/src/pages/Zone/ZoneCreate.vue @@ -1,184 +1,114 @@ - - - - - - - - - - - - - - - - - - - - - - - - {{ t('zone.warnings.noData') }} - - - - - - - - - - - - + (warehousesOptions = data)" + auto-load + /> + (agencyOptions = data)" + auto-load + /> + + + + + + + + + + + + + + + + + + + + + + + + + - - diff --git a/src/pages/Zone/locale/en.yml b/src/pages/Zone/locale/en.yml index d0a22ebcd..746d3f2e7 100644 --- a/src/pages/Zone/locale/en.yml +++ b/src/pages/Zone/locale/en.yml @@ -2,6 +2,7 @@ zone: pageTitles: zones: Zone zonesList: Zones + zoneCreate: Create zone deliveryList: Delivery days upcomingList: Upcoming deliveries list: @@ -13,18 +14,19 @@ list: price: Price create: Create zone openSummary: Details - confirmCloneTitle: All it's properties will be copied - confirmCloneSubtitle: Do you want to clone this zone? searchZone: Search zones searchInfo: Search zone by id or name + confirmCloneTitle: All it's properties will be copied + confirmCloneSubtitle: Do you want to clone this zone? create: name: Name + warehouse: Warehouse agency: Agency - close: Close + travelingDays: Traveling days + closingHour: Closing hour price: Price -type: - submit: Save - reset: Reset + bonus: Bonus + volumetric: Volumetric summary: agency: Agency price: Price diff --git a/src/pages/Zone/locale/es.yml b/src/pages/Zone/locale/es.yml index ad740d5f7..d9266b150 100644 --- a/src/pages/Zone/locale/es.yml +++ b/src/pages/Zone/locale/es.yml @@ -2,6 +2,7 @@ zone: pageTitles: zones: Zonas zonesList: Zonas + zoneCreate: Nueva zona deliveryList: Días de entrega upcomingList: Próximos repartos list: @@ -13,18 +14,19 @@ list: price: Precio create: Crear zona openSummary: Detalles - confirmCloneTitle: Todas sus propiedades serán copiadas - confirmCloneSubtitle: ¿Seguro que quieres clonar esta zona? searchZone: Buscar zonas searchInfo: Buscar zonas por identificador o nombre + confirmCloneTitle: Todas sus propiedades serán copiadas + confirmCloneSubtitle: ¿Seguro que quieres clonar esta zona? create: name: Nombre + warehouse: Almacén agency: Agencia - close: Cierre + travelingDays: Días de viaje + closingHour: Hora de cierre price: Precio -type: - submit: Guardar - reset: Reiniciar + bonus: Bonificación + volumetric: Volumétrico summary: agency: Agencia price: Precio @@ -38,5 +40,3 @@ summary: filterPanel: name: Nombre agencyModeFk: Agencia -Search zones: Buscar zonas -You can search by zone reference: Puedes buscar por referencia de la zona diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js index 01c23c499..9c917c301 100644 --- a/src/router/modules/zone.js +++ b/src/router/modules/zone.js @@ -12,7 +12,7 @@ export default { redirect: { name: 'ZoneMain' }, menus: { main: ['ZoneList', 'ZoneDeliveryList', 'ZoneUpcomingList'], - card: ['ZoneBasicData', 'ZoneHistory'], + card: ['ZoneBasicData', 'ZoneHistory', 'ZoneLocations'], }, children: [ { @@ -48,15 +48,15 @@ export default { }, component: () => import('src/pages/Zone/ZoneCreate.vue'), }, - { - path: 'counter', - name: 'ZoneCounter', - meta: { - title: 'zoneCounter', - icon: 'add_circle', - }, - component: () => import('src/pages/Zone/ZoneCounter.vue'), - }, + // { + // path: 'counter', + // name: 'ZoneCounter', + // meta: { + // title: 'zoneCounter', + // icon: 'add_circle', + // }, + // component: () => import('src/pages/Zone/ZoneCounter.vue'), + // }, ], }, { @@ -74,6 +74,15 @@ export default { }, component: () => import('src/pages/Zone/Card/ZoneSummary.vue'), }, + { + name: 'ZoneLocations', + path: 'location', + meta: { + title: 'locations', + icon: 'vn:greuge', + }, + component: () => import('src/pages/Zone/Card/ZoneLocations.vue'), + }, { name: 'ZoneBasicData', path: 'basic-data', @@ -92,6 +101,7 @@ export default { }, component: () => import('src/pages/Zone/Card/ZoneLog.vue'), }, + // { // path: '/zone/delivery', // name: 'ZoneDeliveryMain',