Просмотр исходного кода

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

liujt 7 месяцев назад
Родитель
Сommit
187fa7ff16
1 измененных файлов с 4 добавлено и 1 удалено
  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) {
       async _approveTaskWithVariables(status) {
         console.log(status);
         console.log(status);
+        console.log(this.taskDefinitionKey);
+        // return
         if (status == 1) {
         if (status == 1) {
           if (this.taskDefinitionKey === 'storage') {
           if (this.taskDefinitionKey === 'storage') {
             const res = await storageApi.allot({ applyId: this.businessId });
             const res = await storageApi.allot({ applyId: this.businessId });
@@ -103,7 +105,8 @@
             }
             }
           }
           }
         } else {
         } else {
-          if (this.taskDefinitionKey === 'outbound') {
+          // 调拨出库 storage
+          if (this.taskDefinitionKey === 'outbound' || this.taskDefinitionKey === 'storage') {
             const data = await storageApi.notAllotPass({
             const data = await storageApi.notAllotPass({
               id: this.businessId,
               id: this.businessId,
               reason: this.form.reason,
               reason: this.form.reason,