From ee71ae9d24ccb018b7017f09016bff4985dc16c7 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 9 Aug 2024 13:07:37 +0200 Subject: [PATCH] feat(orderList): use orderFilter and fixed this --- src/pages/Order/Card/OrderFilter.vue | 232 ++++++++++----------------- src/pages/Order/OrderList.vue | 14 +- 2 files changed, 94 insertions(+), 152 deletions(-) diff --git a/src/pages/Order/Card/OrderFilter.vue b/src/pages/Order/Card/OrderFilter.vue index 347affb04..be47eed54 100644 --- a/src/pages/Order/Card/OrderFilter.vue +++ b/src/pages/Order/Card/OrderFilter.vue @@ -21,15 +21,13 @@ const salesPersonFilter = { fields: ['id', 'nickname'], }; const salesPersonList = ref(null); -const sourceFilter = { fields: ['value'] }; -const sourceList = ref(null); +const sourceList = ref([]); diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index e0261fc19..1622f5ffe 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -9,6 +9,8 @@ import VnTable from 'src/components/VnTable/VnTable.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import OrderSearchbar from './Card/OrderSearchbar.vue'; +import RightMenu from 'src/components/common/RightMenu.vue'; +import OrderFilter from './Card/OrderFilter.vue'; const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); @@ -119,9 +121,6 @@ const columns = computed(() => [ align: 'left', name: 'total', label: t('module.total'), - columnFilter: { - inWhere: true, - }, format: ({ total }) => toCurrency(total), cardVisible: true, }, @@ -147,10 +146,16 @@ async function fetchClientAddress(id, data) {