ソースを参照

fix:采购计划审批

liujt 2 日 前
コミット
c8cd80bdc2

+ 9 - 5
src/views/bpm/handleTask/components/purchasePlanManage/submit.vue

@@ -280,15 +280,19 @@
         //   }
         //   await UpdateInformation(arr);
         // }
+        console.log(this.selectId, this.form.userId, 'this.selectId');
         let API = !!status ? approveTaskWithVariables : rejectTask;
+        let variables = {
+          pass: !!status
+        }
+
+        if(this.taskDefinitionKey === 'deptLeaderAssign') {
+          variables.userId = this.selectId.join(',');
+        }
         await API({
           id: this.taskId,
           reason: this.form.reason,
-          variables: {
-            // userId: this.form.userId,
-            userId: this.selectId.join(','),
-            pass: !!status
-          }
+          variables: variables
         });
         this.$emit('handleAudit', {
           status,