From 7f376c8ea4cfa0b1c7863017e33c5a9457f9491a Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 19 Jul 2024 14:53:44 +0200 Subject: [PATCH 01/60] fix: refs #7717 fix catalog filter, searchbar redirect and search --- src/pages/Order/{ => Card}/OrderCatalog.vue | 12 ++++++++++++ src/pages/Order/Card/OrderCatalogFilter.vue | 20 +++++++++++++++----- src/pages/Order/{ => Card}/OrderLines.vue | 0 src/pages/Order/{ => Card}/OrderVolume.vue | 0 src/router/modules/order.js | 6 +++--- 5 files changed, 30 insertions(+), 8 deletions(-) rename src/pages/Order/{ => Card}/OrderCatalog.vue (87%) rename src/pages/Order/{ => Card}/OrderLines.vue (100%) rename src/pages/Order/{ => Card}/OrderVolume.vue (100%) diff --git a/src/pages/Order/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue similarity index 87% rename from src/pages/Order/OrderCatalog.vue rename to src/pages/Order/Card/OrderCatalog.vue index 2cf6e1c29..071827a8b 100644 --- a/src/pages/Order/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -6,6 +6,7 @@ import { useI18n } from 'vue-i18n'; import VnPaginate from 'components/ui/VnPaginate.vue'; import CatalogItem from 'components/ui/CatalogItem.vue'; import OrderCatalogFilter from 'pages/Order/Card/OrderCatalogFilter.vue'; +import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; const route = useRoute(); const stateStore = useStateStore(); @@ -52,6 +53,17 @@ function extractValueTags(items) { diff --git a/src/pages/Order/OrderLines.vue b/src/pages/Order/Card/OrderLines.vue similarity index 100% rename from src/pages/Order/OrderLines.vue rename to src/pages/Order/Card/OrderLines.vue diff --git a/src/pages/Order/OrderVolume.vue b/src/pages/Order/Card/OrderVolume.vue similarity index 100% rename from src/pages/Order/OrderVolume.vue rename to src/pages/Order/Card/OrderVolume.vue diff --git a/src/router/modules/order.js b/src/router/modules/order.js index aa1ca774d..8d1a6e5fe 100644 --- a/src/router/modules/order.js +++ b/src/router/modules/order.js @@ -72,7 +72,7 @@ export default { title: 'catalog', icon: 'vn:basket', }, - component: () => import('src/pages/Order/OrderCatalog.vue'), + component: () => import('src/pages/Order/Card/OrderCatalog.vue'), }, { name: 'OrderVolume', @@ -81,7 +81,7 @@ export default { title: 'volume', icon: 'vn:volume', }, - component: () => import('src/pages/Order/OrderVolume.vue'), + component: () => import('src/pages/Order/Card/OrderVolume.vue'), }, { name: 'OrderLines', @@ -90,7 +90,7 @@ export default { title: 'lines', icon: 'vn:lines', }, - component: () => import('src/pages/Order/OrderLines.vue'), + component: () => import('src/pages/Order/Card/OrderLines.vue'), }, ], }, From 02e1de083a934e1178bef41c67375f844b2e7f7e Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 19 Jul 2024 15:00:05 +0200 Subject: [PATCH 02/60] fix: duplicate key --- src/i18n/locale/en.yml | 1 - src/i18n/locale/es.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index 2f1209a3a..6943252c9 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -246,7 +246,6 @@ globals: mailForwarding: Mail forwarding mailAlias: Mail alias privileges: Privileges - labeler: Labeler created: Created worker: Worker now: Now diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index c5c4fab66..f32562313 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -248,7 +248,6 @@ globals: components: Componentes pictures: Fotos packages: Bultos - labeler: Etiquetas created: Fecha creación worker: Trabajador now: Ahora From def3ca33a26619cb0a38b9d050283c9fc7227125 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 22 Jul 2024 12:52:58 +0200 Subject: [PATCH 03/60] fix: refs #7717 fixed searchbar filter with rightmenu filters' applied --- src/components/ui/VnSearchbar.vue | 8 +++++--- src/pages/Order/Card/OrderCatalog.vue | 1 + src/pages/Order/OrderList.vue | 8 ++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 0c7a8a3f6..6fb204afe 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -100,9 +100,11 @@ onMounted(() => { }); async function search() { - const staticParams = Object.entries(store.userParams).filter( - ([key, value]) => value && (props.staticParams || []).includes(key) - ); + const staticParams = Object.entries(store.userParams); + console.log('staticParams: ', staticParams); + // .filter( + // ([key, value]) => value && (props.staticParams || []).includes(key) + // ); arrayData.reset(['skip', 'page']); if (props.makeFetch) diff --git a/src/pages/Order/Card/OrderCatalog.vue b/src/pages/Order/Card/OrderCatalog.vue index 071827a8b..d1479e3c3 100644 --- a/src/pages/Order/Card/OrderCatalog.vue +++ b/src/pages/Order/Card/OrderCatalog.vue @@ -53,6 +53,7 @@ function extractValueTags(items) {