风控限定供应商
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 React, { useState } from 'react';
|
||||||
import { Tabs,Table, Spin, message, Popconfirm,Card,Collapse, Modal, Button} from 'antd';
|
import { ProColumns } from '@ant-design/pro-table';
|
||||||
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';
|
||||||
|
|
||||||
function callback(key) {
|
|
||||||
//getSessionUserData.roleIds;
|
|
||||||
}
|
|
||||||
|
|
||||||
const title2 = [
|
const title2 = [
|
||||||
{
|
{
|
||||||
@ -41,9 +37,9 @@ const title2 = [
|
|||||||
const columns: ProColumns<any>[] = [
|
const columns: ProColumns<any>[] = [
|
||||||
{ title: '序号', dataIndex: 'num', width: 50, },
|
{ title: '序号', dataIndex: 'num', width: 50, },
|
||||||
{ title: '供应商名称', dataIndex: 'gysmc', },
|
{ title: '供应商名称', dataIndex: 'gysmc', },
|
||||||
{ title: 'IP地址',width: '20%', dataIndex: 'ip', },
|
{ title: 'IP地址', width: '20%', dataIndex: 'ip', },
|
||||||
{ title: 'MAC地址', dataIndex: 'mac', },
|
{ title: 'MAC地址', dataIndex: 'mac', },
|
||||||
{ title: '上传时间', dataIndex: 'uploadTime',},
|
{ title: '上传时间', dataIndex: 'uploadTime', },
|
||||||
];
|
];
|
||||||
|
|
||||||
const columnsMac: ProColumns<any>[] = [
|
const columnsMac: ProColumns<any>[] = [
|
||||||
@ -65,7 +61,7 @@ const Sing: React.FC<{}> = () => {
|
|||||||
const [ViewRishFormVisible, setViewRishFormVisible] = useState<any>(false);
|
const [ViewRishFormVisible, setViewRishFormVisible] = useState<any>(false);
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
const [ViewRishValues, setViewRishValues] = useState<any>({});
|
const [ViewRishValues, setViewRishValues] = useState<any>({});
|
||||||
|
|
||||||
//一致性
|
//一致性
|
||||||
const [ViewQuoteWarningFormVisible, setViewQuoteWarningFormVisible] = useState<any>(false);
|
const [ViewQuoteWarningFormVisible, setViewQuoteWarningFormVisible] = useState<any>(false);
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
@ -85,96 +81,109 @@ const Sing: React.FC<{}> = () => {
|
|||||||
const [ViewJuryScoringRemindFormVisible, setViewJuryScoringRemindFormVisible] = useState<any>(false);
|
const [ViewJuryScoringRemindFormVisible, setViewJuryScoringRemindFormVisible] = useState<any>(false);
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
const [ViewJuryScoringRemindValues, setViewJuryScoringRemindValues] = useState<any>({});
|
const [ViewJuryScoringRemindValues, setViewJuryScoringRemindValues] = useState<any>({});
|
||||||
|
|
||||||
//评审专家打分偏离度分析
|
//评审专家打分偏离度分析
|
||||||
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);
|
||||||
const getWarningList = async() => {
|
//风控中心-风险限定供应商record
|
||||||
}
|
const [BidRiskSupplierValues, setRiskSupplierValues] = useState<any>({});
|
||||||
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
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ViewBlacklistFormModal ? (
|
ViewBlacklistFormModal ? (
|
||||||
<ViewBlacklistFormModal
|
<ViewBlacklistFormModal
|
||||||
modalVisible={ViewBlacklistFormVisible}
|
modalVisible={ViewBlacklistFormVisible}
|
||||||
values={ViewBlacklistValues}
|
values={ViewBlacklistValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewBlacklistFormVisible(!ViewBlacklistFormVisible);
|
setViewBlacklistFormVisible(!ViewBlacklistFormVisible);
|
||||||
setViewBlacklistValues({});
|
setViewBlacklistValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
</ViewBlacklistFormModal>
|
</ViewBlacklistFormModal>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ViewReviewResultFormModal ? (
|
ViewReviewResultFormModal ? (
|
||||||
<ViewReviewResultFormModal
|
<ViewReviewResultFormModal
|
||||||
modalVisible={ViewReviewResultFormVisible}
|
modalVisible={ViewReviewResultFormVisible}
|
||||||
values={ViewReviewResultValues}
|
values={ViewReviewResultValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewReviewResultFormVisible(!ViewReviewResultFormVisible);
|
setViewReviewResultFormVisible(!ViewReviewResultFormVisible);
|
||||||
setViewReviewResultValues({});
|
setViewReviewResultValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
</ViewReviewResultFormModal>
|
</ViewReviewResultFormModal>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ViewJuryScoringRemindFormModal ? (
|
ViewJuryScoringRemindFormModal ? (
|
||||||
<ViewJuryScoringRemindFormModal
|
<ViewJuryScoringRemindFormModal
|
||||||
modalVisible={ViewJuryScoringRemindFormVisible}
|
modalVisible={ViewJuryScoringRemindFormVisible}
|
||||||
values={ViewJuryScoringRemindValues}
|
values={ViewJuryScoringRemindValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewJuryScoringRemindFormVisible(!ViewJuryScoringRemindFormVisible);
|
setViewJuryScoringRemindFormVisible(!ViewJuryScoringRemindFormVisible);
|
||||||
setViewJuryScoringRemindValues({});
|
setViewJuryScoringRemindValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
</ViewJuryScoringRemindFormModal>
|
</ViewJuryScoringRemindFormModal>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
ViewJuryScoringAnalysisFormModal ? (
|
ViewJuryScoringAnalysisFormModal ? (
|
||||||
<ViewJuryScoringAnalysisFormModal
|
<ViewJuryScoringAnalysisFormModal
|
||||||
modalVisible={ViewJuryScoringAnalysisFormVisible}
|
modalVisible={ViewJuryScoringAnalysisFormVisible}
|
||||||
values={ViewJuryScoringAnalysisValues}
|
values={ViewJuryScoringAnalysisValues}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setViewJuryScoringAnalysisFormVisible(!ViewJuryScoringAnalysisFormVisible);
|
setViewJuryScoringAnalysisFormVisible(!ViewJuryScoringAnalysisFormVisible);
|
||||||
setViewJuryScoringAnalysisValues({});
|
setViewJuryScoringAnalysisValues({});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
</ViewJuryScoringAnalysisFormModal>
|
</ViewJuryScoringAnalysisFormModal>
|
||||||
) : null
|
) : 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);
|
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