3.10 工程代码同步master

This commit is contained in:
jl-zhoujl2
2022-03-10 14:24:13 +08:00
parent 41ab55a4ac
commit 62f6b07ee2
914 changed files with 143121 additions and 29110 deletions

View File

@ -0,0 +1,105 @@
/**
* 公告时间相关提示 工具
*/
import { getDefId, getProOpenTenderForm } from "@/utils/session";
import { getURLInformation } from "./CommonUtils";
/**
* 文件获取开始时间
* */
export function AnnouncementGetMsg1(Msg?: any) {
let msg = null;
msg = Msg + "需晚于当前时间";
return msg;
}
export function AnnouncementGetMsg2(Msg1?: any, Msg2?: any) {
let msg = null;
let days = 5;
let defId = getDefId();
if (defId == "negotiation_competitive_public"//竞争性谈判-公开参与
|| defId == "negotiation_competitive_invite"//竞争性谈判-邀请参与
|| defId == "negotiation_single"//单一来源
|| defId == "negotiation_single_simple"//单一来源简化
) {
days = 3
}
msg = Msg1 + "需与" + Msg2 + "间隔不少于" + days + "天";
return msg;
}
export function AnnouncementGetMsg3(Msg1?: any, Msg2?: any, Msg3?: any) {
let msg = null;
let defId = getDefId();
let roomType = getURLInformation('roomType') //预审后审标识 1-预审阶段 2-后审阶段
let tendF = getProOpenTenderForm();
if (defId == "negotiation_competitive_public"//竞争性谈判-公开参与
|| defId == "negotiation_competitive_invite"//竞争性谈判-邀请参与
|| defId == "negotiation_single"//单一来源
|| defId == "negotiation_single_simple"//单一来源简化
|| defId == "recruit_multi"//招募 多轮
|| defId == "recruit"//招募 单轮
) {
msg = Msg1 + "需晚于或等于" + Msg2;
} else if (defId == "comparison_one_prequalification"//公开比选一阶段-资格预审
|| defId == "comparison_multi_prequalification"//公开比选多阶段-资格预审
|| defId == "comparison_one"//公开比选一阶段
|| defId == "comparison_multi"//公开比选多阶段
) {
msg = Msg1 + "需与" + Msg3 + "间隔不少于8天";//2022.2.21比选时间间隔业务逻辑修改
} else if (defId == "bid_qualification"//公开招标-资格后审
|| defId == "bid_invitation"//邀请招标
) {
/*依法必招*/
if (tendF == "open_tender_form_1") {
msg = Msg1 + "需与" + Msg3 + "间隔不少于20天,并且晚于或等于" + Msg2;
} else {
msg = Msg1 + "需与" + Msg3 + "间隔不少于15天,并且晚于或等于" + Msg2;
}
} else if (defId == "bid_prequalification"//公开招标-资格预审
) {
if (roomType == '1') {//预审阶段
msg = Msg1 + "需与" + Msg2 + "间隔不少于5天";
} else { //后审阶段
/*依法必招*/
if (tendF == "open_tender_form_1") {
msg = Msg1 + "需与" + Msg3 + "间隔不少于20天,并且晚于或等于" + Msg2;
} else {
msg = Msg1 + "需与" + Msg3 + "间隔不少于15天,并且晚于或等于" + Msg2;
}
}
}
return msg;
}
export function AnnouncementGetMsg4(Msg1?: any, Msg2?: any) {
let msg = null;
let defId = getDefId();
if (defId == "bid_prequalification"//公开招标-资格预审
|| defId == "bid_qualification"//公开招标-资格后审
|| defId == "bid_invitation"//邀请招标
) {
msg = Msg1 + "需与" + Msg2 + "相同";
/*
* * -12- negotiation_competitive_public 竞争性谈判-公开参与
* -13- negotiation_competitive_invite 竞争性谈判-邀请参与
* * -14- negotiation_single 单一来源
* * -6- comparison_one_prequalification 公开比选一阶段-资格预审
* -7- comparison_multi_prequalification 公开比选多阶段-资格预审
* -8- comparison_one 公开比选一阶段
* -9- comparison_multi 公开比选多阶段
* * -10- recruit 公开招募 即 单轮
* */
} else if (defId == "negotiation_competitive_public"//竞争性谈判-公开参与
|| defId == "negotiation_competitive_invite"//竞争性谈判-邀请参与
|| defId == "negotiation_single"//单一来源
|| defId == "negotiation_single_simple"//单一来源简化
|| defId == "comparison_one_prequalification"//公开比选一阶段-资格预审
|| defId == "comparison_multi_prequalification"//公开比选多阶段-资格预审
|| defId == "comparison_one"//公开比选一阶段
|| defId == "comparison_multi"//公开比选多阶段
|| defId == "recruit"//公开招募 即 单轮
) {
msg = Msg1 + "需晚于或等于" + Msg2;
}
return msg;
}