Преглед изворни кода

修改分管审核,不需要技术交底、安全交底也可以提交

余思翰 пре 6 месеци
родитељ
комит
27e80117c6
1 измењених фајлова са 17 додато и 27 уклоњено
  1. 17
    27
      oa-ui/src/views/flowable/form/projectProcess/manageReview.vue

+ 17
- 27
oa-ui/src/views/flowable/form/projectProcess/manageReview.vue Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-08 13:56:14
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-19 10:40:21
5
+ * @LastEditTime: 2024-09-27 14:33:37
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -186,33 +186,23 @@ export default {
186 186
     },
187 187
     confirm() {
188 188
       if (!(this.safe && this.tech)) {
189
-        this.$message.error('安全交底或者技术交底未全部完成,等待相关人员完成才可提交')
190
-        return
191
-      }
192
-      this.form.projectId = this.taskForm.formId
193
-      updateProjectComment({ projectId: this.taskForm.formId, manageComment: this.form.manageComment })
194
-      const params = { taskId: this.taskForm.taskId };
195
-      // 获取下一个流程节点
196
-      // getNextFlowNode(params).then(res => {
197
-      //   this.$set(this.taskForm.variables, "approvalList", this.deptLeaderList);
198
-      //   complete(this.taskForm).then(response => {
199
-      //     this.$modal.msgSuccess(response.msg);
200
-      //     this.$emit("goBack");
201
-      //   });
202
-      // }); 
203
-
204
-      getNextFlowNode(params).then(res => {
205
-        getProject(this.taskForm.formId).then(res => {
206
-          if (res.data) {
207
-            this.$set(this.taskForm.variables, "approval", res.data.projectLeader);
208
-            complete(this.taskForm).then(response => {
209
-              this.$modal.msgSuccess(response.msg);
210
-              this.$emit("goBack");
211
-            });
212
-          }
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
+          });
213 204
         })
214
-
215
-      });
205
+      }
216 206
     },
217 207
     async handleUrge(type) {
218 208
       let message = ''

Loading…
Откажи
Сачувај