提交getOfflineStatusById
This commit is contained in:
@ -209,7 +209,7 @@ const BiddingRoom = (props) => {
|
|||||||
|
|
||||||
//评审结果页签点击事件
|
//评审结果页签点击事件
|
||||||
const onclick = async (path, id) => {
|
const onclick = async (path, id) => {
|
||||||
// await getOfflineStatusById(roomId)
|
await getOfflineStatusById(roomId)
|
||||||
if ((role == 'ebtp-agency-project-manager' || role == 'ebtp-purchase') && id == 8) { //代理&采购经理进入评审结果
|
if ((role == 'ebtp-agency-project-manager' || role == 'ebtp-purchase') && id == 8) { //代理&采购经理进入评审结果
|
||||||
if (roomReviewMethod == 0){
|
if (roomReviewMethod == 0){
|
||||||
const success = await isClickResult();
|
const success = await isClickResult();
|
||||||
|
@ -411,6 +411,8 @@ export async function getQuotationMethodById(roomId: any) {
|
|||||||
await getRoomDataById(roomId).then(async res => {
|
await getRoomDataById(roomId).then(async res => {
|
||||||
if (res?.code == 200 && res?.success == true) {
|
if (res?.code == 200 && res?.success == true) {
|
||||||
let roomData = res?.data
|
let roomData = res?.data
|
||||||
|
sessionStorage.setItem("roomJuryConfigStatus", roomData.juryConfigStatus)
|
||||||
|
sessionStorage.setItem("roomReviewMethod", roomData.reviewMethod)//评审方式:0-线上、1-线下
|
||||||
await getSectionDataById(roomData?.sectionId).then(response => {
|
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 quotationMethodDict = response?.data?.quotationMethodDict
|
||||||
@ -422,6 +424,26 @@ export async function getQuotationMethodById(roomId: any) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据评审室id获取是否开启线下评审
|
||||||
|
* @param roomId
|
||||||
|
* @returns 1-%(优惠率,折扣率) 0-元(总价,单价)
|
||||||
|
*/
|
||||||
|
export async function getOfflineStatusById(roomId: any) {
|
||||||
|
if (roomId == undefined || roomId == '' || roomId == null) {
|
||||||
|
message.error('参数缺失')
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
await getRoomDataById(roomId).then(async res => {
|
||||||
|
if (res?.code == 200 && res?.success == true) {
|
||||||
|
let roomData = res?.data
|
||||||
|
sessionStorage.setItem("roomJuryConfigStatus", roomData.juryConfigStatus)
|
||||||
|
sessionStorage.setItem("roomReviewMethod", roomData.reviewMethod)//评审方式:0-线上、1-线下
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 存储角色信息
|
* 存储角色信息
|
||||||
* @param {总数据} userData
|
* @param {总数据} userData
|
||||||
|
Reference in New Issue
Block a user