diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index e0997d25..b5bbe9e5 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -247,25 +247,34 @@ onMounted(async () => { }); async function fetchQuotationList() { - const ret = await quotationStore.getQuotationList({ - page: quotationPage.value, - pageSize: quotationPageSize.value, - payCondition: - pageState.currentTab !== 'all' - ? ( - { - fullAmountCash: 'Full', - installmentsCash: 'Split', - fullAmountBill: 'BillFull', - installmentsBill: 'BillSplit', - } as const - )[pageState.currentTab] - : undefined, - }); + { + const ret = await quotationStore.getQuotationList({ + page: quotationPage.value, + pageSize: quotationPageSize.value, + payCondition: + pageState.currentTab !== 'all' + ? ( + { + fullAmountCash: 'Full', + installmentsCash: 'Split', + fullAmountBill: 'BillFull', + installmentsBill: 'BillSplit', + } as const + )[pageState.currentTab] + : undefined, + }); - if (ret) { - quotationData.value = ret.result; - quotationPageMax.value = Math.ceil(ret.total / quotationPageSize.value); + if (ret) { + quotationData.value = ret.result; + quotationPageMax.value = Math.ceil(ret.total / quotationPageSize.value); + } + } + + { + const ret = await quotationStore.getQuotationStats(); + if (ret) { + quotationStats.value = Object.assign(quotationStats.value, ret); + } } flowStore.rotate();