| | |
| | | * @Author: dminyi 1301963064@qq.com |
| | | * @Date: 2024-08-13 15:19:57 |
| | | * @LastEditors: dminyi 1301963064@qq.com |
| | | * @LastEditTime: 2024-09-04 15:00:02 |
| | | * @LastEditTime: 2024-09-12 11:42:43 |
| | | * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\preview.jsx |
| | | * @Description: 预览信息 |
| | | */ |
| | |
| | | import { ApplyDialog, AgentDialog, Respondent, Company } from './component/previewTable' |
| | | import FileTable from "../matterDetail/FileTable"; |
| | | import { link } from '@/assets/images'; |
| | | import PreviewImage from '@/components/PreviewImage'; |
| | | |
| | | const Preview = (props) => { |
| | | const [data, setData] = useState({}) |
| | | const [data, setData] = useState({}); |
| | | const levelColorMap = { |
| | | 1: '#F53F3F', |
| | | 2: '#EF6C24', |
| | | 3: '#00B42A', |
| | | } |
| | | |
| | | useEffect(() => { |
| | | console.log(props.data); |
| | |
| | | <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' }}>{props.data?.caseLevel || '-'}</div></div>级</div> |
| | | <div style={{ display: 'flex' }}> |
| | | <div style={{ backgroundColor: levelColorMap[props.data?.caseLevel], marginRight: '4px', borderRadius: '4px' }}> |
| | | <div style={{ color: '#FFFFFF', padding: '0px 6px' }}> |
| | | {props.data?.caseLevel || '-'} |
| | | </div> |
| | | </div>级 |
| | | </div> |
| | | </Col> |
| | | <Col span={8}> |
| | | <div><div className="title-text">来访时间</div></div> |
| | | <div>{props.data?.visitTime || '-'}</div> |
| | | <div><div className="title-text">事项来源</div></div> |
| | | <div>自行排查</div> |
| | | </Col> |
| | | <Col span={8}> |
| | | <div ><div className="title-text">来访人数(人)</div></div> |
| | | <div>{props.data?.visitPeopleNum || '-'}</div> |
| | | <div ><div className="title-text">来访形式</div></div> |
| | | <div>排查</div> |
| | | </Col> |
| | | <Col span={8}> |
| | | <div ><div className="title-text">纠纷类型</div></div> |
| | |
| | | <Col span={8}> |
| | | <div ><div className="title-text">问题属地</div></div> |
| | | <div> |
| | | {props.data?.queProvName ? |
| | | `${props.data.queProvName}/${props.data.queCityName}/${props.data.queAreaName}/${props.data.queRoadName}` |
| | | : '-' |
| | | {props.data?.queAreaName ? `${props.data.queAreaName}/${props.data.queRoadName}` : '-' |
| | | } |
| | | </div> |
| | | </Col> |
| | |
| | | <Col span={8}> |
| | | <div ><div className="title-text">涉及金额(元)</div></div> |
| | | <div>{$$.thousands(props.data?.amount) || '-'}</div> |
| | | </Col> |
| | | <Col span={8}> |
| | | <div ><div className="title-text">事项来源</div></div> |
| | | <div>{props.data?.canalName}</div> |
| | | </Col> |
| | | <Col span={16}> |
| | | <div ><div className="title-text">来访形式</div></div> |
| | | <div>来访</div> |
| | | </Col> |
| | | <Col span={24}> |
| | | <div className="title"><div className="title-text">事项概况</div></div> |
| | |
| | | </tr> |
| | | <tr> |
| | | <th bgcolor="#F7F8FA" className="table-title" width="120">受理时间</th> |
| | | <td width='380'>{props.transactResult?.acceptTime || '-'}</td> |
| | | <td width='380'>{$$.minuteFormat(props.transactResult?.acceptTime) || '-'}</td> |
| | | <th bgcolor="#F7F8FA" className="table-title" width="120">办结时间</th> |
| | | <td width='380'>{props.transactResult?.closeTime || '-'}</td> |
| | | <td width='380'>{$$.minuteFormat(props.transactResult?.closeTime) || '-'}</td> |
| | | </tr> |
| | | <tr> |
| | | <th bgcolor="#F7F8FA" className="table-title" width="120">办理意见</th> |
| | |
| | | <th bgcolor="#F7F8FA" className="table-title" width="120">协议文书</th> |
| | | <td colspan='3'> |
| | | {props.transactResult?.fileInfoBaseDTOList?.map((item, index) => { |
| | | return <a href="your-link-here.html" target="_blank"> |
| | | <img src={link} alt="" className="title-file" />{item.trueName} |
| | | {index !== props.transactResult.fileInfoBaseDTOList.length - 1 && <>,</>} |
| | | </a> |
| | | console.log(item); |
| | | return <div style={{ display: 'inline-block' }}> |
| | | <PreviewImage name={item.name} src={item.showUrl} /> |
| | | {index !== props.transactResult?.fileInfoBaseDTOList.length - 1 && <>,</>} |
| | | </div> |
| | | })} |
| | | </td> |
| | | </tr> |
| | |
| | | <div className='MediationInfo-subTitle' style={{ marginTop: '-7px' }}></div><h4>事件材料</h4> |
| | | </Space> |
| | | </Col> |
| | | <div style={{ marginBottom: '65px' }}> |
| | | <FileTable mainId={props.mainId} fileInfoList={props.data?.fileInfoList} isReview={true} /> |
| | | </div> |
| | | <FileTable mainId={props.mainId} fileInfoList={props.data?.fileInfoList} isReview={true} /> |
| | | </div> |
| | | ) |
| | | } |