From f62d77d4b1eb8b6a751d99fe761af2b056bb4ac1 Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Sat, 17 Aug 2024 09:36:24 +0800 Subject: [PATCH] 细节修改 --- gz-customerSystem/src/views/register/visit/preview.jsx | 175 +++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 112 insertions(+), 63 deletions(-) diff --git a/gz-customerSystem/src/views/register/visit/preview.jsx b/gz-customerSystem/src/views/register/visit/preview.jsx index 226be44..1c34ede 100644 --- a/gz-customerSystem/src/views/register/visit/preview.jsx +++ b/gz-customerSystem/src/views/register/visit/preview.jsx @@ -2,70 +2,33 @@ * @Author: dminyi 1301963064@qq.com * @Date: 2024-08-13 15:19:57 * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-08-14 12:07:21 + * @LastEditTime: 2024-08-16 17:09:12 * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\preview.jsx * @Description: 预览信息 */ -import React from "react"; +import React, { useState } from "react"; import { Row, Col, Space } from 'antd'; import { person, question, link } from '../../../assets/images' import '../index.less'; import TableView from '../../../components/TableView'; +import { Modal } from '@arco-design/web-react'; +import FilesCheck from '../../filesCheck'; +import * as $$ from '../../../utils/utility'; const Preview = () => { + const [filesCheck, setFilesCheck] = useState(false); - const fakeColumns = [ - { - title: '序号', - dataIndex: 'caseNo', - key: 'caseNo', - }, - { - title: '材料类型', - dataIndex: 'judicNo', - key: 'judicNo', - }, - { - title: '材料数量', - dataIndex: 'perClassName', - key: 'perClassName', - }, - { - title: '材料名称', - dataIndex: 'perClassName', - key: 'perClassName', - }, - { - title: '上传时间', - dataIndex: 'perClassName', - key: 'perClassName', - }, - { - title: '操作', - dataIndex: 'perClassName', - key: 'perClassName', - render: (text) => ( - <div style={{ display: 'flex', color: '#1A6FB8', gap: '16px' }}> - <div>查看</div> - <div>删除</div> - <div>下载</div> - <div>上传</div> - </div> - ) - }, - // 更多列配置... - ]; const fakeData1 = [ { id: 1, caseNo: 'A20230101', - judicNo: 'J20230101', - perClassName: '自然人', + judicNo: '申请材料', + perClassName: '李晓明的纠纷化解申请表、身份证...', inputUserName: '张三', - mediateUserName: '李四', + mediateUserName: '2024-7-12 12:00', judgeName: '王五', mediator: '赵六', handlerUserName: '钱七', @@ -80,9 +43,82 @@ serieStatus: '1', // 1 表示非系列案,2 表示系列案 // 更多字段... }, + { + id: 2, + caseNo: 'A20230101', + judicNo: '证据材料', + perClassName: '李晓明的纠纷化解申请表、身份证...', + inputUserName: '张三', + mediateUserName: '2024-7-12 12:00', + judgeName: '王五', + mediator: '赵六', + handlerUserName: '钱七', + returnUserName: '孙八', + expireTime: '2023-08-10T08:00:00.000Z', + processName: '进行中', + otherMediator: '周九', + canalName: '网络', + judicResult: '通过', + assistName: '吴十', + mediTypeName: '民事调解', + serieStatus: '1', // 1 表示非系列案,2 表示系列案 + // 更多字段... + }, + // 更多数据... ]; + // 列配置 + const fakeColumns = [ + { + title: '序号', + dataIndex: 'caseNo', + key: 'caseNo', + width: 60, + render: (text, record, index) => <span>{index + 1}</span>, + }, + { + title: '材料类型', + dataIndex: 'judicNo', + key: 'judicNo', + width: 60, + + }, + { + title: '材料数量', + dataIndex: 'inputUserName', + key: 'perClassName', + width: 180, + + }, + { + title: '材料名称', + dataIndex: 'perClassName', + key: 'perClassName', + width: 180, + + }, + { + title: '上传时间', + dataIndex: 'mediateUserName', + key: 'mediateUserName', + width: 180, + + }, + { + title: '操作', + dataIndex: 'perClassName', + key: 'perClassName', + width: 200, + render: (text) => ( + <div style={{ display: 'flex', color: '#1A6FB8', gap: '16px' }}> + <div onClick={() => setFilesCheck(true)}>查看</div> + <div>下载</div> + </div> + ) + }, + // 更多列配置... + ]; return ( @@ -101,9 +137,9 @@ <table border="1" align="center" cellpadding="8" className="table"> <tr> <th bgcolor="#F7F8FA" className="table-title" width="120">姓名</th> - <td width='300'><div style={{ display: 'flex' }}><div>豪豪豪</div><div style={{ color: '#1A6FB8', padding: '0px 8px', border: '1px solid #1A6FB8', borderRadius: '4px', fontSize: '14px', marginLeft: '8px', height: '22px', display: 'flex', alignItems: 'center' }}>自然人</div></div></td> + <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='300'>19</td> + <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' }}> @@ -132,7 +168,7 @@ <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th> <td> <a href="your-link-here.html" target="_blank"> - <img src={link} alt="" style={{ width: '12px', marginRight: '4px', marginTop: '-5px' }} />李晓明身份证明材料.pdf + <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf </a> </td> </tr> @@ -140,9 +176,9 @@ <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='300'>豪豪豪</td> + <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='300'>19</td> + <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' }}> @@ -179,13 +215,13 @@ <th bgcolor="#F7F8FA" className="table-title">身份证明材料</th> <td> <a href="your-link-here.html" target="_blank"> - <img src={link} alt="" style={{ width: '12px', marginRight: '4px', marginTop: '-5px' }} />李晓明身份证明材料.pdf + <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="" style={{ width: '12px', marginRight: '4px', marginTop: '-5px' }} />李晓明身份证明材料.pdf + <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf </a> </td> </tr> @@ -199,11 +235,11 @@ </div> <table border="1" align="center" cellpadding="8" className="table" style={{ marginTop: '20px', marginBottom: '20px' }}> <tr> - <th bgcolor="#F7F8FA" className="table-title">企业名称</th> - <td>豪豪豪</td> - <th bgcolor="#F7F8FA" className="table-title">联系方式</th> - <td>19</td> - <th bgcolor="#F7F8FA" className="table-title">企业所在地</th> + <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> @@ -220,13 +256,13 @@ <th bgcolor="#F7F8FA" className="table-title">企业登记材料</th> <td> <a href="your-link-here.html" target="_blank"> - <img src={link} alt="" style={{ width: '12px', marginRight: '4px', marginTop: '-5px' }} />李晓明身份证明材料.pdf + <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="" style={{ width: '12px', marginRight: '4px', marginTop: '-5px' }} />李晓明身份证明材料.pdf + <img src={link} alt="" className="title-file" />李晓明身份证明材料.pdf </a> </td> </tr> @@ -239,7 +275,7 @@ <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>3级</div> + <div style={{ display: 'flex' }}><div style={{ backgroundColor: '#1A6FB8', 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> @@ -271,7 +307,7 @@ </Col> <Col span={8}> <div ><div className="title-text">涉及金额(元)</div></div> - <div>20,000</div> + <div>{$$.thousands(20000)}</div> </Col> <Col span={8}> <div ><div className="title-text">事项来源</div></div> @@ -294,15 +330,28 @@ <div>否</div> </Col> </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> + </Space> + </Col> + <TableView columns={fakeColumns} dataSource={fakeData1} size="small" rowKey="id" bordered={true} - style={{ marginBottom: '60px' }} + style={{ marginBottom: '65px' }} /> + <Modal style={{ width: '1200px' }} visible={filesCheck} onCancel={() => setFilesCheck(false)} footer={null} title='查看事件材料' centered> + <div className="mediationWindow-modal-main" style={{ display: 'flex' }}> + <FilesCheck /> + </div> + </Modal> + + </div> ) } -- Gitblit v1.8.0