Explorar o código

fix: 修复任务提交和驳回的异步处理问题

liujt hai 6 meses
pai
achega
64ec523292

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

@@ -277,7 +277,7 @@
         //   await UpdateInformation(arr);
         //   await UpdateInformation(arr);
         // }
         // }
         let API = !!status ? approveTaskWithVariables : rejectTask;
         let API = !!status ? approveTaskWithVariables : rejectTask;
-        API({
+        await API({
           id: this.taskId,
           id: this.taskId,
           reason: this.form.reason,
           reason: this.form.reason,
           variables: {
           variables: {
@@ -291,8 +291,8 @@
           title: status === 0 ? '驳回' : ''
           title: status === 0 ? '驳回' : ''
         });
         });
       },
       },
-      rejectTask(status) {
-        rejectTask({
+      async rejectTask(status) {
+        await rejectTask({
           id: this.taskId,
           id: this.taskId,
           reason: this.form.reason,
           reason: this.form.reason,
           variables: {
           variables: {