feat:增加账单搜索功能

This commit is contained in:
2025-11-10 19:50:22 +08:00
parent 5f3a7ca5b4
commit 7032070d3f
9 changed files with 143 additions and 17 deletions

View File

@@ -17,11 +17,26 @@ import { onMounted } from 'vue'
import { useBillStore } from '@/store/bill.ts'
import { Plus } from '@element-plus/icons-vue'
import { useRouter } from 'vue-router'
import { getCurrentMonth, getCurrentYear } from 'vue3-common/utils/dateUtil'
const billStore = useBillStore()
const router = useRouter()
onMounted(async () => {
billStore.billQueryForm = {
billBook: 'all',
billYear: getCurrentYear(),
billMonth: getCurrentMonth()
}
billStore.billSearchForm = {
category: '',
content: '',
location: ''
}
billStore.billType = 'expensive'
billStore.billDateType = 'month'
await billStore.refreshInfo()
})