Merge branch '20220523-公开比选一阶段二次项目,资格审查合格供应商为一家时可增加自定义流程' of http://gitlab.tianti.tg.unicom.local/eshop/fe_service_ebtp_frontend into 20220309-供应商关联关系疑似违规行为
This commit is contained in:
@ -14,6 +14,7 @@ const layout = {
|
||||
const Index: React.FC<{}> = () => {
|
||||
const [packageList, setPackageList] = useState([]);
|
||||
const method = getProMethod()
|
||||
const roomId = getRoomId()
|
||||
const actionRef = useRef<ActionType>();
|
||||
const [count, countSet] = useState<any>(0);//触发useEffect
|
||||
const [maxturndata, maxturn] = useState<any>([]); //最大轮次
|
||||
@ -45,6 +46,9 @@ const Index: React.FC<{}> = () => {
|
||||
title: '操作',
|
||||
width: '25%',
|
||||
render: (text: any, record: any, index: any) => {
|
||||
if (record.skipStatus == 1) {//跳过节点
|
||||
return null
|
||||
}
|
||||
if (record.instTurnType == 2) {
|
||||
if (record.nowTurnStatus == 1) {
|
||||
// 只要轮次处于进行中时,改模块不可‘删除’
|
||||
@ -182,13 +186,13 @@ const Index: React.FC<{}> = () => {
|
||||
}
|
||||
// 删除轮次
|
||||
const delTurn = async (turnId: any) => {
|
||||
countSet(count + 1);
|
||||
const hide = message.loading('正在删除');
|
||||
try {
|
||||
const success = await deleteTurn(turnId).then((res) => res?.code == 200);
|
||||
hide();
|
||||
if (success) {
|
||||
message.success('删除成功');
|
||||
countSet(count + 1);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -203,13 +207,13 @@ const Index: React.FC<{}> = () => {
|
||||
|
||||
//删除模块
|
||||
const delNode = async (nodeId: any) => {
|
||||
countSet(count + 1);
|
||||
const hide = message.loading('正在删除');
|
||||
try {
|
||||
const success = await deleteNode(nodeId).then((res) => res?.code == 200);
|
||||
hide();
|
||||
if (success) {
|
||||
message.success('删除成功');
|
||||
countSet(count + 1);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -222,7 +226,6 @@ const Index: React.FC<{}> = () => {
|
||||
}
|
||||
};
|
||||
useEffect(() => {
|
||||
let roomId = getRoomId()
|
||||
getConfigList(roomId).then((res) => {
|
||||
if (res?.code == 200) {
|
||||
setPackageList(res.data)
|
||||
@ -234,21 +237,24 @@ const Index: React.FC<{}> = () => {
|
||||
maxturn(res.data)
|
||||
}
|
||||
})
|
||||
getNodeList("TP").then((res) => {
|
||||
if (res?.code == 200) {
|
||||
allNodeList(res.data)
|
||||
}
|
||||
})
|
||||
getAssessRoom(roomId).then((res) => {
|
||||
if (res?.code == 200) {
|
||||
setAssessRoom(res.data)
|
||||
}
|
||||
})
|
||||
setTimeout(() => {
|
||||
countSet(count + 1);
|
||||
}, 4000)
|
||||
}, [count]);
|
||||
|
||||
useEffect(() => {
|
||||
getAssessRoom(roomId).then((res) => {
|
||||
if (res?.code == 200) {
|
||||
setAssessRoom(res.data)
|
||||
getNodeList(res?.data?.bxOneSecondProjectStatus ? "BX2nd" : "TP").then((res) => {
|
||||
if (res?.code == 200) {
|
||||
allNodeList(res.data)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}, [])
|
||||
|
||||
function methodStatus() {
|
||||
let procurementMethod;
|
||||
switch (method) {
|
||||
|
Reference in New Issue
Block a user