This commit is contained in:
zlwu committed 2026-06-16 17:10:01 +08:00
1 parent a9667f00cc
commit 817dfff43c
174 files changed
+17383 -14508

No files matched your search

@@ -31,7 +31,7 @@
</div>
<div class="filter-actions-row">
<span class="filter-hint"
>按预约编号、来访单位、联系人模糊查询;默认展示未来 30 天内的到访预约。</span
>按预约编号、来访单位、联系人模糊查询。</span
>
<div class="filter-actions-end">
<el-button class="btn-ghost" @click="handleReset"
@@ -288,22 +288,8 @@
[key: string]: any
}
function formatLocalDate(d: Date): string {
const y = d.getFullYear()
const m = String(d.getMonth() + 1).padStart(2, '0')
const day = String(d.getDate()).padStart(2, '0')
return `${y}-${m}-${day}`
}
function getDefaultVisitDateRange(): [string, string] {
const start = new Date()
const end = new Date()
end.setDate(end.getDate() + 30)
return [formatLocalDate(start), formatLocalDate(end)]
}
const searchForm = reactive<{ keyword: string }>({ keyword: '' })
const visitDateRange = ref<[string, string] | null>(getDefaultVisitDateRange())
const visitDateRange = ref<[string, string] | null>(null)
const tableData = ref<AppointmentRow[]>([])
const selectedRows = ref<AppointmentRow[]>([])
const loading = ref(false)
@@ -417,7 +403,7 @@
function handleReset() {
searchForm.keyword = ''
visitDateRange.value = getDefaultVisitDateRange()
visitDateRange.value = null
pagination.page = 1
loadData()
}