fix Time call

This commit is contained in:
Timi
2026-10-21 01:02:38 +08:00
parent 77f061ef96
commit 0a283bf8e9
27 changed files with 59 additions and 59 deletions
@@ -342,12 +342,12 @@ async function handleDateFilterChange(value: DropdownValue): Promise<void> {
}
function openStartDate(): void {
startDraft.value = dateRange.value[0] || `${Time.formatDate(new Date())} 00:00`;
startDraft.value = dateRange.value[0] || `${Time.toDate(new Date())} 00:00`;
startVisible.value = true;
}
function openEndDate(): void {
endDraft.value = dateRange.value[1] || `${Time.formatDate(new Date())} 23:59`;
endDraft.value = dateRange.value[1] || `${Time.toDate(new Date())} 23:59`;
endVisible.value = true;
}
@@ -374,7 +374,7 @@ function buildPresetDateRange(type: DateFilterType): [string, string] {
end.setDate(end.getDate() + 6);
}
end.setHours(23, 59, 0, 0);
return type === "all" ? ["", ""] : [Time.formatDateTime(begin), Time.formatDateTime(end)];
return type === "all" ? ["", ""] : [Time.toDateTime(begin), Time.toDateTime(end)];
}
async function handleCustomerSelected(id: string): Promise<void> {