3.9 供应商关联关系疑似违规行为

This commit is contained in:
jl-zhoujl2
2023-03-09 10:34:20 +08:00
parent 51fc9b5edf
commit 3f202700e5
15 changed files with 929 additions and 191 deletions

View File

@ -6,12 +6,14 @@ import React, { useEffect, useRef, useState } from 'react';
import Weboffice from "@/pages/webOffice/weboffice";
import { finishFlow, getAssessRoomStatus, queryReviewReport, reviewReportSave, reviewReportSend } from '../../service';
import { commonMessage } from '@/utils/MessageUtils';
import { getDefId, getDicData, getProMethod, getRoomId } from '@/utils/session';
import { getDefId, getDicData, getProMethod, getRoomId, getSessionRoleData } from '@/utils/session';
import { btnAuthority } from '@/utils/authority';
import WebOffice0609, { WebOfficeRefProps } from '@/pages/webOffice/weboffice0609';
import ReviewReportUpload from '@/utils/ReviewReportUpload';
import { getFileListByBid } from '@/utils/DownloadUtils';
import MACAddressPrompt from '@/pages/Evaluation/BidControl/BidControlManager/components/MACAddressPrompt';
import RiskModal from '@/components/RiskModal';
import { isLeaderConfirm } from '@/components/BiddingRoom/service';
const { Panel } = Collapse;
const { Paragraph, Text } = Typography;
@ -67,6 +69,10 @@ const Manager: React.FC = () => {
const [expandTotalScore, setExpandTotalScore] = useState<boolean>(true);
//评审结果数据
const [resultData, resultDataSet] = useState<any>({})
//风险提示文字弹窗控制
const [riskVisible, setRiskVisible] = useState(false);
//获取角色
const role = getSessionRoleData().roleCode;
useEffect(() => {
if (JSON.stringify(resultData) === '{}') {
init();
@ -662,9 +668,15 @@ const Manager: React.FC = () => {
* 结束评审
*/
const endOfBidEvaluation = () => {
finishFlow(assessId).then(res => {
commonMessage(res);
init();
isLeaderConfirm({ assessRoomId: assessId }).then(result => {//供应商股权关系-专家组长是否确认风险
if (result?.success && !result?.data) {
setRiskVisible(true);
} else {
finishFlow(assessId).then(res => {
commonMessage(res);
init();
})
}
})
}
@ -841,6 +853,7 @@ const Manager: React.FC = () => {
fileId={reportUploadId}
readOnly={!reviewReport}
/>}
<RiskModal modalVisible={riskVisible} onCancel={() => { setRiskVisible(false) }} isResult={true} role={role} />
</>
);
}