diff --git a/src/views/AppointmentsView.vue b/src/views/AppointmentsView.vue index b2ac314..83a3fa6 100644 --- a/src/views/AppointmentsView.vue +++ b/src/views/AppointmentsView.vue @@ -105,6 +105,9 @@ type Appt = { petName?: string petType?: string serviceType?: string + customerUserId?: number + createdByUserId?: number + assignedStaffId?: number assignedUserId?: number staffName?: string customerName?: string @@ -176,7 +179,7 @@ async function load() { let list = Array.isArray(res.data) ? (res.data as Appt[]) : [] list = list.filter((a) => inDateRange(a.appointmentTime)) if (staffId.value != null) { - list = list.filter((a) => a.assignedUserId === staffId.value) + list = list.filter((a) => (a.assignedStaffId ?? a.assignedUserId) === staffId.value) } if (missingReport.value) { list = list.filter((a) => a.status === 'doing' && !a.hasReport)