风控限定供应商
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 = [
|
||||||
{
|
{
|
||||||
@ -90,10 +86,10 @@ 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);
|
||||||
const getWarningList = async() => {
|
//风控中心-风险限定供应商record
|
||||||
}
|
const [BidRiskSupplierValues, setRiskSupplierValues] = useState<any>({});
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
@ -175,6 +171,19 @@ const Sing: React.FC<{}> = () => {
|
|||||||
</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