forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-14 68f41dad70cc9c90b87258d91300576d7f5682e7
gz-customerSystem/src/views/register/eventFlow/component/Examine.jsx
@@ -34,6 +34,8 @@
  const [infoData, setInfoData] = useState({});
  const [id, setId] = useState();
  const [height, setHeight] = useState(500);
  const [agreeRadio, setAgreeRadio] = useState();
  const [reasonRadio, setReasonRadio] = useState();
  const mainFlag = props.type == 'htsh' ? 'return' : 'appear'
  const options = [
    {
@@ -69,7 +71,7 @@
    if (scrollRef.current.container) {
      offsetTop = getOffset(scrollRef.current.container).top;
    }
    setHeight(getSize().windowH - offsetTop - 74)
    setHeight(getSize().windowH - offsetTop - 80)
  };
  //回显数据
@@ -117,7 +119,8 @@
  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'>
          <Space size='small'>
            <div className='MediationInfo-subTitle' style={{ marginTop: '-8px' }}></div><h5>{props.type === 'htsh' ? '回退申请' : '上报申请'}</h5>
@@ -154,8 +157,7 @@
            </Col>
          </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>
@@ -164,6 +166,8 @@
              layout='vertical'
              requiredSymbol={false}
              initialValues={{
                auditResult: '24_00004-1',
                auditResultName: "同意"
              }}//默认值
              scrollToFirstError
            >
@@ -177,6 +181,7 @@
                      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)
@@ -187,6 +192,8 @@
                    />
                  </FormItem>
                </Col>
                {agreeRadio == '24_00004-2' &&
                  <>
                <Col span={24}>
                  <FormItem
                    label={(<div style={{ display: 'flex' }}>理由说明<div className="must">必填</div></div>)}
@@ -197,14 +204,20 @@
                      direction='vertical'
                      options={options}
                      onChange={(value) => {
                            setReasonRadio(value)
                            if (value !== '2') {
                        const obj = options.find(item => item.value === value)
                        formRef.current.setFieldValue('auditContent', obj.label)
                            } else {
                              formRef.current.setFieldValue('auditContent', '')
                            }
                      }}
                    >
                    </RadioGroup>
                  </FormItem>
                </Col>
                <Col span={24}>
                    {
                      reasonRadio === '2' && <Col span={24}>
                  <FormItem
                    label=' '
                    field='auditContent'
@@ -212,10 +225,11 @@
                  >
                    <TextArea
                      autoSize={{ minRows: 4, maxRows: 8 }}
                      placeholder='请填写回退的具体理由'
                            placeholder={`请填写不同意${props.type === 'htsh' ? '回退' : '上报'}的具体理由`}
                    />
                  </FormItem>
                </Col>
                    }
                <Col span={24} className="doubleFile">
                  <ArcoUpload
                    params={{
@@ -226,10 +240,13 @@
                    handleDelFile={handleDelFile}
                  />
                </Col>
                  </>
                }
              </Row>
            </Form>
          </div>
          </Scrollbars>
          <div className='dialogFooter'>
        <div className='dialogFooter' style={{ margin: 0, padding: '16px 12px' }}>
            <Button
              type="primary"
              className="dialogPrimary"
@@ -237,7 +254,7 @@
            >
              提交
            </Button>
          </div>
          <Button type='secondary' onClick={() => navigate(-1)}>返回上级页面</Button>
        </div>
      </div>
    </div>