Explorar o código

fix(bpm): 修复调拨出库任务拒绝时未正确处理storage类型的问题

liujt hai 7 meses
pai
achega
187fa7ff16
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/views/bpm/handleTask/components/allocate/submit.vue

+ 4 - 1
src/views/bpm/handleTask/components/allocate/submit.vue

@@ -71,6 +71,8 @@
       },
       async _approveTaskWithVariables(status) {
         console.log(status);
+        console.log(this.taskDefinitionKey);
+        // return
         if (status == 1) {
           if (this.taskDefinitionKey === 'storage') {
             const res = await storageApi.allot({ applyId: this.businessId });
@@ -103,7 +105,8 @@
             }
           }
         } else {
-          if (this.taskDefinitionKey === 'outbound') {
+          // 调拨出库 storage
+          if (this.taskDefinitionKey === 'outbound' || this.taskDefinitionKey === 'storage') {
             const data = await storageApi.notAllotPass({
               id: this.businessId,
               reason: this.form.reason,