5.9 上传投标文件、应答情况查看页、评审打分页,评审汇总表,评审结果MAC强控

This commit is contained in:
jl-zhoujl2
2022-05-09 15:03:18 +08:00
parent 216d65fe55
commit c929279c3c
15 changed files with 729 additions and 129 deletions

View File

@ -6,6 +6,7 @@ import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
import { getProMethod, getRoomId } from '@/utils/session';
import { getURLInformation } from '@/utils/CommonUtils';
import ExtendUpload from '@/utils/ExtendUpload';
import MACAddressPrompt from '@/pages/Evaluation/BidControl/BidControlManager/components/MACAddressPrompt';
interface BidPreliminarySummaryProps {
totalSupplier: any;
@ -168,7 +169,12 @@ const PreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
];
columns.forEach((ele: any) => {
tcolumns[4].children.push({
title: ele.supplierRegisterName,
title: (
<>
{ele.supplierRegisterName}
{ele.macConflictStatus && <MACAddressPrompt type='other' companyName={ele.supplierRegisterName} />}
</>
),
dataIndex: ele.supplierRegisterId,
key: ele.supplierRegisterId,
render: (value: any, record: any, index: any) => {

View File

@ -7,6 +7,7 @@ import FileDown from '@/utils/Download';
import { getURLInformation } from '@/utils/CommonUtils';
import FirstTrialTable from '../BidPreliminaryManager/module/FirstTrialTable';
import { btnAuthority } from '@/utils/authority';
import MACAddressPrompt from '../../BidControl/BidControlManager/components/MACAddressPrompt';
const { TabPane } = Tabs;
const { TextArea } = Input;
@ -214,7 +215,7 @@ const Index: React.FC<{}> = () => {
}
getProgress({ ...date }).then((res) => {
if (res.code == 200) {
if(res.data == 100){
if (res.data == 100) {
submitApi()
} else {
message.error("您有未完成的打分项,请完成后再提交!")
@ -237,7 +238,7 @@ const Index: React.FC<{}> = () => {
}
getProgress({ ...date }).then((res) => {
if (res.code == 200) {
if(res.data == 100){
if (res.data == 100) {
setProcess(res.data)
submitApi()
} else {
@ -359,7 +360,12 @@ const Index: React.FC<{}> = () => {
totalSupplierColumns.slice(currentDate, currentDate + 3).map((item: any) => {
supplierId.push(item.supplierRegisterId)
newColumns.push({
title: item.supplierRegisterName,
title: (
<>
{item.supplierRegisterName}
{item.macConflictStatus && <MACAddressPrompt type='score' />}
</>
),
dataIndex: item.supplierRegisterId,
render: (text: any, record: any) => {
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {

View File

@ -1,10 +1,11 @@
import React, { useEffect, useImperativeHandle, useState } from 'react';
import { Input, Pagination, Table } from 'antd';
import React, { useEffect, useImperativeHandle, useRef, useState } from 'react';
import { Input, Pagination, Select, Table } from 'antd';
import '@/assets/ld_style.less';
import { getSupplierScoreData, isCheckShow } from '../service';
import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
import { getURLInformation } from '@/utils/CommonUtils';
import { getProMethod, getRoomId } from '@/utils/session';
import MACAddressPrompt from '@/pages/Evaluation/BidControl/BidControlManager/components/MACAddressPrompt';
interface BidPreliminarySummaryProps {
totalSupplier?: any;
@ -29,12 +30,15 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
const [tableDataSource, setTableDataSource] = useState<any[]>([]);
//刷新参数
const [count, setCount] = useState<number>(0);
const tableDataRef = useRef<any[]>([]);
const isShowRef = useRef<boolean>(false);
tableDataRef.current = tableDataSource;
const proMethod = getProMethod();//获取采购方式
let showNameT: any = { tbr: '', pb: '', tb: '' }//投标人供应商
if (proMethod === 'procurement_mode_1' || proMethod === 'procurement_mode_2') {//招标
showNameT = { tbr: '投标人', pb: '评标', tb: '投标' };
showNameT = { tbr: '投标人', pb: '评标', tb: '投标' };
} else {
showNameT = { tbr: '供应商', pb: '评审', tb: '应答' }
showNameT = { tbr: '供应商', pb: '评审', tb: '应答' }
}
const { TextArea } = Input;
@ -76,6 +80,7 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
//判断采购方式是否符合
isCheckShow(juryDataParams.assessRoomId).then((res) => {
if (res.code == 200) {
isShowRef.current = res.data;
let count = 0;
totalSupplier.forEach((ele: any) => {
if (
@ -133,6 +138,12 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
return pre
}
}, 0)
for (const key in inner.earlyMap) {
if (Object.prototype.hasOwnProperty.call(inner.earlyMap, key)) {
const element = inner.earlyMap[key];
element['originalResult'] = element.judgesResult;
}
}
if (count == inner.length - 1) {
count = 0
} else {
@ -232,7 +243,12 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
];
columns.forEach((ele: any) => {
tcolumns[4].children.push({
title: ele.supplierRegisterName,
title: (
<>
{ele.supplierRegisterName}
{ele.macConflictStatus && <MACAddressPrompt type='other' companyName={ele.supplierRegisterName} />}
</>
),
dataIndex: ele.supplierRegisterId,
key: ele.supplierRegisterId,
render: (value: any, record: any, index: any) => {
@ -261,6 +277,7 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
return readOnly ? value.remarks : (!value.judgesResult ? <TextArea
onBlur={(e) => {
value.remarks = e.target.value
setTableDataSource([...tableDataRef.current])
}}
maxLength={500}
autoSize
@ -268,7 +285,33 @@ const BidPreliminarySummary: React.FC<BidPreliminarySummaryProps> = (props) => {
defaultValue={value.remarks}
/> : null)
} else {
return value.judgesResult == true ? '合格' : '不合格';
// return value.judgesResult == true ? '合格' : '不合格';
return readOnly || !ele.macConflictStatus ? value.judgesResult ? '合格' : '不合格' : (<Select
onChange={(e) => {
value.judgesResult = !!e;
tableDataRef.current[tableDataRef.current.length - 1][ele.supplierRegisterId].judgesResult = !!e;
setTableDataSource([...tableDataRef.current])
if (isShowRef.current) {
let count = 0;
totalSupplier.forEach((ele: any) => {
if (tableDataRef.current[tableDataRef.current.length - 1][ele.supplierRegisterId].judgesResult) {
count = count + 1;
}
});
if (count < 3) {
onSubmit(true)
} else {
onSubmit(false)
}
}
}}
options={[
{ label: '合格', value: 1 },
{ label: '不合格', value: 0 },
]}
style={{ width: '100px' }}
defaultValue={value.judgesResult ? 1 : 0}
/>)
}
}
},

View File

@ -11,6 +11,7 @@ import FileDown from '@/utils/Download';
import { getURLInformation, isEmpty } from '@/utils/CommonUtils';
import ExtendUpload from '@/utils/ExtendUpload';
import { btnAuthority } from '@/utils/authority';
import MACAddressPrompt from '../../BidControl/BidControlManager/components/MACAddressPrompt';
const { TabPane } = Tabs;
const { SubMenu } = Menu;
@ -444,7 +445,12 @@ const Index: React.FC<{}> = () => {
totalSupplierColumns.slice(currentDate, currentDate + 3).map((item: any) => {
supplierId.push(item.supplierRegisterId)
newColumns.push({
title: item.supplierRegisterName,
title: (
<>
{item.supplierRegisterName}
{item.macConflictStatus && <MACAddressPrompt type='other' companyName={item.supplierRegisterName} />}
</>
),
dataIndex: item.supplierRegisterId,
render: (text: any, record: any) => {
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
@ -751,6 +757,8 @@ const Index: React.FC<{}> = () => {
supplierRegisterId: item?.supplierRegisterId,
qualifiedStatus: obj?.judgesResult ? '1' : '2',
remarks: obj?.judgesResult ? null : obj?.remarks,
originalResult: obj?.originalResult ? '1' : '2',
modifyResultStatus: obj?.judgesResult != obj?.originalResult,
})
});
if (Error.length > 0) {