diff --git a/config/TanPan/router_tanpan.ts b/config/TanPan/router_tanpan.ts index 0979c47..5a04600 100644 --- a/config/TanPan/router_tanpan.ts +++ b/config/TanPan/router_tanpan.ts @@ -31,6 +31,6 @@ export default [ }, {//单一来源简化流程 选择供应商及上传应答文件 path: '/ProjectLayout/SimpleUpload', - component: './BidEvaluation/components/SimpleUpload' + component: './BidEvaluation/components/simpleUpload' } ]; diff --git a/config/router.config.ts b/config/router.config.ts index f1e96f5..46b1726 100644 --- a/config/router.config.ts +++ b/config/router.config.ts @@ -150,7 +150,7 @@ export default [ path: '/notice', routes: [ { name: 'noticeList', path: '/notice/noticeList', component: './notice/noticeList/components/NoticeList' },//通知公告查看-所有角色 - { name: 'noticeManage', path: '/notice/noticeManage', component: './notice/noticeManage/components/noticeManage' },//通知公告管理-系统管理员 + { name: 'noticeManage', path: '/notice/noticeManage', component: './notice/noticeManage/components/NoticeManage' },//通知公告管理-系统管理员 ] }, {//委托 @@ -161,12 +161,12 @@ export default [ {//管理员-代理 name: 'manager', path: '/Project/EntrustAssign/Manager', - component: './Project/EntrustAssign/Manager', + component: './Project/EntrustAssign/manager', }, {//项目经理-代理 name: 'operator', path: '/Project/EntrustAssign/Operator', - component: './Project/EntrustAssign/Operator', + component: './Project/EntrustAssign/operator', }, {//采购经理的委托管理 name: 'mandatoryAdministration', diff --git a/public/Weboffice4Path.html b/public/Weboffice4Path.html index 22f6797..94164a5 100644 --- a/public/Weboffice4Path.html +++ b/public/Weboffice4Path.html @@ -1,12 +1,13 @@ + - - + + 招标采购中心 | 文档控件编辑器 - + -
-
- - 中国联通智慧供应链平台 | 招标采购中心 +
+ + 中国联通智慧供应链平台 | + 招标采购中心 +
-
-
- - - -
- -
- -
+ //调用文档通用属性方法 1-打开 2-保存(另存为) 4-打印 + function generalProp(param) { + var name = '新建文本文档'; + if (fileName != null) { + name = fileName; + } + TANGER_OCX.WebFileName = name + "." + fileType;//文档默认名称 + TANGER_OCX.ShowDialog(param) + } + +
+ +
- + \ No newline at end of file diff --git a/src/pages/Calibration/BidAssessmentResults/index.tsx b/src/pages/Calibration/BidAssessmentResults/index.tsx index fd73d42..86ddda1 100644 --- a/src/pages/Calibration/BidAssessmentResults/index.tsx +++ b/src/pages/Calibration/BidAssessmentResults/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useEffect, useMemo, useState } from 'react'; import { Button, Card, Collapse, Form, Input, List, message, Popover, Select, Space, Spin, Typography } from "antd"; import ProTable from "@ant-design/pro-table"; import { getBidAssessmentResultList, getBidAssessmentResultsList, pushBidAssessmentResult, saveResult } from "./service" @@ -11,19 +11,21 @@ import { isEmpty } from '@/utils/CommonUtils'; const BidAssessmentResults: React.FC<{}> = (props) => { const [Refresh, setRefresh] = useState(0); const { Panel } = Collapse; - const [pageloading, setPageloading] = useState(false); - const [ListData, setListData] = useState(); + const [ListData, setListData] = useState([]); const [assessRoomId, setAssessRoomId] = useState(); const [currentTable, setCurrentTable] = useState(false); - const [proID, setProID] = useState(getProId); const [spintype, setSpintype] = useState(false); - //单一来源简化 - const [form] = Form.useForm(); + //查询条件-包件名称 + const [name, setName] = useState(''); + //折叠面板 + const [collapseActiveKeys, setCollapseActiveKeys] = useState(['0']); + const FormItem = Form.Item; const { Option } = Select; const { Paragraph, Text } = Typography; const firstRvwResult = ['否', '是']; const [contractedMoney, contractedMoneySet] = useState('') + const proID = getProId();//项目id let name1 = "中标"; let name2 = "评标"; let name3 = "标段"; @@ -69,10 +71,6 @@ const BidAssessmentResults: React.FC<{}> = (props) => { type4 = true; type5 = true; } - //综合得分展开关闭 - const [expandTotalScore, setExpandTotalScore] = useState(proDict == "procurement_mode_7" ? false : true); - //查询条件-包件名称 - const [name, setName] = useState(''); useEffect(() => { setSpintype(true); @@ -82,26 +80,10 @@ const BidAssessmentResults: React.FC<{}> = (props) => { setListData(res.data); } }).finally(() => { - setSpintype(false) + setSpintype(false); }) }, [proID, Refresh]) - //初审详审原因render - const rvwResultRender = (field: any, reason: any) => { - const content = ( - -
{reason}
-
- ) - return isEmpty(field) || field == '-' ? '-' : ( - - {firstRvwResult[field]} - {field == 0 && - 说明 - } - ) - } - /*推送评标结果*/ const pushResult = (record: any) => { setSpintype(true); @@ -111,56 +93,356 @@ const BidAssessmentResults: React.FC<{}> = (props) => { setRefresh(Refresh + 1); } }).finally(() => { - setSpintype(false) + setSpintype(false); }) } + /*推送列表查看*/ const getResultList = (record: any) => { setAssessRoomId(record.assesRoomId); setCurrentTable(true); } + //折叠面板change + const onCollapseChange = (key: any) => { + setCollapseActiveKeys(key); + }; + + //确认评审结果ListRender封装 + const ResultListRender = (props: { item: any, setRefresh: () => void, getResultList: (record: any) => void, ListData: any, pushResult: (record: any) => void }) => { + const { item, setRefresh, getResultList, ListData, pushResult } = props; + //单一来源简化 + const [form] = Form.useForm(); + //综合得分展开关闭 + const [expandTotalScore, setExpandTotalScore] = useState(proDict == "procurement_mode_7" ? false : true); + + //单一简化 + function returnInput(name: any, name2: any, val: any, must: boolean, pattern?: boolean, hid?: boolean) { + let rule = [ + { required: must }, + { pattern: /^.{0,21}$/, message: '超长' } + ]; + pattern && rule.push({ pattern: /(^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d{1,4})?$)/, message: '请输入正确数值(最多4位小数)' }); + return ( +
+ +
+ ) + } + function returnSelect(name: any, val: any) { + return ( +
+ + + +
+ + ) + } + + //初审详审原因render + const rvwResultRender = (field: any, reason: any) => { + const content = ( + +
{reason}
+
+ ) + return isEmpty(field) || field == '-' ? '-' : ( + + {firstRvwResult[field]} + {field == 0 && + 说明 + } + ) + } - //单一简化 - function returnInput(name: any, name2: any, val: any, must: boolean, pattern?: boolean, hid?: boolean) { - let rule = [ - { required: must }, - { pattern: /^.{0,21}$/, message: '超长' } - ]; - pattern && rule.push({ pattern: /(^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d{1,4})?$)/, message: '请输入正确数值(最多4位小数)' }); return ( -
- -
+ { + //标段上的报价类型确认 1-% 0-元 + let sectionQuot = item?.quotationMethodDict == 'quotation_method_2' || item?.quotationMethodDict == 'quotation_method_3' ? '1' : '0' + const columns: any = [ + { + title: '排名', + dataIndex: 'sort', + valueType: 'text', + width: 50, + }, + { + title: '供应商名称', + dataIndex: 'companyName', + valueType: 'text', + width: 120, + }, + { + hideInTable: type1, + title: proDict == 'procurement_mode_7' ? '报价总金额净价(元)' : sectionQuot == '1' ? '报价(%)' : '报价(元)', + dataIndex: 'price', + width: 100, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('price', '报价', record.price, true, true) + } else { + return record.price + } + } + }, + { + hideInTable: type2, + title: proDict == 'procurement_mode_7' ? '报价总金额含税价(元)' : sectionQuot == '1' ? '评审价(%)' : '评审价(元)', + dataIndex: 'priceReview', + width: 100, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('priceReview', '评审价', record.priceReview, true, true) + } else { + return record.priceReview + } + } + }, + { + title: '商务分', + dataIndex: 'businessScore', + width: 60, + hideInTable: expandTotalScore, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('businessScore', '商务分', record.businessScore, false, true) + } else { + return record.businessScore + } + } + }, + { + title: '技术分', + width: 60, + dataIndex: 'technicalScore', + hideInTable: expandTotalScore, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('technicalScore', '技术分', record.technicalScore, false, true) + } else { + return record.technicalScore + } + } + }, + { + title: '服务分', + width: 60, + dataIndex: 'serviceScore', + hideInTable: expandTotalScore, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('serviceScore', '服务分', record.serviceScore, false, true) + } else { + return record.serviceScore + } + } + }, + { + title: '价格分', + width: 60, + dataIndex: 'priceScore', + hideInTable: expandTotalScore, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('priceScore', '价格分', record.priceScore, false, true) + } else { + return record.priceScore + } + } + }, + { + title: ( + + 综合得分 + setExpandTotalScore(!expandTotalScore)} style={{ cursor: 'pointer', color: '#1890ff' }}>{expandTotalScore ? "展开" : "收起"} + + ), + dataIndex: 'totalScore', + width: 120, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('totalScore', '综合得分', record.totalScore, false, true) + } else { + return record.totalScore + } + } + }, + { + hideInTable: defId === 'negotiation_single_simple', + title: '是否通过初步评审', + dataIndex: 'firstRvwResult', + width: 100, + render: (_: any, record: any) => rvwResultRender(_, record.firstRvwReason) + }, + { + hideInTable: type5 || defId === 'negotiation_single_simple', + title: '是否通过详审', + dataIndex: 'detailRvwResult', + width: 100, + render: (_: any, record: any) => rvwResultRender(_, record.detailRvwReason) + }, + { + hideInTable: type5 || defId === 'negotiation_single_simple', + title: '应答是否有效', + width: 80, + dataIndex: 'answerValid', + render: (_: any, record: any) => { + return record.answerValid === 1 ? '是' : record.answerValid === 0 ? '否' : '-' + } + }, + { + title: '是否' + name1 + '候选人', + dataIndex: 'winnerCandidate', + width: 100, + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnSelect('winnerCandidate', record.winnerCandidate) + } else { + return record.winnerCandidate === 1 ? '是' : '否' + } + } + }, + { + hideInTable: type5 || defId === 'negotiation_single_simple', + title: '是否拟' + name1 + '人', + width: 80, + dataIndex: 'winnerBidder', + render: (_: any, record: any) => { + return record.winnerBidder === 1 ? '是' : record.winnerBidder === 0 ? '否' : '-' + } + }, + { + hideInTable: type3, + title: '拟签约金额(不含增值税)(元)', + width: 150, + dataIndex: 'contractedMoney', + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return ( + <> + {returnInput('contractedMoney', '拟签约金额', record.contractedMoney, false, true)} + {returnInput('id', '供应商id', record.id, false, false, true)} + {returnInput('resultId', '结果id', record.resultId, false, false, true)} + {returnInput('companyId', '公司id', record.companyId, false, false, true)} + {returnInput('companyName', '公司名称', record.companyName, false, false, true)} + + ) + } else { + return record.contractedMoney + } + } + }, + { + hideInTable: type4, + title: '增值税金额(元)', + width: 150, + dataIndex: 'taxRatePrice', + render: (_: any, record: any) => { + if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { + return returnInput('taxRatePrice', '增值税金额', record.taxRatePrice, false, true) + } else { + return record.taxRatePrice + } + } + }, + ] + return ( + [ + <> + + { + defId === 'negotiation_single_simple' ? + + : + + } + + + ]} + pagination={{ + defaultPageSize: 10, + showSizeChanger: false, + }} + /> + ) + }} + > + ) } - function returnSelect(name: any, val: any) { - return ( -
- - - -
- ) - } return ( <> @@ -177,296 +459,13 @@ const BidAssessmentResults: React.FC<{}> = (props) => { }}>重置 - ( - - - { - //标段上的报价类型确认 1-% 0-元 - let sectionQuot = item?.quotationMethodDict == 'quotation_method_2' || item?.quotationMethodDict == 'quotation_method_3' ? '1' : '0' - const columns: any = [ - { - title: '排名', - dataIndex: 'sort', - valueType: 'text', - width: 50, - }, - { - title: '供应商名称', - dataIndex: 'companyName', - valueType: 'text', - width: 120, - }, - { - hideInTable: type1, - title: proDict == 'procurement_mode_7' ? '报价总金额净价(元)' : sectionQuot == '1' ? '报价(%)' : '报价(元)', - dataIndex: 'price', - width: 100, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('price', '报价', record.price, true, true) - } else { - return record.price - } - } - }, - { - hideInTable: type2, - title: proDict == 'procurement_mode_7' ? '报价总金额含税价(元)' : sectionQuot == '1' ? '评审价(%)' : '评审价(元)', - dataIndex: 'priceReview', - width: 100, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('priceReview', '评审价', record.priceReview, true, true) - } else { - return record.priceReview - } - } - }, - { - title: '商务分', - dataIndex: 'businessScore', - width: 60, - hideInTable: expandTotalScore, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('businessScore', '商务分', record.businessScore, false, true) - } else { - return record.businessScore - } - } - }, - { - title: '技术分', - width: 60, - dataIndex: 'technicalScore', - hideInTable: expandTotalScore, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('technicalScore', '技术分', record.technicalScore, false, true) - } else { - return record.technicalScore - } - } - }, - { - title: '服务分', - width: 60, - dataIndex: 'serviceScore', - hideInTable: expandTotalScore, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('serviceScore', '服务分', record.serviceScore, false, true) - } else { - return record.serviceScore - } - } - }, - { - title: '价格分', - width: 60, - dataIndex: 'priceScore', - hideInTable: expandTotalScore, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('priceScore', '价格分', record.priceScore, false, true) - } else { - return record.priceScore - } - } - }, - { - title: ( - - 综合得分 - setExpandTotalScore(!expandTotalScore)} style={{ cursor: 'pointer', color: '#1890ff' }}>{expandTotalScore ? "展开" : "收起"} - - ), - dataIndex: 'totalScore', - width: 120, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('totalScore', '综合得分', record.totalScore, false, true) - } else { - return record.totalScore - } - } - }, - { - hideInTable: defId === 'negotiation_single_simple', - title: '是否通过初步评审', - dataIndex: 'firstRvwResult', - width: 100, - render: (_: any, record: any) => rvwResultRender(_, record.firstRvwReason) - }, - { - hideInTable: type5 || defId === 'negotiation_single_simple', - title: '是否通过详审', - dataIndex: 'detailRvwResult', - width: 100, - render: (_: any, record: any) => rvwResultRender(_, record.detailRvwReason) - }, - { - hideInTable: type5 || defId === 'negotiation_single_simple', - title: '应答是否有效', - width: 80, - dataIndex: 'answerValid', - render: (_: any, record: any) => { - return record.answerValid === 1 ? '是' : record.answerValid === 0 ? '否' : '-' - } - }, - { - title: '是否' + name1 + '候选人', - dataIndex: 'winnerCandidate', - width: 100, - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnSelect('winnerCandidate', record.winnerCandidate) - } else { - return record.winnerCandidate === 1 ? '是' : '否' - } - } - }, - { - hideInTable: type5 || defId === 'negotiation_single_simple', - title: '是否拟' + name1 + '人', - width: 80, - dataIndex: 'winnerBidder', - render: (_: any, record: any) => { - return record.winnerBidder === 1 ? '是' : record.winnerBidder === 0 ? '否' : '-' - } - }, - { - hideInTable: type3, - title: '拟签约金额(不含增值税)(元)', - width: 150, - dataIndex: 'contractedMoney', - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return ( - <> - {returnInput('contractedMoney', '拟签约金额', record.contractedMoney, false, true)} - {returnInput('id', '供应商id', record.id, false, false, true)} - {returnInput('resultId', '结果id', record.resultId, false, false, true)} - {returnInput('companyId', '公司id', record.companyId, false, false, true)} - {returnInput('companyName', '公司名称', record.companyName, false, false, true)} - - ) - } else { - return record.contractedMoney - } - } - }, - { - hideInTable: type4, - title: '增值税金额(元)', - width: 150, - dataIndex: 'taxRatePrice', - render: (_: any, record: any) => { - if (defId === 'negotiation_single_simple' && record.pushStatus == "0") { - return returnInput('taxRatePrice', '增值税金额', record.taxRatePrice, false, true) - } else { - return record.taxRatePrice - } - } - }, - ] - return ( - [ - <> - - { - defId === 'negotiation_single_simple' ? - - : - - } - - - ]} - pagination={{ - defaultPageSize: 10, - showSizeChanger: false, - }} - /> - ) - }} - > - - - - )} - /> + + {ListData.map((item, index) => ( + + { setRefresh(Refresh + 1); }} getResultList={getResultList} ListData={ListData} pushResult={pushResult} /> + + ))} + setCurrentTable(false)} /> diff --git a/src/pages/Evaluation/BidControl/BidControlManager/components/ViewRiskSupplierModal.tsx b/src/pages/Evaluation/BidControl/BidControlManager/components/ViewRiskSupplierModal.tsx new file mode 100644 index 0000000..747868e --- /dev/null +++ b/src/pages/Evaluation/BidControl/BidControlManager/components/ViewRiskSupplierModal.tsx @@ -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 = (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 ( + <> + + + {riskSupplierData} + + + + ); +}; + +export default ViewRiskSupplierModal; diff --git a/src/pages/Evaluation/BidControl/BidControlManager/index.tsx b/src/pages/Evaluation/BidControl/BidControlManager/index.tsx index 6bf906d..3fcee5b 100644 --- a/src/pages/Evaluation/BidControl/BidControlManager/index.tsx +++ b/src/pages/Evaluation/BidControl/BidControlManager/index.tsx @@ -1,72 +1,20 @@ -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 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'; import BidDocSmartCheckFormModal from './components/BidDocSmartCheckFormModal'; -function callback(key) { - //getSessionUserData.roleIds; -} - -const title2 = [ - { - title: '序号', - dataIndex: 'num', - key: 'num', - }, - { - title: '投标人及报价', - dataIndex: 'tbrbj', - key: 'tbrbj', - }, - { - title: '预警信息', - dataIndex: 'yjxx', - key: 'yjxx', - }, - { - title: '操作', - dataIndex: 'cz', - key: 'cz', - }, -]; - - - -const columns: ProColumns[] = [ - { title: '序号', dataIndex: 'num', width: 50, }, - { title: '供应商名称', dataIndex: 'gysmc', }, - { title: 'IP地址',width: '20%', dataIndex: 'ip', }, - { title: 'MAC地址', dataIndex: 'mac', }, - { title: '上传时间', dataIndex: 'uploadTime',}, -]; - -const columnsMac: ProColumns[] = [ - { title: '序号', dataIndex: 'num', width: 50, }, - { title: '供应商名称', dataIndex: 'gysmc', }, - { title: '相同的MAC地址', dataIndex: 'mac', }, -]; - -const columns2: ProColumns[] = [ - { title: '序号', dataIndex: 'num', width: 50, }, - { title: '投标人及报价', dataIndex: 'tbrbj', }, - { title: '预警信息', dataIndex: 'yjxx', }, - { title: '操作', dataIndex: '', }, -]; - const Sing: React.FC<{}> = () => { //ip mac const [ViewRishFormVisible, setViewRishFormVisible] = useState(false); //查看详情窗口record const [ViewRishValues, setViewRishValues] = useState({}); - + //一致性 const [ViewQuoteWarningFormVisible, setViewQuoteWarningFormVisible] = useState(false); //查看详情窗口record @@ -86,45 +34,45 @@ const Sing: React.FC<{}> = () => { const [ViewJuryScoringRemindFormVisible, setViewJuryScoringRemindFormVisible] = useState(false); //查看详情窗口record const [ViewJuryScoringRemindValues, setViewJuryScoringRemindValues] = useState({}); - + //评审专家打分偏离度分析 const [ViewJuryScoringAnalysisFormVisible, setViewJuryScoringAnalysisFormVisible] = useState(false); //查看详情窗口record const [ViewJuryScoringAnalysisValues, setViewJuryScoringAnalysisValues] = useState({}); + //风控中心-风险限定供应商 + const [BidRiskSupplierVisible, setBidRiskSupplierVisible] = useState(false); + //风控中心-风险限定供应商record + const [BidRiskSupplierValues, setRiskSupplierValues] = useState({}); //投标文件智能审查 const [BidDocSmartCheckFormVisible, setBidDocSmartCheckFormVisible] = useState(false); //查看详情窗口record const [BidDocSmartCheckValues, setBidDocSmartCheckValues] = useState({}); - - - const getWarningList = async() => { - } return ( <> - { - ViewRishFormModal ? ( - { - setViewRishFormVisible(!ViewRishFormVisible); - setViewRishValues({}); - }} - > - - ) : null - } - { - ViewQuoteWarningFormModal ? ( - { - setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible); - setViewQuoteWarningValues({}); - }} - > + { + ViewRishFormModal ? ( + { + setViewRishFormVisible(!ViewRishFormVisible); + setViewRishValues({}); + }} + > + + ) : null + } + { + ViewQuoteWarningFormModal ? ( + { + setViewQuoteWarningFormVisible(!ViewQuoteWarningFormVisible); + setViewQuoteWarningValues({}); + }} + > ) : null @@ -193,6 +141,19 @@ const Sing: React.FC<{}> = () => { > ) : null + } + { + ViewRiskSupplierModal ? ( + { + setBidRiskSupplierVisible(!BidRiskSupplierVisible); + setRiskSupplierValues({}); + }} + > + + ) : null } ) diff --git a/src/pages/Evaluation/BidControl/BidControlManager/service.ts b/src/pages/Evaluation/BidControl/BidControlManager/service.ts index 5658ea8..aae681e 100644 --- a/src/pages/Evaluation/BidControl/BidControlManager/service.ts +++ b/src/pages/Evaluation/BidControl/BidControlManager/service.ts @@ -120,7 +120,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-rsms/v1/riskcenter/querySupplierLimit', { + method: 'post', + data: { + "assessRoomId": assessRoomId, + "projectId": projectId + } + }); +} diff --git a/src/pages/Evaluation/FileDecode/index.tsx b/src/pages/Evaluation/FileDecode/index.tsx index 5d0a59d..562c6cd 100644 --- a/src/pages/Evaluation/FileDecode/index.tsx +++ b/src/pages/Evaluation/FileDecode/index.tsx @@ -100,7 +100,7 @@ const FileDecode: React.FC<{}> = () => { if (JSON.stringify(record) == "{}") { return ''; } else { - const status = record?.registerInfoVOList[0].decryptStatus; + const status = record?.quoteOrOther == "1" ? record?.registerInfoVOList[0].decryptOtherStatus : record?.registerInfoVOList[0].decryptStatus; if (status == null || status === '1') { return '未解密' } else if (status === '2') { return '解密成功' } else if (status === '3') { return '解密失败' } @@ -124,7 +124,7 @@ const FileDecode: React.FC<{}> = () => { title: '操作', width: 80, render: (_: any, record: any) => { if (JSON.stringify(record) !== "{}" && jm) { - const status = record?.registerInfoVOList[0].decryptStatus; + const status = record?.quoteOrOther == "1" ? record?.registerInfoVOList[0].decryptOtherStatus : record?.registerInfoVOList[0].decryptStatus; if (record?.decryptEndDate !== '' && record?.decryptEndDate !== null && status !== '2') { return