- 合格供应商不足三家,是否继续进行详审:
-
+ {qualifyNumber == 1 && isBxOneSecond ? '合格供应商仅一家,是否继续进行' : '合格供应商不足三家,是否继续进行详审'}:
+
是,继续进行
否,终止评审
+ {qualifyNumber == 1 && isBxOneSecond && radioValue == 1 &&
+ 是否需自定义评审流程:
+
+ 是,需自定义评审流程
+ 否,继续原流程
+
+
}
-
+
- {reviewStatus == 2 || reviewStatus == 3 ? (
+ {reviewStatus == 2 || reviewStatus == 3 || (qualifyNumber == 1 && isBxOneSecond && isNodeEnd) ? (
= () => {
const [packageList, setPackageList] = useState([]);
const method = getProMethod()
+ const roomId = getRoomId()
const actionRef = useRef();
const [count, countSet] = useState(0);//触发useEffect
const [maxturndata, maxturn] = useState([]); //最大轮次
@@ -45,6 +46,9 @@ const Index: React.FC<{}> = () => {
title: '操作',
width: '25%',
render: (text: any, record: any, index: any) => {
+ if (record.skipStatus == 1) {//跳过节点
+ return null
+ }
if (record.instTurnType == 2) {
if (record.nowTurnStatus == 1) {
// 只要轮次处于进行中时,改模块不可‘删除’
@@ -182,13 +186,13 @@ const Index: React.FC<{}> = () => {
}
// 删除轮次
const delTurn = async (turnId: any) => {
- countSet(count + 1);
const hide = message.loading('正在删除');
try {
const success = await deleteTurn(turnId).then((res) => res?.code == 200);
hide();
if (success) {
message.success('删除成功');
+ countSet(count + 1);
return true;
} else {
return false;
@@ -203,13 +207,13 @@ const Index: React.FC<{}> = () => {
//删除模块
const delNode = async (nodeId: any) => {
- countSet(count + 1);
const hide = message.loading('正在删除');
try {
const success = await deleteNode(nodeId).then((res) => res?.code == 200);
hide();
if (success) {
message.success('删除成功');
+ countSet(count + 1);
return true;
} else {
return false;
@@ -222,7 +226,6 @@ const Index: React.FC<{}> = () => {
}
};
useEffect(() => {
- let roomId = getRoomId()
getConfigList(roomId).then((res) => {
if (res?.code == 200) {
setPackageList(res.data)
@@ -234,21 +237,24 @@ const Index: React.FC<{}> = () => {
maxturn(res.data)
}
})
- getNodeList("TP").then((res) => {
- if (res?.code == 200) {
- allNodeList(res.data)
- }
- })
- getAssessRoom(roomId).then((res) => {
- if (res?.code == 200) {
- setAssessRoom(res.data)
- }
- })
setTimeout(() => {
countSet(count + 1);
}, 4000)
}, [count]);
+ useEffect(() => {
+ getAssessRoom(roomId).then((res) => {
+ if (res?.code == 200) {
+ setAssessRoom(res.data)
+ getNodeList(res?.data?.bxOneSecondProjectStatus ? "BX2nd" : "TP").then((res) => {
+ if (res?.code == 200) {
+ allNodeList(res.data)
+ }
+ })
+ }
+ })
+ }, [])
+
function methodStatus() {
let procurementMethod;
switch (method) {
diff --git a/src/utils/session.ts b/src/utils/session.ts
index b2a6a1c..9b33f1b 100644
--- a/src/utils/session.ts
+++ b/src/utils/session.ts
@@ -160,7 +160,7 @@ export function getUserToken() {
/**
* 获取session userRefreshToken
*/
- export function getUserRefreshToken() {
+export function getUserRefreshToken() {
let userRefreshToken: any | null = sessionStorage.getItem('refreshToken');
return userRefreshToken;
}
@@ -168,7 +168,7 @@ export function getUserToken() {
/**
* 获取session userScope
*/
- export function getUserScope() {
+export function getUserScope() {
let userScope: any | null = sessionStorage.getItem('scope');
return userScope;
}
@@ -246,7 +246,8 @@ export async function jurySaveInfo(record: any) {
}));
sessionStorage.setItem('roomId', record.id);
sessionStorage.setItem("groupId", record.chatGroupId)
- sessionStorage.setItem("expertGroupId",record.expertChatGroupId)
+ sessionStorage.setItem("expertGroupId", record.expertChatGroupId)
+ sessionStorage.setItem("roomTypeByEva", record.roomType)
await getQuotationMethodById(record.id)
}
@@ -270,7 +271,7 @@ export interface projectDataItem {
isIPassFile?: string
projectName?: string
openTenderForm?: string
- returnURL?:string
+ returnURL?: string
}
/**
@@ -301,7 +302,7 @@ export function followUpAProjectManager(projectData: projectDataItem): Promise {
removePurchaseCanOperate();
return new Promise(resolve => {
- if(projectData?.id == undefined || projectData?.id == null) {
+ if (projectData?.id == undefined || projectData?.id == null) {
message.error("项目数据错误,无法获取流程,请联系管理员")
} else {
getDefById(projectData?.id).then((res) => {
@@ -358,21 +359,21 @@ export function getPurchaseCanOperate() {
/**
* 设置session roleAuthority
*/
- export function setPurchaseCanOperate() {
+export function setPurchaseCanOperate() {
sessionStorage.setItem('purchaseCanOperate', '1');
}
/**
* 删除session roleAuthority
*/
- export function removePurchaseCanOperate() {
+export function removePurchaseCanOperate() {
sessionStorage.removeItem('purchaseCanOperate');
}
/**
* 获取returnURL
* @returns
*/
-export function getReturnURL () {
+export function getReturnURL() {
let returnURL = sessionStorage.getItem('returnURL');
return returnURL === null ? "" : returnURL;
}
@@ -381,7 +382,7 @@ export function getReturnURL () {
* 获取getRoomReturnURL
* @returns
*/
- export function getRoomReturnURL () {
+export function getRoomReturnURL() {
let roomReturnURL = sessionStorage.getItem('roomReturnURL');
return roomReturnURL === null ? "" : roomReturnURL;
}
@@ -390,7 +391,7 @@ export function getReturnURL () {
* 获取当前评审室对应标段的报价类型(只能在评审室内使用)
* @returns
*/
- export function getSectionQuot () {
+export function getSectionQuot() {
let returnURL = sessionStorage.getItem('sectionQuot');
return returnURL === null ? "0" : returnURL;
}
@@ -401,15 +402,15 @@ export function getReturnURL () {
* @returns 1-%(优惠率,折扣率) 0-元(总价,单价)
*/
export async function getQuotationMethodById(roomId: any) {
- if(roomId == undefined || roomId == '' || roomId == null) {
+ if (roomId == undefined || roomId == '' || roomId == null) {
message.error('参数缺失')
return
} else {
await getRoomDataById(roomId).then(async res => {
- if(res?.code == 200 && res?.success == true) {
+ if (res?.code == 200 && res?.success == true) {
let roomData = res?.data
await getSectionDataById(roomData?.sectionId).then(response => {
- if(response?.code == 200 && response?.success == true) {
+ if (response?.code == 200 && response?.success == true) {
let quotationMethodDict = response?.data?.quotationMethodDict
let result = (quotationMethodDict == "quotation_method_2" || quotationMethodDict == "quotation_method_3") ? "1" : "0"
sessionStorage.setItem("sectionQuot", result)//roomType存入session