|
@@ -46,8 +46,11 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
|
|
|
+ <!-- 显示情况:(1)当处理结果为1(通过)并且不是最后一个节点
|
|
|
+ (2)当处理结果为2 -->
|
|
|
<el-col
|
|
|
- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
|
|
|
+ v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
|
|
|
:span="8"
|
|
|
>
|
|
|
<el-form-item label="下一环节:">
|
|
@@ -77,9 +80,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
-
|
|
|
+ <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
|
|
|
<el-col
|
|
|
- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
|
|
|
+ v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
|
|
|
:span="8"
|
|
|
>
|
|
|
<el-form-item label="下一环节处理部门:">
|
|
@@ -109,8 +112,9 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <!-- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStep" -->
|
|
|
<el-col
|
|
|
- v-if="(form.headleState == 1 || form.headleState == 2) && !isLastStop"
|
|
|
+ v-if="((form.headleState == 1 && !isLastStep) || (form.headleState == 2))"
|
|
|
:span="8"
|
|
|
>
|
|
|
<el-form-item label="下一环节处理人:">
|
|
@@ -346,7 +350,7 @@ export default {
|
|
|
deptStaff: "", //下一环节出处理
|
|
|
remarks: "", //备注
|
|
|
},
|
|
|
- isLastStop: false, //是不是最后一步审核
|
|
|
+ isLastStep: false, //是不是最后一步审核
|
|
|
curStepStaffs: [], //转派时候的被驳回人
|
|
|
curStepDepts: [], //转派时候的驳回部门
|
|
|
examinaHistory: [], //审核历史
|
|
@@ -571,7 +575,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
- //this.handleTypeChange(1);
|
|
|
+
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -583,7 +587,7 @@ export default {
|
|
|
if (JSON.stringify(this.step.nextStep) === "{}") {
|
|
|
this.form.curProcessStep = this.editData.currentNode.processStep;
|
|
|
this.form.curStepNode = this.editData.currentNode.stepNode;
|
|
|
- this.isLastStop = true;
|
|
|
+ this.isLastStep = true;
|
|
|
} else {
|
|
|
this.setNextSelect();
|
|
|
}
|
|
@@ -696,6 +700,24 @@ export default {
|
|
|
this.nextStepChange(this.form.processStep);
|
|
|
this.form.dept = upStepNode.handleDept; //下一环节处理部门
|
|
|
this.nextStepDeptChange(this.form.dept);
|
|
|
+ //如果审核人不在this.nextStepStaffs中则加进去
|
|
|
+ if (
|
|
|
+ !this.nextStepStaffs.find(
|
|
|
+ (n) => n.id == upStepNode.handleStaff
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ const dept = this.allDeptAndUser.find(
|
|
|
+ (n) => n.id == upStepNode.handleDept
|
|
|
+ );
|
|
|
+ const user = dept.users.find(
|
|
|
+ (u) => u.id == upStepNode.handleStaff
|
|
|
+ );
|
|
|
+ if (user)
|
|
|
+ this.nextStepStaffs.push({
|
|
|
+ id: user.id,
|
|
|
+ name: user.realName,
|
|
|
+ });
|
|
|
+ }
|
|
|
this.form.deptStaff = upStepNode.handleStaff; //下一环节处理人
|
|
|
}
|
|
|
}
|
|
@@ -847,7 +869,7 @@ export default {
|
|
|
*/
|
|
|
nextStepChange(value) {
|
|
|
this.nextStepDepts = [];
|
|
|
- this.nextStepStaffs = [];
|
|
|
+ //this.nextStepStaffs = [];
|
|
|
this.nextStepDepts = [];
|
|
|
this.form.dept = "";
|
|
|
this.form.deptStaff = "";
|
|
@@ -896,6 +918,9 @@ export default {
|
|
|
return this.form;
|
|
|
},
|
|
|
},
|
|
|
+ destroyed(){
|
|
|
+ this.isLastStep = false
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|