| | |
| | | const [addVisabled, setAddVisabled] = useState(false);//添加当事人弹窗控制 |
| | | const [fakeData, setFakeData] = useState([]);//当事人信息数据 |
| | | const [scanFile, setScanFile] = useState(false); |
| | | const [ocrText, setOcrText] = useState(''); |
| | | |
| | | const [mapView, setMapView] = useState(false); |
| | | const [visible, setVisible] = useState(false); |
| | |
| | | |
| | | const handleConfirm = (scanContent) => { |
| | | // 处理确认逻辑 |
| | | props.formRef.current.setFieldValue('caseDes', scanContent) |
| | | props.formRef.current.setFieldValue(ocrText, scanContent) |
| | | setScanFile(false); |
| | | console.log(scanContent, 'scanContent') |
| | | |
| | |
| | | </Tooltip> |
| | | <div className="must" style={{ marginLeft: '4px' }}>必填</div> |
| | | <img src={scan} alt="" style={{ marginRight: '-2px', marginLeft: '8px' }} /> |
| | | <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => setScanFile(true)}>识别上传材料</div> |
| | | <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => { setScanFile(true); setOcrText('caseDes') }}>识别上传材料</div> |
| | | </div> |
| | | } |
| | | field='caseDes' |
| | |
| | | </Tooltip> */} |
| | | <div className="must">必填</div> |
| | | <img src={scan} alt="" style={{ marginRight: '-2px', marginLeft: '8px' }} /> |
| | | <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => setScanFile(true)}>识别上传材料</div> |
| | | <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => { setScanFile(true); setOcrText('caseClaim') }}>识别上传材料</div> |
| | | </div> |
| | | } |
| | | field='caseClaim' |