huang_an hace 2 años
padre
commit
0c9b33367b

+ 1 - 0
src/views/bpm/handleTask/components/inoutBound/submit.vue

@@ -81,6 +81,7 @@
             reason: this.form.reason,
             variables: { pass: true }
           };
+          await this.$parent.$parent.$parent.$refs.bziRef.handleSave();
           const data = await approveTaskWithVariables(params);
           if (data.data.code != '-1') {
             this.$emit('handleAudit', {

+ 1 - 6
src/views/bpm/handleTask/index.vue

@@ -472,12 +472,7 @@
         let text = data.status === 1 ? '通过' : '不通过';
         this.$message.success(`审批${data.title || text}成功!`);
         this.handleClose(); // 获得最新详情
-        if (data.status == 1) {
-          try {
-            console.log(11);
-            this.$refs.bziRef.handleSave();
-          } catch (error) {}
-        }
+
         // const index = this.runningTasks.indexOf(task);
         // this.$refs['form' + index][0].validate((valid) => {
         //   if (!valid) {