|
@@ -121,8 +121,8 @@
|
121
|
121
|
</div>
|
122
|
122
|
</el-form-item>
|
123
|
123
|
<el-form-item label="技术方案审核意见" prop="technicalComment">
|
124
|
|
- <el-input type="textarea" v-model="form.technicalComment" :autosize="{ minRows: 4 }" placeholder="请输入技术方案审核意见"
|
125
|
|
- :disabled="taskName != '技术审核'" />
|
|
124
|
+ <el-input type="textarea" v-model="form.technicalComment" :autosize="{ minRows: 4 }"
|
|
125
|
+ placeholder="请输入技术方案审核意见" :disabled="taskName != '技术审核'" />
|
126
|
126
|
</el-form-item>
|
127
|
127
|
<el-row>
|
128
|
128
|
<el-col :span="6" :xs="24" :offset="12">
|
|
@@ -206,7 +206,7 @@ import FlowUser from '@/components/flow/User';
|
206
|
206
|
import flow from '@/views/flowable/task/todo/detail/flow';
|
207
|
207
|
import { complete, getNextFlowNode } from "@/api/flowable/todo";
|
208
|
208
|
import { flowXmlAndNode } from "@/api/flowable/definition";
|
209
|
|
-import { getUsersManageLeaderByDept } from '@/api/system/post'
|
|
209
|
+import { getUsersManageLeaderByDept, getUserByPost } from '@/api/system/post'
|
210
|
210
|
|
211
|
211
|
export default {
|
212
|
212
|
components: {
|
|
@@ -474,20 +474,20 @@ export default {
|
474
|
474
|
});
|
475
|
475
|
const params = { taskId: this.taskForm.taskId };
|
476
|
476
|
getNextFlowNode(params).then(res => {
|
477
|
|
- if (this.taskName == '方案上传') {
|
|
477
|
+ if (this.taskName == '方案上传') {
|
478
|
478
|
this.checkSendUser = true;
|
479
|
479
|
this.completeOpen = true;
|
480
|
480
|
this.completeTitle = "流程审批";
|
481
|
481
|
}
|
482
|
482
|
else if (this.taskName == '技术审核') {
|
483
|
|
- getUsersManageLeaderByDept({ deptId: 109 }).then(res => {
|
484
|
|
- let userId = res.data[0].userId;
|
485
|
|
- this.$set(this.taskForm.variables, "approval", userId);
|
|
483
|
+ getUserByPost({ postName: "总工程师" }).then(res => {
|
|
484
|
+ this.$set(this.taskForm.variables, "approval", res.data[0].userId);
|
486
|
485
|
complete(this.taskForm).then(response => {
|
487
|
486
|
this.$modal.msgSuccess(response.msg);
|
488
|
487
|
this.$emit('goBack')
|
489
|
488
|
});
|
490
|
|
- });
|
|
489
|
+ })
|
|
490
|
+
|
491
|
491
|
}
|
492
|
492
|
else if (this.taskName == '总工审核') {
|
493
|
493
|
complete(this.taskForm).then(response => {
|