Browse Source

feat(wise-cost-util): process

qinlaiqiao 4 years ago
parent
commit
783bb2f002
1 changed files with 2 additions and 6 deletions
  1. 2 6
      wise-cost-util/src/process.ts

+ 2 - 6
wise-cost-util/src/process.ts

@@ -63,12 +63,8 @@ export const getCurrentProcess = (processes: IProcess[]) => {
     const {
     const {
       participantInfo: { approvalWay, accounts },
       participantInfo: { approvalWay, accounts },
     } = processes[i];
     } = processes[i];
-    // 上报审批
-    // if (approvalWay === ApprovalWay.REPORT) {
-    //   continue;
-    // }
-    // 指定用户
-    if (approvalWay === ApprovalWay.ACCOUNT) {
+    // 指定用户 或 上报审批
+    if (approvalWay === ApprovalWay.ACCOUNT || approvalWay === ApprovalWay.REPORT) {
       const { status } = accounts[0];
       const { status } = accounts[0];
       if (status === ProcessStatus.ACTIVATING) {
       if (status === ProcessStatus.ACTIVATING) {
         return processes[i];
         return processes[i];