|
@@ -409,14 +409,16 @@ export default {
|
|
|
else return this.colors[2];
|
|
|
} else return this.colors[0];
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 返回用户名
|
|
|
* @selectUser 选择的用户数组
|
|
|
- */
|
|
|
- getUserName(selectUser){
|
|
|
- let userName = selectUser.map(item=>{return item.userName})
|
|
|
- return userName.toString().replace(',','\\');
|
|
|
+ */
|
|
|
+ getUserName(selectUser) {
|
|
|
+ let userName = selectUser.map((item) => {
|
|
|
+ return item.userName;
|
|
|
+ });
|
|
|
+ return userName.toString().replace(",", "\\");
|
|
|
},
|
|
|
/**
|
|
|
* 根据业务类型,获取流程列表
|
|
@@ -553,24 +555,55 @@ export default {
|
|
|
}
|
|
|
//流程审核完成
|
|
|
else {
|
|
|
- this.steps.forEach((item, index) => {
|
|
|
- //如果步骤小于当前步骤,说明已经审核完成
|
|
|
- item.checkState = 2;
|
|
|
- let step = this.editData.processNodeVos.filter((p) => p.processStep == item.stepOrder && p.nodeState === 2);
|
|
|
- //根据步骤节点排序(stepNode)正序
|
|
|
- step.sort((a, b) => {
|
|
|
- return a.stepNode < b.stepNode ? 1 : -1;
|
|
|
- });
|
|
|
- step.forEach((op) => {
|
|
|
- item.checkInfo.push({
|
|
|
- userName: op.handleStaffName,
|
|
|
- nodeState: op.nodeState,
|
|
|
- must: true, //是否必须处理
|
|
|
- isCur: true, //是否当前处理
|
|
|
- checkTime: op.handleTime,
|
|
|
+ //查询是否存在流程中终止的 节点状态0:待处理;1处理中;2提交;3:驳回;4:转派;5:终止;6:被驳回;
|
|
|
+ //如果存在流程中终止的测,只是到终止的
|
|
|
+ const suspend = this.editData.processNodeVos.find(
|
|
|
+ (p) => p.nodeState === 5
|
|
|
+ );
|
|
|
+ if (suspend) {
|
|
|
+ let suspendIndex = suspend.processStep;
|
|
|
+ for (let i = 0; i < suspendIndex - 1; i++) {
|
|
|
+ this.steps[i].checkState = 2;
|
|
|
+ let step = this.editData.processNodeVos.filter(
|
|
|
+ (p) =>
|
|
|
+ p.processStep == this.steps[i].stepOrder &&
|
|
|
+ p.nodeState === 2
|
|
|
+ );
|
|
|
+ //根据步骤节点排序(stepNode)正序
|
|
|
+ step.sort((a, b) => {
|
|
|
+ return a.stepNode < b.stepNode ? 1 : -1;
|
|
|
+ });
|
|
|
+ step.forEach((op) => {
|
|
|
+ this.steps[i].checkInfo.push({
|
|
|
+ userName: op.handleStaffName,
|
|
|
+ nodeState: op.nodeState,
|
|
|
+ must: true, //是否必须处理
|
|
|
+ isCur: true, //是否当前处理
|
|
|
+ checkTime: op.handleTime,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.steps.forEach((item, index) => {
|
|
|
+ item.checkState = 2;
|
|
|
+ let step = this.editData.processNodeVos.filter(
|
|
|
+ (p) => p.processStep == item.stepOrder && p.nodeState === 2
|
|
|
+ );
|
|
|
+ //根据步骤节点排序(stepNode)正序
|
|
|
+ step.sort((a, b) => {
|
|
|
+ return a.stepNode < b.stepNode ? 1 : -1;
|
|
|
+ });
|
|
|
+ step.forEach((op) => {
|
|
|
+ item.checkInfo.push({
|
|
|
+ userName: op.handleStaffName,
|
|
|
+ nodeState: op.nodeState,
|
|
|
+ must: true, //是否必须处理
|
|
|
+ isCur: true, //是否当前处理
|
|
|
+ checkTime: op.handleTime,
|
|
|
+ });
|
|
|
});
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
this.steps.forEach((item, index) => {
|