From ce7871581ad440a9869118a49746f66e850f502e Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Tue, 03 Sep 2024 17:07:40 +0800 Subject: [PATCH] 预览当事人类型组件化 --- gz-customerSystem/src/views/register/visit/preview.jsx | 239 ++++++++++++++++++++++------------------------------------- 1 files changed, 91 insertions(+), 148 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/preview.jsx b/gz-customerSystem/src/views/register/visit/preview.jsx index 1c34ede..13644b1 100644 --- a/gz-customerSystem/src/views/register/visit/preview.jsx +++ b/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-16 17:09:12 + * @LastEditTime: 2024-09-03 17:02:58 * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\preview.jsx * @Description: 预览信息 */ @@ -12,14 +12,14 @@ import '../index.less'; import TableView from '../../../components/TableView'; import { Modal } from '@arco-design/web-react'; -import FilesCheck from '../../filesCheck'; +import NewFileCheck from '../../filesCheck/newFileCheck'; import * as $$ from '../../../utils/utility'; +import { ApplyDialog, AgentDialog,Respondent } from './component/previewTable' - - -const Preview = () => { +const Preview = (props) => { const [filesCheck, setFilesCheck] = useState(false); - + const [apply, setApply] = useState(false); + const [visible, setVisible] = useState(false); const fakeData1 = [ { @@ -27,7 +27,7 @@ caseNo: 'A20230101', judicNo: '申请材料', perClassName: '李晓明的纠纷化解申请表、身份证...', - inputUserName: '张三', + inputUserName: '0', mediateUserName: '2024-7-12 12:00', judgeName: '王五', mediator: '赵六', @@ -48,7 +48,7 @@ caseNo: 'A20230101', judicNo: '证据材料', perClassName: '李晓明的纠纷化解申请表、身份证...', - inputUserName: '张三', + inputUserName: '0', mediateUserName: '2024-7-12 12:00', judgeName: '王五', mediator: '赵六', @@ -74,7 +74,7 @@ title: '序号', dataIndex: 'caseNo', key: 'caseNo', - width: 60, + width: 100, render: (text, record, index) => <span>{index + 1}</span>, }, { @@ -89,6 +89,11 @@ dataIndex: 'inputUserName', key: 'perClassName', width: 180, + render: (text) => ( + <> + {text}份 + </> + ) }, { @@ -120,12 +125,68 @@ // 更多列配置... ]; + 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 16px 0px 16px', padding: '12px 18px 16px 16px', height: 'calc(100vh - 211px)', overflowY: 'scroll' }}> - <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '4px' }}> + <div style={{ backgroundColor: '#ffff', margin: '8px 8px 0px 16px', padding: '12px 18px 16px 16px', height: 'calc(100vh - 228px)', overflowY: 'scroll', ...props.style }}> + <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}> <Space size='small'> - <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h5>当事人信息</h5> + <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h4>当事人信息</h4> </Space> </Col> <div style={{ marginBottom: '8px' }}>申请方</div> @@ -134,148 +195,26 @@ <div className="line middle-line"></div> <div className="line right-line"></div> </div> - <table border="1" align="center" cellpadding="8" 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'>19</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>19970000</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>淮南师范学院</td> - <th bgcolor="#F7F8FA" className="table-title" rowspan="2" >是否有个人极端倾向</th> - <td rowspan="2" >237483</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="8" 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'>19</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>19970000</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>淮南师范学院</td> - <th bgcolor="#F7F8FA" className="table-title" >是否有个人极端倾向</th> - <td>237483</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="8" 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'>19</td> - <th bgcolor="#F7F8FA" className="table-title" width="120">企业所在地</th> - <td>汉</td> - </tr> - <tr> - <th bgcolor="#F7F8FA" className="table-title">企业类型</th> - <td>19970000</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> - <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '4px' }}> + <Respondent respondent={respondent} /> + <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}> <Space size='small'> - <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h5>纠纷基本情况</h5> + <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h4>纠纷基本情况</h4> </Space> </Col> <Row gutter={[16, 16]}> <Col span={8}> - <div className="title"><div className="title-text">事项等级</div><img src={question} alt="" style={{ width: '14px', height: '14px', marginTop: '4px', marginLeft: '4px' }} /></div> - <div style={{ display: 'flex' }}><div style={{ backgroundColor: '#1A6FB8', marginRight: '4px', borderRadius: '4px' }}><div style={{ color: '#FFFFFF', padding: '0px 6px' }}>3</div></div>级</div> + <div className="title"> + <div className="title-text">事项等级</div> + </div> + <div style={{ display: 'flex' }}><div style={{ backgroundColor: '#00B42A', marginRight: '4px', borderRadius: '4px' }}><div style={{ color: '#FFFFFF', padding: '0px 6px' }}>3</div></div>级</div> </Col> <Col span={8}> <div><div className="title-text">来访时间</div></div> @@ -318,11 +257,11 @@ <div>来访</div> </Col> <Col span={24}> - <div className="title"><div className="title-text">事项概况</div><img src={question} alt="" style={{ width: '14px', height: '14px', marginTop: '4px', marginLeft: '4px' }} /></div> + <div className="title"><div className="title-text">事项概况</div></div> <div>张先生与李先生是多年的朋友关系。2023年4月,李先生因生意周转需要向张先生借款人民币20万元,并口头承诺于一年内还清。出于信任,张先生未要求签订书面借条或借款合同。然而,到了2024年4月,李先生并未如约归还借款。张先生多次通过电话、微信等方式催促还款,但李先生先是拖延,后干脆以各种理由拒绝偿还,甚至声称该笔款项属于赠予而非借款,这使得张先生感到十分无奈。 </div> </Col> <Col span={24}> - <div className="title"><div className="title-text">事项申请</div><img src={question} alt="" style={{ width: '14px', height: '14px', marginTop: '4px', marginLeft: '4px' }} /></div> + <div className="title"><div className="title-text">事项申请</div></div> <div>张先生与李先生是多年的朋友关系。2023年4月,李先生因生意周转需要向张先生借款人民币20万元,并口头承诺于一年内还清。出于信任,张先生未要求签订书面借条或借款合同。然而,到了2024年4月,李先生并未如约归还借款。张先生多次通过电话、微信等方式催促还款,但李先生先是拖延,后干脆以各种理由拒绝偿还,甚至声称该笔款项属于赠予而非借款,这使得张先生感到十分无奈。 </div> </Col> <Col span={16}> @@ -332,7 +271,7 @@ </Row> <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px', marginTop: '20px' }}> <Space size='small'> - <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h5>事件材料</h5> + <div className='MediationInfo-subTitle' style={{ marginTop: '-9px' }}></div><h4>事件材料</h4> </Space> </Col> @@ -346,12 +285,16 @@ /> <Modal style={{ width: '1200px' }} visible={filesCheck} onCancel={() => setFilesCheck(false)} footer={null} title='查看事件材料' centered> - <div className="mediationWindow-modal-main" style={{ display: 'flex' }}> - <FilesCheck /> + {/* <div className="mediationWindow-modal-main" style={{ display: 'flex' }}> */} + <div style={{ marginTop: '-16px' }}> + <NewFileCheck /> </div> + + {/* </div> */} </Modal> + </div> ) } -- Gitblit v1.8.0