Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -241,6 +241,7 @@ import { computed, onMounted, onUnmounted, ref } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import api from 'src/services/api'
|
||||
import { usePermission } from 'src/composables/usePermission'
|
||||
import { normalizeSearchText } from 'src/utils/searchText'
|
||||
import {
|
||||
detectBedenGroup,
|
||||
normalizeBedenLabel,
|
||||
@@ -446,7 +447,7 @@ async function ensureProductImage(code, color) {
|
||||
if (!first) first = list[0] || null
|
||||
|
||||
const resolved = resolveProductImageUrl(first)
|
||||
productImageCache.value[key] = resolved.publicUrl || resolved.contentUrl || ''
|
||||
productImageCache.value[key] = resolved.contentUrl || resolved.publicUrl || ''
|
||||
productImageFallbackByKey.value[key] = resolved.contentUrl || ''
|
||||
} catch (err) {
|
||||
console.warn('[ProductStockQuery] product image fetch failed', { code, color, err })
|
||||
@@ -651,10 +652,10 @@ function filterProducts(val, update) {
|
||||
})
|
||||
return
|
||||
}
|
||||
const needle = String(val || '').toLocaleLowerCase('tr-TR')
|
||||
const needle = normalizeSearchText(val)
|
||||
update(() => {
|
||||
filteredProductOptions.value = productOptions.value.filter(opt =>
|
||||
String(opt.label || '').toLocaleLowerCase('tr-TR').includes(needle)
|
||||
normalizeSearchText(opt.label).includes(needle)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user