forked from gzzfw/frontEnd/gzDyh

dminyi
2024-09-03 ce7871581ad440a9869118a49746f66e850f502e
预览当事人类型组件化
1 files added
3 files modified
380 ■■■■■ changed files
gz-customerSystem/src/views/register/index.less 5 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx 5 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/component/previewTable.jsx 174 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/preview.jsx 196 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/index.less
@@ -57,6 +57,7 @@
    width: 100%;
    border-color: #E5E6EB;
    margin-bottom: 20px;
    &-title {
        color: #86909C;
@@ -72,9 +73,9 @@
    }
    &-personRemark {
        color: rgb(26, 111, 184);
        color: #879AAB;
        background-color: #EDEEF0;
        padding: 0px 8px;
        border: 1px solid rgb(26, 111, 184);
        border-radius: 4px;
        font-size: 14px;
        margin-left: 8px;
gz-customerSystem/src/views/register/matterDetail/fileMessage.jsx
@@ -11,12 +11,13 @@
const FileMessage = (props) => {
  const [tabsActive, setTabsActive] = useState('1');
  const [current, setCurrent] = useState(6);
  const [current, setCurrent] = useState(7);
  const [tabsList, setTabList] = useState([
        {
            img: result,
            label: '档案信息',
            key: '1'
            key: '1',
      isNeedStep:true
        },
        {
            img: apply,
gz-customerSystem/src/views/register/visit/component/previewTable.jsx
New file
@@ -0,0 +1,174 @@
import React from 'react';
import { person, link } from '@/assets/images'
const ApplyDialog = ({ applyDialog }) => {
  return (
    <>
      {
        applyDialog?.map((item, index) => (
          <table border="1" align="center" cellpadding="6" className="table">
            <tr>
              <th bgcolor="#F7F8FA" className="table-title" width="120">姓名</th>
              <td width='380'><div style={{ display: 'flex' }}><div>{item.trueName}</div><div className="title-personRemark">{item.perClassName}</div></div></td>
              <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
              <td width='380'>{item.phone}</td>
              <th bgcolor="#F7F8FA" className="table-title" width='140'>性别</th>
              <td>{item.sex}</td>
              <td rowspan="4" width="112" height='147' style={{ padding: '0px' }}>
                <img border="0" src={person} alt="" style={{
                  width: '100%',
                  height: '100%',
                  objectFit: 'cover', // 保持原始宽高比并填充整个容器
                  objectPosition: 'center', // 图片居中显示
                }} />
              </td>
            </tr>
            <tr>
              <th bgcolor="#F7F8FA" className="table-title">证件类型</th>
              <td>{item.certiTypeName}</td>
              <th bgcolor="#F7F8FA" className="table-title">证件号码</th>
              <td>{item.certiNo}</td>
              <th bgcolor="#F7F8FA" className="table-title">民族</th>
              <td>{item.nationName}</td>
            </tr>
            <tr>
              <th bgcolor="#F7F8FA" className="table-title">联系地址</th>
              <td>{item.addr}</td>
              <th bgcolor="#F7F8FA" className="table-title">户籍地址</th>
              <td>{item.placeAddr}</td>
              <th bgcolor="#F7F8FA" className="table-title" rowspan="2" >是否有个人极端倾向</th>
              <td rowspan="2" >{item.extreme}</td>
            </tr>
            <tr>
              <th bgcolor="#F7F8FA" className="table-title">工作单位</th>
              <td>{item.workUnit}</td>
              <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th>
              <td>
                <a href="your-link-here.html" target="_blank">
                  <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf
                </a>
              </td>
            </tr>
          </table>
        ))
      }
    </>
  )
}
const AgentDialog = ({ agentDialog }) => {
  return (
    <>
      {agentDialog?.map((item, index) => (
        <table border="1" align="center" cellpadding="6" className="table" style={{ marginTop: '20px', marginBottom: '20px' }}>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title" width="120">姓名</th>
            <td width='380'><div style={{ display: 'flex' }}><div>{item.trueName}</div><div className="title-personRemark">{item.perClassName}</div></div></td>
            <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
            <td width='380'>{item.phone}</td>
            <th bgcolor="#F7F8FA" className="table-title" width="140">性别</th>
            <td>{item.sex}</td>
            <td rowspan="4" width="112" height='147' style={{ padding: '0px' }}>
              <img border="0" src={person} alt="" style={{ width: '100%', height: '100%' }} />
            </td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">证件类型</th>
            <td>{item.certiTypeName}</td>
            <th bgcolor="#F7F8FA" className="table-title">证件号码</th>
            <td>{item.certiNo}</td>
            <th bgcolor="#F7F8FA" className="table-title">民族</th>
            <td>{item.nationName}</td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">联系地址</th>
            <td>{item.addr}</td>
            <th bgcolor="#F7F8FA" className="table-title">户籍地址</th>
            <td>{item.placeAddr}</td>
            <th bgcolor="#F7F8FA" className="table-title" >是否有个人极端倾向</th>
            <td>{item.extreme}</td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">工作单位</th>
            <td>{item.workUnit}</td>
            <th bgcolor="#F7F8FA" className="table-title">委托关系</th>
            <td>{item.agentRelateName}</td>
            <th bgcolor="#F7F8FA" className="table-title">委托类型</th>
            <td>{item.agentTypeName}</td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">代理对象</th>
            <td>{item.perTypeName}</td>
            <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th>
            <td>
              <a href="your-link-here.html" target="_blank">
                <img src={link} alt="" className="title-file" />李巧凤身份证明材料.pdf
              </a>
            </td>
            <th bgcolor="#F7F8FA" className="table-title">代理人授权委托书</th>
            <td>
              <a href="your-link-here.html" target="_blank">
                <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf
              </a>
            </td>
          </tr>
        </table>
      ))}
    </>
  )
}
const Respondent = ({ respondent}) => {
  return (
    <>
      {respondent?.map((item, index) => (
        <table border="1" align="center" cellpadding="6" className="table" style={{ marginTop: '20px', marginBottom: '20px' }}>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title" width="120">企业名称</th>
            <td width='380'><div style={{ display: 'flex' }}><div>{item.orgaType}</div><div className="title-personRemark">{item.perClassName}</div></div></td>
            <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
            <td width='380'>{item.phone}</td>
            <th bgcolor="#F7F8FA" className="table-title" width="120">企业所在地</th>
            <td>{item.address}</td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">企业类型</th>
            <td>{item.companyType}</td>
            <th bgcolor="#F7F8FA" className="table-title">法定代表人</th>
            <td>{item.legalPerson}</td>
            <th bgcolor="#F7F8FA" className="table-title">统一社会信用代码</th>
            <td>{item.creditCode}</td>
          </tr>
          <tr>
            <th bgcolor="#F7F8FA" className="table-title">住所</th>
            <td>{item.president}</td>
            <th bgcolor="#F7F8FA" className="table-title">企业登记材料</th>
            <td>
              <a href="your-link-here.html" target="_blank">
                <img src={link} alt="" className="title-file" />广东好又多贸易有限公司营业执照副本.pdf
              </a>
            </td>
            <th bgcolor="#F7F8FA" className="table-title" >法定代表人身份证明材料</th>
            <td>
              <a href="your-link-here.html" target="_blank">
                <img src={link} alt="" className="title-file" />江照月法人身份证明.pdf
              </a>
            </td>
          </tr>
        </table>
      ))
      }
    </>
  )
}
export { ApplyDialog, AgentDialog,Respondent };
gz-customerSystem/src/views/register/visit/preview.jsx
@@ -2,7 +2,7 @@
 * @Author: dminyi 1301963064@qq.com
 * @Date: 2024-08-13 15:19:57
 * @LastEditors: dminyi 1301963064@qq.com
 * @LastEditTime: 2024-08-28 11:42:44
 * @LastEditTime: 2024-09-03 17:02:58
 * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\preview.jsx
 * @Description: 预览信息
 */
@@ -14,8 +14,7 @@
import { Modal } from '@arco-design/web-react';
import NewFileCheck from '../../filesCheck/newFileCheck';
import * as $$ from '../../../utils/utility';
import { EventLevelDrawer, MattersDetail } from './component/levelDetail'
import { ApplyDialog, AgentDialog,Respondent } from './component/previewTable'
const Preview = (props) => {
    const [filesCheck, setFilesCheck] = useState(false);
@@ -126,6 +125,62 @@
        // 更多列配置...
    ];
    const applyDialog = [
        {
            trueName: '李四',
            perClassName: '高级',
            phone: '13700137000',
            sex: '女',
            certiTypeName: '护照',
            certiNo: 'G12345678',
            nationName: '满',
            addr: '上海市浦东新区某公寓2号楼2单元202室',
            placeAddr: '上海市黄浦区某路3号',
            extreme: '否',
            workUnit: '上海某金融公司',
            person: '/path/to/anotherPerson.jpg', // 这应该是图片的实际路径
            link: '/path/to/anotherLink.png',     // 这应该是链接图标的实际路径
        }
        // 可以根据需要添加更多的对象来模拟更多条目的数据
    ];
    const agentDialog = [
        {
            trueName: '王五',
            perClassName: '自然人',
            phone: '13600136000',
            sex: '男',
            certiTypeName: '身份证',
            certiNo: '110101199501012345',
            nationName: '汉',
            addr: '广州市天河区某大厦A座501室',
            placeAddr: '广州市越秀区某街4号',
            extreme: '否',
            workUnit: '广州某贸易公司',
            agentRelateName: '配偶',
            agentTypeName: '法定代理人',
            perTypeName: '成年人',
            person: '/path/to/person.jpg', // 应该是图片的实际路径
            link: '/path/to/link.png',     // 应该是链接图标的实际路径
        },
    ];
    const respondent = [
        {
            orgaType: '广东好又多贸易有限公司',
            perClassName: '企业法人',
            phone: '020-12345678',
            address: '广州市天河区珠江新城花城大道66号',
            companyType: '有限责任公司',
            legalPerson: '江照月',
            creditCode: '914401011234567890',
            president: '广州市天河区珠江新城花城大道66号A座20层',
            link: '/path/to/link.png', // 应该是链接图标的实际路径
        },
    ];
    return (
        <div style={{ backgroundColor: '#ffff', margin: '8px 8px 0px 16px', padding: '12px 18px 16px 16px', height: 'calc(100vh - 228px)', overflowY: 'scroll', ...props.style }}>
@@ -140,144 +195,15 @@
                <div className="line middle-line"></div>
                <div className="line right-line"></div>
            </div>
            <table border="1" align="center" cellpadding="6" className="table">
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">姓名</th>
                    <td width='380'><div style={{ display: 'flex' }}><div>李晓明</div><div className="title-personRemark">自然人</div></div></td>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
                    <td width='380'>13591990202</td>
                    <th bgcolor="#F7F8FA" className="table-title" width='140'>性别</th>
                    <td>女</td>
                    <td rowspan="4" width="112" height='147' style={{ padding: '0px' }}>
                        <img border="0" src={person} alt="" style={{
                            width: '100%',
                            height: '100%',
                            objectFit: 'cover', // 保持原始宽高比并填充整个容器
                            objectPosition: 'center', // 图片居中显示
                        }} />
                    </td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">证件类型</th>
                    <td>身份证</td>
                    <th bgcolor="#F7F8FA" className="table-title">证件号码</th>
                    <td>410106198802021148</td>
                    <th bgcolor="#F7F8FA" className="table-title">民族</th>
                    <td>汉族</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">联系地址</th>
                    <td>广东科贸服务有限公司</td>
                    <th bgcolor="#F7F8FA" className="table-title">户籍地址</th>
                    <td>广州市天河区棠下街120号</td>
                    <th bgcolor="#F7F8FA" className="table-title" rowspan="2" >是否有个人极端倾向</th>
                    <td rowspan="2" >否</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">工作单位</th>
                    <td>玩,拆,装</td>
                    <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th>
                    <td>
                        <a href="your-link-here.html" target="_blank">
                            <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf
                        </a>
                    </td>
                </tr>
            </table>
            <table border="1" align="center" cellpadding="6" className="table" style={{ marginTop: '20px', marginBottom: '20px' }}>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">姓名</th>
                    <td width='380'><div style={{ display: 'flex' }}><div>李巧凤</div><div className="title-personRemark">代理人</div></div></td>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
                    <td width='380'>13591990202</td>
                    <th bgcolor="#F7F8FA" className="table-title" width="140">性别</th>
                    <td>女</td>
                    <td rowspan="4" width="112" height='147' style={{ padding: '0px' }}>
                        <img border="0" src={person} alt="" style={{ width: '100%', height: '100%' }} />
                    </td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">证件类型</th>
                    <td>身份证</td>
                    <th bgcolor="#F7F8FA" className="table-title">证件号码</th>
                    <td>410106198802021148</td>
                    <th bgcolor="#F7F8FA" className="table-title">民族</th>
                    <td>汉族</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">联系地址</th>
                    <td>广州市天河区棠下街120号</td>
                    <th bgcolor="#F7F8FA" className="table-title">户籍地址</th>
                    <td>广州市天河区棠下街120号</td>
                    <th bgcolor="#F7F8FA" className="table-title" >是否有个人极端倾向</th>
                    <td>否</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">工作单位</th>
                    <td>广东科贸服务有限公司</td>
                    <th bgcolor="#F7F8FA" className="table-title">委托关系</th>
                    <td>亲属</td>
                    <th bgcolor="#F7F8FA" className="table-title">委托类型</th>
                    <td>一般授权代理</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">代理对象</th>
                    <td>李晓明</td>
                    <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th>
                    <td>
                        <a href="your-link-here.html" target="_blank">
                            <img src={link} alt="" className="title-file" />李巧凤身份证明材料.pdf
                        </a>
                    </td>
                    <th bgcolor="#F7F8FA" className="table-title">代理人授权委托书</th>
                    <td>
                        <a href="your-link-here.html" target="_blank">
                            <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf
                        </a>
                    </td>
                </tr>
            </table>
            <ApplyDialog applyDialog={applyDialog} />
            <AgentDialog agentDialog={agentDialog} />
            <div style={{ marginBottom: '8px' }}>被申请方</div>
            <div className="line-container" style={{ marginBottom: '20px' }}>
                <div className="line left-line"></div>
                <div className="line middle-line"></div>
                <div className="line right-line"></div>
            </div>
            <table border="1" align="center" cellpadding="6" className="table" style={{ marginTop: '20px', marginBottom: '20px' }}>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">企业名称</th>
                    <td width='380'><div style={{ display: 'flex' }}><div>广东好又多贸易有限公司</div><div className="title-personRemark">法人</div></div></td>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">联系方式</th>
                    <td width='380'>13091990202</td>
                    <th bgcolor="#F7F8FA" className="table-title" width="120">企业所在地</th>
                    <td>广州市天河区棠下街120号</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">企业类型</th>
                    <td>餐饮服务</td>
                    <th bgcolor="#F7F8FA" className="table-title">法定代表人</th>
                    <td>江照月</td>
                    <th bgcolor="#F7F8FA" className="table-title">统一社会信用代码</th>
                    <td>914401015454Z</td>
                </tr>
                <tr>
                    <th bgcolor="#F7F8FA" className="table-title">住所</th>
                    <td>广州市天河区棠下街120号</td>
                    <th bgcolor="#F7F8FA" className="table-title">企业登记材料</th>
                    <td>
                        <a href="your-link-here.html" target="_blank">
                            <img src={link} alt="" className="title-file" />广东好又多贸易有限公司营业执照副本.pdf
                        </a>
                    </td>
                    <th bgcolor="#F7F8FA" className="table-title" >法定代表人身份证明材料</th>
                    <td>
                        <a href="your-link-here.html" target="_blank">
                            <img src={link} alt="" className="title-file" />江照月法人身份证明.pdf
                        </a>
                    </td>
                </tr>
            </table>
            <Respondent respondent={respondent} />
            <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}>
                <Space size='small'>
                    <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h4>纠纷基本情况</h4>