feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student

This commit is contained in:
2026-07-05 19:31:03 +08:00
parent 92e6ba0e34
commit 881e9c6175
8 changed files with 95 additions and 2 deletions

View File

@@ -422,6 +422,19 @@ const RoomsPage: React.FC = () => {
placeholder="留空自动解析"
/>
</Form.Item>
<Form.Item name="rentalCategory" label="租赁类别">
<Select
allowClear
options={[
{ value: 'short', label: '短租' },
{ value: 'long', label: '长租' },
]}
placeholder="默认为短租"
/>
</Form.Item>
<Form.Item name="monthlyRate" label="月租金">
<InputNumber min={0} precision={2} style={{ width: '100%' }} placeholder="长租月租金" />
</Form.Item>
{editing && (
<Form.Item name="status" label="状态">
<Select