+
-
-
-
-
-
- {{ t('Remove row') }}
-
-
+
+
+
+
+ {{ row.warehouse?.name }}
+
+
+ deleteWarehouse(row, rows, rowIndex)
+ )
+ "
+ >
+
+ {{ t('warehouses.delete') }}
+
+
+
+
-
+
+
+
+ {{ t('warehouses.add') }}
+
+
+
+
+
-
-
- es:
- Remove row: Eliminar fila
-
diff --git a/src/pages/Zone/locale/en.yml b/src/pages/Zone/locale/en.yml
index 746d3f2e7..86479d99b 100644
--- a/src/pages/Zone/locale/en.yml
+++ b/src/pages/Zone/locale/en.yml
@@ -5,6 +5,7 @@ zone:
zoneCreate: Create zone
deliveryList: Delivery days
upcomingList: Upcoming deliveries
+ warehouses: Warehouses
list:
clone: Clone
id: Id
@@ -40,3 +41,9 @@ summary:
filterPanel:
name: Name
agencyModeFk: Agency
+warehouses:
+ delete: Delete
+ deleteTitle: This item will be deleted
+ deleteSubtitle: Are you sure you want to continue?
+ warehouse: Warehouse
+ add: Add
diff --git a/src/pages/Zone/locale/es.yml b/src/pages/Zone/locale/es.yml
index d9266b150..1bb6e08d5 100644
--- a/src/pages/Zone/locale/es.yml
+++ b/src/pages/Zone/locale/es.yml
@@ -5,6 +5,7 @@ zone:
zoneCreate: Nueva zona
deliveryList: Días de entrega
upcomingList: Próximos repartos
+ warehouses: Almacenes
list:
clone: Clonar
id: Id
@@ -40,3 +41,9 @@ summary:
filterPanel:
name: Nombre
agencyModeFk: Agencia
+warehouses:
+ delete: Eliminar
+ deleteTitle: Este elemento será eliminado
+ deleteSubtitle: ¿Seguro que quieres continuar?
+ warehouse: Almacén
+ add: Añadir
diff --git a/src/router/modules/zone.js b/src/router/modules/zone.js
index 9c917c301..414af34c5 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', 'ZoneLocations'],
+ card: ['ZoneBasicData', 'ZoneWarehouses', 'ZoneHistory', 'ZoneLocations'],
},
children: [
{
@@ -48,15 +48,6 @@ 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'),
- // },
],
},
{
@@ -74,6 +65,15 @@ export default {
},
component: () => import('src/pages/Zone/Card/ZoneSummary.vue'),
},
+ {
+ name: 'ZoneBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
+ },
{
name: 'ZoneLocations',
path: 'location',
@@ -84,13 +84,13 @@ export default {
component: () => import('src/pages/Zone/Card/ZoneLocations.vue'),
},
{
- name: 'ZoneBasicData',
- path: 'basic-data',
+ name: 'ZoneWarehouses',
+ path: 'warehouses',
meta: {
- title: 'basicData',
- icon: 'vn:settings',
+ title: 'warehouses',
+ icon: 'home',
},
- component: () => import('src/pages/Zone/Card/ZoneBasicData.vue'),
+ component: () => import('src/pages/Zone/Card/ZoneWarehouses.vue'),
},
{
name: 'ZoneHistory',
@@ -101,83 +101,6 @@ export default {
},
component: () => import('src/pages/Zone/Card/ZoneLog.vue'),
},
-
- // {
- // path: '/zone/delivery',
- // name: 'ZoneDeliveryMain',
- // component: () => import('src/pages/Zone/ZoneMain.vue'),
- // redirect: { name: 'ZoneDeliveryList' },
- // children: [
- // {
- // path: 'list',
- // name: 'ZoneDeliveryList',
- // meta: {
- // title: 'deliveryList',
- // icon: 'today',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryList.vue'),
- // },
- // {
- // path: 'create',
- // name: 'ZoneDeliveryCreate',
- // meta: {
- // title: 'deliveryCreate',
- // icon: 'create',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'),
- // },
- // {
- // path: ':id/edit',
- // name: 'ZoneDeliveryEdit',
- // meta: {
- // title: 'deliveryEdit',
- // icon: 'edit',
- // },
- // component: () =>
- // import('src/pages/Zone/Delivery/ZoneDeliveryCreate.vue'),
- // },
- // ],
- // },
- // {
- // path: '/zone/upcoming',
- // name: 'ZoneUpcomingMain',
- // component: () => import('src/pages/Zone/ZoneMain.vue'),
- // redirect: { name: 'ZoneUpcomingList' },
- // children: [
- // {
- // path: 'list',
- // name: 'ZoneUpcomingList',
- // meta: {
- // title: 'upcomingList',
- // icon: 'today',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingList.vue'),
- // },
- // {
- // path: 'create',
- // name: 'ZoneUpcomingCreate',
- // meta: {
- // title: 'upcomingCreate',
- // icon: 'create',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'),
- // },
- // {
- // path: ':id/edit',
- // name: 'ZoneUpcomingEdit',
- // meta: {
- // title: 'upcomingEdit',
- // icon: 'edit',
- // },
- // component: () =>
- // import('src/pages/Zone/Upcoming/ZoneUpcomingCreate.vue'),
- // },
- // ],
- // },
],
},
],