@@ -73,7 +75,10 @@ const ProjectDocumentation: React.FC = () => {
{sectionFirst.bidSectName}
- {createSection(record)}
+ {createSection(record, openingName)}
+
+ {openingName}时间:{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}
+
>
)
}
@@ -154,7 +159,7 @@ const ProjectDocumentation: React.FC = () => {
* @param record
* @returns
*/
- const createSection = (record: any) => {
+ const createSection = (record: any, openingName: string) => {
//标段信息
let sectionFirst = record?.sectionFirst;
//是否异常
@@ -222,7 +227,7 @@ const ProjectDocumentation: React.FC = () => {
sectionFirst.sectionCount > 1 && (
+
)}
trigger="hover"
overlayStyle={{ width: "45%" }}
@@ -236,7 +241,36 @@ const ProjectDocumentation: React.FC = () => {
)
}
-
+ /**
+ * 开标时间,评审开始时间字段显示
+ * @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;
+ }
+ };
/**
* 项目跟进
diff --git a/src/pages/Project/ProjectManage/ProjectManager/ProjectDocumentation/components/ProjectSectionInfo.tsx b/src/pages/Project/ProjectManage/ProjectManager/ProjectDocumentation/components/ProjectSectionInfo.tsx
index 80e7a6f..811f35b 100644
--- a/src/pages/Project/ProjectManage/ProjectManager/ProjectDocumentation/components/ProjectSectionInfo.tsx
+++ b/src/pages/Project/ProjectManage/ProjectManager/ProjectDocumentation/components/ProjectSectionInfo.tsx
@@ -8,14 +8,15 @@ import { getBusinessModuleName, getSectionBybidMethodDict, getTagColor } from ".
interface ProjectSectionInfoItem {
projectId: string,
- bidMethodDict: string
+ bidMethodDict: string,
+ openingName: string,
}
//进度条长度
const progressWidth = {
width: '180px'
}
const ProjectSectionInfo: React.FC = (props) => {
- const { projectId, bidMethodDict } = props;
+ const { projectId, bidMethodDict, openingName } = props;
const [listData, setListData] = useState([]);
const [loading, setLoading] = useState(false);
//获取字典
@@ -48,6 +49,9 @@ const ProjectSectionInfo: React.FC = (props) => {
{createSection(record)}
+
+ {openingName}时间:{isEmpty(record.sectionOpenTime) ? '-' : record.sectionOpenTime}
+
)
@@ -108,7 +112,7 @@ const ProjectSectionInfo: React.FC