| | |
| | | import AssignedModel from './AssignedModel'; |
| | | import MatterDetail from '../../matterDetail'; |
| | | import SupervisingView from '../../matterDetail/Supervising'; |
| | | import SupervisingViews from '../../matterDetail/SupervisingViews'; |
| | | import * as $$ from '@/utils/utility'; |
| | | import { useNavigate } from 'react-router-dom'; |
| | | import NotEntertained from './NotEntertained'; |
| | |
| | | // 删除已结案数据 |
| | | function deleteCaseInfoByIdApi(data) { |
| | | return $$.ax.request({ url: `caseInfo/deleteCaseById`, type: 'post', service: 'mediate', data }); |
| | | } |
| | | |
| | | //督办添加id |
| | | function getNewTimeIdApi(id) { |
| | | return $$.ax.request({ url: `caseUtils/getNewTimeId`, type: 'get', service: 'utils' }); |
| | | } |
| | | |
| | | |
| | |
| | | key: 'tabcl', |
| | | }, |
| | | { |
| | | label: '拒收', |
| | | label: '督办', |
| | | type: 'outline', |
| | | click: () => { |
| | | Modal.confirm({ |
| | | title: '拒收确认', |
| | | content: '确定拒收吗?', |
| | | onOk: () => { |
| | | handleCaseCancel(); |
| | | handleSupervisingAdd(); |
| | | }, |
| | | }); |
| | | }, |
| | | key: 'js', |
| | | key: 'db', |
| | | status: 'danger', |
| | | }, |
| | | ]; |
| | |
| | | const [progressData, setProgressData] = useState({}); |
| | | const [notVisible, setNotVisible] = useState(false); //不予受理弹窗控制 |
| | | const [detailData, setDetailData] = useState({}); |
| | | const [supervising, setSupervising] = useState(false); //督办弹窗控制 |
| | | const [supervisingId, setSupervisingId] = useState(''); |
| | | |
| | | useEffect(() => { |
| | | if (props.authorData) { |
| | |
| | | } |
| | | }; |
| | | |
| | | //添加督办 |
| | | const handleSupervisingAdd = () => { |
| | | setSupervising(!supervising); |
| | | getNewTimeId(); |
| | | }; |
| | | |
| | | //获取添加督办id |
| | | const getNewTimeId = async () => { |
| | | const res = await getNewTimeIdApi(); |
| | | if (res.type) { |
| | | setSupervisingId(res.data); |
| | | } |
| | | }; |
| | | |
| | | return ( |
| | | <Fragment> |
| | | <div className="dataSync"> |
| | |
| | | </div> |
| | | )} |
| | | |
| | | <MatterDetail listFeedback={props.listFeedback} caseId={props.caseId} detailData={detailData} windowDetail={props.windowDetail} gridDetail={props.gridDetail} /> |
| | | <MatterDetail transactResult={props.transactResult} listFeedback={props.listFeedback} caseId={props.caseId} detailData={detailData} windowDetail={props.windowDetail} gridDetail={props.gridDetail} /> |
| | | |
| | | {props.authorType != 'sxxq' && ( |
| | | <div className="dataSync-hasTabPage" style={{ marginTop: '-8px' }}> |
| | |
| | | }} |
| | | /> |
| | | </Modal> |
| | | <SupervisingViews |
| | | visible={supervising} |
| | | title="督办" |
| | | handleOnCancel={() => setSupervising(false)} |
| | | caseId={props.caseId} |
| | | supervisingId={supervisingId} |
| | | getTableData={() => { |
| | | // 督办成功后可以在这里刷新数据 |
| | | }} |
| | | /> |
| | | {(!props?.windowDetail && !props?.gridDetail) && ( |
| | | <div className="dataSync-excel"> |
| | | <Space size="middle" style={{ margin: '4px 14px' }}> |
| | |
| | | </Space> |
| | | </div> |
| | | )} |
| | | {(props?.windowDetail || props?.gridDetail) && ( |
| | | <div className="dataSync-excel"> |
| | | <Space size="middle" style={{ margin: '4px 14px' }}> |
| | | {staticButtonList?.map((item) => { |
| | | const { label, key, click, ...rest } = item; |
| | | return ( |
| | | <Button key={key} onClick={click} {...rest}> |
| | | {label} |
| | | </Button> |
| | | ); |
| | | })} |
| | | |
| | | </Space> |
| | | </div> |
| | | )} |
| | | </div> |
| | | </Fragment> |
| | | ); |