线下评审

This commit is contained in:
jlzhangyx5
2025-07-11 09:02:30 +08:00
parent 7a60b03f8c
commit 80204e1062

View File

@ -119,6 +119,7 @@ class manager extends PureComponent {
sessionStorage.setItem("groupId", record.chatGroupId)
sessionStorage.setItem("expertGroupId", record.expertChatGroupId)
sessionStorage.setItem("roomTypeByEva", getURLInformation("roomType"))
sessionStorage.setItem("reviewMethod", record.reviewMethod)
sessionStorage.setItem("sectionId", record.sectionId)
sessionStorage.setItem("openTime", record.openTime)
this.setState({ loading: true })
@ -234,6 +235,16 @@ class manager extends PureComponent {
const params = {
id: record.id
}
//TODO zyx假数据-start
// confirm({
// title: '确认开启评审室?',
// icon: <ExclamationCircleOutlined />,
// centered: true,
// onOk() {
// onOpenRoom(params)
// },
// onCancel() { },
// });
this.props.dispatch({
type: "bidev/checkOpenBidSupplier",
payload: params.id,
@ -279,6 +290,7 @@ class manager extends PureComponent {
}
}
})
//TODO zyx假数据-end
}
onOpenRoom = (params) => {
const { defId } = this.state
@ -307,6 +319,99 @@ class manager extends PureComponent {
})
}
}
onOpenOffBizassessroom = async (record) => {
// const {checkOpenList} = this.props
const { onOpenOffRoom } = this
const { proMethod } = this.state
const params = {
id: record.id
}
//TODO zyx假数据-start
// confirm({
// title: '确认开启评审室?',
// icon: <ExclamationCircleOutlined />,
// centered: true,
// onOk() {
// onOpenOffRoom(params)
// },
// onCancel() { },
// });
this.props.dispatch({
type: "bidev/checkOpenBidSupplier",
payload: params.id,
callback: (response) => {
let checkOpenList = response.data
let methodDict = proMethod == null ? "procurement_mode_1" : proMethod
if (checkOpenList?.length == 0) {
message.error("应答的供应商为0家不能开启评审")
} else {
if (methodDict == "procurement_mode_5" && checkOpenList?.length < 2) {
confirm({
title: '确认开启评审室?',
icon: <ExclamationCircleOutlined />,
content: <span style={{ color: "#b30000" }}>注意应答的供应商少于2家</span>,
centered: true,
onOk() {
onOpenOffRoom(params)
},
onCancel() { },
});
} else if (methodDict == "procurement_mode_3" && checkOpenList?.length < 3) {
confirm({
title: '确认开启评审室?',
icon: <ExclamationCircleOutlined />,
content: <span style={{ color: "#b30000" }}>注意应答的供应商少于3家</span>,
centered: true,
onOk() {
onOpenOffRoom(params)
},
onCancel() { },
});
} else {
confirm({
title: '确认开启评审室?',
icon: <ExclamationCircleOutlined />,
centered: true,
onOk() {
onOpenOffRoom(params)
},
onCancel() { },
});
}
}
}
})
//TODO zyx假数据-end
}
onOpenOffRoom = (params) => {
const { defId } = this.state
this.setState({
loading: true
})
if (defId == "recruit_multi") {
this.props.dispatch({
type: "bidev/zmmultiOpenBizassessroom",
payload: { ...params },
callback: () => {
this.setState({
loading: false
})
}
})
} else {
this.props.dispatch({
type: "bidev/openOffBizassessroom",
payload: { ...params },
callback: () => {
this.setState({
loading: false
})
}
})
}
}
onResetVerificationCode = (record) => {
const { pageNo, pageSize, tpId } = this.state;
const params = {
@ -398,6 +503,16 @@ class manager extends PureComponent {
开启{sectionType}
</Button>
}
{
record.sectionStatus == 9 ? null :
status == 0 || status == 1 &&
<Button type="text" key="11"
onClick={() => { this.onOpenOffBizassessroom(record) }}
hidden={btnAuthority(["ebtp-agency-project-manager", "ebtp-purchase"]) || proMethod == 'procurement_mode_9'}
>
线下{sectionType}
</Button>
}
{
(status == 2 || (status == 3 && record?.closeReson == null)) &&
<Button