4.20 供应商股权穿透

This commit is contained in:
jl-zhoujl2
2023-04-20 09:14:56 +08:00
parent 0fb2e66c24
commit fed8c612ec
9 changed files with 279 additions and 16 deletions

View File

@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';
import ViewRishFormModal from './components/ViewRishFormModal';
import ViewQuoteWarningFormModal from './components/ViewQuoteWarningFormModal';
import ViewBlacklistFormModal from './components/ViewBlacklistFormModal';
@ -9,7 +9,8 @@ import ViewRiskSupplierModal from './components/ViewRiskSupplierModal';
import BidDocSmartCheckFormModal from './components/BidDocSmartCheckFormModal';
import ViewEvalFormModal from './components/ViewEvalFormModal';
import ZhiQiCha from './components/ZhiQiCha';
import { getDefId } from '@/utils/session';
import { getDefId, getRoomId, getSessionProjectData } from '@/utils/session';
import { getSuspectedViolation } from './service';
const Sing: React.FC<{}> = () => {
//ip mac
@ -57,10 +58,28 @@ const Sing: React.FC<{}> = () => {
const [ViewEvalCheckValues, setViewEvalCheckValues] = useState<any>({});
//获取流程id
const defId = getDefId();
//是否显示智企查
const [isShowZQC, setIsShowZQC] = useState<boolean>(false);
useEffect(() => {
const tpId = getSessionProjectData()?.id;
const sectionId = sessionStorage.getItem("sectionId");
const assessRoomId = getRoomId();
const openTime = sessionStorage.getItem("openTime");//获取评审开始时间
getSuspectedViolation({ tpId, sectionId, assessRoomId }).then(res => {//查询是否有风险2023年3月31日之前的无风险项目屏蔽掉此功能
if (res?.success) {
if (!(res?.data?.riskSupplier != null && res?.data?.riskSupplier.length > 0) && openTime && (openTime < "2023-03-31 23:59:59")) {
setIsShowZQC(false);
} else {
setIsShowZQC(true);
}
}
});
}, [])
return (
<>
{/**智企查-供应商关联关系疑似违规行为 */}
{((defId != "negotiation_single") && (defId != "recruit_multi") && (defId != "inquiry")) && <ZhiQiCha />}
{((defId != "negotiation_single") && (defId != "recruit_multi") && (defId != "inquiry") && isShowZQC) && <ZhiQiCha />}
{
ViewRishFormModal ? (
<ViewRishFormModal