5.9 上传投标文件、应答情况查看页、评审打分页,评审汇总表,评审结果MAC强控
This commit is contained in:
@ -0,0 +1,70 @@
|
||||
import React, { useState } from 'react';
|
||||
import { Modal, Popover, Typography } from 'antd';
|
||||
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
||||
import ViewRishFormModal from './ViewRishFormModal';
|
||||
|
||||
interface MACAddressPromptProps {
|
||||
type: string; //score-打分 other-其他
|
||||
companyName?: string //公司名称
|
||||
}
|
||||
|
||||
const MACAddressPrompt: React.FC<MACAddressPromptProps> = (props) => {
|
||||
const { type, companyName } = props;
|
||||
const { Text, Link } = Typography;
|
||||
const modalHeight = window.innerHeight * 96 / 100;
|
||||
//Modal visible
|
||||
const [visible, setVisible] = useState<boolean>(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
{type == 'score' ? (
|
||||
<Modal
|
||||
destroyOnClose
|
||||
visible={visible}
|
||||
onCancel={() => setVisible(false)}
|
||||
style={{ maxHeight: modalHeight }}
|
||||
bodyStyle={{ maxHeight: modalHeight - 54, overflowY: 'auto', }}
|
||||
width={'80%'}
|
||||
centered
|
||||
closable={false}
|
||||
cancelText="关闭"
|
||||
okButtonProps={{ hidden: true }}
|
||||
>
|
||||
<ViewRishFormModal activeKey={true} />
|
||||
</Modal>
|
||||
) : (
|
||||
<Modal
|
||||
destroyOnClose
|
||||
visible={visible}
|
||||
onCancel={() => setVisible(false)}
|
||||
centered
|
||||
bodyStyle={{ padding: 40 }}
|
||||
footer={null}
|
||||
>
|
||||
<Text strong>{companyName}与其他供应商MAC地址相同,根据联通《关于进一步防范围标串标风险的通知》(WTZ2019110816765),如不同供应商MAC地址相同,视同围标、串标!</Text>
|
||||
</Modal>
|
||||
)}
|
||||
<Popover
|
||||
content={
|
||||
<Typography>
|
||||
<Text strong style={{ display: 'block', }}>风险点</Text>
|
||||
<Text strong style={{ fontSize: 64, lineHeight: '8px', float: 'left', color: '#b30000' }}>·</Text>
|
||||
<Link
|
||||
href="#"
|
||||
onClick={() => {
|
||||
setVisible(true);
|
||||
}}
|
||||
underline={true}
|
||||
>
|
||||
与其他供应商MAC地址重复
|
||||
</Link>
|
||||
</Typography>
|
||||
}
|
||||
>
|
||||
<ExclamationCircleOutlined style={{ color: '#b30000', marginLeft: 4 }} />
|
||||
</Popover>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default MACAddressPrompt;
|
@ -5,9 +5,10 @@ import { getProMethod, getRoomId } from '@/utils/session';
|
||||
import FileDown from '@/utils/Download';
|
||||
|
||||
interface ViewRishFormModalProps {
|
||||
modalVisible: boolean;
|
||||
values: any;
|
||||
onCancel: any;
|
||||
modalVisible?: boolean;
|
||||
values?: any;
|
||||
onCancel?: any;
|
||||
activeKey?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +23,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
|
||||
} else {
|
||||
name1 = "应答";
|
||||
}
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
getWarningList();
|
||||
}, [])
|
||||
@ -35,12 +36,12 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
|
||||
{ title: '序号', width: '10%', render: (text: any, record: any, index: any) => `${index + 1}` },
|
||||
{ title: '供应商名称', width: '20%', dataIndex: 'companyName', },
|
||||
{
|
||||
title: 'IP地址', width: 200, dataIndex: 'ip', render: (_ : any, record: any) => {
|
||||
title: 'IP地址', width: 200, dataIndex: 'ip', render: (_: any, record: any) => {
|
||||
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.ip}</div>;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_ : any, record: any) => {
|
||||
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_: any, record: any) => {
|
||||
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.mac}</div>;
|
||||
}
|
||||
},
|
||||
@ -51,7 +52,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
|
||||
{ title: '序号', width: '10%', render: (text: any, record: any, index: any) => `${index + 1}` },
|
||||
{ title: '供应商名称', width: '25%', dataIndex: 'companyName', },
|
||||
{
|
||||
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_ : any, record: any) => {
|
||||
title: 'MAC地址', width: '20%', dataIndex: 'mac', render: (_: any, record: any) => {
|
||||
return <div style={{ wordBreak: 'break-all', wordWrap: 'break-word' }}>{record.mac}</div>;
|
||||
}
|
||||
},
|
||||
@ -77,7 +78,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Collapse onChange={callback}>
|
||||
<Collapse onChange={callback} defaultActiveKey={props?.activeKey ? ['1'] : []}>
|
||||
<Collapse.Panel header={`${name1}文件制作地址日志信息查看`} key="1">
|
||||
{rishList?.length == 0
|
||||
? <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
|
||||
@ -124,7 +125,7 @@ const ViewRishFormModal: React.FC<ViewRishFormModalProps> = (props) => {
|
||||
</Collapse>
|
||||
);
|
||||
}) : (
|
||||
<Card bordered={false} bodyStyle={{padding: '16px 24px'}}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 24px' }}>
|
||||
<p>MAC地址相同的供应商信息如下: </p>
|
||||
<Table
|
||||
size='small'
|
||||
|
Reference in New Issue
Block a user