import { MyBetaModalFormProps, MyButtons, MyColumns, MyModalFormProps, MyProTableProps, renderTextHelper, } from '@/common'; import { HouseOccupantsCardTypeEnum, HouseOccupantsResidentialRelationEnum, HouseRegistersTypeEnum, } from '@/gen/Enums'; import { BetaSchemaForm, ProCard, ProDescriptions, ProTable, } from '@ant-design/pro-components'; import { useNavigate } from '@umijs/max'; import { Form, Image, Space } from 'antd'; export default function Show(props: MyBetaModalFormProps) { const [form] = Form.useForm(); const navigate = useNavigate(); return ( {...MyModalFormProps.props} title={props.title} trigger={} wrapperCol={{ span: 24 }} width="800px" modalProps={{ bodyStyle: { maxHeight: '70vh', overflowY: 'auto' }, }} key={new Date().getTime()} form={form} columns={[ { // title: '登记信息', dataIndex: 'info_display', valueType: 'text', renderFormItem: () => ( navigate( `/customer/archive/show/${props?.item?.model_id}`, ) } > {props?.item?.asset_house?.full_name || '-'} {props?.item?.created_at || '-'} {props?.item?.customer_info && props?.item?.customer_info?.length > 0 && ( record?.id_card || index} size="small" columns={[ MyColumns.EnumTag({ title: '关联身份', dataIndex: 'residential_relation', valueEnum: HouseOccupantsResidentialRelationEnum, }), { title: '姓名', dataIndex: 'name', }, { title: '手机号', dataIndex: 'phone', }, MyColumns.EnumTag({ title: '证件类型', dataIndex: 'card_type', valueEnum: HouseOccupantsCardTypeEnum, }), { title: '证件号码', dataIndex: 'id_card', }, { title: '证件资料', render: (_, item) => { return ( {item?.card_front_image?.[0] && ( )} {item?.card_back_image?.[0] && ( )} ); }, }, ]} /> )} {(props?.item?.type === 'UpdateInfo' || props?.item?.type === 'UpdatePhone') && ( record?.id_card || index} size="small" columns={[ { title: '姓名', dataIndex: 'name', }, { title: '手机号', dataIndex: 'phone', }, MyColumns.EnumTag({ title: '证件类型', dataIndex: 'card_type', valueEnum: HouseOccupantsCardTypeEnum, }), { title: '证件号码', dataIndex: 'id_card', }, { title: '证件资料', render: (_, item) => { return ( {item?.card_front_image?.[0] && ( )} {item?.card_back_image?.[0] && ( )} ); }, }, ]} /> )} {props?.item?.type === 'AddOwner' && props?.item?.ownership_info && props?.item?.ownership_info?.length > 0 && ( {props?.item?.ownership_info?.map( (res: any, index: number) => ( ), )} )} ), colProps: { span: 24 }, }, ]} /> ); }