-
-
-
-
-
- {{ t('globals.collapseMenu') }}
-
-
-
-
-
@@ -102,18 +85,4 @@ const filter = {
-
-
-
-
-
diff --git a/src/router/modules/department.js b/src/router/modules/department.js
index aaffc3460..dfd5e64ba 100644
--- a/src/router/modules/department.js
+++ b/src/router/modules/department.js
@@ -6,6 +6,7 @@ export default {
meta: {
title: 'department',
icon: 'vn:greuge',
+ moduleName: 'Department',
},
component: RouterView,
redirect: { name: 'DepartmentCard' },
diff --git a/src/router/modules/index.js b/src/router/modules/index.js
index 6f4b0b35e..941358d26 100644
--- a/src/router/modules/index.js
+++ b/src/router/modules/index.js
@@ -16,6 +16,7 @@ import Entry from './entry';
import roadmap from './roadmap';
import Parking from './parking';
import Agency from './agency';
+import ItemType from './itemType';
export default [
Item,
@@ -36,4 +37,5 @@ export default [
roadmap,
Parking,
Agency,
+ ItemType,
];
diff --git a/src/router/modules/item.js b/src/router/modules/item.js
index bc1e72a94..7ee5dcf78 100644
--- a/src/router/modules/item.js
+++ b/src/router/modules/item.js
@@ -11,7 +11,13 @@ export default {
component: RouterView,
redirect: { name: 'ItemMain' },
menus: {
- main: ['ItemList', 'WasteBreakdown', 'ItemFixedPrice', 'ItemRequest'],
+ main: [
+ 'ItemList',
+ 'WasteBreakdown',
+ 'ItemFixedPrice',
+ 'ItemRequest',
+ 'ItemTypeList',
+ ],
card: [
'ItemBasicData',
'ItemLog',
@@ -68,6 +74,23 @@ export default {
'https://grafana.verdnatura.es/d/TTNXQAxVk';
},
},
+ {
+ path: 'item-type-list',
+ name: 'ItemTypeList',
+ meta: {
+ title: 'family',
+ icon: 'contact_support',
+ },
+ component: () => import('src/pages/Item/ItemTypeList.vue'),
+ },
+ {
+ path: 'item-type-list/create',
+ name: 'ItemTypeCreate',
+ meta: {
+ title: 'itemTypeCreate',
+ },
+ component: () => import('src/pages/Item/ItemTypeCreate.vue'),
+ },
{
path: 'request',
name: 'ItemRequest',
diff --git a/src/router/modules/itemType.js b/src/router/modules/itemType.js
new file mode 100644
index 000000000..8064c41ff
--- /dev/null
+++ b/src/router/modules/itemType.js
@@ -0,0 +1,46 @@
+import { RouterView } from 'vue-router';
+
+export default {
+ path: '/item/item-type',
+ name: 'ItemType',
+ meta: {
+ title: 'itemType',
+ icon: 'contact_support',
+ moduleName: 'ItemType',
+ },
+ component: RouterView,
+ redirect: { name: 'ItemTypeList' },
+ menus: {
+ main: [],
+ card: ['ItemTypeBasicData'],
+ },
+ children: [
+ {
+ name: 'ItemTypeCard',
+ path: ':id',
+ component: () => import('src/pages/ItemType/Card/ItemTypeCard.vue'),
+ redirect: { name: 'ItemTypeSummary' },
+ children: [
+ {
+ name: 'ItemTypeSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary',
+ },
+ component: () =>
+ import('src/pages/ItemType/Card/ItemTypeSummary.vue'),
+ },
+ {
+ name: 'ItemTypeBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () =>
+ import('src/pages/ItemType/Card/ItemTypeBasicData.vue'),
+ },
+ ],
+ },
+ ],
+};
diff --git a/src/router/modules/roadmap.js b/src/router/modules/roadmap.js
index 02edf94be..6b2aa6a13 100644
--- a/src/router/modules/roadmap.js
+++ b/src/router/modules/roadmap.js
@@ -6,6 +6,7 @@ export default {
meta: {
title: 'roadmap',
icon: 'vn:troncales',
+ moduleName: 'Roadmap',
},
component: RouterView,
redirect: { name: 'RouteMain' },
diff --git a/src/router/routes.js b/src/router/routes.js
index ca52441e7..92145d44e 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -10,6 +10,7 @@ import supplier from './modules/Supplier';
import route from './modules/route';
import travel from './modules/travel';
import department from './modules/department';
+import ItemType from './modules/itemType';
import shelving from 'src/router/modules/shelving';
import order from 'src/router/modules/order';
import entry from 'src/router/modules/entry';
@@ -73,6 +74,7 @@ const routes = [
entry,
parking,
agency,
+ ItemType,
{
path: '/:catchAll(.*)*',
name: 'NotFound',