Merge branch '20220601-bidSmartReview' of http://10.124.128.2:8888/eshop/fe_service_ebtp_frontend into 20220601-bidSmartReview
This commit is contained in:
@ -14,16 +14,11 @@ const BidDocSmartCheckFormModal: React.FC<BidDocSmartCheckFormModalProps> = (pro
|
|||||||
const [bidDocSmartCheckList, setBidDocSmartCheckList] = useState([]);
|
const [bidDocSmartCheckList, setBidDocSmartCheckList] = useState([]);
|
||||||
|
|
||||||
//查看详情窗口record
|
//查看详情窗口record
|
||||||
const [juryTableShow, setJuryTableShow] = useState<boolean>(true);
|
const [juryTableShow, setJuryTableShow] = useState<boolean>(true);//
|
||||||
|
|
||||||
//是否显示法人及投标人名称对比结果;false-不显示结果,true-显示结果
|
|
||||||
const [checkLegalAndNameResult, setCheckLegalAndNameResult] = useState<boolean>(true);
|
|
||||||
|
|
||||||
var roleId = getSessionRoleData().roleCode;
|
var roleId = getSessionRoleData().roleCode;
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setJuryTableShow(false);
|
|
||||||
getWarningList();
|
getWarningList();
|
||||||
if (roleId === "ebtp-expert") {
|
if (roleId === "ebtp-expert") {
|
||||||
setJuryTableShow(false);
|
setJuryTableShow(false);
|
||||||
@ -34,24 +29,13 @@ const BidDocSmartCheckFormModal: React.FC<BidDocSmartCheckFormModalProps> = (pro
|
|||||||
//getSessionUserData.roleIds;
|
//getSessionUserData.roleIds;
|
||||||
}
|
}
|
||||||
function visibleValue(key: any) {
|
function visibleValue(key: any) {
|
||||||
|
//1 是 0 否
|
||||||
if (key) {
|
if (key) {
|
||||||
return <span style={{ color: 'green' }}>√</span>;
|
return <span style={{ color: 'green' }}>√</span>;
|
||||||
} else {
|
} else {
|
||||||
return <span style={{ color: 'red' }}>×</span>;
|
return <span style={{ color: 'red' }}>×</span>;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function visibleLegalAndNameValue(key: any) {
|
|
||||||
//false-不显示结果,true-显示结果
|
|
||||||
if (checkLegalAndNameResult) {
|
|
||||||
if (key) {
|
|
||||||
return <span style={{ color: 'green' }}>√</span>;
|
|
||||||
} else {
|
|
||||||
return <span style={{ color: 'red' }}>×</span>;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return <span></span>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const BidDocSmartCheckColumns = [
|
const BidDocSmartCheckColumns = [
|
||||||
{ title: '序号', dataIndex: 'num', width: 60, render: (text: any, record: any, index: any) => `${index + 1}` },
|
{ title: '序号', dataIndex: 'num', width: 60, render: (text: any, record: any, index: any) => `${index + 1}` },
|
||||||
@ -71,10 +55,10 @@ const BidDocSmartCheckFormModal: React.FC<BidDocSmartCheckFormModalProps> = (pro
|
|||||||
return visibleValue(record.ensureStatus);
|
return visibleValue(record.ensureStatus);
|
||||||
}},
|
}},
|
||||||
{ title: '不同投标人间法定代表人、法定代表授权委托人对比', dataIndex: 'supplierLegalCheck', render: (_: any, record: any) => {
|
{ title: '不同投标人间法定代表人、法定代表授权委托人对比', dataIndex: 'supplierLegalCheck', render: (_: any, record: any) => {
|
||||||
return visibleLegalAndNameValue(record.supplierLegalCheck);
|
return visibleValue(record.supplierLegalCheck);
|
||||||
}},
|
}},
|
||||||
{ title: '投标人名称与系统操作投标人名称', dataIndex: 'supplierNameCheck', render: (_: any, record: any) => {
|
{ title: '投标人名称与系统操作投标人名称', dataIndex: 'supplierNameCheck', render: (_: any, record: any) => {
|
||||||
return visibleLegalAndNameValue(record.supplierNameCheck);
|
return visibleValue(record.supplierNameCheck);
|
||||||
}},
|
}},
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -86,11 +70,7 @@ const BidDocSmartCheckFormModal: React.FC<BidDocSmartCheckFormModalProps> = (pro
|
|||||||
//投标文件智能审查
|
//投标文件智能审查
|
||||||
await getBidDocSmartCheckList(roomId).then((res) => {
|
await getBidDocSmartCheckList(roomId).then((res) => {
|
||||||
if (res.success == true) {
|
if (res.success == true) {
|
||||||
setCheckLegalAndNameResult(res?.data?.isCheckLegalAndName);
|
setBidDocSmartCheckList(res.data)
|
||||||
if(res?.data?.isCheckOpen){
|
|
||||||
setJuryTableShow(true);
|
|
||||||
setBidDocSmartCheckList(res.data?.checkResults)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
setBidDocSmartCheckList(ret.data);
|
setBidDocSmartCheckList(ret.data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user