refaktoryzacja service api.

wydzielenie mockow.
dodanie parsowania wyszukiwania
This commit is contained in:
2026-05-02 05:49:24 +02:00
parent 045c65c363
commit 93778065ce
20 changed files with 820 additions and 275 deletions

View File

@@ -78,7 +78,7 @@ import { useProductsStore } from 'src/stores/productsStore'
const productsStore = useProductsStore()
const uiStore = useUiStore()
const searchQuery = ref(productsStore.filters.search)
const searchQuery = ref(productsStore.searchQuery)
const activeMonth = ref('all')
const monthFilters = [
@@ -98,7 +98,7 @@ onMounted(() => {
})
watch(searchQuery, (value) => {
productsStore.setFilters({ search: value })
productsStore.setSearchQuery(value)
})
function openAdvancedSearch() {
@@ -135,7 +135,7 @@ function openProductionStatuses({ product, partType } = {}) {
}
function applySearch() {
productsStore.applyFilters({ search: searchQuery.value })
productsStore.applySearch(searchQuery.value)
}
function selectMonth(month) {