Kaynağa Gözat

fix(销售订单): 修复质检主管审核不自动跳过的问题

liujt 6 ay önce
ebeveyn
işleme
b4bc8a4501

+ 5 - 0
src/views/bpm/handleTask/components/saleOrder/customerReturnGoods/submit.vue

@@ -140,6 +140,7 @@
       };
     },
     async created() {
+      console.log('taskDefinitionKey~~~~~~~~~~', this.taskDefinitionKey);
       this.userOptions = [];
       listAllUserBind().then((data) => {
         this.userOptions.push(...data);
@@ -500,6 +501,10 @@
               variables[this.submitParams[this.taskDefinitionKey]] =
                 this.form.userId;
             }
+            
+            // 质检主管审核  不自动跳过  autoApproval 0-不自动跳过 1-自动跳过
+            variables['autoApproval'] = this.taskDefinitionKey === 'QCLeader' ? 0 : 1;
+            
             approveTaskWithVariablesAPI({
               id: this.taskId,
               reason: this.form.reason,