From 71e242b85800588e66645aa0df1ed24469dfad45 Mon Sep 17 00:00:00 2001
From: liuwh <964324856@qq.com>
Date: Tue, 10 Sep 2024 10:14:41 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master
---
gz-customerSystem/src/views/register/visit/index.jsx | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/gz-customerSystem/src/views/register/visit/index.jsx b/gz-customerSystem/src/views/register/visit/index.jsx
index 7a0e312..74a56cc 100644
--- a/gz-customerSystem/src/views/register/visit/index.jsx
+++ b/gz-customerSystem/src/views/register/visit/index.jsx
@@ -41,11 +41,11 @@
const Organization = (props) => {
const formRef = useRef();
const routeData = useParams();
- const navigate = useNavigate();
+ const navigate = useNavigate();
const [isReview, setIsReview] = useState(false);//预览页面控制
const [current, setCurrent] = useState(1);
const [id, setId] = useState();
- const [partyList, setPartyList] = useState([]);//当事人信息,用于子组件回显
+ const [editData, setEditData] = useState({});//回显数据
useEffect(() => {
if (routeData.id) {
@@ -63,13 +63,14 @@
if (res.type) {
const { agentList, personList, ...rest } = res.data
const parList = agentList.concat(personList)
- formRef.current.setFieldsValue({
+ const obj = {
...rest,
fakeData: parList,
myCaseType: [rest.caseTypeFirst, rest.caseType],
myQuesAddress: rest.queRoad ? [rest.queProv, rest.queCity, rest.queArea, rest.queRoad] : undefined
- })
- setPartyList(parList)
+ }
+ formRef.current.setFieldsValue(obj)
+ setEditData(obj)
}
}
@@ -191,7 +192,13 @@
</Steps>
</div>
<Preview style={{ display: isReview ? '' : 'none' }} data={formRef?.current?.getFields()} />
- <VisitorRegister formRef={formRef} style={{ display: isReview ? 'none' : '' }} mainId={id} partyList={partyList} />
+ <VisitorRegister
+ formRef={formRef}
+ style={{ display: isReview ? 'none' : '' }}
+ mainId={id}
+ partyList={editData.fakeData}
+ fileInfoList={editData.fileInfoList}
+ />
<div className="dataSync-excel">
<Space size="large" style={{ margin: '4px 14px' }}>
<Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={handleSave} >保存</Button>
--
Gitblit v1.8.0