| | |
| | | |
| | | useEffect(() => { |
| | | if (props.editData) { |
| | | console.log(props.editData); |
| | | //编辑 |
| | | formRef.current.setFieldsValue({ |
| | | ...props.editData |
| | |
| | | label='身份证明材料' |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | ownerType='22_00018-202' |
| | | /> |
| | | </Col> |
| | | <Col span={12}> |
| | |
| | | <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`, |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-203`, |
| | | }} |
| | | field='file' |
| | | label={isLegal ? '企业登记材料' : '机构登记材料'} |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | ownerType='22_00018-203' |
| | | /> |
| | | </Col> |
| | | <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`, |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.mainId}&ownerId=${id}&ownerType=22_00018-204`, |
| | | }} |
| | | field='file1' |
| | | label={isLegal ? '法定代表人身份证明材料' : '机构代表人身份证明材料'} |
| | | editData={props.editData} |
| | | handleDelFile={handleDelFile} |
| | | ownerType='22_00018-204' |
| | | /> |
| | | </Col> |
| | | <Col span={12}> |
| | |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | const fieldValue = formRef.current.getFields() |
| | | console.log(fieldValue); |
| | | if (props.editData) { |
| | | props.handleAddParty({ |
| | | ...fieldValue |
| | |
| | | layout='vertical' |
| | | requiredSymbol={false} |
| | | initialValues={{ |
| | | extreme: 0, |
| | | nation:'' |
| | | }}//默认值 |
| | | scrollToFirstError |
| | | > |
| | |
| | | </Row> |
| | | |
| | | {/* 重复来访重点人员 */} |
| | | <div style={{ width: 'calc(100% - 9px)', background: '#f2f3f5', marginBottom: '20px', padding: '12px' }}> |
| | | {/* <div style={{ width: 'calc(100% - 9px)', background: '#f2f3f5', marginBottom: '20px', padding: '12px' }}> |
| | | <KeyVisits /> |
| | | </div> |
| | | </div> */} |
| | | </Scrollbars> |
| | | <div className='dialogFooter'> |
| | | <Button |