风控限定供应商
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,17 +1,13 @@
|
||||
import React, { useState,useRef, useEffect } from 'react';
|
||||
import { Tabs,Table, Spin, message, Popconfirm,Card,Collapse, Modal, Button} from 'antd';
|
||||
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
||||
import React, { useState } from 'react';
|
||||
import { ProColumns } from '@ant-design/pro-table';
|
||||
import ViewRishFormModal from './components/ViewRishFormModal';
|
||||
import ViewQuoteWarningFormModal from './components/ViewQuoteWarningFormModal';
|
||||
import { getRoomId, getSessionUserData } from '@/utils/session';
|
||||
import ViewBlacklistFormModal from './components/ViewBlacklistFormModal';
|
||||
import ViewReviewResultFormModal from './components/ViewReviewResultFormModal';
|
||||
import ViewJuryScoringRemindFormModal from './components/ViewJuryScoringRemindFormModal';
|
||||
import ViewJuryScoringAnalysisFormModal from './components/ViewJuryScoringAnalysisFormModal';
|
||||
import ViewRiskSupplierModal from './components/ViewRiskSupplierModal';
|
||||
|
||||
function callback(key) {
|
||||
//getSessionUserData.roleIds;
|
||||
}
|
||||
|
||||
const title2 = [
|
||||
{
|
||||
@ -41,9 +37,9 @@ const title2 = [
|
||||
const columns: ProColumns<any>[] = [
|
||||
{ title: '序号', dataIndex: 'num', width: 50, },
|
||||
{ title: '供应商名称', dataIndex: 'gysmc', },
|
||||
{ title: 'IP地址',width: '20%', dataIndex: 'ip', },
|
||||
{ title: 'IP地址', width: '20%', dataIndex: 'ip', },
|
||||
{ title: 'MAC地址', dataIndex: 'mac', },
|
||||
{ title: '上传时间', dataIndex: 'uploadTime',},
|
||||
{ title: '上传时间', dataIndex: 'uploadTime', },
|
||||
];
|
||||
|
||||
const columnsMac: ProColumns<any>[] = [
|
||||
@ -90,91 +86,104 @@ const Sing: React.FC<{}> = () => {
|
||||
const [ViewJuryScoringAnalysisFormVisible, setViewJuryScoringAnalysisFormVisible] = useState<any>(false);
|
||||
//查看详情窗口record
|
||||
const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState<any>({});
|
||||
|
||||
|
||||
const getWarningList = async() => {
|
||||
}
|
||||
//风控中心-风险限定供应商
|
||||
const [BidRiskSupplierVisible, setBidRiskSupplierVisible] = useState<any>(false);
|
||||
//风控中心-风险限定供应商record
|
||||
const [BidRiskSupplierValues, setRiskSupplierValues] = useState<any>({});
|
||||
return (
|
||||
<>
|
||||
{
|
||||
ViewRishFormModal ? (
|
||||
<ViewRishFormModal
|
||||
modalVisible={ViewRishFormVisible}
|
||||
values={ViewRishValues}
|
||||
onCancel={() => {
|
||||
setViewRishFormVisible(!ViewRishFormVisible);
|
||||
setViewRishValues({});
|
||||
}}
|
||||
>
|
||||
</ViewRishFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewQuoteWarningFormModal ? (
|
||||
<ViewQuoteWarningFormModal
|
||||
modalVisible={ViewQuoteWarningFormVisible}
|
||||
values={ViewQuoteWarningValues}
|
||||
onCancel={() => {
|
||||
setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible);
|
||||
setViewQuoteWarningValues({});
|
||||
}}
|
||||
>
|
||||
{
|
||||
ViewRishFormModal ? (
|
||||
<ViewRishFormModal
|
||||
modalVisible={ViewRishFormVisible}
|
||||
values={ViewRishValues}
|
||||
onCancel={() => {
|
||||
setViewRishFormVisible(!ViewRishFormVisible);
|
||||
setViewRishValues({});
|
||||
}}
|
||||
>
|
||||
</ViewRishFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewQuoteWarningFormModal ? (
|
||||
<ViewQuoteWarningFormModal
|
||||
modalVisible={ViewQuoteWarningFormVisible}
|
||||
values={ViewQuoteWarningValues}
|
||||
onCancel={() => {
|
||||
setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible);
|
||||
setViewQuoteWarningValues({});
|
||||
}}
|
||||
>
|
||||
|
||||
</ViewQuoteWarningFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewBlacklistFormModal ? (
|
||||
<ViewBlacklistFormModal
|
||||
modalVisible={ViewBlacklistFormVisible}
|
||||
values={ViewBlacklistValues}
|
||||
onCancel={() => {
|
||||
setViewBlacklistFormVisible(!ViewBlacklistFormVisible);
|
||||
setViewBlacklistValues({});
|
||||
}}
|
||||
>
|
||||
</ViewBlacklistFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewReviewResultFormModal ? (
|
||||
<ViewReviewResultFormModal
|
||||
modalVisible={ViewReviewResultFormVisible}
|
||||
values={ViewReviewResultValues}
|
||||
onCancel={() => {
|
||||
setViewReviewResultFormVisible(!ViewReviewResultFormVisible);
|
||||
setViewReviewResultValues({});
|
||||
}}
|
||||
>
|
||||
</ViewReviewResultFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewJuryScoringRemindFormModal ? (
|
||||
<ViewJuryScoringRemindFormModal
|
||||
modalVisible={ViewJuryScoringRemindFormVisible}
|
||||
values={ViewJuryScoringRemindValues}
|
||||
onCancel={() => {
|
||||
setViewJuryScoringRemindFormVisible(!ViewJuryScoringRemindFormVisible);
|
||||
setViewJuryScoringRemindValues({});
|
||||
}}
|
||||
>
|
||||
</ViewJuryScoringRemindFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewJuryScoringAnalysisFormModal ? (
|
||||
<ViewJuryScoringAnalysisFormModal
|
||||
modalVisible={ViewJuryScoringAnalysisFormVisible}
|
||||
values={ViewJuryScoringAnalysisValues}
|
||||
onCancel={() => {
|
||||
setViewJuryScoringAnalysisFormVisible(!ViewJuryScoringAnalysisFormVisible);
|
||||
setViewJuryScoringAnalysisValues({});
|
||||
}}
|
||||
>
|
||||
</ViewJuryScoringAnalysisFormModal>
|
||||
) : null
|
||||
}
|
||||
</ViewQuoteWarningFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewBlacklistFormModal ? (
|
||||
<ViewBlacklistFormModal
|
||||
modalVisible={ViewBlacklistFormVisible}
|
||||
values={ViewBlacklistValues}
|
||||
onCancel={() => {
|
||||
setViewBlacklistFormVisible(!ViewBlacklistFormVisible);
|
||||
setViewBlacklistValues({});
|
||||
}}
|
||||
>
|
||||
</ViewBlacklistFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewReviewResultFormModal ? (
|
||||
<ViewReviewResultFormModal
|
||||
modalVisible={ViewReviewResultFormVisible}
|
||||
values={ViewReviewResultValues}
|
||||
onCancel={() => {
|
||||
setViewReviewResultFormVisible(!ViewReviewResultFormVisible);
|
||||
setViewReviewResultValues({});
|
||||
}}
|
||||
>
|
||||
</ViewReviewResultFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewJuryScoringRemindFormModal ? (
|
||||
<ViewJuryScoringRemindFormModal
|
||||
modalVisible={ViewJuryScoringRemindFormVisible}
|
||||
values={ViewJuryScoringRemindValues}
|
||||
onCancel={() => {
|
||||
setViewJuryScoringRemindFormVisible(!ViewJuryScoringRemindFormVisible);
|
||||
setViewJuryScoringRemindValues({});
|
||||
}}
|
||||
>
|
||||
</ViewJuryScoringRemindFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewJuryScoringAnalysisFormModal ? (
|
||||
<ViewJuryScoringAnalysisFormModal
|
||||
modalVisible={ViewJuryScoringAnalysisFormVisible}
|
||||
values={ViewJuryScoringAnalysisValues}
|
||||
onCancel={() => {
|
||||
setViewJuryScoringAnalysisFormVisible(!ViewJuryScoringAnalysisFormVisible);
|
||||
setViewJuryScoringAnalysisValues({});
|
||||
}}
|
||||
>
|
||||
</ViewJuryScoringAnalysisFormModal>
|
||||
) : null
|
||||
}
|
||||
{
|
||||
ViewRiskSupplierModal ? (
|
||||
<ViewRiskSupplierModal
|
||||
modalVisible={BidRiskSupplierVisible}
|
||||
values={BidRiskSupplierValues}
|
||||
onCancel={() => {
|
||||
setBidRiskSupplierVisible(!BidRiskSupplierVisible);
|
||||
setRiskSupplierValues({});
|
||||
}}
|
||||
>
|
||||
</ViewRiskSupplierModal>
|
||||
) : null
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -113,7 +113,16 @@ export async function replace(a: any,b: any,c: any){
|
||||
return a.replace(b,c);
|
||||
}
|
||||
|
||||
|
||||
//风险限定供应商
|
||||
export async function getRiskSupplierList(projectId: any, assessRoomId: any) {
|
||||
return request('/api/biz-service-ebtp-evaluation/v1/risk/querySupplierLimit', {
|
||||
method: 'post',
|
||||
data: {
|
||||
"assessRoomId": assessRoomId,
|
||||
"projectId": projectId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user