+
{
-
-
es:
Search worker: Buscar trabajador
diff --git a/src/router/modules/index.js b/src/router/modules/index.js
index cc5034959..84a26798d 100644
--- a/src/router/modules/index.js
+++ b/src/router/modules/index.js
@@ -1,3 +1,4 @@
+import Item from './item';
import Customer from './customer';
import Ticket from './ticket';
import Claim from './claim';
@@ -14,6 +15,7 @@ import Department from './department';
import Entry from './entry';
export default [
+ Item,
Customer,
Ticket,
Claim,
diff --git a/src/router/modules/item.js b/src/router/modules/item.js
new file mode 100644
index 000000000..d3462e15c
--- /dev/null
+++ b/src/router/modules/item.js
@@ -0,0 +1,70 @@
+import { RouterView } from 'vue-router';
+
+export default {
+ path: '/item',
+ name: 'Item',
+ meta: {
+ title: 'items',
+ icon: 'vn:item',
+ },
+ component: RouterView,
+ redirect: { name: 'ItemMain' },
+ menus: {
+ main: [],
+ card: [],
+ },
+ children: [
+ {
+ path: '',
+ name: 'ItemMain',
+ component: () => import('src/pages/Item/ItemMain.vue'),
+ redirect: { name: 'Itemlist' },
+ children: [
+ {
+ path: 'list',
+ name: 'ItemList',
+ meta: {
+ title: 'list',
+ icon: 'view_list',
+ },
+ component: () => import('src/pages/Item/ItemList.vue'),
+ },
+ ],
+ },
+ {
+ name: 'ItemCard',
+ path: ':id',
+ component: () => import('src/pages/Item/Card/ItemCard.vue'),
+ redirect: { name: 'ItemSummary' },
+ children: [
+ {
+ name: 'ItemSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary',
+ icon: 'launch',
+ },
+ component: () => import('src/pages/Item/Card/ItemSummary.vue'),
+ },
+ {
+ path: 'diary',
+ name: 'ItemDiary',
+ meta: {
+ title: 'diary',
+ icon: 'vn:transaction',
+ },
+ component: () => import('src/pages/Item/Card/ItemDiary.vue'),
+ },
+ {
+ path: 'tags',
+ name: 'ItemTags',
+ meta: {
+ title: 'Tags',
+ icon: 'vn:tags',
+ },
+ component: () => import('src/pages/Item/Card/ItemTags.vue'),
+ },
+ ],
+ },
+ ],
+};
diff --git a/src/router/routes.js b/src/router/routes.js
index 6a2fa6a97..d1027955f 100644
--- a/src/router/routes.js
+++ b/src/router/routes.js
@@ -1,3 +1,4 @@
+import item from './modules/item';
import customer from './modules/customer';
import ticket from './modules/ticket';
import claim from './modules/claim';
@@ -51,6 +52,7 @@ const routes = [
component: () => import('../pages/Dashboard/DashboardMain.vue'),
},
// Module routes
+ item,
customer,
ticket,
claim,
diff --git a/src/stores/useNavigationStore.js b/src/stores/useNavigationStore.js
index 2eda6f686..568063d1d 100644
--- a/src/stores/useNavigationStore.js
+++ b/src/stores/useNavigationStore.js
@@ -7,19 +7,19 @@ import routes from 'src/router/modules';
export const useNavigationStore = defineStore('navigationStore', () => {
const modules = [
- 'customer',
- 'claim',
- 'ticket',
- 'invoiceOut',
- 'invoiceIn',
- 'worker',
'shelving',
'order',
- 'wagon',
- 'route',
- 'supplier',
- 'travel',
+ 'customer',
'entry',
+ 'travel',
+ 'invoiceOut',
+ 'invoiceIn',
+ 'supplier',
+ 'claim',
+ 'route',
+ 'ticket',
+ 'worker',
+ 'wagon',
];
const pinnedModules = ref([]);
const role = useRole();