diff --git a/src/pages/Evaluation/BidControl/BidControlManager/components/BidDocSmartCheckFormModal.tsx b/src/pages/Evaluation/BidControl/BidControlManager/components/BidDocSmartCheckFormModal.tsx new file mode 100644 index 0000000..2491def --- /dev/null +++ b/src/pages/Evaluation/BidControl/BidControlManager/components/BidDocSmartCheckFormModal.tsx @@ -0,0 +1,119 @@ +import React, { useEffect, useState } from 'react'; +import { Collapse, Table } from 'antd'; +import { getBidDocSmartCheckList } from '../service'; +import { getRoomId, getSessionRoleData } from '@/utils/session'; + +interface BidDocSmartCheckFormModalProps { + modalVisible: boolean; + values: any; + onCancel: any; +} + +const BidDocSmartCheckFormModal: React.FC = (props) => { + + const [bidDocSmartCheckList, setBidDocSmartCheckList] = useState([]); + + //查看详情窗口record + const [juryTableShow, setJuryTableShow] = useState(true);// + //是否显示法人及投标人名称对比结果;false-不显示结果,true-显示结果 + const [checkLegalAndNameResult, setCheckLegalAndNameResult] = useState(true);// + var roleId = getSessionRoleData().roleCode; + + + useEffect(() => { + setJuryTableShow(false); + getWarningList(); + if (roleId === "ebtp-expert") { + setJuryTableShow(false); + } + }, []) + + function callback(key: any) { + //getSessionUserData.roleIds; + } + function visibleValue(key: any) { + if (key) { + return ; + } else { + return ×; + } + } + function visibleLegalAndNameValue(key: any) { + //false-不显示结果,true-显示结果 + if (checkLegalAndNameResult) { + if (key) { + return ; + } else { + return ×; + } + } else { + return ; + } + } + + const BidDocSmartCheckColumns = [ + { title: '序号', dataIndex: 'num', width: 60, render: (text: any, record: any, index: any) => `${index + 1}` }, + { title: '供应商名称', dataIndex: 'companyName', }, + { + title: '供应商投标文件密封性检查', dataIndex: 'docTightnessCheck', render: (_: any, record: any) => { + return visibleValue(record.docTightnessCheck); + } + }, + { title: '供应商投标文件的完整性', dataIndex: 'docIntegrityCheck', render: (_: any, record: any) => { + return visibleValue(record.docIntegrityCheck); + }}, + { title: 'Mac、IP地址校验', dataIndex: 'macIPCheck', render: (_: any, record: any) => { + return visibleValue(record.macIPCheck); + }}, + { title: '投标保证金缴纳', dataIndex: 'ensureStatus', render: (_: any, record: any) => { + return visibleValue(record.ensureStatus); + }}, + { title: '不同投标人间法定代表人、法定代表授权委托人对比', dataIndex: 'supplierLegalCheck', render: (_: any, record: any) => { + return visibleLegalAndNameValue(record.supplierLegalCheck); + }}, + { title: '投标人名称与系统操作投标人名称', dataIndex: 'supplierNameCheck', render: (_: any, record: any) => { + return visibleLegalAndNameValue(record.supplierNameCheck); + }}, + ]; + + + const ret = { "code": 200, "success": true, "message": "success", "data": []} + const getWarningList = async () => { + let roomId = getRoomId();//sessionStorage.getItem('roomId');//sessionStorage.getItem('roomId') + + //投标文件智能审查 + await getBidDocSmartCheckList(roomId).then((res) => { + if (res.success == true) { + setCheckLegalAndNameResult(res?.data?.isCheckLegalAndName); + if(res?.data?.isCheckOpen){ + setJuryTableShow(true); + setBidDocSmartCheckList(res.data.checkResults) + } + } else { + setBidDocSmartCheckList(ret.data); + } + }) + } + + return ( + <> + {juryTableShow ? + + + {注:"√"为审查项智能审查通过,"×"为审查项智能审查存在风险} + { +
+ + } +
+
+ : null} + + ); +}; + +export default BidDocSmartCheckFormModal; diff --git a/src/pages/Evaluation/BidControl/BidControlManager/index.tsx b/src/pages/Evaluation/BidControl/BidControlManager/index.tsx index 106c43a..6bf906d 100644 --- a/src/pages/Evaluation/BidControl/BidControlManager/index.tsx +++ b/src/pages/Evaluation/BidControl/BidControlManager/index.tsx @@ -8,6 +8,7 @@ import ViewBlacklistFormModal from './components/ViewBlacklistFormModal'; import ViewReviewResultFormModal from './components/ViewReviewResultFormModal'; import ViewJuryScoringRemindFormModal from './components/ViewJuryScoringRemindFormModal'; import ViewJuryScoringAnalysisFormModal from './components/ViewJuryScoringAnalysisFormModal'; +import BidDocSmartCheckFormModal from './components/BidDocSmartCheckFormModal'; function callback(key) { //getSessionUserData.roleIds; @@ -90,6 +91,11 @@ const Sing: React.FC<{}> = () => { const [ViewJuryScoringAnalysisFormVisible, setViewJuryScoringAnalysisFormVisible] = useState(false); //查看详情窗口record const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState({}); + + //投标文件智能审查 + const [BidDocSmartCheckFormVisible, setBidDocSmartCheckFormVisible] = useState(false); + //查看详情窗口record + const [BidDocSmartCheckValues, setBidDocSmartCheckValues] = useState({}); const getWarningList = async() => { @@ -175,6 +181,19 @@ const Sing: React.FC<{}> = () => { ) : null } + { + BidDocSmartCheckFormModal ? ( + { + setBidDocSmartCheckFormVisible(!BidDocSmartCheckFormVisible); + setBidDocSmartCheckValues({}); + }} + > + + ) : null + } ) } diff --git a/src/pages/Evaluation/BidControl/BidControlManager/service.ts b/src/pages/Evaluation/BidControl/BidControlManager/service.ts index 12bf955..5658ea8 100644 --- a/src/pages/Evaluation/BidControl/BidControlManager/service.ts +++ b/src/pages/Evaluation/BidControl/BidControlManager/service.ts @@ -61,6 +61,13 @@ export async function getBlackList(projectId:any,assessRoomId: any) { //黑名 }); } + +export async function getBidDocSmartCheckList(assessRoomId: any) { //投标文件智能审查 + return request('/api/biz-service-ebtp-resps/v1/tfilewarning/getBidDocSmartCheck?assessRoomId='+`${assessRoomId}`, { + method: 'get' + }); +} + export async function getDeviatedWarnList(assessRoomId: any) { // 偏离度提醒 return request('/api/biz-service-ebtp-rsms/v1/bid/deviated/warn/findBidDeviatedWarnListByRoomId/'+`${assessRoomId}`, { method: 'get'