import { MyBetaModalFormProps } from '@/common';
import HousesShow from '@/pages/asset/dictionary/modals/HousesShow';
import { ProCard, ProDescriptions } from '@ant-design/pro-components';
import { Space } from 'antd';

export default function info(props: MyBetaModalFormProps) {
  const { item } = props;

  return (
    <Space direction="vertical" style={{ width: '100%' }}>
      <ProCard title="基本信息">
        <ProDescriptions bordered>
          <ProDescriptions.Item label="房屋名称" span={2}>
            <Space>
              {item?.asset_house?.full_name || '-'}
              {item?.asset_houses_id && (
                <HousesShow
                  item={{ id: item?.asset_houses_id }}
                  reload={props?.reload}
                />
              )}
            </Space>
          </ProDescriptions.Item>
          <ProDescriptions.Item label="应付金额">
            {item?.total_payable_sum || '-'}
          </ProDescriptions.Item>
          <ProDescriptions.Item label="账单金额">
            {item?.payable_amount_sum || '-'}
          </ProDescriptions.Item>
          <ProDescriptions.Item label="滞纳金">
            {item?.late_fee_sum || '-'}
          </ProDescriptions.Item>
          <ProDescriptions.Item label="优惠金额">
            {item?.discount_amount_sum || '-'}
          </ProDescriptions.Item>
        </ProDescriptions>
      </ProCard>
    </Space>
  );
}
