feat: update appointment management API and frontend components

- Added new endpoint to get today's appointment statistics with optional date filter.
- Enhanced appointment listing API to support filtering by date and doctor UUID.
- Updated Appointment model to include new fields and modified status values.
- Implemented AppointmentStatusDropdown component for status management with visual feedback.
- Created PersianCalendar component for date selection in Jalali format.
- Updated API documentation to reflect changes in appointment management.
This commit is contained in:
hamed
2026-06-11 14:13:42 +03:30
parent 92a258832b
commit 45ee725820
9 changed files with 1241 additions and 636 deletions
+10 -12
View File
@@ -72,29 +72,27 @@ export interface ClinicDetail {
}
export type AppointmentStatus =
| 'waiting_for_payment'
| 'reserved'
| 'checked_in'
| 'waiting'
| 'in_progress'
| 'visited'
| 'pending'
| 'confirmed'
| 'completed'
| 'cancelled_by_user'
| 'cancelled_by_doctor'
| 'cancelled_by_admin'
| 'auto_cancel_unpaid'
| 'no_show';
| 'cancelled_by_user'
| 'no_show'
| 'expired';
export interface Appointment {
uuid: string;
patient_name: string;
patient_mobile: string;
doctor_uuid: string;
doctor_name: string;
clinic_name: string | null;
slot_start: number;
slot_end: number;
appointment_date: string;
appointment_time: string;
end_time: string;
status: AppointmentStatus;
amount: number;
version: number;
created_at: string;
}