| | |
| | | import KeyVisits from "@/components/personCard/KeyVisits"; |
| | | import SelectUnitDialog from "./selectUnitDialog"; |
| | | import ArcoUpload from '@/components/ArcoUpload'; |
| | | import { Scrollbars } from "react-custom-scrollbars"; |
| | | |
| | | const FormItem = Form.Item; |
| | | const Option = Select.Option; |
| | |
| | | |
| | | function getId() { |
| | | return $$.ax.request({ url: `caseUtils/getNewTimeId`, type: 'get', service: 'utils' }); |
| | | } |
| | | |
| | | function delFile(id) { |
| | | return $$.ax.request({ url: `fileInfo/deleteFileById`, type: 'delete', service: 'sys', data: { id } }); |
| | | } |
| | | |
| | | export default function ApplyDialog(props) { |
| | |
| | | } |
| | | } |
| | | |
| | | //删除文件 |
| | | const handleDelFile = async (id) => { |
| | | const res = await delFile(id) |
| | | if (res.type) { |
| | | $$.infoSuccess({ content: '删除成功!' }); |
| | | } |
| | | } |
| | | |
| | | //页面返回 |
| | | const formType = (type) => { |
| | | if (type === '09_01001-1') { |
| | | //自然人 |
| | | return ( |
| | | <> |
| | | <Col span={24}> |
| | | <Col span={24} className="doubleFile"> |
| | | <ArcoUpload |
| | | params={{ |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-202`, |
| | |
| | | handleChangeFile={handleChangeFile} |
| | | label='身份证明材料' |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | /> |
| | | </Col> |
| | | <Col span={12}> |
| | |
| | | let isLegal = type === '09_01001-2' |
| | | return ( |
| | | <> |
| | | <Col span={24}> |
| | | <Col span={24} className="doubleFile"> |
| | | <ArcoUpload |
| | | params={{ |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-202`, |
| | |
| | | field='file' |
| | | label={isLegal ? '企业登记材料' : '机构登记材料'} |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | /> |
| | | </Col> |
| | | <Col span={24}> |
| | | <Col span={24} className="doubleFile"> |
| | | <ArcoUpload |
| | | params={{ |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-202`, |
| | |
| | | field='file1' |
| | | label={isLegal ? '法定代表人身份证明材料' : '机构代表人身份证明材料'} |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | /> |
| | | </Col> |
| | | <Col span={12}> |
| | |
| | | |
| | | return ( |
| | | <div className="applyDialog"> |
| | | <div style={{ height: '590px', overflowY: 'scroll' }}> |
| | | <Scrollbars style={{ height: '590px' }} autoHide> |
| | | <div className="dialogTitle">当事人类型</div> |
| | | <Row gutter={[16, 16]} style={{ margin: '0 2px 0 0' }}> |
| | | {$$.options.personClass.map((x, t) => { |
| | |
| | | <div style={{ width: 'calc(100% - 9px)', background: '#f2f3f5', marginBottom: '20px', padding: '12px' }}> |
| | | <KeyVisits /> |
| | | </div> |
| | | </div> |
| | | </Scrollbars> |
| | | <div className='dialogFooter'> |
| | | <Button |
| | | type="primary" |