4.1 同步发版内容到天梯
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import { Button, Table, Tabs, Space, Progress, Radio, Modal, Menu, Checkbox, Pagination, Input, message, Upload, Spin, Form, Collapse } from 'antd';
|
||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getMemberInfo, getEval, getUnlock, isStatus, checkShowData, getFileListByBid, getFile, submitSummary, submQualified } from './service';
|
||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getMemberInfo, getEval, getUnlock, isStatus, checkShowData, getFile, submitSummary, submQualified } from './service';
|
||||
import '@/assets/ld_style.less'
|
||||
import BidPreliminarySpeed from './components/BidPreliminarySpeed';
|
||||
import BidPreliminarySummary from './components/BidPreliminarySummary';
|
||||
@ -67,9 +67,6 @@ const Index: React.FC<{}> = () => {
|
||||
const [tableDisplay, setTableDisplay] = useState<boolean>(false);
|
||||
//上传文件id存储
|
||||
const [uploadId, setUploadId] = useState<any>();
|
||||
//上传文件列表
|
||||
const [fileListData, setFileListData] = useState<any[]>([]);
|
||||
const token = getUserToken();
|
||||
//单选数值存储
|
||||
const [radioValue, setRadioValue] = useState<number>();
|
||||
//是否显示合格供应商不足三家
|
||||
@ -85,9 +82,9 @@ const Index: React.FC<{}> = () => {
|
||||
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 columns: any[] = [ // 列表数据
|
||||
@ -236,7 +233,7 @@ const Index: React.FC<{}> = () => {
|
||||
if (res.code == 200) {
|
||||
setSpinVisible(false)
|
||||
bidEvalDetailDTOList = []
|
||||
|
||||
|
||||
let date = {
|
||||
bidEvalId: bidEvalId,
|
||||
reviewTurnId: reviewTurnId,
|
||||
@ -246,7 +243,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 {
|
||||
@ -270,7 +267,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("您有未完成的打分项,请完成后再提交!")
|
||||
@ -668,7 +665,7 @@ const Index: React.FC<{}> = () => {
|
||||
}
|
||||
|
||||
const handleOk = () => { // 确认解锁
|
||||
if(unLockArr != ''){
|
||||
if (unLockArr != '') {
|
||||
let date = {
|
||||
bidEvalId: bidEvalId,
|
||||
judgesStatus: '1',
|
||||
@ -713,7 +710,7 @@ const Index: React.FC<{}> = () => {
|
||||
form.submit();
|
||||
} else {
|
||||
const remarkList = getRemarkList(ref.current)
|
||||
if(remarkList) {
|
||||
if (remarkList) {
|
||||
let submitData = {
|
||||
reviewStatus: '2',
|
||||
reviewTurnId: getURLInformation("turnId"),
|
||||
@ -744,8 +741,8 @@ const Index: React.FC<{}> = () => {
|
||||
const Error: any[] = []
|
||||
totalSupplierColumns.forEach((item: any) => {
|
||||
const obj = data[data.length - 1][item?.supplierRegisterId]
|
||||
if(obj.judgesResult == false) {//判断为不合格情况
|
||||
if(isEmpty(obj.remarks)) {
|
||||
if (obj.judgesResult == false) {//判断为不合格情况
|
||||
if (isEmpty(obj.remarks)) {
|
||||
Error.push(item?.supplierRegisterName)
|
||||
return
|
||||
}
|
||||
@ -756,7 +753,7 @@ const Index: React.FC<{}> = () => {
|
||||
remarks: obj?.judgesResult ? null : obj?.remarks,
|
||||
})
|
||||
});
|
||||
if(Error.length > 0) {
|
||||
if (Error.length > 0) {
|
||||
message.info(`请填写【${Error[0]}】的不合格原因说明`)
|
||||
return false
|
||||
}
|
||||
@ -815,7 +812,7 @@ const Index: React.FC<{}> = () => {
|
||||
data["fileId"] = values.fileId
|
||||
}
|
||||
const remarkList = getRemarkList(ref.current)
|
||||
if(remarkList) {
|
||||
if (remarkList) {
|
||||
let submitData = {
|
||||
reviewStatus: '2',
|
||||
reviewTurnId: getURLInformation("turnId"),
|
||||
@ -827,33 +824,6 @@ const Index: React.FC<{}> = () => {
|
||||
}
|
||||
};
|
||||
|
||||
//根据bid获取到oid列表
|
||||
const getOidList = async (param: any) => {
|
||||
if (param == undefined || param == '' || param == null) { } else {
|
||||
let list: any[] = []
|
||||
list.push(param)
|
||||
await getFileListByBid({ bidList: list }).then(res => {
|
||||
let data = res[param]
|
||||
let list: any[] = []
|
||||
if (data.length == 0) {
|
||||
setFileListData([])
|
||||
} else {
|
||||
data.forEach((ele: any) => {
|
||||
list.push({
|
||||
uid: ele.id,
|
||||
name: ele.filename,
|
||||
status: 'done',
|
||||
oid: ele.id,
|
||||
businessId: ele.bid,
|
||||
url: `/api/core-service-ebtp-updownload/v1/attachment/download/oid/${ele.id}?Authorization=${token}`,
|
||||
})
|
||||
});
|
||||
setFileListData(list)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
bidEvalDetailDTOList = []
|
||||
let date = {
|
||||
@ -867,7 +837,7 @@ const Index: React.FC<{}> = () => {
|
||||
reviewType = res.data.reviewType
|
||||
bidEvalId = res.data.id
|
||||
reviewStatus = res.data.reviewStatus
|
||||
if(res.data.reviewStatus != 1){
|
||||
if (res.data.reviewStatus != 1) {
|
||||
endProgress = true
|
||||
setIsEndProgress(true)
|
||||
} else {
|
||||
@ -888,7 +858,6 @@ const Index: React.FC<{}> = () => {
|
||||
//初始化三家供应商判断数据
|
||||
await checkShowData(assessRoomId).then(response => {
|
||||
if (response?.code == 200) {
|
||||
getOidList(response?.data?.fileId)
|
||||
setUploadId(response?.data?.fileId)
|
||||
setRadioValue(response?.data?.continueStatus == undefined ? 1 : response?.data?.continueStatus)
|
||||
form.setFieldsValue({
|
||||
@ -969,14 +938,7 @@ const Index: React.FC<{}> = () => {
|
||||
label="说明文件"
|
||||
hidden={radioValue == 0}
|
||||
>
|
||||
{fileListData?.map((e: any, index: any) => (
|
||||
<a
|
||||
href={e.url}
|
||||
key={index + 1}
|
||||
>
|
||||
{e.name}
|
||||
</a>
|
||||
))}
|
||||
<ExtendUpload bid={uploadId} uploadProps={{ disabled: true }} />
|
||||
</Form.Item>
|
||||
) : (
|
||||
|
||||
|
Reference in New Issue
Block a user