From 7f376c8ea4cfa0b1c7863017e33c5a9457f9491a Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 19 Jul 2024 14:53:44 +0200 Subject: [PATCH] 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'), }, ], },