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

修改分管审核不能提交的问题

余思翰 8 месяцев назад
Родитель
Сommit
bdde6e64df
1 измененных файлов: 20 добавлений и 15 удалений
  1. 20
    15
      oa-ui/src/views/flowable/form/projectProcess/manageReview.vue

+ 20
- 15
oa-ui/src/views/flowable/form/projectProcess/manageReview.vue Просмотреть файл

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-08 13:56:14
3
  * @Date: 2024-04-08 13:56:14
4
  * @LastEditors: Please set LastEditors
4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-27 14:33:37
5
+ * @LastEditTime: 2024-09-30 09:23:49
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
187
     confirm() {
187
     confirm() {
188
       if (!(this.safe && this.tech)) {
188
       if (!(this.safe && this.tech)) {
189
         this.$modal.confirm('安全交底或者技术交底未全部完成,是否确认审核?').then(() => {
189
         this.$modal.confirm('安全交底或者技术交底未全部完成,是否确认审核?').then(() => {
190
-          this.form.projectId = this.taskForm.formId
191
-          updateProjectComment({ projectId: this.taskForm.formId, manageComment: this.form.manageComment })
192
-          const params = { taskId: this.taskForm.taskId };
193
-          getNextFlowNode(params).then(res => {
194
-            getProject(this.taskForm.formId).then(res => {
195
-              if (res.data) {
196
-                this.$set(this.taskForm.variables, "approval", res.data.projectLeader);
197
-                complete(this.taskForm).then(response => {
198
-                  this.$modal.msgSuccess(response.msg);
199
-                  this.$emit("goBack");
200
-                });
201
-              }
202
-            })
203
-          });
190
+          this.submitComment()
204
         })
191
         })
192
+      } else {
193
+        this.submitComment()
205
       }
194
       }
206
     },
195
     },
196
+    submitComment() {
197
+      this.form.projectId = this.taskForm.formId
198
+      updateProjectComment({ projectId: this.taskForm.formId, manageComment: this.form.manageComment })
199
+      const params = { taskId: this.taskForm.taskId };
200
+      getNextFlowNode(params).then(res => {
201
+        getProject(this.taskForm.formId).then(res => {
202
+          if (res.data) {
203
+            this.$set(this.taskForm.variables, "approval", res.data.projectLeader);
204
+            complete(this.taskForm).then(response => {
205
+              this.$modal.msgSuccess(response.msg);
206
+              this.$emit("goBack");
207
+            });
208
+          }
209
+        })
210
+      });
211
+    },
207
     async handleUrge(type) {
212
     async handleUrge(type) {
208
       let message = ''
213
       let message = ''
209
       let user = []
214
       let user = []

Загрузка…
Отмена
Сохранить