手写签名,线下评审,预审评委会
This commit is contained in:
@ -5,7 +5,7 @@ import styles from './index.less';
|
||||
import { connect } from "dva";
|
||||
import { routerRedux } from 'dva/router';
|
||||
import React, { useState, useEffect, useReducer } from 'react';
|
||||
import { getSessionUserData, getRoomId, getProMethod, getSessionRoleData, getIPassDecode, getDefId, getProId } from '@/utils/session';
|
||||
import { getSessionUserData, getRoomId, getRoomStatus, getProMethod, getSessionRoleData, getIPassDecode, getDefId, getProId, getOfflineStatusById } from '@/utils/session';
|
||||
import { getURLInformation } from '@/utils/CommonUtils';
|
||||
import { getLeader, isShowResult, isShowCount, getErrorStatus, getRiskStatus, isShowRiskModal, saveConfirm, isLeaderConfirm } from './service';
|
||||
import logo from '@/images/opening/logo.svg'
|
||||
@ -34,8 +34,13 @@ const BiddingRoom = (props) => {
|
||||
let data = getSessionUserData();
|
||||
//获取比选一阶段二次项目,自定义流程,当前供应商
|
||||
const isBxOneSecondCustom = sessionStorage.getItem("isBxOneSecondCustom");
|
||||
//评审方式:状态:0-默认,1-已确认配置分工及组长
|
||||
const roomJuryConfigStatus = sessionStorage.getItem("roomJuryConfigStatus");
|
||||
//评审方式:0-线上、1-线下
|
||||
const roomReviewMethod = sessionStorage.getItem("roomReviewMethod");
|
||||
//获取评审室id
|
||||
const roomId = getRoomId();
|
||||
const roomStatus = getRoomStatus();
|
||||
const [list, setList] = useState();
|
||||
//风险提示文字弹窗控制
|
||||
const [riskVisible, setRiskVisible] = useState(false);
|
||||
@ -96,6 +101,28 @@ const BiddingRoom = (props) => {
|
||||
path: "/EvaRoom/Evaluation/projectManager/ReviewResults/Manager",
|
||||
text: "评审结果"
|
||||
}]
|
||||
//项目经理角色
|
||||
let managerOffList = [
|
||||
{
|
||||
id: 1,
|
||||
path: "/EvaRoom",
|
||||
text: "基本信息"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
path: "/EvaRoom/BiddingDocumentsDecrypt",
|
||||
text: `${responseType}文件查看`
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
path: "/EvaRoom/Evaluation/BidControl/BidControlManager",
|
||||
text: "风险点展示"
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
path: "/EvaRoom/Evaluation/projectManager/ReviewResults/ManagerEntry",
|
||||
text: "评审结果录入"
|
||||
}]
|
||||
let JuryList = [
|
||||
{
|
||||
id: 1,
|
||||
@ -179,13 +206,25 @@ const BiddingRoom = (props) => {
|
||||
|
||||
//评审结果页签点击事件
|
||||
const onclick = async (path, id) => {
|
||||
await getOfflineStatusById(roomId)
|
||||
if ((role == 'ebtp-agency-project-manager' || role == 'ebtp-purchase') && id == 8) { //代理&采购经理进入评审结果
|
||||
const success = await isClickResult();
|
||||
if (success) {
|
||||
history.push({ pathname: path });
|
||||
setSelectedPath(path);
|
||||
if (roomReviewMethod == 0){
|
||||
const success = await isClickResult();
|
||||
if (success) {
|
||||
history.push({ pathname: path });
|
||||
setSelectedPath(path);
|
||||
} else {
|
||||
message.info("未到评审结果环节,无法进入评审结果")
|
||||
}
|
||||
} else {
|
||||
message.info("未到评审结果环节,无法进入评审结果")
|
||||
console.log("roomJuryConfigStatus", roomJuryConfigStatus)
|
||||
|
||||
if (roomJuryConfigStatus == 1) {
|
||||
history.push({ pathname: path });
|
||||
setSelectedPath(path);
|
||||
} else {
|
||||
message.info("未到评审结果环节,无法进入评审结果")
|
||||
}
|
||||
}
|
||||
} else if (role == 'ebtp-expert' && id == 8) {//专家进入评审结果
|
||||
const success = await isClickResult();
|
||||
@ -246,14 +285,14 @@ const BiddingRoom = (props) => {
|
||||
if (res?.data == "Review") {
|
||||
return "/EvaRoom/Evaluation/expert/ReviewResults/Jury"
|
||||
} else {
|
||||
const result = await isLeaderConfirm({ assessRoomId: roomId });//供应商股权关系-专家组长是否确认风险
|
||||
if (result?.success && result?.data) {
|
||||
//TODO zyx暂时不需要const result = await isLeaderConfirm({ assessRoomId: roomId });//供应商股权关系-专家组长是否确认风险
|
||||
//TODO zyx暂时不需要if (result?.success && result?.data) {
|
||||
return "/EvaRoom/Evaluation/expert/ReviewResults/GroupLeader"
|
||||
} else {
|
||||
setIsResult(true)
|
||||
setRiskVisible(true)
|
||||
return false;
|
||||
}
|
||||
//TODO zyx暂时不需要} else {
|
||||
//TODO zyx暂时不需要 setIsResult(true)
|
||||
//TODO zyx暂时不需要 setRiskVisible(true)
|
||||
//TODO zyx暂时不需要 return false;
|
||||
//TODO zyx暂时不需要}
|
||||
}
|
||||
} else {
|
||||
return false
|
||||
@ -347,7 +386,11 @@ const BiddingRoom = (props) => {
|
||||
}
|
||||
//代理&项目经理
|
||||
if (role == "ebtp-agency-project-manager" || role == "ebtp-purchase") {//代理和采购经理
|
||||
setList(managerList);
|
||||
if(true){
|
||||
setList(managerOffList);
|
||||
}else {
|
||||
setList(managerList);
|
||||
}
|
||||
} else if (role == "ebtp-expert") {//专家
|
||||
setList(JuryList)
|
||||
} else if (role == "ebtp-supplier") {//供应商
|
||||
|
Reference in New Issue
Block a user