Updated scheduled tasks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user