From 640851f909fc4a8a477f68bc5b3dc4cb5e42e46a Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Sat, 28 Nov 2020 17:48:47 -0400 Subject: [PATCH] add the price query window to the rais menu (#549) when opening the window you must hide the menu and the tag-views --- src/components/ADempiere/Form/index.vue | 5 +---- src/layout/components/Settings/index.vue | 1 + src/layout/index.vue | 2 +- src/router/modules/ADempiere/staticRoutes.js | 5 +++-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/ADempiere/Form/index.vue b/src/components/ADempiere/Form/index.vue index b2a429c1..191ae09a 100644 --- a/src/components/ADempiere/Form/index.vue +++ b/src/components/ADempiere/Form/index.vue @@ -21,14 +21,11 @@ export default { switch (this.metadata.fileName) { case 'PriceChecking': form = import('@/components/ADempiere/Form/PriceChecking') - this.$store.dispatch('settings/changeSetting', { - key: 'showNavar', - value: true - }) this.$store.dispatch('settings/changeSetting', { key: 'showMenu', value: false }) + this.$store.dispatch('app/toggleSideBar', false) this.$store.dispatch('settings/changeSetting', { key: 'tagsView', value: false diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index d1c900fb..a0858c66 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -106,6 +106,7 @@ export default { return this.$store.state.settings.showMenu }, set(val) { + this.$store.dispatch('app/toggleSideBar') this.$store.dispatch('settings/changeSetting', { key: 'showMenu', value: val diff --git a/src/layout/index.vue b/src/layout/index.vue index 5119d8cd..240d8997 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -2,7 +2,7 @@
-
+
diff --git a/src/router/modules/ADempiere/staticRoutes.js b/src/router/modules/ADempiere/staticRoutes.js index 88b54673..4bd958a6 100644 --- a/src/router/modules/ADempiere/staticRoutes.js +++ b/src/router/modules/ADempiere/staticRoutes.js @@ -68,13 +68,14 @@ const staticRoutes = [ { path: '/PriceChecking', component: Layout, - hidden: true, + hidden: false, children: [ { path: '/PriceChecking', component: () => import('@/views/ADempiere/Form'), name: 'PriceChecking', meta: { + icon: 'shopping', title: 'PriceChecking', isIndex: true } @@ -84,7 +85,7 @@ const staticRoutes = [ { path: '/BarcodeReader', component: Layout, - hidden: false, + hidden: true, children: [ { path: '/BarcodeReader',