|
@@ -320,7 +320,8 @@
|
|
<div
|
|
<div
|
|
v-if="
|
|
v-if="
|
|
flow.isApproveSetFlowNextNode &&
|
|
flow.isApproveSetFlowNextNode &&
|
|
- auditModal.approvePass === 'PASS'
|
|
|
|
|
|
+ ((IS_AUDIT && auditModal.approvePass === 'PASS') ||
|
|
|
|
+ curTaskApply.flowStatus === 'REJECT')
|
|
"
|
|
"
|
|
class="flow-item-action"
|
|
class="flow-item-action"
|
|
>
|
|
>
|
|
@@ -713,6 +714,9 @@ export default {
|
|
: this.curTaskApply.setup > 1;
|
|
: this.curTaskApply.setup > 1;
|
|
return IS_COMMON_AUDIT;
|
|
return IS_COMMON_AUDIT;
|
|
},
|
|
},
|
|
|
|
+ FLOW_IS_OVER() {
|
|
|
|
+ return ["END", "FINISH"].includes(this.curTaskApply.flowStatus);
|
|
|
|
+ },
|
|
maxFetchCount() {
|
|
maxFetchCount() {
|
|
return this.paperAttachments.length < 1
|
|
return this.paperAttachments.length < 1
|
|
? 1
|
|
? 1
|
|
@@ -787,9 +791,10 @@ export default {
|
|
await this.getFlowList();
|
|
await this.getFlowList();
|
|
} else {
|
|
} else {
|
|
await this.getFlowHistory();
|
|
await this.getFlowHistory();
|
|
|
|
+ this.getCurFlowNodeInfo();
|
|
}
|
|
}
|
|
|
|
|
|
- if (this.IS_AUDIT) this.getCurFlowNodeInfo();
|
|
|
|
|
|
+ // if (this.IS_AUDIT) this.getCurFlowNodeInfo();
|
|
},
|
|
},
|
|
async getCardList() {
|
|
async getCardList() {
|
|
if (!this.curTaskApply.courseCode || !this.curTaskApply.examId) return;
|
|
if (!this.curTaskApply.courseCode || !this.curTaskApply.examId) return;
|
|
@@ -879,12 +884,10 @@ export default {
|
|
this.TASK_AUDIT_RESULT = { PASS: "通过" };
|
|
this.TASK_AUDIT_RESULT = { PASS: "通过" };
|
|
this.auditModal.approvePass = "PASS";
|
|
this.auditModal.approvePass = "PASS";
|
|
}
|
|
}
|
|
- // 判断发起人自选,是否需要选择下个审核人员
|
|
|
|
- const { modelType, approveUserNames, taskKey } = this.nextFlowTaskResult;
|
|
|
|
|
|
+ // 判断发起人自选,不管approveUserNames有没有值,都可以选择下个审核人员
|
|
|
|
+ const { modelType, taskKey } = this.nextFlowTaskResult;
|
|
this.IS_NEED_SELECT_APPROVE_USER =
|
|
this.IS_NEED_SELECT_APPROVE_USER =
|
|
- modelType === "APPROVE_SET" &&
|
|
|
|
- taskKey.toLowerCase() !== "end" &&
|
|
|
|
- !approveUserNames;
|
|
|
|
|
|
+ modelType === "APPROVE_SET" && taskKey.toLowerCase() !== "end";
|
|
this.flowHistoryList[
|
|
this.flowHistoryList[
|
|
this.flowHistoryList.length - 1
|
|
this.flowHistoryList.length - 1
|
|
].isApproveSetFlowNextNode = this.IS_NEED_SELECT_APPROVE_USER;
|
|
].isApproveSetFlowNextNode = this.IS_NEED_SELECT_APPROVE_USER;
|