From 68f41dad70cc9c90b87258d91300576d7f5682e7 Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Sat, 14 Sep 2024 15:58:38 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master

---
 gz-customerSystem/src/views/register/handleFeedback/component/AuditView.jsx |  148 ++++++++++++++++++++++++++-----------------------
 1 files changed, 78 insertions(+), 70 deletions(-)

diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/AuditView.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/AuditView.jsx
index 941952c..32121ac 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/AuditView.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/AuditView.jsx
@@ -31,6 +31,7 @@
   const [id, setId] = useState();
   const [infoData, setInfoData] = useState({});
   const [height, setHeight] = useState(500);
+  const [agreeRadio, setAgreeRadio] = useState();
 
   useEffect(() => {
     getInfoData()
@@ -48,7 +49,7 @@
     if (scrollRef.current.container) {
       offsetTop = getOffset(scrollRef.current.container).top;
     }
-    setHeight(getSize().windowH - offsetTop - 74)
+    setHeight(getSize().windowH - offsetTop - 80)
   };
 
   //回显数据
@@ -93,39 +94,39 @@
 
   return (
     <div className='dataSync'>
-      <div className='dataSync-noBackTabPage'>
-        <div className="whiteBox">
-          <Col span={24} className='title'>
-            <Space size='small'>
-              <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h5>联合处置申请</h5>
-            </Space>
-          </Col>
-          <Row gutter={[16, 16]}>
-            <Col span={24}>
-              <div><div className="title-text">添加配合部门</div></div>
-              <div>{infoData.applyAssistUnitName || '-'}</div>
+      <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'>
+                <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h5>联合处置申请</h5>
+              </Space>
             </Col>
-            <Col span={24}>
-              <div><div className="title-text">添加理由</div></div>
-              <div>{infoData.applyContent || '-'}</div>
-            </Col>
-            <Col span={24}>
-              <div className="title"><div className="title-text">申请时间</div></div>
-              <div>{$$.myTimeFormat(infoData.applyTime, 'YYYY-MM-DD HH:mm') || '-'}</div>
-            </Col>
-            <Col span={24}>
-              <div><div className="title-text">申请人</div></div>
-              <div>
-                {infoData.applyUnitName}&nbsp;&nbsp;
-                {infoData.applyUserName || '-'}
-                <img src={register} alt="" className="title-register" />
-              </div>
-            </Col>
-          </Row>
+            <Row gutter={[16, 16]}>
+              <Col span={24}>
+                <div><div className="title-text">添加配合部门</div></div>
+                <div>{infoData.applyAssistUnitName || '-'}</div>
+              </Col>
+              <Col span={24}>
+                <div><div className="title-text">添加理由</div></div>
+                <div>{infoData.applyContent || '-'}</div>
+              </Col>
+              <Col span={24}>
+                <div className="title"><div className="title-text">申请时间</div></div>
+                <div>{$$.myTimeFormat(infoData.applyTime, 'YYYY-MM-DD HH:mm') || '-'}</div>
+              </Col>
+              <Col span={24}>
+                <div><div className="title-text">申请人</div></div>
+                <div>
+                  {infoData.applyUnitName}&nbsp;&nbsp;
+                  {infoData.applyUserName || '-'}
+                  <img src={register} alt="" className="title-register" />
+                </div>
+              </Col>
+            </Row>
 
-        </div>
-        <div className='whiteBox' style={{ marginTop: '8px' }}>
-          <Scrollbars style={{ height: height + 'px' }} autoHide ref={scrollRef}>
+          </div>
+          <div className='whiteBox' style={{ borderTop: '8px solid #f0f2f5' }}>
             <Space size='small'>
               <div className='MediationInfo-subTitle' style={{ marginTop: '-8px' }}></div><h5>审核</h5>
             </Space>
@@ -134,6 +135,8 @@
               layout='vertical'
               requiredSymbol={false}
               initialValues={{
+                auditResult: '24_00004-1',
+                auditResultName: "同意"
               }}//默认值
               scrollToFirstError
             >
@@ -147,6 +150,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)
@@ -157,47 +161,51 @@
                     />
                   </FormItem>
                 </Col>
-                <Col span={24}>
-                  <FormItem
-                    label={(<div style={{ display: 'flex' }}>理由说明<div className="must">必填</div></div>)}
-                    field='auditContent'
-                    rules={[{ required: true, message: '请选择理由说明' }]}
-                  >
-                    <TextArea
-                      autoSize={{ minRows: 4, maxRows: 8 }}
-                      placeholder='请填写不同意联合处置申请的理由'
-                    />
-                  </FormItem>
-                </Col>
-                <Col span={24} className="doubleFile">
-                  <ArcoUpload
-                    params={{
-                      action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${id}&ownerType=22_00018-509`,
-                    }}
-                    field='file'
-                    label={
-                      <div>
-                        附件材料
-                        <Tooltip>
-                          <img src={question1} alt="" style={{ width: '13px', height: '13px', margin: '-3px 4px 0px 4px' }} />
-                        </Tooltip>
-                      </div>
-                    }
-                    handleDelFile={handleDelFile}
-                  />
-                </Col>
+                {agreeRadio == '24_00004-2' &&
+                  <>
+                    <Col span={24}>
+                      <FormItem
+                        label={(<div style={{ display: 'flex' }}>理由说明<div className="must">必填</div></div>)}
+                        field='auditContent'
+                        rules={[{ required: true, message: '请选择理由说明' }]}
+                      >
+                        <TextArea
+                          autoSize={{ minRows: 4, maxRows: 8 }}
+                          placeholder='请填写不同意联合处置申请的理由'
+                        />
+                      </FormItem>
+                    </Col>
+                    <Col span={24} className="doubleFile">
+                      <ArcoUpload
+                        params={{
+                          action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${props.caseId}&ownerId=${id}&ownerType=22_00018-509`,
+                        }}
+                        field='file'
+                        label={
+                          <div>
+                            附件材料
+                            <Tooltip>
+                              <img src={question1} alt="" style={{ width: '13px', height: '13px', margin: '-3px 4px 0px 4px' }} />
+                            </Tooltip>
+                          </div>
+                        }
+                        handleDelFile={handleDelFile}
+                      />
+                    </Col>
+                  </>
+                }
               </Row>
             </Form>
-          </Scrollbars>
-          <div className='dialogFooter'>
-            <Button
-              type="primary"
-              className="dialogPrimary"
-              onClick={handleSubmit}
-            >
-              提交
-            </Button>
           </div>
+        </Scrollbars>
+        <div className='dialogFooter' style={{ margin: 0, padding: '16px 12px' }}>
+          <Button
+            type="primary"
+            className="dialogPrimary"
+            onClick={handleSubmit}
+          >
+            提交
+          </Button>
         </div>
       </div>
     </div>

--
Gitblit v1.8.0