评委会
This commit is contained in:
@ -205,8 +205,7 @@ const List: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
//取项目id
|
//取项目id
|
||||||
//proIdSet(getProId());//TODO zyx-假数据
|
proIdSet(getProId());
|
||||||
proIdSet("1920644626460389376");
|
|
||||||
// getHaveConfigSections();
|
// getHaveConfigSections();
|
||||||
}, []);
|
}, []);
|
||||||
return (
|
return (
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import { Button, Checkbox, Col, Collapse, DatePicker, Drawer, Form, Input, message, Modal, Popconfirm, Row, Select, Spin, Upload, Image, InputNumber } from 'antd'
|
import { Button, Checkbox, Col, Collapse, DatePicker, Drawer, Form, Input, message, Modal, Popconfirm, Row, Select, Spin, Upload, Image, InputNumber } from 'antd'
|
||||||
import ProTable, { ActionType, EditableProTable, ProColumns } from '@ant-design/pro-table';
|
import ProTable, { ActionType, EditableProTable, ProColumns } from '@ant-design/pro-table';
|
||||||
import { getList, saveGroup, delOne, saveMember, changeEx, queryVoList, changeMember, applyFor, roomStatus, juryTem, rePassWord, getUserPhoto, unlockAccount, getCrotchListUsingGET } from './service';
|
import { getList, saveGroup, delOne, saveMember, changeEx, queryVoList, changeMember, applyFor, roomStatus, juryTem, rePassWord, getUserPhoto, unlockAccount, getCrotchListUsingGET, getSecs } from './service';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { getDefId, getProId, getProMethod, getSessionUserData } from '@/utils/session';
|
import { getDefId, getProId, getProMethod, getProOpenTenderForm, getSessionUserData } from '@/utils/session';
|
||||||
import { getURLInformation, isEmpty } from '@/utils/CommonUtils';
|
import { getURLInformation, isEmpty } from '@/utils/CommonUtils';
|
||||||
import './judgList.less';
|
import './judgList.less';
|
||||||
import '@/assets/xsy_style.less';
|
import '@/assets/xsy_style.less';
|
||||||
@ -17,7 +17,7 @@ import ExpertSchemeProfessionalInfo from './ExpertSchemeProfessionalInfo';
|
|||||||
|
|
||||||
const JudgingPanel: React.FC<{}> = () => {
|
const JudgingPanel: React.FC<{}> = () => {
|
||||||
const modalHeight = window.innerHeight * 96 / 100;
|
const modalHeight = window.innerHeight * 96 / 100;
|
||||||
const proId = "1513327631627579392";//getProId();//TODO zyx-假数据
|
const proId = getProId();
|
||||||
const roomType = getURLInformation('roomType');
|
const roomType = getURLInformation('roomType');
|
||||||
// const tailLayout = { wrapperCol: { offset: 8, span: 20 }, };
|
// const tailLayout = { wrapperCol: { offset: 8, span: 20 }, };
|
||||||
const formLayout = { labelCol: { span: 8 }, wrapperCol: { span: 16 }, };
|
const formLayout = { labelCol: { span: 8 }, wrapperCol: { span: 16 }, };
|
||||||
@ -53,7 +53,7 @@ const JudgingPanel: React.FC<{}> = () => {
|
|||||||
const [editableKeys, setEditableRowKeys] = useState<any[]>([]);
|
const [editableKeys, setEditableRowKeys] = useState<any[]>([]);
|
||||||
const [tableData, setTableData] = useState<DataSourceType[]>([]);
|
const [tableData, setTableData] = useState<DataSourceType[]>([]);
|
||||||
function getShouName() {
|
function getShouName() {
|
||||||
const method = 'procurement_mode_1';//getProMethod();//TODO zyx-假数据
|
const method = getProMethod();
|
||||||
let showNameT: any = { zbr: '', bb: '', pb: '', }//相关标段 标书费 保证金 服务费
|
let showNameT: any = { zbr: '', bb: '', pb: '', }//相关标段 标书费 保证金 服务费
|
||||||
// let num = 3;
|
// let num = 3;
|
||||||
if (method === 'procurement_mode_1' || method === 'procurement_mode_2') {//招标
|
if (method === 'procurement_mode_1' || method === 'procurement_mode_2') {//招标
|
||||||
@ -328,34 +328,19 @@ const JudgingPanel: React.FC<{}> = () => {
|
|||||||
params['juryId'] = '';
|
params['juryId'] = '';
|
||||||
}
|
}
|
||||||
getShouName();//根据采购类型变名字
|
getShouName();//根据采购类型变名字
|
||||||
// TODO zyx假数据
|
modalVis == true ? getSecs({ ...params }).then((res) => {
|
||||||
// modalVis == true ? getSecs({ ...params }).then((res) => {
|
let data = [];
|
||||||
let data = [];
|
let secVals = [];
|
||||||
let secVals = [];
|
if (res.success) {
|
||||||
// TODO zyx假数据
|
secVals = res.data.map((item: any) => { return item.sectionId })
|
||||||
// if (res.success) {
|
data = res.data;
|
||||||
let res = {
|
}
|
||||||
"code": 200, "success": true, "message": "success",
|
setSections(data);
|
||||||
"data": [{
|
setSectionsVal(secVals);
|
||||||
"id": "1905086119331868672", "tpId": "1905086117686558720", "sectionId": "1905086117879496704",
|
setIndeterminate(!!checked.length && checked.length < secVals.length);
|
||||||
"sectionNum": "ZX00852409000329", "sectionName": "0926", "roomType": 2, "status": 1,
|
setCheckAll(checked.length === secVals.length);
|
||||||
"openTime": "2025-04-27 14:42:00", "juryNumber": "5"
|
updateData && String(updateData?.reserveStatus) == "1" && getEarliestTime(data, checked);//初始化赋值数据
|
||||||
},
|
}) : null;
|
||||||
{
|
|
||||||
"id": "1905086119331868671", "tpId": "1905086117686558720", "sectionId": "1905086117879496701",
|
|
||||||
"sectionNum": "ZX00852409000321", "sectionName": "0926-2", "roomType": 2,
|
|
||||||
"status": 1, "openTime": "2025-04-25 12:42:00", "juryNumber": "7"
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
secVals = res.data.map((item: any) => { return item.sectionId })
|
|
||||||
data = res.data;
|
|
||||||
// }
|
|
||||||
setSections(data);
|
|
||||||
setSectionsVal(secVals);
|
|
||||||
setIndeterminate(!!checked.length && checked.length < secVals.length);
|
|
||||||
setCheckAll(checked.length === secVals.length);
|
|
||||||
updateData && String(updateData?.reserveStatus) == "1" && getEarliestTime(data, checked);//初始化赋值数据
|
|
||||||
// }) : null;
|
|
||||||
|
|
||||||
}, [sectionCount]);
|
}, [sectionCount]);
|
||||||
|
|
||||||
@ -402,10 +387,7 @@ const JudgingPanel: React.FC<{}> = () => {
|
|||||||
let res = true;
|
let res = true;
|
||||||
const defId = getDefId();//16
|
const defId = getDefId();//16
|
||||||
const method = getProMethod();//9
|
const method = getProMethod();//9
|
||||||
//TODO zyx--假数据--start
|
const yushenType = getProOpenTenderForm();
|
||||||
const yushenType = "open_tender_form_1";
|
|
||||||
// const yushenType = getSessionProjectData().openTenderForm;
|
|
||||||
//TODO zyx--假数据--end
|
|
||||||
let manNumT = 5;
|
let manNumT = 5;
|
||||||
|
|
||||||
if (method === 'procurement_mode_1' || method === 'procurement_mode_2') {
|
if (method === 'procurement_mode_1' || method === 'procurement_mode_2') {
|
||||||
@ -487,8 +469,10 @@ const JudgingPanel: React.FC<{}> = () => {
|
|||||||
|
|
||||||
// 在 useEffect 中监听依赖项
|
// 在 useEffect 中监听依赖项
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
calculateExpertNumber();
|
if (Array.isArray(sections) && sections.length > 0) {
|
||||||
}, [form.getFieldValue('representativeNumber'), checkedList]);
|
calculateExpertNumber();
|
||||||
|
}
|
||||||
|
}, [form.getFieldValue('representativeNumber'), checkedList, sections]);
|
||||||
const tab1 = () => {//cqtab1
|
const tab1 = () => {//cqtab1
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -1042,16 +1026,12 @@ const JudgingPanel: React.FC<{}> = () => {
|
|||||||
});
|
});
|
||||||
}, [memberCount]);
|
}, [memberCount]);
|
||||||
async function queryOpenStatus(id: any) {//查是否开启评标 id:评委会id
|
async function queryOpenStatus(id: any) {//查是否开启评标 id:评委会id
|
||||||
//TODO ZYX假数据-start
|
await roomStatus(id).then((res) => {
|
||||||
openSet(false);
|
if (res.data) {
|
||||||
allEndSet(false);
|
openSet(res.data.anyOpenRoom);
|
||||||
// await roomStatus(id).then((res) => {
|
allEndSet(res.data.allEndRoom);
|
||||||
// if (res.data) {
|
}
|
||||||
// openSet(res.data.anyOpenRoom);
|
})
|
||||||
// allEndSet(res.data.allEndRoom);
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
//TODO ZYX假数据-end
|
|
||||||
}
|
}
|
||||||
const returnPanel = () => {//返回手风琴
|
const returnPanel = () => {//返回手风琴
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user