From 0a81ff5257909cac9534b40b806484240c384f4d Mon Sep 17 00:00:00 2001
From: xusd <330628789@qq.com>
Date: Fri, 04 Jul 2025 14:27:56 +0800
Subject: [PATCH] fix:全流程督办;结案审核查看结案信息;纠纷类型调整

---
 src/views/register/eventFlow/component/EventFlow.jsx |   61 +++++++++++++++++++++++++-----
 1 files changed, 51 insertions(+), 10 deletions(-)

diff --git a/src/views/register/eventFlow/component/EventFlow.jsx b/src/views/register/eventFlow/component/EventFlow.jsx
index 6f9a258..91bc1ac 100644
--- a/src/views/register/eventFlow/component/EventFlow.jsx
+++ b/src/views/register/eventFlow/component/EventFlow.jsx
@@ -9,6 +9,7 @@
 import AssignedModel from './AssignedModel';
 import MatterDetail from '../../matterDetail';
 import SupervisingView from '../../matterDetail/Supervising';
+import SupervisingViews from '../../matterDetail/SupervisingViews';
 import * as $$ from '@/utils/utility';
 import { useNavigate } from 'react-router-dom';
 import NotEntertained from './NotEntertained';
@@ -38,6 +39,11 @@
 // 删除已结案数据
 function deleteCaseInfoByIdApi(data) {
 	return $$.ax.request({ url: `caseInfo/deleteCaseById`, type: 'post', service: 'mediate', data });
+}
+
+//督办添加id
+function getNewTimeIdApi(id) {
+	return $$.ax.request({ url: `caseUtils/getNewTimeId`, type: 'get', service: 'utils' });
 }
 
 
@@ -154,18 +160,12 @@
 			key: 'tabcl',
 		},
 		{
-			label: '拒收',
+			label: '督办',
 			type: 'outline',
 			click: () => {
-				Modal.confirm({
-					title: '拒收确认',
-					content: '确定拒收吗?',
-					onOk: () => {
-						handleCaseCancel();
-					},
-				});
+				handleSupervisingAdd();
 			},
-			key: 'js',
+			key: 'db',
 			status: 'danger',
 		},
 	];
@@ -180,6 +180,8 @@
 	const [progressData, setProgressData] = useState({});
 	const [notVisible, setNotVisible] = useState(false); //不予受理弹窗控制
 	const [detailData, setDetailData] = useState({});
+	const [supervising, setSupervising] = useState(false); //督办弹窗控制
+	const [supervisingId, setSupervisingId] = useState('');
 
 	useEffect(() => {
 		if (props.authorData) {
@@ -270,6 +272,20 @@
 		}
 	};
 
+	//添加督办
+	const handleSupervisingAdd = () => {
+		setSupervising(!supervising);
+		getNewTimeId();
+	};
+
+	//获取添加督办id
+	const getNewTimeId = async () => {
+		const res = await getNewTimeIdApi();
+		if (res.type) {
+			setSupervisingId(res.data);
+		}
+	};
+
 	return (
 		<Fragment>
 			<div className="dataSync">
@@ -287,7 +303,7 @@
 						</div>
 					)}
 
-					<MatterDetail listFeedback={props.listFeedback} caseId={props.caseId} detailData={detailData} windowDetail={props.windowDetail} gridDetail={props.gridDetail} />
+					<MatterDetail transactResult={props.transactResult} listFeedback={props.listFeedback} caseId={props.caseId} detailData={detailData} windowDetail={props.windowDetail} gridDetail={props.gridDetail} />
 
 					{props.authorType != 'sxxq' && (
 						<div className="dataSync-hasTabPage" style={{ marginTop: '-8px' }}>
@@ -392,6 +408,16 @@
 						}}
 					/>
 				</Modal>
+				<SupervisingViews
+					visible={supervising}
+					title="督办"
+					handleOnCancel={() => setSupervising(false)}
+					caseId={props.caseId}
+					supervisingId={supervisingId}
+					getTableData={() => {
+						// 督办成功后可以在这里刷新数据
+					}}
+				/>
 				{(!props?.windowDetail && !props?.gridDetail) && (
 					<div className="dataSync-excel">
 						<Space size="middle" style={{ margin: '4px 14px' }}>
@@ -411,6 +437,21 @@
 						</Space>
 					</div>
 				)}
+				{(props?.windowDetail || props?.gridDetail) && (
+					<div className="dataSync-excel">
+						<Space size="middle" style={{ margin: '4px 14px' }}>
+							{staticButtonList?.map((item) => {
+								const { label, key, click, ...rest } = item;
+								return (
+									<Button key={key} onClick={click} {...rest}>
+										{label}
+									</Button>
+								);
+							})}
+
+						</Space>
+					</div>
+				)}
 			</div>
 		</Fragment>
 	);

--
Gitblit v1.8.0