BookingModal: replace guestName with FIO+phone fields, remove passport tab

- Add lastName/firstName/middleName/phone fields to booking form
- Remove 'Документы гостя' tab entirely from BookingModal
- Auto-parse existing guestName into FIO parts when editing
- Add guestPhone to Booking type and propagate through CalendarPage/BookingsPage API calls
- Add middle_name to guests table (migration 011)
- Update guests backend route to include middle_name in all queries
- Add middleName to GuestApiType in api.ts
- Fix selectAcGuest in BookingDetailPanel to also fill middle_name
- Auto-open guest form pre-filled with booking FIO when no guests exist
- Add passport series+number lookup in BookingDetailPanel guest form

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 21:15:37 +03:00
parent 873a9a4fc4
commit 84cfca500c
8 changed files with 127 additions and 259 deletions

View File

@@ -459,6 +459,7 @@ export interface GuestApiType {
hotelId: string
firstName: string
lastName: string
middleName: string | null
email: string | null
phone: string | null
passport: string | null
@@ -493,6 +494,7 @@ export interface GuestApiType {
export interface GuestPayload {
first_name?: string
last_name?: string
middle_name?: string
email?: string
phone?: string
passport?: string