From ca6f90dcc968c4dd83e0664aaab0ea724b7892a4 Mon Sep 17 00:00:00 2001
From: zhangyongtian <1181606322@qq.com>
Date: Fri, 30 Aug 2024 14:34:12 +0800
Subject: [PATCH] feat: 查看当事人详情

---
 gz-customerSystem/src/views/register/visit/index.jsx |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/gz-customerSystem/src/views/register/visit/index.jsx b/gz-customerSystem/src/views/register/visit/index.jsx
index 371c7df..869ad11 100644
--- a/gz-customerSystem/src/views/register/visit/index.jsx
+++ b/gz-customerSystem/src/views/register/visit/index.jsx
@@ -95,7 +95,14 @@
 			return {
 				...newObj,
 				personList: fakeData?.filter(item => item.perType === "15_020008-1" || item.perType === "15_020008-2"),
-				agentList: fakeData?.filter(item => item.perType === "24_00006-1" || item.perType === "24_00006-2"),
+				agentList: fakeData?.filter(item => item.perType === "24_00006-1" || item.perType === "24_00006-2").map(item => {
+					//personNameList用于查看详情显示代理人名字,不需要上传,去除
+					const { personNameList, ...rest } = item
+					return {
+						...rest,
+						personId: item.personId.join(',')
+					}
+				}),
 			}
 		} else {
 			const res = await getId()
@@ -103,7 +110,14 @@
 				return {
 					...newObj,
 					personList: fakeData?.filter(item => item.perType === "15_020008-1" || item.perType === "15_020008-2"),
-					agentList: fakeData?.filter(item => item.perType === "24_00006-1" || item.perType === "24_00006-2"),
+					agentList: fakeData?.filter(item => item.perType === "24_00006-1" || item.perType === "24_00006-2").map(item => {
+						//personNameList用于查看详情显示代理人名字,不需要上传,去除
+						const { personNameList, ...rest } = item
+						return {
+							...rest,
+							personId: item.personId.join(',')
+						}
+					}),
 					id: res.data
 				}
 			}
@@ -164,7 +178,8 @@
 								<Step title='结案归档' disabled />
 							</Steps>
 						</div>
-						{isReview ? <Preview /> : <VisitorRegister formRef={formRef} />}
+						<Preview style={{ display: isReview ? '' : 'none' }} />
+						<VisitorRegister formRef={formRef} style={{ display: isReview ? 'none' : '' }} />
 						<div className="dataSync-excel">
 							<Space size="large" style={{ margin: '4px 14px' }}>
 								<Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={handleSave} >保存</Button>

--
Gitblit v1.8.0