From 842f0a4df6b10d70512e6bf48c99c54987c3bd25 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Tue, 10 Sep 2024 20:37:46 +0800
Subject: [PATCH] 流程

---
 gz-customerSystem/src/views/register/closingReview/index.jsx |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/gz-customerSystem/src/views/register/closingReview/index.jsx b/gz-customerSystem/src/views/register/closingReview/index.jsx
index a9dfa4f..a4c2a37 100644
--- a/gz-customerSystem/src/views/register/closingReview/index.jsx
+++ b/gz-customerSystem/src/views/register/closingReview/index.jsx
@@ -16,6 +16,10 @@
 	return $$.ax.request({ url: `caseTask/getTabButton?caseTaskId=${caseTaskId}`, type: 'get', service: 'mediate' });
 }
 
+function getCaseInfoApi(id) {
+  return $$.ax.request({ url: '/caseInfo/getCaseInfo?id=' + id, type: 'get', service: 'mediate' });
+}
+
 const myTab = [
 	{
 		img: Matter,
@@ -36,13 +40,17 @@
 const ClosingReview = () => {
 	const caseId = $$.getQueryString('caseId')
 	const caseTaskId = $$.getQueryString('caseTaskId')
+	const windupId = $$.getQueryString('windupId')
+
 	const routeData = useParams();
 	const [authorData, setAuthorData] = useState({});
 	const [tabsList, setTabsList] = useState([]);
 	const [tabsActive, setTabsActive] = useState();
+	const [newId, setNewId] = useState(caseId)
 
 	useEffect(() => {
-		getAuthor()
+		getAuthor();
+		getCaseInfo()
 		console.log(caseId,caseTaskId,'caseId','caseTaskId')
 	}, [])
 
@@ -68,6 +76,14 @@
 		}
 	}
 
+	const getCaseInfo = async (id) => {
+    const res = await getCaseInfoApi(caseId)
+		if(res.type){
+			console.log(res.data?.id,'res.data?.idres.data?.id')
+			setNewId(res.data?.id)
+		}
+		}
+
 	//根据id定义组件
 	const getTypeDom = (key) => {
 		if (key === 'dslxq' || key === 'sxxq') {
@@ -77,7 +93,7 @@
 			return <ApplyInfo />
 		}
 		if (key === 'jash') {
-			return <ReviewExamine caseTaskId={caseTaskId} caseId={caseId} />
+			return <ReviewExamine caseTaskId={caseTaskId} caseId={caseId} id={windupId} />
 		}
 	}
 

--
Gitblit v1.8.0