From 8d6b46929dc3cb6d012c889f22cb8976fa6bd04d Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Wed, 11 Sep 2024 12:05:04 +0800
Subject: [PATCH] 修改

---
 gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx     |   20 +++++----
 gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx           |   12 +++++-
 gz-customerSystem/src/views/register/visit/component/levelDetail.jsx         |    4 +
 gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx |   39 +++++++++----------
 4 files changed, 43 insertions(+), 32 deletions(-)

diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
index 9af56b6..15a0d77 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
@@ -2,7 +2,7 @@
  * @Author: dminyi 1301963064@qq.com
  * @Date: 2024-09-02 14:49:13
  * @LastEditors: dminyi 1301963064@qq.com
- * @LastEditTime: 2024-09-11 11:29:10
+ * @LastEditTime: 2024-09-11 11:34:07
  * @FilePath: \gzDyh\gz-customerSystem\src\views\register\handleFeedback\component\CaseResult.jsx
  * @Description: 结案申请
  */
@@ -91,7 +91,7 @@
   const handleTemplate1 = (type) => {
     if (type === 1) {
       formRef.current.setFieldValue('agreeContent', '根据纠纷化解人员的协调,当事人双方同意如下调解协议:[简要说明协议第一条][简要说明协议第二条][……]本口头调解协议由纠纷化解人员记录,并已告知双方当事人。双方当事人确认无误。')
-    } 
+    }
   }
 
   const handleTemplate2 = (type) => {
@@ -99,6 +99,14 @@
       formRefWrite.current.setFieldValue('windupContent', '鉴于以上协议内容已经双方确认,并认为该协议内容公平合理,能够妥善解决双方的纠纷。建议双方当事人按照协议内容执行,以实现纠纷的最终解决。')
     } else {
       formRefWrite.current.setFieldValue('windupContent', '')
+    }
+  }
+
+  const handleTemplate3 = (type) => {
+    if (type === 1) {
+      failRef.current.setFieldValue('windupContent', '经过多次调解,尽管纠纷化解人员尽最大努力帮助双方找到解决方案,但由于以下原因,当事人双方未能达成一致意见:[详细说明化解未成功的原因之一][详细说明化解未成功的原因之二][……][……]鉴于上述情况,纠纷化解人员认为目前无法通过调解方式解决双方的争议,建议双方考虑采取其他合法途径解决纠纷。')
+    } else {
+      failRef.current.setFieldValue('windupContent', '')
     }
   }
 
@@ -450,27 +458,18 @@
                 </tr>
               </table>
             </Col>
-            <Col span={24}>
+            <Col span={24} style={{ position: 'relative' }}>
+              <div style={{ position: 'absolute', display: 'flex ', top: '28px', zIndex: 1 }}>
+                <div className='myTag' style={{ marginRight: '22px' }} onClick={() => { handleTemplate3(1) }}>公共模板:化解不成功结案意见范本</div>
+              </div>
               <FormItem
-                label={
-                  <>
-                    <div style={{ display: 'flex' }}>
-                      结案意见
-                      <div className="must" style={{ marginLeft: '4px' }}>必填</div>
-                    </div>
-                    <div className='modeMore'>
-                      <div className='caseResult-textarea'>公共模板:化解不成功结案意见范本</div>
-                      <div style={{ color: '#1A6FB8' }} onClick={() => setMode(!mode)}>更多模板</div>
-                    </div>
-                  </>
-                }
+                label={(<div style={{ display: 'flex' }}>结案意见<div className="must">必填</div></div>)}
                 field='windupContent'
-                rules={[{ message: '请填写事项概况', required: true }]}
               >
-                <Input.TextArea
-                  rows={5}
-                  wrapperStyle={{ width: '100%' }}
-                  value='鉴于以上协议内容已经双方确认,并认为该协议内容公平合理,能够妥善解决双方的纠纷。建议双方当事人按照协议内容执行,以实现纠纷的最终解决。'
+                <TextArea
+                  autoSize={{ minRows: 4, maxRows: 8 }}
+                  placeholder='请填写'
+                  style={{ marginTop: '40px' }}
                 />
               </FormItem>
             </Col>
diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
index 3ba1229..056f38a 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
@@ -138,9 +138,12 @@
   }
 
   const getByIdRole = async () => {
+    console.log(feedbackInfoData?.handleUserId, 'feedbackInfoData?.handleUserId')
     const res = await getByIdRoleApi(feedbackInfoData?.handleUserId)
-    setPersonData(res.data)
-
+    if(res.type){
+      setPersonView(!personView)
+      setPersonData(res.data)
+    }
   }
 
 
@@ -185,9 +188,9 @@
   const getFeedbackInfo = async () => {
     const res = await getFeedbackInfoApi(caseId)
     if (res.type) {
-      setFeedbackInfoData(res.data)
+      setFeedbackInfoData(() => res.data)
       console.log(res.data, 'res.data')
-      getByIdRole();
+      // getByIdRole();
     }
   }
 
@@ -269,7 +272,7 @@
   }
 
   const handlePersonView = () => {
-    setPersonView(!personView)
+    getByIdRole();
 
   }
 
@@ -366,7 +369,7 @@
                     caseId && managerName ?
                       <WantUserTag name={managerName} onClose={() => setWantUser({ wantUserId: null, wantUserName: null })} />
                       :
-                      <Button onClick={() => setIsModalVisible(true)} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button>
+                      <Button onClick={() => { setIsModalVisible(true); }} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button>
                   }
                 </FormItem>
               </Col>
@@ -407,7 +410,6 @@
                               wrapperStyle={{ width: '100%' }}
                             />
                           </FormItem>
-
                         </Col>
                         <Col span={24}>
                           <FormItem
@@ -420,7 +422,7 @@
                           >
                             <ArcoUpload
                               params={{
-                                action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${caseId}&ownerType=${'22_00018-501'}`,
+                                action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${id}&ownerType=${'22_00018-501'}`,
                               }}
                               field='file1'
                               // handleChangeFile={handleChangeFile}
@@ -543,7 +545,7 @@
             </tr>
             <tr>
               <th bgcolor="#F7F8FA" className="table-title">所属部门</th>
-              <td>{personData?.deptName}</td>
+              <td>{personData?.unitName}</td>
               <th bgcolor="#F7F8FA" className="table-title">职务</th>
               <td>{personData?.userRoles}</td>
             </tr>
diff --git a/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx b/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
index 000d205..0fb4d50 100644
--- a/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
+++ b/gz-customerSystem/src/views/register/matterDetail/HandleRecord.jsx
@@ -1,3 +1,11 @@
+/*
+ * @Author: dminyi 1301963064@qq.com
+ * @Date: 2024-09-06 09:40:00
+ * @LastEditors: dminyi 1301963064@qq.com
+ * @LastEditTime: 2024-09-11 12:00:20
+ * @FilePath: \gzDyh\gz-customerSystem\src\views\register\matterDetail\HandleRecord.jsx
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
+ */
 import React, { useState, useRef, useEffect } from 'react';
 import * as $$ from '@/utils/utility';
 import { Form, Input, Tabs, Typography, Empty, Radio, Button, Modal } from '@arco-design/web-react';
@@ -31,7 +39,7 @@
     <div>
       {list?.length > 0 ?
         <div>
-          {list?.map(record => (
+          {list?.map((record,index) => (
             <div key={record.id} className='container-bottom-left-record'>
               <div className='container-bottom-left-record-top'>
                 {
@@ -57,7 +65,7 @@
                   </tr>
                   <tr>
                     <th bgcolor="#F7F8FA" className="table-title" width="120">办理附件</th>
-                    <td>{record.handleUnitName}</td>
+                    <td>{record?.fileInfoList?.[0]?.trueName}</td>
                   </tr>
                 </table>
               </div>
diff --git a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
index cfdf31f..8d727f6 100644
--- a/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
+++ b/gz-customerSystem/src/views/register/visit/component/levelDetail.jsx
@@ -249,8 +249,10 @@
                             <div className='layerDetail-name'>{caseDetailView?.caseTitle || '-'}</div>
                             <div className='layerDetail-littleTitle'>基本案情</div>
                             <div className='layerDetail-content'>{caseDetailView?.caseDesc || '-'}</div>
-                            <div className='layerDetail-littleTitle'>结果</div>
+                            <div className='layerDetail-littleTitle'>诉求</div>
                             <div className='layerDetail-content'>{caseDetailView?.caseClaim || '-'}</div>
+                            <div className='layerDetail-littleTitle'>诉求</div>
+                            <div className='layerDetail-content'>{caseDetailView?.agreeContent || '-'}</div>
                         </div>
                     }
                     {

--
Gitblit v1.8.0