| | |
| | | const [id, setId] = useState(); |
| | | const [infoData, setInfoData] = useState({}); |
| | | const [height, setHeight] = useState(500); |
| | | const [agreeRadio, setAgreeRadio] = useState(); |
| | | |
| | | useEffect(() => { |
| | | getInfoData() |
| | |
| | | if (scrollRef.current.container) { |
| | | offsetTop = getOffset(scrollRef.current.container).top; |
| | | } |
| | | setHeight(getSize().windowH - offsetTop - 74) |
| | | setHeight(getSize().windowH - offsetTop - 80) |
| | | }; |
| | | |
| | | //回显数据 |
| | |
| | | |
| | | return ( |
| | | <div className='dataSync'> |
| | | <div className='dataSync-noBackTabPage'> |
| | | <div className='dataSync-noBackTabPage' style={{ background: '#fff' }}> |
| | | <Scrollbars style={{ height: height + 'px' }} autoHide ref={scrollRef}> |
| | | <div className="whiteBox"> |
| | | <Col span={24} className='title'> |
| | | <Space size='small'> |
| | |
| | | </Row> |
| | | |
| | | </div> |
| | | <div className='whiteBox' style={{ marginTop: '8px' }}> |
| | | <Scrollbars style={{ height: height + 'px' }} autoHide ref={scrollRef}> |
| | | <div className='whiteBox' style={{ borderTop: '8px solid #f0f2f5' }}> |
| | | <Space size='small'> |
| | | <div className='MediationInfo-subTitle' style={{ marginTop: '-8px' }}></div><h5>审核</h5> |
| | | </Space> |
| | |
| | | layout='vertical' |
| | | requiredSymbol={false} |
| | | initialValues={{ |
| | | auditResult: '24_00004-1', |
| | | auditResultName: "同意" |
| | | }}//默认值 |
| | | scrollToFirstError |
| | | > |
| | |
| | | direction='vertical' |
| | | options={$$.options.auditResult} |
| | | onChange={(value) => { |
| | | setAgreeRadio(value) |
| | | if (value) { |
| | | const data = $$.options.auditResult.find(item => item.value === value) |
| | | formRef.current.setFieldValue('auditResultName', data.label) |
| | |
| | | /> |
| | | </FormItem> |
| | | </Col> |
| | | {agreeRadio == '24_00004-2' && |
| | | <> |
| | | <Col span={24}> |
| | | <FormItem |
| | | label={(<div style={{ display: 'flex' }}>理由说明<div className="must">必填</div></div>)} |
| | |
| | | handleDelFile={handleDelFile} |
| | | /> |
| | | </Col> |
| | | </> |
| | | } |
| | | </Row> |
| | | </Form> |
| | | </div> |
| | | </Scrollbars> |
| | | <div className='dialogFooter'> |
| | | <div className='dialogFooter' style={{ margin: 0, padding: '16px 12px' }}> |
| | | <Button |
| | | type="primary" |
| | | className="dialogPrimary" |
| | |
| | | > |
| | | 提交 |
| | | </Button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |