feat(appointments): row actions menu + info/move/transfer/replace modals — phase B
Frontend for the Figma عملیات menu on the confirmed-appointments table: - AppointmentActions composite: six-item row menu (ویرایش، ثبت سرویس، مشاهده، جا به جایی، انتقال به لیست رزرو، جایگزینی) plus the four modals it opens. ثبت سرویس and the info modal resolve the patient record via the patient-list search (mobile) to reuse the existing wallet endpoint and NewSessionPage. - Info modal mirrors appointments-info.pdf: start time, duration, phone, بخش/سرویس/پرسنل, wallet balance, status dropdown, مشاهده پرونده. - Move/transfer/replace modals PATCH the new general update endpoint with optimistic-lock version; transfer uses day-level midnight slots. - Status labels/transitions updated to the design set (ثبت شده/قطعی شده/ در حال پیگیری/سالن/ویزیت شده/لغو شده) in AppointmentStatusDropdown and StatusBadge; Appointment type gains the new workflow fields; the table gains سرویس/پرسنل/عملیات columns. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,9 @@ export type AppointmentStatus =
|
||||
| "cancelled_by_doctor"
|
||||
| "cancelled_by_user"
|
||||
| "no_show"
|
||||
| "expired";
|
||||
| "expired"
|
||||
| "following_up"
|
||||
| "salon";
|
||||
|
||||
export interface Appointment {
|
||||
uuid: string;
|
||||
@@ -102,6 +104,14 @@ export interface Appointment {
|
||||
status: AppointmentStatus;
|
||||
version: number;
|
||||
created_at: string;
|
||||
patient_uuid?: string;
|
||||
is_reserve?: boolean;
|
||||
deposit_required?: boolean;
|
||||
deposit_amount_rials?: number | null;
|
||||
note?: string | null;
|
||||
service_section?: { uuid: string; name: string } | null;
|
||||
service_item?: { uuid: string; name: string } | null;
|
||||
staff?: { uuid: string; full_name: string } | null;
|
||||
}
|
||||
|
||||
export type PaymentStatus =
|
||||
|
||||
Reference in New Issue
Block a user