4.10 项目经理项目管理全部增加开标时间显示

This commit is contained in:
jl-zhoujl2
2022-04-10 19:50:46 +08:00
parent 7b7d01b689
commit 432c76fed9
2 changed files with 11 additions and 7 deletions

View File

@ -75,7 +75,7 @@ const ProjectDocumentation: React.FC = () => {
<div>
<h4 style={{ marginBottom: '0px' }}>{sectionFirst.bidSectName}</h4>
</div>
{createSection(record)}
{createSection(record, openingName)}
<div>
<text style={{ marginBottom: '0px' }}>{openingName}{isEmpty(sectionFirst.sectionOpenTime) ? '-' : sectionFirst.sectionOpenTime}</text>
</div>
@ -159,7 +159,7 @@ const ProjectDocumentation: React.FC = () => {
* @param record
* @returns
*/
const createSection = (record: any) => {
const createSection = (record: any, openingName: string) => {
//标段信息
let sectionFirst = record?.sectionFirst;
//是否异常
@ -227,7 +227,7 @@ const ProjectDocumentation: React.FC = () => {
sectionFirst.sectionCount > 1 && (
<Popover
content={(
<ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} />
<ProjectSectionInfo projectId={record.id} bidMethodDict={record.bidMethodDict} openingName={openingName} />
)}
trigger="hover"
overlayStyle={{ width: "45%" }}

View File

@ -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<ProjectSectionInfoItem> = (props) => {
const { projectId, bidMethodDict } = props;
const { projectId, bidMethodDict, openingName } = props;
const [listData, setListData] = useState<any[]>([]);
const [loading, setLoading] = useState<boolean>(false);
//获取字典
@ -48,6 +49,9 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
</Col>
<Col span={14}>
{createSection(record)}
<div>
<text style={{ marginBottom: '0px' }}>{openingName}{isEmpty(record.sectionOpenTime) ? '-' : record.sectionOpenTime}</text>
</div>
</Col>
</Row>
)
@ -108,7 +112,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
archiveStatus
? <Tag color="#52c41a">
</Tag>
</Tag>
: <Tag color={getTagColor(sectionFirst?.businessModule)}>
{getBusinessModuleName(dictData, bidMethodDict, sectionFirst?.businessModule)}
</Tag>
@ -120,7 +124,7 @@ const ProjectSectionInfo: React.FC<ProjectSectionInfoItem> = (props) => {
</Tag>
}
{isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount}
{isEmpty(sectionFirst.applyCount) ? "0" : sectionFirst.applyCount}
</div>
)
}