Merge branch 'master-风控限定供应商' into 'release_20220812'
8.12 风控中心3条新增规则 招采中心限定供应商管控 See merge request eshop/fe_service_ebtp_frontend!223
This commit is contained in:
@ -0,0 +1,45 @@
|
|||||||
|
import React, { useEffect, useState } from 'react';
|
||||||
|
import { Collapse } from 'antd';
|
||||||
|
import { getRiskSupplierList } from '../service';
|
||||||
|
import { getRoomId, getSessionProjectData } from '@/utils/session';
|
||||||
|
|
||||||
|
interface ViewRiskSupplierModalProps {
|
||||||
|
modalVisible: boolean;
|
||||||
|
values: any;
|
||||||
|
onCancel: any;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ViewRiskSupplierModal: React.FC<ViewRiskSupplierModalProps> = (props) => {
|
||||||
|
|
||||||
|
const [riskSupplierData, setRiskSupplierData] = useState({});
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getRiskSupplierInfo();
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
const getRiskSupplierInfo = async () => {
|
||||||
|
let roomId = getRoomId();//sessionStorage.getItem('roomId');//sessionStorage.getItem('roomId')
|
||||||
|
let projectId = getSessionProjectData().id;
|
||||||
|
|
||||||
|
//黑名单
|
||||||
|
await getRiskSupplierList(projectId, roomId).then((res) => {
|
||||||
|
if (res.success == true && res.data.success==false) {
|
||||||
|
setRiskSupplierData(res.data.data.result[0].regulationData[0].message);
|
||||||
|
} else {
|
||||||
|
setRiskSupplierData("暂无数据");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Collapse >
|
||||||
|
<Collapse.Panel header="风控中心-风险限定供应商" key="1">
|
||||||
|
{riskSupplierData}
|
||||||
|
</Collapse.Panel>
|
||||||
|
</Collapse>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ViewRiskSupplierModal;
|
@ -1,65 +1,13 @@
|
|||||||
import React, { useState,useRef, useEffect } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Tabs,Table, Spin, message, Popconfirm,Card,Collapse, Modal, Button} from 'antd';
|
|
||||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
|
||||||
import ViewRishFormModal from './components/ViewRishFormModal';
|
import ViewRishFormModal from './components/ViewRishFormModal';
|
||||||
import ViewQuoteWarningFormModal from './components/ViewQuoteWarningFormModal';
|
import ViewQuoteWarningFormModal from './components/ViewQuoteWarningFormModal';
|
||||||
import { getRoomId, getSessionUserData } from '@/utils/session';
|
|
||||||
import ViewBlacklistFormModal from './components/ViewBlacklistFormModal';
|
import ViewBlacklistFormModal from './components/ViewBlacklistFormModal';
|
||||||
import ViewReviewResultFormModal from './components/ViewReviewResultFormModal';
|
import ViewReviewResultFormModal from './components/ViewReviewResultFormModal';
|
||||||
import ViewJuryScoringRemindFormModal from './components/ViewJuryScoringRemindFormModal';
|
import ViewJuryScoringRemindFormModal from './components/ViewJuryScoringRemindFormModal';
|
||||||
import ViewJuryScoringAnalysisFormModal from './components/ViewJuryScoringAnalysisFormModal';
|
import ViewJuryScoringAnalysisFormModal from './components/ViewJuryScoringAnalysisFormModal';
|
||||||
|
import ViewRiskSupplierModal from './components/ViewRiskSupplierModal';
|
||||||
import BidDocSmartCheckFormModal from './components/BidDocSmartCheckFormModal';
|
import BidDocSmartCheckFormModal from './components/BidDocSmartCheckFormModal';
|
||||||
|
|
||||||
function callback(key) {
|
|
||||||
//getSessionUserData.roleIds;
|
|
||||||
}
|
|
||||||
|
|
||||||
const title2 = [
|
|
||||||
{
|
|
||||||
title: '序号',
|
|
||||||
dataIndex: 'num',
|
|
||||||
key: 'num',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '投标人及报价',
|
|
||||||
dataIndex: 'tbrbj',
|
|
||||||
key: 'tbrbj',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '预警信息',
|
|
||||||
dataIndex: 'yjxx',
|
|
||||||
key: 'yjxx',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作',
|
|
||||||
dataIndex: 'cz',
|
|
||||||
key: 'cz',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const columns: ProColumns<any>[] = [
|
|
||||||
{ title: '序号', dataIndex: 'num', width: 50, },
|
|
||||||
{ title: '供应商名称', dataIndex: 'gysmc', },
|
|
||||||
{ title: 'IP地址',width: '20%', dataIndex: 'ip', },
|
|
||||||
{ title: 'MAC地址', dataIndex: 'mac', },
|
|
||||||
{ title: '上传时间', dataIndex: 'uploadTime',},
|
|
||||||
];
|
|
||||||
|
|
||||||
const columnsMac: ProColumns<any>[] = [
|
|
||||||
{ title: '序号', dataIndex: 'num', width: 50, },
|
|
||||||
{ title: '供应商名称', dataIndex: 'gysmc', },
|
|
||||||
{ title: '相同的MAC地址', dataIndex: 'mac', },
|
|
||||||
];
|
|
||||||
|
|
||||||
const columns2: ProColumns<any>[] = [
|
|
||||||
{ title: '序号', dataIndex: 'num', width: 50, },
|
|
||||||
{ title: '投标人及报价', dataIndex: 'tbrbj', },
|
|
||||||
{ title: '预警信息', dataIndex: 'yjxx', },
|
|
||||||
{ title: '操作', dataIndex: '', },
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
const Sing: React.FC<{}> = () => {
|
const Sing: React.FC<{}> = () => {
|
||||||
//ip mac
|
//ip mac
|
||||||
@ -91,40 +39,40 @@ const Sing: React.FC<{}> = () => {
|
|||||||
const [ViewJuryScoringAnalysisFormVisible, setViewJuryScoringAnalysisFormVisible] = useState<any>(false);
|
const [ViewJuryScoringAnalysisFormVisible, setViewJuryScoringAnalysisFormVisible] = useState<any>(false);
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState<any>({});
|
const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState<any>({});
|
||||||
|
//风控中心-风险限定供应商
|
||||||
|
const [BidRiskSupplierVisible, setBidRiskSupplierVisible] = useState<any>(false);
|
||||||
|
//风控中心-风险限定供应商record
|
||||||
|
const [BidRiskSupplierValues, setRiskSupplierValues] = useState<any>({});
|
||||||
|
|
||||||
//投标文件智能审查
|
//投标文件智能审查
|
||||||
const [BidDocSmartCheckFormVisible, setBidDocSmartCheckFormVisible] = useState<any>(false);
|
const [BidDocSmartCheckFormVisible, setBidDocSmartCheckFormVisible] = useState<any>(false);
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
const [BidDocSmartCheckValues, setBidDocSmartCheckValues] = useState<any>({});
|
const [BidDocSmartCheckValues, setBidDocSmartCheckValues] = useState<any>({});
|
||||||
|
|
||||||
|
|
||||||
const getWarningList = async() => {
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
ViewRishFormModal ? (
|
ViewRishFormModal ? (
|
||||||
<ViewRishFormModal
|
<ViewRishFormModal
|
||||||
modalVisible={ViewRishFormVisible}
|
modalVisible={ViewRishFormVisible}
|
||||||
values={ViewRishValues}
|
values={ViewRishValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewRishFormVisible(!ViewRishFormVisible);
|
setViewRishFormVisible(!ViewRishFormVisible);
|
||||||
setViewRishValues({});
|
setViewRishValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
</ViewRishFormModal>
|
</ViewRishFormModal>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ViewQuoteWarningFormModal ? (
|
ViewQuoteWarningFormModal ? (
|
||||||
<ViewQuoteWarningFormModal
|
<ViewQuoteWarningFormModal
|
||||||
modalVisible={ViewQuoteWarningFormVisible}
|
modalVisible={ViewQuoteWarningFormVisible}
|
||||||
values={ViewQuoteWarningValues}
|
values={ViewQuoteWarningValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible);
|
setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible);
|
||||||
setViewQuoteWarningValues({});
|
setViewQuoteWarningValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
||||||
</ViewQuoteWarningFormModal>
|
</ViewQuoteWarningFormModal>
|
||||||
) : null
|
) : null
|
||||||
@ -194,6 +142,19 @@ const Sing: React.FC<{}> = () => {
|
|||||||
</BidDocSmartCheckFormModal>
|
</BidDocSmartCheckFormModal>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
ViewRiskSupplierModal ? (
|
||||||
|
<ViewRiskSupplierModal
|
||||||
|
modalVisible={BidRiskSupplierVisible}
|
||||||
|
values={BidRiskSupplierValues}
|
||||||
|
onCancel={() => {
|
||||||
|
setBidRiskSupplierVisible(!BidRiskSupplierVisible);
|
||||||
|
setRiskSupplierValues({});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
</ViewRiskSupplierModal>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,16 @@ export async function replace(a: any,b: any,c: any){
|
|||||||
return a.replace(b,c);
|
return a.replace(b,c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//风险限定供应商
|
||||||
|
export async function getRiskSupplierList(projectId: any, assessRoomId: any) {
|
||||||
|
return request('/api/biz-service-ebtp-rsms/v1/riskcenter/querySupplierLimit', {
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
"assessRoomId": assessRoomId,
|
||||||
|
"projectId": projectId
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user