feat:更新账单搜索模块
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user