+
{
-
-
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();
diff --git a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js
index 0013df343..7617a69d1 100644
--- a/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js
+++ b/test/cypress/integration/invoiceIn/invoiceInBasicData.spec.js
@@ -16,11 +16,12 @@ describe('InvoiceInBasicData', () => {
cy.get(selects).eq(0).type('Bros');
cy.get(selects).eq(0).type('{enter}');
+ cy.get('[title="Reset"]').click();
cy.get(appendBtns).eq(0).click();
cy.get('input').eq(2).type(4739);
cy.saveCard();
- cy.get(`${selects} input`).eq(0).invoke('val').should('eq', 'Bros nick');
+ cy.get(`${selects} input`).eq(0).invoke('val').should('eq', 'Plants nick');
cy.get('input').eq(2).invoke('val').should('eq', '4739');
});