From b444da33c9de750aec3724e8f1cb4efe8775b165 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Thu, 12 Sep 2024 20:50:09 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master

---
 gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx b/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx
index 9db6691..6e3fc4b 100644
--- a/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx
+++ b/gz-customerSystem/src/views/register/eventFlow/component/EscalationModel.jsx
@@ -22,13 +22,30 @@
   return $$.ax.request({ url: `caseTask/appearApply`, type: 'post', service: 'mediate', data });
 }
 
+function getAppearToUnit() {
+  return $$.ax.request({ url: `ctUnit/getAppearToUnit`, type: 'get', service: 'cust' });
+}
+
 export default function BackModel(props) {
   const formRef = useRef();
-  const [id, setId] = useState()
+  const [id, setId] = useState();
+  const [unitData, setUnitData] = useState({});
 
   useEffect(() => {
     getAppId()
+    getAppearToUnitData()
   }, [])
+
+  //获取上报部门
+  const getAppearToUnitData = async () => {
+    const res = await getAppearToUnit()
+    if (res.type) {
+      setUnitData({
+        auditUnitId: res.data.auditUnitId,
+        auditUnitName: res.data.auditUnitName
+      })
+    }
+  }
 
   //获取id
   const getAppId = async () => {
@@ -46,7 +63,9 @@
             handleEscala({
               id,
               caseId: props.caseId,
-              returnContent: values.returnContent
+              caseTaskId: props.caseTaskId,
+              returnContent: values.returnContent,
+              ...unitData
             })
           }
         })
@@ -55,7 +74,7 @@
   }
 
   const handleTemplate = (type) => {
-    if(type === 1) {
+    if (type === 1) {
       formRef.current.setFieldValue('returnContent', '经初步核查,该事项较为复杂,且涉及多个相关部门的协调配合,为确保能够高效、妥善地解决当事人的问题,特此请求上级给予指导和支持。')
     } else {
       formRef.current.setFieldValue('returnContent', '')

--
Gitblit v1.8.0