+
{
-
-
es:
Search worker: Buscar trabajador
diff --git a/src/router/modules/Supplier.js b/src/router/modules/Supplier.js
index 6ce1a7688..d341ddc25 100644
--- a/src/router/modules/Supplier.js
+++ b/src/router/modules/Supplier.js
@@ -134,6 +134,12 @@ export default {
component: () =>
import('src/pages/Supplier/Card/SupplierAddresses.vue'),
},
+ {
+ path: 'address/create',
+ name: 'SupplierAddressesCreate',
+ component: () =>
+ import('src/pages/Supplier/Card/SupplierAddressesCreate.vue'),
+ },
{
path: 'consumption',
name: 'SupplierConsumption',
@@ -154,6 +160,12 @@ export default {
component: () =>
import('src/pages/Supplier/Card/SupplierAgencyTerm.vue'),
},
+ {
+ path: 'agency-term/create',
+ name: 'SupplierAgencyTermCreate',
+ component: () =>
+ import('src/pages/Supplier/Card/SupplierAgencyTermCreate.vue'),
+ },
],
},
],
diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js
index 3c8445f42..fa57682af 100644
--- a/src/router/modules/customer.js
+++ b/src/router/modules/customer.js
@@ -152,32 +152,105 @@ export default {
},
{
path: 'consignees',
- name: 'CustomerConsignees',
- meta: {
- title: 'consignees',
- icon: 'vn:delivery',
- },
- component: () =>
- import('src/pages/Customer/Card/CustomerConsignees.vue'),
+ name: 'ConsigneesCard',
+ redirect: { name: 'CustomerConsignees' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerConsignees',
+ meta: {
+ icon: 'vn:delivery',
+ title: 'consignees',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerConsignees.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerConsigneeCreate',
+ meta: {
+ title: 'consignee-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerConsigneeCreate.vue'
+ ),
+ },
+ {
+ path: ':consigneeId',
+ name: 'CustomerConsigneeEditCard',
+ redirect: { name: 'CustomerConsigneeEdit' },
+ children: [
+ {
+ path: 'edit',
+ name: 'CustomerConsigneeEdit',
+ meta: {
+ title: 'consignee-edit',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerConsigneeEdit.vue'
+ ),
+ },
+ ],
+ },
+ ],
},
{
path: 'notes',
- name: 'CustomerNotes',
- meta: {
- title: 'notes',
- icon: 'vn:notes',
- },
- component: () => import('src/pages/Customer/Card/CustomerNotes.vue'),
+ name: 'NotesCard',
+ redirect: { name: 'CustomerNotes' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerNotes',
+ meta: {
+ title: 'notes',
+ icon: 'vn:notes',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerNotes.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerNoteCreate',
+ meta: {
+ title: 'note-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerNoteCreate.vue'
+ ),
+ },
+ ],
},
{
path: 'credits',
- name: 'CustomerCredits',
- meta: {
- title: 'credits',
- icon: 'vn:credit',
- },
- component: () =>
- import('src/pages/Customer/Card/CustomerCredits.vue'),
+ name: 'CreditsCard',
+ redirect: { name: 'CustomerCredits' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerCredits',
+ meta: {
+ title: 'credits',
+ icon: 'vn:credit',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerCredits.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerCreditCreate',
+ meta: {
+ title: 'credit-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerCreditCreate.vue'
+ ),
+ },
+ ],
},
{
path: 'greuges',
diff --git a/src/router/modules/entry.js b/src/router/modules/entry.js
index 6a1cd6173..b3ab05a08 100644
--- a/src/router/modules/entry.js
+++ b/src/router/modules/entry.js
@@ -10,8 +10,8 @@ export default {
component: RouterView,
redirect: { name: 'EntryMain' },
menus: {
- main: ['EntryList'],
- card: [],
+ main: ['EntryList', 'EntryLatestBuys'],
+ card: ['EntryBasicData', 'EntryBuys', 'EntryNotes', 'EntryLog'],
},
children: [
{
@@ -37,25 +37,74 @@ export default {
},
component: () => import('src/pages/Entry/EntryCreate.vue'),
},
+ {
+ path: 'latest-buys',
+ name: 'EntryLatestBuys',
+ meta: {
+ title: 'latestBuys',
+ icon: 'contact_support',
+ },
+ component: () => import('src/pages/Entry/EntryLatestBuys.vue'),
+ },
+ ],
+ },
+ {
+ name: 'EntryCard',
+ path: ':id',
+ component: () => import('src/pages/Entry/Card/EntryCard.vue'),
+ redirect: { name: 'EntrySummary' },
+ children: [
+ {
+ name: 'EntrySummary',
+ path: 'summary',
+ meta: {
+ title: 'summary',
+ icon: 'launch',
+ },
+ component: () => import('src/pages/Entry/Card/EntrySummary.vue'),
+ },
+ {
+ path: 'basic-data',
+ name: 'EntryBasicData',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () => import('src/pages/Entry/Card/EntryBasicData.vue'),
+ },
+ {
+ path: 'buys',
+ name: 'EntryBuys',
+ meta: {
+ title: 'buys',
+ icon: 'vn:lines',
+ },
+ component: () => import('src/pages/Entry/Card/EntryBuys.vue'),
+ },
+ {
+ path: 'buys/import',
+ name: 'EntryBuysImport',
+ component: () => import('src/pages/Entry/Card/EntryBuysImport.vue'),
+ },
+ {
+ path: 'notes',
+ name: 'EntryNotes',
+ meta: {
+ title: 'notes',
+ icon: 'vn:notes',
+ },
+ component: () => import('src/pages/Entry/Card/EntryNotes.vue'),
+ },
+ {
+ path: 'log',
+ name: 'EntryLog',
+ meta: {
+ title: 'log',
+ icon: 'vn:History',
+ },
+ component: () => import('src/pages/Entry/Card/EntryLog.vue'),
+ },
],
},
- // {
- // name: 'EntryCard',
- // path: ':id',
- // component: () => import('src/pages/Entry/Card/EntryCard.vue'),
- // redirect: { name: 'EntrySummary' },
- // children: [
- // {
- // name: 'EntrySummary',
- // path: 'summary',
- // meta: {
- // title: 'summary',
- // icon: 'launch',
- // },
- // component: () =>
- // import('src/pages/Entry/Card/EntrySummary.vue'),
- // },
- // ],
- // },
],
};
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/modules/route.js b/src/router/modules/route.js
index acda898de..614345913 100644
--- a/src/router/modules/route.js
+++ b/src/router/modules/route.js
@@ -10,15 +10,15 @@ export default {
component: RouterView,
redirect: { name: 'RouteMain' },
menus: {
- main: ['CmrList'],
- card: [],
+ main: ['RouteList', 'CmrList'],
+ card: ['RouteBasicData'],
},
children: [
{
path: '/route',
name: 'RouteMain',
component: () => import('src/pages/Route/RouteMain.vue'),
- redirect: { name: 'CmrList' },
+ redirect: { name: 'RouteList' },
children: [
{
path: 'cmr',
@@ -29,6 +29,49 @@ export default {
},
component: () => import('src/pages/Route/Cmr/CmrList.vue'),
},
+ {
+ path: 'list',
+ name: 'RouteList',
+ meta: {
+ title: 'RouteList',
+ icon: 'view_list',
+ },
+ component: () => import('src/pages/Route/RouteList.vue'),
+ },
+ {
+ path: 'create',
+ name: 'RouteCreate',
+ meta: {
+ title: 'create',
+ },
+ component: () => import('src/pages/Route/Card/RouteForm.vue'),
+ },
+ ],
+ },
+ {
+ name: 'RouteCard',
+ path: ':id',
+ component: () => import('src/pages/Route/Card/RouteCard.vue'),
+ redirect: { name: 'RouteSummary' },
+ children: [
+ {
+ name: 'RouteBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () => import('pages/Route/Card/RouteForm.vue'),
+ },
+ {
+ name: 'RouteSummary',
+ path: 'summary',
+ meta: {
+ title: 'summary',
+ icon: 'open_in_new',
+ },
+ component: () => import('pages/Route/Card/RouteSummary.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/VnLocation.spec.js b/test/cypress/integration/VnLocation.spec.js
new file mode 100644
index 000000000..02b924e4d
--- /dev/null
+++ b/test/cypress/integration/VnLocation.spec.js
@@ -0,0 +1,48 @@
+const locationOptions ='[role="listbox"] > div.q-virtual-scroll__content > .q-item'
+describe('VnLocation', () => {
+ describe('Create',()=>{
+ const inputLocation = ':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
+ beforeEach(() => {
+ cy.viewport(1280, 720);
+ cy.login('developer');
+ cy.visit('/#/worker/create');
+ cy.waitForElement('.q-card');
+ });
+
+ it('Show all options', function() {
+ cy.get(inputLocation).click();
+ cy.get(locationOptions).should('have.length',5);
+ });
+
+ it('input filter location as "al"', function() {
+ cy.get(inputLocation).click();
+ cy.get(inputLocation).clear();
+ cy.get(inputLocation).type('al');
+ cy.get(locationOptions).should('have.length',3);
+ });
+ it('input filter location as "ecuador"', function() {
+ cy.get(inputLocation).click();
+ cy.get(inputLocation).clear();
+ cy.get(inputLocation).type('ecuador');
+ cy.get(locationOptions).should('have.length',1);
+ cy.get(`${locationOptions}:nth-child(1)`).click();
+ cy.get(':nth-child(3) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control > :nth-child(2) > .q-icon').click();
+
+ });
+ });
+ describe('Fiscal-data',()=>{
+ const inputLocation = ':nth-child(6) > :nth-child(1) > .q-field > .q-field__inner > .q-field__control';
+
+ beforeEach(() => {
+ cy.viewport(1280, 720);
+ cy.login('developer');
+ cy.visit('/#/supplier/567/fiscal-data', {timeout: 2000});
+ cy.waitForElement('.q-card');
+ });
+
+ it('Show all options', function() {
+ cy.get(inputLocation).click();
+ cy.get(locationOptions).should('have.length', 1);
+ });
+ });
+})
diff --git a/test/cypress/integration/claim/claimAction.spec.js b/test/cypress/integration/claim/claimAction.spec.js
index f181722fa..685e120ce 100644
--- a/test/cypress/integration/claim/claimAction.spec.js
+++ b/test/cypress/integration/claim/claimAction.spec.js
@@ -31,7 +31,6 @@ describe('ClaimAction', () => {
it('should regularize', () => {
cy.get('[title="Regularize"]').click();
- cy.clickConfirm();
});
it('should remove the line', () => {
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');
});