refactor: search quotation

This commit is contained in:
Thanaphon Frappet 2024-10-21 13:34:12 +07:00
parent e7c932ed9f
commit 6df13d034e

View file

@ -256,6 +256,7 @@ async function fetchQuotationList() {
} as const } as const
)[pageState.currentTab] )[pageState.currentTab]
: undefined, : undefined,
query: pageState.inputSearch,
}); });
if (ret) { if (ret) {
@ -275,6 +276,7 @@ async function fetchQuotationList() {
} }
watch(() => pageState.currentTab, fetchQuotationList); watch(() => pageState.currentTab, fetchQuotationList);
watch(() => pageState.inputSearch, fetchQuotationList);
async function storeDataLocal(id: string) { async function storeDataLocal(id: string) {
await quotationFormStore.assignFormData(id, 'assign'); await quotationFormStore.assignFormData(id, 'assign');