fix: broken Form.Item tag in check-in room select

This commit is contained in:
2026-07-09 12:19:04 +08:00
parent 74e6171e17
commit e90f73cb60

View File

@@ -519,6 +519,7 @@ const OccupanciesPage: React.FC = () => {
name="roomId"
label="选择宿舍"
rules={[{ required: true, message: '请选择宿舍' }]}
>
<Select
showSearch
optionFilterProp="label"
@@ -530,6 +531,7 @@ const OccupanciesPage: React.FC = () => {
disabled: r.currentCount >= r.capacity,
}))}
/>
</Form.Item>
<Form.Item name="checkInDate" label="入住日期" rules={[{ required: true }]}>
<DatePicker style={{ width: '100%' }} placeholder="选择入住日期" format="YYYY-MM-DD" />
</Form.Item>