import { useState } from 'react' import { Button, Form, Input, message, Modal } from "antd" import BelongPeople from '../../../../components/BelongPeople/BelongPeople.tsx' export default function EditThree(props: any) { const [form] = Form.useForm(); const height = window.innerHeight - 350; const handleSubmit = () => { form.submit(); props.setEditProcess(4); }; const onFinish = (values: any) => { console.log('Success:', values); props.setEditProcess(4); }; const [belongPeopleInfo, setBelongPeopleInfo] = useState({ authorName: '', authorType: '', authorIdCardType: '', authorIdCard: '', authorCrcAccount: 0, authorId: '', authorProvinceCity: '', authorCrcAccountPassword: '', authorCrcAccountUsername: '' }) const [belongModal, setBelongModal] = useState(false) const setValue = (value: string) => { form.setFieldsValue({ projOwnerName: value }) } return (
{ errorInfo.errorFields.forEach((field) => { if (field.errors.length > 0) { // 显示每条错误信息 message.error(field.errors[0]); } }); }} >
产权所属者*
{ setBelongModal(true) }} > 选择
{ setValue('') setBelongPeopleInfo({ authorName: '', authorType: '', authorIdCardType: '', authorIdCard: '', authorCrcAccount: 0, authorId: '', authorProvinceCity: '', authorCrcAccountUsername: '', authorCrcAccountPassword: '', }) }}> 取消
{ setBelongModal(false) }}> { setBelongModal(false) }} setBelongPeopleInfo={setBelongPeopleInfo} belongPeopleInfo={belongPeopleInfo} setValue={setValue} isShow={true}>
) }