diff --git a/src/components/modals/MealRegistrationModal.tsx b/src/components/modals/MealRegistrationModal.tsx new file mode 100644 index 0000000..fde8b0c --- /dev/null +++ b/src/components/modals/MealRegistrationModal.tsx @@ -0,0 +1,64 @@ +import type { ExamClient } from '../../data/mockData'; +import { EXAM_CLIENTS } from '../../data/mockData'; +import { InfoCard } from '../ui'; + +interface MealRegistrationModalProps { + onClose: () => void; + totalExamCount: number; + mealCount: number; + notMealCount: number; + mealDoneIds: string[]; + onMealDone: (id: string) => void; +} + +export const MealRegistrationModal = ({ + onClose, + totalExamCount, + mealCount, + notMealCount, + mealDoneIds, + onMealDone, +}: MealRegistrationModalProps) => { + return ( +
+
+
+
用餐登记
+ +
+
+
+
+ + + +
+
选择已用餐客户进行登记:
+
+ {EXAM_CLIENTS.map((c: ExamClient) => { + const checked = mealDoneIds.includes(c.id); + return ( + + ); + })} +
+
+
+
+
+ ); +}; + diff --git a/src/components/modals/NoteModal.tsx b/src/components/modals/NoteModal.tsx new file mode 100644 index 0000000..55bbb43 --- /dev/null +++ b/src/components/modals/NoteModal.tsx @@ -0,0 +1,35 @@ +interface NoteModalProps { + noteText: string; + onNoteChange: (v: string) => void; + onClose: () => void; +} + +export const NoteModal = ({ noteText, onNoteChange, onClose }: NoteModalProps) => { + return ( +
+
+
+
备注窗
+ +
+
+
+
体检客户服务备注(仅内部可见)
+