投标文件智能审查
This commit is contained in:
@ -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<BidDocSmartCheckFormModalProps> = (props) => {
|
||||
|
||||
const [bidDocSmartCheckList, setBidDocSmartCheckList] = useState([]);
|
||||
|
||||
//查看详情窗口record
|
||||
const [juryTableShow, setJuryTableShow] = useState<boolean>(true);//
|
||||
//是否显示法人及投标人名称对比结果;false-不显示结果,true-显示结果
|
||||
const [checkLegalAndNameResult, setCheckLegalAndNameResult] = useState<boolean>(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 <span style={{ color: 'green' }}>√</span>;
|
||||
} else {
|
||||
return <span style={{ color: 'red' }}>×</span>;
|
||||
}
|
||||
}
|
||||
function visibleLegalAndNameValue(key: any) {
|
||||
//false-不显示结果,true-显示结果
|
||||
if (checkLegalAndNameResult) {
|
||||
if (key) {
|
||||
return <span style={{ color: 'green' }}>√</span>;
|
||||
} else {
|
||||
return <span style={{ color: 'red' }}>×</span>;
|
||||
}
|
||||
} else {
|
||||
return <span></span>;
|
||||
}
|
||||
}
|
||||
|
||||
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 ?
|
||||
<Collapse onChange={callback}>
|
||||
<Collapse.Panel header="投标文件智能审查" key="3">
|
||||
{<span style={{ color: 'red' }}>注:"√"为审查项智能审查通过,"×"为审查项智能审查存在风险</span>}
|
||||
{
|
||||
<Table
|
||||
columns={BidDocSmartCheckColumns}
|
||||
dataSource={bidDocSmartCheckList}
|
||||
pagination={false}//分页
|
||||
></Table>
|
||||
|
||||
}
|
||||
</Collapse.Panel>
|
||||
</Collapse>
|
||||
: null}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default BidDocSmartCheckFormModal;
|
@ -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<any>(false);
|
||||
//查看详情窗口record
|
||||
const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState<any>({});
|
||||
|
||||
//投标文件智能审查
|
||||
const [BidDocSmartCheckFormVisible, setBidDocSmartCheckFormVisible] = useState<any>(false);
|
||||
//查看详情窗口record
|
||||
const [BidDocSmartCheckValues, setBidDocSmartCheckValues] = useState<any>({});
|
||||
|
||||
|
||||
const getWarningList = async() => {
|
||||
@ -175,6 +181,19 @@ const Sing: React.FC<{}> = () => {
|
||||
</ViewJuryScoringAnalysisFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
BidDocSmartCheckFormModal ? (
|
||||
<BidDocSmartCheckFormModal
|
||||
modalVisible={BidDocSmartCheckFormVisible}
|
||||
values={BidDocSmartCheckValues}
|
||||
onCancel={() => {
|
||||
setBidDocSmartCheckFormVisible(!BidDocSmartCheckFormVisible);
|
||||
setBidDocSmartCheckValues({});
|
||||
}}
|
||||
>
|
||||
</BidDocSmartCheckFormModal>
|
||||
) : null
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user