投标、定标事项类别变更
This commit is contained in:
@ -80,11 +80,24 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
const proceedingTypeByBidMethodDict = getProceedingTypeByBidMethodDict(bidMethodDict);
|
const proceedingTypeByBidMethodDict = getProceedingTypeByBidMethodDict(bidMethodDict);
|
||||||
const proceedingTypeByDefId = getProceedingTypeByDefId(getDefId())
|
const proceedingTypeByDefId = getProceedingTypeByDefId(getDefId())
|
||||||
const [spinning, setSping] = useState<boolean>(false);//加载遮罩
|
const [spinning, setSping] = useState<boolean>(false);//加载遮罩
|
||||||
|
const type = window.location.pathname.includes("SupplierQuestionsOrObjectionsDing");//获取url判断投标、定标提疑
|
||||||
|
|
||||||
const [proceedingTypeSelect] = useState(() => {
|
const [proceedingTypeSelect] = useState(() => {
|
||||||
let arr = proceedingTypeByDefId.map((item: any) =>
|
//根据浏览器rul获取type值false为招标阶段提疑 true为定标阶段提疑
|
||||||
<Option key={item.id} value={item.id}>{item.name}</Option>
|
//招标阶段 事项类别对应 招标文件异议、招标文件疑问 定标阶段事项类别对应 中标公示疑问、中标公示异议、中标结果疑问、中标结果异议
|
||||||
);
|
if (!type) {
|
||||||
return arr;
|
let arr = proceedingTypeByDefId.slice(-2) // 截取最后两个元素
|
||||||
|
.map((item: any) =>
|
||||||
|
<Option key={item.id} value={item.id}>{item.name}</Option>
|
||||||
|
);
|
||||||
|
return arr;
|
||||||
|
}else {
|
||||||
|
let arr = proceedingTypeByDefId.slice(0, 4) // 截取前四个元素
|
||||||
|
.map((item: any) =>
|
||||||
|
<Option key={item.id} value={item.id}>{item.name}</Option>
|
||||||
|
);
|
||||||
|
return arr;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const [proceedingTypeColumns] = useState(() => {
|
const [proceedingTypeColumns] = useState(() => {
|
||||||
let obj = {};
|
let obj = {};
|
||||||
@ -191,8 +204,6 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
})
|
})
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查看
|
* 查看
|
||||||
* @param data
|
* @param data
|
||||||
@ -235,7 +246,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 根据id删除数据
|
* 根据id删除数据
|
||||||
* @param id
|
* @param id
|
||||||
*/
|
*/
|
||||||
const deleteDataBasedOnId = (id: any) => {
|
const deleteDataBasedOnId = (id: any) => {
|
||||||
setVisibleDelete(false);
|
setVisibleDelete(false);
|
||||||
@ -246,7 +257,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 提交
|
* 提交
|
||||||
* @param data 数据
|
* @param data 数据
|
||||||
*/
|
*/
|
||||||
const submit = (data: any) => {
|
const submit = (data: any) => {
|
||||||
setVisibleSubmit(true);
|
setVisibleSubmit(true);
|
||||||
@ -254,7 +265,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 提交
|
* 提交
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
const submitDataBasedOnId = (data: any) => {
|
const submitDataBasedOnId = (data: any) => {
|
||||||
setVisibleSubmit(false);
|
setVisibleSubmit(false);
|
||||||
@ -278,7 +289,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 弹出层关闭
|
* 弹出层关闭
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
@ -291,7 +302,7 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 表单提交
|
* 表单提交
|
||||||
* @param data
|
* @param data
|
||||||
*/
|
*/
|
||||||
const onFinish = (data: any) => {
|
const onFinish = (data: any) => {
|
||||||
setVisible(false);
|
setVisible(false);
|
||||||
@ -484,14 +495,16 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
size="small"
|
size="small"
|
||||||
pagination={{ defaultPageSize: 10 }}
|
pagination={{ defaultPageSize: 10 }}
|
||||||
params={{ projectId: projectId, roomType: roomType, dissentType: "1" }}
|
params={{ projectId: projectId, roomType: roomType, dissentType: "1" ,type:type}}
|
||||||
actionRef={actionRef}
|
actionRef={actionRef}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
request={params => queryingPagingData('/api/biz-service-ebtp-tender/v1/clarifydissent/supplier_dissents', 'post', params)}
|
request={params => queryingPagingData('/api/biz-service-ebtp-tender/v1/clarifydissent/supplier_dissents', 'post', params)}
|
||||||
search={false}
|
search={false}
|
||||||
options={false}
|
options={false}
|
||||||
toolBarRender={() => [
|
toolBarRender={() => [
|
||||||
<Button key="added" onClick={added} type="primary" hidden={btnAuthority(["ebtp-supplier"])}>
|
<Button key="added" onClick={added} type="primary"
|
||||||
|
hidden={btnAuthority(["ebtp-supplier"])}
|
||||||
|
>
|
||||||
新增
|
新增
|
||||||
</Button>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
@ -516,4 +529,4 @@ const SupplierQuestionsOrObjections: React.FC<{}> = () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SupplierQuestionsOrObjections;
|
export default SupplierQuestionsOrObjections;
|
||||||
|
@ -19,12 +19,12 @@ export function getProceedingTypeByBidMethodDict(bidMethodDict: string): any[] {
|
|||||||
case 'procurement_mode_1':
|
case 'procurement_mode_1':
|
||||||
case 'procurement_mode_2':
|
case 'procurement_mode_2':
|
||||||
arr = [
|
arr = [
|
||||||
getProceedingType('1', '异议评标结果'),
|
getProceedingType('1', '中标公示疑问'),
|
||||||
getProceedingType('2', '异议开标过程'),
|
getProceedingType('2', '中标公示异议'),
|
||||||
getProceedingType('3', '异议中标公示'),
|
getProceedingType('3', '中标结果疑问'),
|
||||||
getProceedingType('4', '异议中标结果'),
|
getProceedingType('4', '中标结果异议'),
|
||||||
getProceedingType('5', '提疑资格预审文件'),
|
getProceedingType('5', '招标文件异议'),
|
||||||
getProceedingType('6', '提疑招标文件'),
|
getProceedingType('6', '招标文件疑问'),
|
||||||
]
|
]
|
||||||
break;
|
break;
|
||||||
case 'procurement_mode_3':
|
case 'procurement_mode_3':
|
||||||
@ -78,11 +78,12 @@ export function getProceedingTypeByDefId(defId: string): any[] {
|
|||||||
case 'bid_centralized_prequalification_bid':
|
case 'bid_centralized_prequalification_bid':
|
||||||
case 'bid_invitation':
|
case 'bid_invitation':
|
||||||
arr = [
|
arr = [
|
||||||
getProceedingType('1', '异议评标结果'),
|
getProceedingType('1', '中标公示疑问'),
|
||||||
getProceedingType('2', '异议开标结果'),
|
getProceedingType('2', '中标公示异议'),
|
||||||
getProceedingType('3', '异议中标公示'),
|
getProceedingType('3', '中标结果疑问'),
|
||||||
getProceedingType('4', '异议中标结果'),
|
getProceedingType('4', '中标结果异议'),
|
||||||
getProceedingType('6', '提疑招标文件'),
|
getProceedingType('5', '招标文件异议'),
|
||||||
|
getProceedingType('6', '招标文件疑问'),
|
||||||
]
|
]
|
||||||
break;
|
break;
|
||||||
case 'comparison_one_prequalification':
|
case 'comparison_one_prequalification':
|
||||||
|
Reference in New Issue
Block a user