forked from gzzfw/frontEnd/gzDyh

dminyi
2024-09-09 4590bfea932d6bbde4e54e7ddc96e8bba65efe4c
gz-customerSystem/src/views/register/visit/index.jsx
@@ -45,7 +45,7 @@
   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>