4.6 增加开标时间字段
This commit is contained in:
@ -57,6 +57,8 @@ const ProjectDocumentation: React.FC = () => {
|
|||||||
render: (_: any, record: any) => {
|
render: (_: any, record: any) => {
|
||||||
//标段信息
|
//标段信息
|
||||||
let sectionFirst = record?.sectionFirst;
|
let sectionFirst = record?.sectionFirst;
|
||||||
|
//获取字段名称
|
||||||
|
let openingName = openingTimeText(record?.bidMethodDict, record?.examinationMethodDict);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Row>
|
<Row>
|
||||||
@ -74,6 +76,9 @@ const ProjectDocumentation: React.FC = () => {
|
|||||||
<h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4>
|
<h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4>
|
||||||
</div>
|
</div>
|
||||||
{createSection(record)}
|
{createSection(record)}
|
||||||
|
<div>
|
||||||
|
<text style={{ marginBottom: '0px' }}>{openingName}时间:{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}</text>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -236,7 +241,36 @@ const ProjectDocumentation: React.FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 开标时间,评审开始时间字段显示
|
||||||
|
* @param bidMethod
|
||||||
|
* @param examinationMethod
|
||||||
|
*/
|
||||||
|
const openingTimeText = (bidMethod: string, examinationMethod: string | null) => {
|
||||||
|
const bid = '开标';
|
||||||
|
const bid_pre = '资审开标';
|
||||||
|
const comparison = '开启';
|
||||||
|
const comparison_pre = '资审开启';
|
||||||
|
const negotiation = '谈判开始';
|
||||||
|
const review = '评审开始';
|
||||||
|
if (bidMethod == 'procurement_mode_1' || bidMethod == 'procurement_mode_2') {
|
||||||
|
if (examinationMethod == 'examination_method_1') { //预审
|
||||||
|
return bid_pre;
|
||||||
|
} else {
|
||||||
|
return bid;
|
||||||
|
}
|
||||||
|
} else if (bidMethod == 'procurement_mode_5' || bidMethod == 'procurement_mode_6') {
|
||||||
|
return negotiation;
|
||||||
|
} else if (bidMethod == 'procurement_mode_3') {
|
||||||
|
if (examinationMethod == 'examination_method_1') { //预审
|
||||||
|
return comparison_pre;
|
||||||
|
} else {
|
||||||
|
return comparison;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return review;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 项目跟进
|
* 项目跟进
|
||||||
|
Reference in New Issue
Block a user