forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-08-30 ca6f90dcc968c4dd83e0664aaab0ea724b7892a4
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>