广州市综治平台前端
xusd
3 days ago 9cbfaa22c35822e4f2f985907fce5da4c9ef7ac9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
 
import React, { useEffect, useState, useRef } from 'react';
import { Modal, Form, Select, Alert, Input } from '@arco-design/web-react';
import { Col, Space, Button, Tooltip, Empty, Row } from 'antd';
import * as $$ from '@/utils/utility';
import { Scrollbars } from "react-custom-scrollbars";
import { agree, empty } from "../../../../assets/images";
import { IconLocation } from '@arco-design/web-react/icon';
import DetailDialog from "../../../../components/personCard/DetailDialog";
const appUrl = $$.appUrl;
 
 
const FormItem = Form.Item;
const TextArea = Input.TextArea;
 
function listRepeatCaseApi(data) {
  return $$.ax.request({ url: `caseRepeatInfo/listRepeatCase`, type: 'get', service: 'mediate', data });
}
 
 
 
 
const RepeatView = ({ caseId }) => {
  const formRef = useRef();
  const user = $$.getSessionStorage('customerSystemUser') || {};
  const [hisData, setHisData] = useState([]);
  const [detailVisabled, setDetailVisabled] = useState(false);
  const [modalData, setModalData] = useState({});
  function handleCheckPreview(params) {
    setModalData(params)
    setDetailVisabled(true)
  }
 
  function selectChange(params) {
 
  }
 
  async function listRepeatCase(id) {
    global.setSpinning(true);
    const res = await listRepeatCaseApi({ caseId: id });
    global.setSpinning(false);
    if (res.type) {
      let data = res.data;
      setHisData(data || [])
    }
  }
 
 
  useEffect(() => {
    listRepeatCase(caseId);
  }, [])
 
  return (
    <div>
      {
        hisData?.length === 0 ?
          <div className='handle-content-empty' style={{ marginTop: '10%' }}>
            {$$.MyNewEmpty()}
          </div> :
          <div style={{ padding: '12px 16px' }}>
            <div style={{ padding: '4px 0 12px' }}><Alert type='info' content={<span>以下重复事项已合并至当前事项内</span>} /></div>
            {
              hisData?.map((item, index) => (
                <div key={`RepeatView${index}`}>
                  <Space size='small'>
                    <div className='MediationInfo-subTitle' style={{ marginTop: '-7px' }}></div><h5>疑似重复事项{index + 1}</h5>
                  </Space>
                  <table border="1" align="center" cellpadding="6" className="table">
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title" width="120" >事项编号</th>
                      <td >{item?.caseRef ? <span onClick={() => { window.open(`${$$.windowUrl}/windowDetail?caseTaskId=${item.caseId}&caseId=${item.caseId}`) }} className='public-color public-a'>{item.caseRef}</span> : "-"}</td>
                      <th bgcolor="#F7F8FA" className="table-title" width="120">事项状态</th>
                      <td >{item?.mergeResult === 1 ? "主体案件-"+item.statusName : "重复案件-已挂起"}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title" width="120" >事项来源</th>
                      <td>{item?.caseSource || '-'}</td>
                      <th bgcolor="#F7F8FA" className="table-title" width="120">数据来源</th>
                      {/* <td >{item?.dataSource || '-'}</td> */}
                      <td>{'本系统'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">申请方</th>
                      <td><div style={{ display: 'flex', gap: '8px' }}>{item?.plaintiffList?.map(i => (<span style={{ textDecoration: 'underline' }} onClick={() => { handleCheckPreview(i) }} className='public-color public-a'>{i.trueName || '-'}{`(${i.certiNo || '-'})`}</span>)) || '-'}</div></td>
                      <th bgcolor="#F7F8FA" className="table-title">被申请方</th>
                      <td><div style={{ display: 'flex', gap: '8px' }}>{item?.defendantList?.map(i => (<span style={{ textDecoration: 'underline' }} onClick={() => { handleCheckPreview(i) }} className='public-color public-a'>{i.trueName || '-'}{`(${i.certiNo || '-'})`}</span>)) || '-'}</div></td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">问题属地</th>
                      <td><div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}><IconLocation />{item?.queProvName || ''}&nbsp;{item?.queCityName || ''}&nbsp;{item?.queAreaName || ''}&nbsp;{item?.queRoadName || '-'}</div></td>
                      <th bgcolor="#F7F8FA" className="table-title">纠纷发生地</th>
                      <td>{item?.addr || '-'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">登记机构</th>
                      <td>{item?.inputUnitName || '-'}</td>
                      <th bgcolor="#F7F8FA" className="table-title">登记时间</th>
                      <td>{item?.inputTime || '-'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">承办部门</th>
                      <td>{item?.mediateUnitName || '-'}</td>
                      <th bgcolor="#F7F8FA" className="table-title">受理时间</th>
                      <td>{item?.acceptTime || '-'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">经办人</th>
                      <td>{item?.mediator || '-'}</td>
                      <th bgcolor="#F7F8FA" className="table-title">配合部门</th>
                      <td>{item?.assistUnitName || '-'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">事项概况</th>
                      <td colspan="3">{item?.caseDes || '-'}</td>
                    </tr>
                    <tr>
                      <th bgcolor="#F7F8FA" className="table-title">事项申请</th>
                      <td colspan="3">{item?.caseClaim || '-'}</td>
                    </tr>
                  </table>
                </div>
              ))
            }
          </div>
      }
      <Modal
        title={'查看' + modalData.trueName}
        visible={detailVisabled}
        onOk={() => setDetailVisabled(false)}
        onCancel={() => {
          setDetailVisabled(false)
        }}
        wrapStyle={{ zIndex: '1006' }}
        autoFocus={false}
        focusLock={true}
        footer={null}
        unmountOnExit={true}
        maskClosable={false}
      >
        <DetailDialog editData={modalData} personData={modalData} />
      </Modal>
    </div>
  )
}
 
export default RepeatView;