From ac998d33aac91c6309623b8dcc9f64a77a55414b Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 23 Jan 2025 14:03:47 +0100 Subject: [PATCH] feat: refs #8409 added VnSelectSupplier --- src/components/ItemsFilterPanel.vue | 12 +---- src/components/common/VnSelectSupplier.vue | 49 +++++++++++++++++++ src/pages/Entry/Card/EntryBasicData.vue | 21 ++------ src/pages/Entry/EntryCreate.vue | 29 ++--------- src/pages/Entry/EntryFilter.vue | 27 ++-------- src/pages/Entry/EntryLatestBuysFilter.vue | 34 ++----------- .../InvoiceIn/Card/InvoiceInBasicData.vue | 24 ++------- src/pages/InvoiceIn/InvoiceInCreate.vue | 22 ++------- src/pages/InvoiceIn/InvoiceInFilter.vue | 22 ++------- src/pages/InvoiceIn/InvoiceInList.vue | 21 +------- src/pages/Item/ItemListFilter.vue | 27 ++-------- .../Route/Card/RouteAutonomousFilter.vue | 18 ++----- src/pages/Route/Roadmap/RoadmapBasicData.vue | 30 ++---------- src/pages/Route/Roadmap/RoadmapFilter.vue | 30 ++---------- src/pages/Travel/ExtraCommunityFilter.vue | 26 ++-------- 15 files changed, 99 insertions(+), 293 deletions(-) create mode 100644 src/components/common/VnSelectSupplier.vue diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue index 084feb377..946a5f11e 100644 --- a/src/components/ItemsFilterPanel.vue +++ b/src/components/ItemsFilterPanel.vue @@ -31,7 +31,6 @@ const props = defineProps({ const route = useRoute(); const itemTypesOptions = ref([]); -const suppliersOptions = ref([]); const tagOptions = ref([]); const tagValues = ref([]); const categoryList = ref(null); @@ -40,13 +39,13 @@ const selectedTypeFk = ref(getParamWhere(route.query.table, 'typeFk', false)); const selectedCategory = computed(() => { return (categoryList.value || []).find( - (category) => category?.id === selectedCategoryFk.value + (category) => category?.id === selectedCategoryFk.value, ); }); const selectedType = computed(() => { return (itemTypesOptions.value || []).find( - (type) => type?.id === selectedTypeFk.value + (type) => type?.id === selectedTypeFk.value, ); }); @@ -134,13 +133,6 @@ const setCategoryList = (data) => {