15008 流程图 审批通过后 有的节点显示已审批 有的节点不显示 应该统一显示已审批 所有的动火流程图都要改 所有节点都要统一

limingyu-20240419-一公司危险作业更新
liujun 2024-04-09 14:49:57 +08:00
parent 3b8fbfb61e
commit 7f84c202ad
13 changed files with 138 additions and 1 deletions

View File

@ -372,6 +372,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -429,6 +434,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -449,6 +457,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -383,6 +383,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -440,6 +445,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -460,6 +468,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -390,6 +390,11 @@
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -453,6 +458,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -473,6 +481,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -378,6 +378,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -435,6 +440,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -455,6 +463,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -378,6 +378,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -435,6 +440,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -455,6 +463,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -383,6 +383,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -440,6 +445,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -460,6 +468,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -395,6 +395,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -452,6 +457,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -472,6 +480,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -366,6 +366,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
} }

View File

@ -383,6 +383,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -440,6 +445,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -460,6 +468,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -378,6 +378,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -435,6 +440,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -455,6 +463,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -395,6 +395,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -452,6 +457,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -472,6 +480,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -372,6 +372,11 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
@ -429,6 +434,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -449,6 +457,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }

View File

@ -377,7 +377,12 @@
this.confessUserNames = STATUS.confessUserNames this.confessUserNames = STATUS.confessUserNames
}, },
getShowStatus(step) { getShowStatus(step) {
if (this.showStatus == -2 && step.id == 0) { if (this.showStatus == -1.5 && step.id == 0) {
step.msg = '项目主管部门打回'
step.STATE = '待提交'
step.REPULSE = step.REPULSE
}
if (this.showStatus == -2 && step.id == 0) {
step.msg = '作业负责人审核打回' step.msg = '作业负责人审核打回'
step.STATE = '待提交' step.STATE = '待提交'
step.REPULSE = step.REPULSE step.REPULSE = step.REPULSE
@ -434,6 +439,9 @@
return 'success' return 'success'
} }
if (this.showStatus == step.id) { if (this.showStatus == step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '待审核'
}
if(step.name == '作业负责人意见'){ if(step.name == '作业负责人意见'){
step.STATE = '待审核' step.STATE = '待审核'
} }
@ -454,6 +462,9 @@
} }
return 'active' return 'active'
} else if (this.showStatus > step.id) { } else if (this.showStatus > step.id) {
if(step.name == '项目主管部门意见'){
step.STATE = '已审核'
}
if(step.name == '动火作业提交'){ if(step.name == '动火作业提交'){
step.STATE = '已提交' step.STATE = '已提交'
} }