diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue index 8aa725b4a..795291f1e 100644 --- a/src/components/common/VnSelect.vue +++ b/src/components/common/VnSelect.vue @@ -194,10 +194,10 @@ function filter(val, options) { } if (!row) return; - const id = row[$props.optionValue]; + const id = String(row[$props.optionValue]); const optionLabel = String(row[$props.optionLabel]).toLowerCase(); - return id == search || optionLabel.includes(search); + return id.includes(search) || optionLabel.includes(search); }); } diff --git a/src/components/common/VnSelectWorker.vue b/src/components/common/VnSelectWorker.vue index b0fef4443..9a8151a3d 100644 --- a/src/components/common/VnSelectWorker.vue +++ b/src/components/common/VnSelectWorker.vue @@ -51,6 +51,7 @@ const url = computed(() => { option-value="id" option-label="nickname" :fields="['id', 'name', 'nickname', 'code']" + :filter-options="['id', 'name', 'nickname', 'code']" sort-by="nickname ASC" > diff --git a/src/pages/Entry/EntryLatestBuysFilter.vue b/src/pages/Entry/EntryLatestBuysFilter.vue index 83124c1bf..7ceaa1325 100644 --- a/src/pages/Entry/EntryLatestBuysFilter.vue +++ b/src/pages/Entry/EntryLatestBuysFilter.vue @@ -69,12 +69,14 @@ const tagValues = ref([]); use-input @update:model-value="searchFn()" > -