/* 境内企业/机构 表单项 */ import React, { useEffect, useState } from 'react'; import { Form, Input, Button, Select, Upload, DatePicker, Row, Col, message, Space } from 'antd'; import { MobileOutlined, MailOutlined, EnvironmentOutlined, UploadOutlined, } from '@ant-design/icons'; import { getDictList } from '@/servers/api/dicts'; import type { DictItem } from '@/servers/api/dicts'; /** * 引入通用表单组件 */ import { QualificationSection, InvoiceSection, BankAccountSection, SurveySection, AttachmentSection, } from './CommonFormSections'; import { validateFileSize } from '@/utils/utils'; import FileUpload from '@/components/FileUpload/FileUpload'; const { Option } = Select; const { TextArea } = Input; // 移除不再需要的addressOptions interface DomesticFormProps { form: any; countdown: number; handleGetCaptcha: () => void; surveyQuestions?: API.SurveyQuestionResponse; // 本身就是数组类型 } /** * 境内企业注册表单 * 基本信息部分为境内企业特有 * 其他部分使用通用表单组件 */ const DomesticForm: React.FC = ({ form, countdown, handleGetCaptcha, surveyQuestions, }) => { const [contactsTypeOptions, setContactsTypeOptions] = useState([]); // 企业类别 const [companyTypeOptions, setCompanyTypeOptions] = useState([]); useEffect(() => { // 从字典中 联系人身份类别contacts_type 获取数据 getDictList('contacts_type').then((res) => { if (res.code === 200) { setContactsTypeOptions(res.data); } }); // 企业类别 getDictList('enterprise_type').then((res) => { if (res.code === 200) { setCompanyTypeOptions(res.data); } }); }, []); return ( <>
基本信息
{/* 营业执照附件和有效期 */} { // return { // value: value?.length > 0 ? value[0]?.url : undefined, // }; // }} getValueFromEvent={(value) => { return value?.length > 0 ? value[0]?.url : undefined; }} > */} } placeholder="上海市普陀区XX路1888号" /> } placeholder="请具体注明省、市、区、路、门牌号" />