2025-07-10 18:01:45 +08:00
|
|
|
import { MyBetaModalFormProps, renderTextHelper } from '@/common';
|
|
|
|
|
import {
|
|
|
|
|
AssetHousesOrientationEnum,
|
|
|
|
|
AssetHousesOwnershipTypeEnum,
|
|
|
|
|
AssetHousesStatusEnum,
|
|
|
|
|
AssetHousesUsageEnum,
|
|
|
|
|
} from '@/gen/Enums';
|
|
|
|
|
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
|
|
|
|
|
import { Space } from 'antd';
|
2025-08-08 18:35:02 +08:00
|
|
|
import ChangeStatus from './modals/ChangeStatus';
|
2025-07-10 18:01:45 +08:00
|
|
|
|
|
|
|
|
export default function info(props: MyBetaModalFormProps) {
|
2025-08-08 18:35:02 +08:00
|
|
|
const { item } = props;
|
|
|
|
|
|
2025-07-10 18:01:45 +08:00
|
|
|
return (
|
|
|
|
|
<Space direction="vertical" style={{ width: '100%' }}>
|
2025-08-08 18:35:02 +08:00
|
|
|
<ProCard title="基本信息">
|
2025-07-10 18:01:45 +08:00
|
|
|
<ProDescriptions bordered>
|
|
|
|
|
<ProDescriptions.Item label="房屋全名" span={2}>
|
2025-08-08 18:35:02 +08:00
|
|
|
<div style={{ fontWeight: 'bold' }}>{item?.full_name}</div>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
2025-08-08 18:35:02 +08:00
|
|
|
<ProDescriptions.Item label="房屋状态">
|
|
|
|
|
<Space size="large">
|
|
|
|
|
<renderTextHelper.Tag
|
|
|
|
|
Enums={AssetHousesStatusEnum}
|
|
|
|
|
value={item?.status}
|
|
|
|
|
key="status"
|
|
|
|
|
/>
|
|
|
|
|
<ChangeStatus
|
|
|
|
|
item={props?.item}
|
|
|
|
|
title="修改"
|
|
|
|
|
reload={props?.reload}
|
|
|
|
|
/>
|
|
|
|
|
</Space>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
2025-08-08 18:35:02 +08:00
|
|
|
|
2025-07-10 18:01:45 +08:00
|
|
|
<ProDescriptions.Item label="楼层">
|
2025-08-08 18:35:02 +08:00
|
|
|
{item?.floor}层
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
2025-08-08 18:35:02 +08:00
|
|
|
|
2025-07-10 18:01:45 +08:00
|
|
|
<ProDescriptions.Item label="房屋用途">
|
|
|
|
|
<renderTextHelper.Tag
|
|
|
|
|
Enums={AssetHousesUsageEnum}
|
2025-08-08 18:35:02 +08:00
|
|
|
value={item?.usage}
|
2025-07-10 18:01:45 +08:00
|
|
|
key="usage"
|
|
|
|
|
/>
|
|
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
<ProDescriptions.Item label="产权性质">
|
|
|
|
|
<renderTextHelper.Tag
|
|
|
|
|
Enums={AssetHousesOwnershipTypeEnum}
|
2025-08-08 18:35:02 +08:00
|
|
|
value={item?.ownership_type}
|
2025-07-10 18:01:45 +08:00
|
|
|
key="ownership_type"
|
|
|
|
|
/>
|
|
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
<ProDescriptions.Item label="建筑面积">
|
2025-08-08 18:35:02 +08:00
|
|
|
<span style={{ fontWeight: 'bold', color: '#fa8c16' }}>
|
|
|
|
|
{item?.built_area}m²
|
|
|
|
|
</span>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
<ProDescriptions.Item label="套内面积">
|
2025-08-08 18:35:02 +08:00
|
|
|
<span style={{ fontWeight: 'bold', color: '#fa8c16' }}>
|
|
|
|
|
{item?.inside_area}m²
|
|
|
|
|
</span>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
<ProDescriptions.Item label="计费面积">
|
2025-08-08 18:35:02 +08:00
|
|
|
<span style={{ fontWeight: 'bold', color: '#52c41a' }}>
|
|
|
|
|
{item?.chargeable_area}m²
|
|
|
|
|
</span>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
2025-08-08 18:35:02 +08:00
|
|
|
|
2025-07-10 18:01:45 +08:00
|
|
|
<ProDescriptions.Item label="户型">
|
2025-08-08 18:35:02 +08:00
|
|
|
<div style={{ fontSize: '14px' }}>
|
|
|
|
|
{item?.room || 0}房{item?.hall || 0}厅{item?.bathroom || 0}卫
|
|
|
|
|
{item?.kitchen || 0}厨{item?.balcony ? `${item.balcony}阳台` : ''}
|
|
|
|
|
</div>
|
2025-07-10 18:01:45 +08:00
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
<ProDescriptions.Item label="朝向">
|
|
|
|
|
<renderTextHelper.Tag
|
|
|
|
|
Enums={AssetHousesOrientationEnum}
|
2025-08-08 18:35:02 +08:00
|
|
|
value={item?.orientation}
|
2025-07-10 18:01:45 +08:00
|
|
|
key="orientation"
|
|
|
|
|
/>
|
|
|
|
|
</ProDescriptions.Item>
|
|
|
|
|
</ProDescriptions>
|
|
|
|
|
</ProCard>
|
|
|
|
|
</Space>
|
|
|
|
|
);
|
|
|
|
|
}
|