Updated scheduled tasks

This commit is contained in:
2026-07-03 12:08:32 +10:00
parent 00bd30fc5e
commit 30d5feaf63
3 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -50,6 +50,8 @@ interface LookupResult {
from_options: { value: number; title: string; country_code: string }[]
to_options: { value: number; title: string; country_code: string }[]
aircraft_options: { value: number; title: string }[]
scheduled_departure_time: string | null
scheduled_arrival_time: string | null
}
const lookupResult = ref<LookupResult | null>(null)
@@ -196,7 +198,7 @@ watch(() => form.departure_date, (newVal) => {
form.arrival_date = `${arr.getFullYear()}-${pad(arr.getMonth() + 1)}-${pad(arr.getDate())}T${pad(arr.getHours())}:${pad(arr.getMinutes())}`
})
const getArrivalBound = (form, offsetDays: number) => {
const getArrivalBound = (form: any, offsetDays: number) => {
if (!form.departure_date) return undefined
const pad = (n: number) => String(n).padStart(2, '0')
const d = new Date(form.departure_date)