根据是否预约电子评标室是否显示报道状态时间字段

This commit is contained in:
zhangyx
2022-09-15 14:09:29 +08:00
parent e27b34d2bc
commit f55a532839

View File

@ -27,6 +27,8 @@ const Index: React.FC<{}> = () => {
const [rateVisible, setRateVisible] = useState<boolean>(false);
//评审室开启状态 1-已确认配置分工及组长 0-未配置 null-旧数据无值
const [juryConfigStatus, setJuryConfigStatus] = useState<number>(1);
//是否预约电子评标室0-否1-是
const [reserveStatus, setReserveStatus] = useState<any>([]);
//评审分工 table data
const [dividedTableData, setDividedTableData] = useState<any[]>([])
//获取采购方式
@ -114,6 +116,7 @@ const Index: React.FC<{}> = () => {
await getInfList(id).then((res) => {
if (res?.code == 200) {
setTableData(res?.data);
setReserveStatus(res?.data[0]?.reserveStatus);
}
}).finally(() => {
setLoading(false);
@ -154,27 +157,29 @@ const Index: React.FC<{}> = () => {
width: '10%',
dataIndex: 'name',
render: (value, record) => (record.reportStatus == 0 ? "未报道" : record.reportStatus == 1 ? "已报道" : "-"),
hideInTable: reserveStatus != 1,
},
{
title: '报道时间',
width: '20%',
valueType: 'dateTime',
dataIndex: 'reportDate',
hideInTable: reserveStatus != 1,
},
{
title: '签到状态',
width: '10%',
width: reserveStatus != 1?'20%':'10%',
render: (value, record) => (record.status == 1 ? "未签到" : record.status == 2 ? "已签到" : "已申请回避"),
},
{
title: '签到时间',
width: '20%',
width: reserveStatus != 1?'30%':'20%',
valueType: 'dateTime',
dataIndex: 'loginTime',
},
{
title: '身份',
width: '25%',
width: '20%',
render: (_, record) => (record.duty == 2 ? '组长' : '组员'),
},
{