预审短流程-开启评审室(取消评委会校验,信息展示)
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { fetchManagerList,openBizassessroom,openOffBizassessroom,resetVerificationCode,fetchJuryList,fetchSupplierList
|
import { fetchManagerList,openBizassessroom,openPreBizassessroom,openOffBizassessroom,resetVerificationCode,fetchJuryList,fetchSupplierList
|
||||||
,fetchJuryMemInfo,updateJuryMemInfo,validateVerificationCode,fetchbidslist
|
,fetchJuryMemInfo,updateJuryMemInfo,validateVerificationCode,fetchbidslist
|
||||||
,fetchPreSupplierList,fetchPreList,fetchPreListt,bxmultifetchPreListt,pushRedirectRe,getCheckedByRoomId,checkOpenBidSupplier,zmmultiOpenBizassessroom } from '../services/bidev';
|
,fetchPreSupplierList,fetchPreList,fetchPreListt,bxmultifetchPreListt,pushRedirectRe,getCheckedByRoomId,checkOpenBidSupplier,zmmultiOpenBizassessroom } from '../services/bidev';
|
||||||
import { message } from 'antd';
|
import { message } from 'antd';
|
||||||
@ -43,6 +43,23 @@ export default {
|
|||||||
}
|
}
|
||||||
callback();
|
callback();
|
||||||
},
|
},
|
||||||
|
// 开启预审评审室
|
||||||
|
*openPreBizassessroom({payload,callback}, { call, put }){
|
||||||
|
const response =yield call(openPreBizassessroom,payload)
|
||||||
|
if(response?.code==200){
|
||||||
|
// 查询招标代理列表
|
||||||
|
const params={
|
||||||
|
pageNo:1,
|
||||||
|
pageSize:10,
|
||||||
|
// roomType:2,
|
||||||
|
roomType: getURLInformation('roomType'),
|
||||||
|
tpId:getProId()//项目id
|
||||||
|
}
|
||||||
|
yield put({ type: 'fetchManagerList', payload: {...params} });
|
||||||
|
message.success("开启成功!")
|
||||||
|
}
|
||||||
|
callback();
|
||||||
|
},
|
||||||
// 开启线下评审室
|
// 开启线下评审室
|
||||||
*openOffBizassessroom({payload,callback}, { call, put }){
|
*openOffBizassessroom({payload,callback}, { call, put }){
|
||||||
const response =yield call(openOffBizassessroom,payload)
|
const response =yield call(openOffBizassessroom,payload)
|
||||||
|
@ -233,16 +233,6 @@ class manager extends PureComponent {
|
|||||||
const params = {
|
const params = {
|
||||||
id: record.id
|
id: record.id
|
||||||
}
|
}
|
||||||
//TODO zyx假数据-start
|
|
||||||
// confirm({
|
|
||||||
// title: '确认开启评审室?',
|
|
||||||
// icon: <ExclamationCircleOutlined />,
|
|
||||||
// centered: true,
|
|
||||||
// onOk() {
|
|
||||||
// onOpenRoom(params)
|
|
||||||
// },
|
|
||||||
// onCancel() { },
|
|
||||||
// });
|
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
type: "bidev/checkOpenBidSupplier",
|
type: "bidev/checkOpenBidSupplier",
|
||||||
payload: params.id,
|
payload: params.id,
|
||||||
@ -288,6 +278,93 @@ class manager extends PureComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
onOpenPreBizassessroom = async (record) => {
|
||||||
|
const { onOpenPreRoom } = this
|
||||||
|
const { proMethod } = this.state
|
||||||
|
const params = {
|
||||||
|
id: record.id
|
||||||
|
}
|
||||||
|
//TODO zyx假数据-start
|
||||||
|
let methodDict = proMethod == null ? "procurement_mode_1" : proMethod
|
||||||
|
if (methodDict == "procurement_mode_5" && checkOpenList?.length < 2) {
|
||||||
|
confirm({
|
||||||
|
title: '确认开启评审室?',
|
||||||
|
icon: <ExclamationCircleOutlined />,
|
||||||
|
content: <span style={{ color: "#b30000" }}>注意:应答的供应商少于2家</span>,
|
||||||
|
centered: true,
|
||||||
|
onOk() {
|
||||||
|
onOpenPreRoom(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() {
|
||||||
|
onOpenPreRoom(params)
|
||||||
|
},
|
||||||
|
onCancel() { },
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
confirm({
|
||||||
|
title: '确认开启评审室?',
|
||||||
|
icon: <ExclamationCircleOutlined />,
|
||||||
|
centered: true,
|
||||||
|
onOk() {
|
||||||
|
onOpenPreRoom(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() {
|
||||||
|
// onOpenPreRoom(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() {
|
||||||
|
// onOpenPreRoom(params)
|
||||||
|
// },
|
||||||
|
// onCancel() { },
|
||||||
|
// });
|
||||||
|
// } else {
|
||||||
|
// confirm({
|
||||||
|
// title: '确认开启评审室?',
|
||||||
|
// icon: <ExclamationCircleOutlined />,
|
||||||
|
// centered: true,
|
||||||
|
// onOk() {
|
||||||
|
// onOpenPreRoom(params)
|
||||||
|
// },
|
||||||
|
// onCancel() { },
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
//TODO zyx假数据-end
|
//TODO zyx假数据-end
|
||||||
}
|
}
|
||||||
onOpenRoom = (params) => {
|
onOpenRoom = (params) => {
|
||||||
@ -317,6 +394,21 @@ class manager extends PureComponent {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
onOpenPreRoom = (params) => {
|
||||||
|
const { defId } = this.state
|
||||||
|
this.setState({
|
||||||
|
loading: true
|
||||||
|
})
|
||||||
|
this.props.dispatch({
|
||||||
|
type: "bidev/openPreBizassessroom",
|
||||||
|
payload: { ...params },
|
||||||
|
callback: () => {
|
||||||
|
this.setState({
|
||||||
|
loading: false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
onOpenOffBizassessroom = async (record) => {
|
onOpenOffBizassessroom = async (record) => {
|
||||||
// const {checkOpenList} = this.props
|
// const {checkOpenList} = this.props
|
||||||
@ -491,7 +583,7 @@ class manager extends PureComponent {
|
|||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
record.sectionStatus == 9 ? null :
|
record.sectionStatus == 9 ? null :
|
||||||
status == 0 || status == 1 &&
|
(status == 0 || status == 1 && record.roomType == 2) &&
|
||||||
<Button type="text" key="1"
|
<Button type="text" key="1"
|
||||||
onClick={() => { this.onOpenBizassessroom(record) }}
|
onClick={() => { this.onOpenBizassessroom(record) }}
|
||||||
hidden={btnAuthority(["ebtp-agency-project-manager", "ebtp-purchase"]) || proMethod == 'procurement_mode_9'}
|
hidden={btnAuthority(["ebtp-agency-project-manager", "ebtp-purchase"]) || proMethod == 'procurement_mode_9'}
|
||||||
@ -499,6 +591,16 @@ class manager extends PureComponent {
|
|||||||
开启{sectionType}
|
开启{sectionType}
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
record.sectionStatus == 9 ? null :
|
||||||
|
(status == 0 || status == 1 && record.roomType == 1) &&
|
||||||
|
<Button type="text" key="1"
|
||||||
|
onClick={() => { this.onOpenPreBizassessroom(record) }}
|
||||||
|
hidden={btnAuthority(["ebtp-agency-project-manager", "ebtp-purchase"]) || proMethod == 'procurement_mode_9'}
|
||||||
|
>
|
||||||
|
开启{sectionType}
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
{
|
{
|
||||||
record.sectionStatus == 9 ? null :
|
record.sectionStatus == 9 ? null :
|
||||||
status == 0 || status == 1 &&
|
status == 0 || status == 1 &&
|
||||||
|
@ -239,7 +239,9 @@ const Index: React.FC<{}> = () => {
|
|||||||
<Descriptions.Item label={`${sectionType}次数`}>{data2.reviewMark == 1 ? data2.roomSort + data2.reviewSort : data2.roomSort}</Descriptions.Item>
|
<Descriptions.Item label={`${sectionType}次数`}>{data2.reviewMark == 1 ? data2.roomSort + data2.reviewSort : data2.roomSort}</Descriptions.Item>
|
||||||
<Descriptions.Item label={`${sectionType}时间`}>{data2.openTime}</Descriptions.Item>
|
<Descriptions.Item label={`${sectionType}时间`}>{data2.openTime}</Descriptions.Item>
|
||||||
</Descriptions>
|
</Descriptions>
|
||||||
{roleName == "ebtp-agency-project-manager" || roleName == "ebtp-purchase" ? (
|
{(roleName == "ebtp-agency-project-manager" || roleName == "ebtp-purchase") ? (
|
||||||
|
<>
|
||||||
|
{!data2.preBidShortProjectStatus && data2.roomType == 1 && (
|
||||||
<>
|
<>
|
||||||
<h3 className="first-title">评委会信息</h3>
|
<h3 className="first-title">评委会信息</h3>
|
||||||
<div>
|
<div>
|
||||||
@ -266,6 +268,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</>)}
|
||||||
<div className="baseinf-bottom-btn">
|
<div className="baseinf-bottom-btn">
|
||||||
<Button type="primary" size='large' disabled={juryConfigStatus == 1} onClick={() => onSubmit()}>开始{sectionType}</Button>
|
<Button type="primary" size='large' disabled={juryConfigStatus == 1} onClick={() => onSubmit()}>开始{sectionType}</Button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,12 @@ export async function openBizassessroom(params) {
|
|||||||
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/openRoom/${params.id}`,
|
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/openRoom/${params.id}`,
|
||||||
{ method: 'POST' });
|
{ method: 'POST' });
|
||||||
}
|
}
|
||||||
// 开启评审
|
// 开启预审评审
|
||||||
|
export async function openPreBizassessroom(params) {
|
||||||
|
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/openPreRoom/${params.id}`,
|
||||||
|
{ method: 'POST' });
|
||||||
|
}
|
||||||
|
// 开启线下评审
|
||||||
export async function openOffBizassessroom(params) {
|
export async function openOffBizassessroom(params) {
|
||||||
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/openOffRoom/${params.id}`,
|
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/openOffRoom/${params.id}`,
|
||||||
{ method: 'POST' });
|
{ method: 'POST' });
|
||||||
|
Reference in New Issue
Block a user