|
@@ -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-27 14:33:37
|
|
5
|
+ * @LastEditTime: 2024-09-30 09:23:49
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -187,23 +187,28 @@ export default {
|
187
|
187
|
confirm() {
|
188
|
188
|
if (!(this.safe && this.tech)) {
|
189
|
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
|
212
|
async handleUrge(type) {
|
208
|
213
|
let message = ''
|
209
|
214
|
let user = []
|