feat:更新账单搜索模块

This commit is contained in:
2025-11-11 09:35:49 +08:00
parent e875a8e2d5
commit 5ec0781a53
10 changed files with 86 additions and 53 deletions

View File

@@ -130,15 +130,21 @@ export const useBillStore = defineStore('bill', {
await this.refreshInfo()
}
},
async refreshInfo() {
this.isLoading = true
const bookName = this.billQueryForm.billBook === 'all' ? '' : this.billQueryForm.billBook
getBillDateList() {
const { billYear, billMonth } = this.billQueryForm
const date = this.billDateType === 'year' ? billYear : billMonth
this.billDateList = getStartEndDate(date, this.billDateType)
},
async refreshInfo(isStats = false) {
this.isLoading = true
const bookName = this.billQueryForm.billBook === 'all' ? '' : this.billQueryForm.billBook
this.getBillDateList()
await this.queryBillSummary(bookName)
await this.queryBillStats(bookName)
if (isStats) {
await this.queryBillStats(bookName)
} else {
await this.queryBillSummary(bookName)
}
this.isRefresh = !this.isRefresh
this.isLoading = false
},