|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-02-29 11:44:28
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-03-08 15:12:42
|
|
5
|
+ * @LastEditTime: 2024-03-08 16:14:41
|
6
|
6
|
-->
|
7
|
7
|
<!--
|
8
|
8
|
* @Author: wrh
|
|
@@ -88,12 +88,12 @@
|
88
|
88
|
</el-row>
|
89
|
89
|
<el-divider></el-divider>
|
90
|
90
|
<!-- 部门审核意见 -->
|
91
|
|
- <el-form-item label="部门审核意见:" prop="deptComment" label-width="120px" v-if="taskName == '部门审核'">
|
|
91
|
+ <el-form-item label="部门审核意见:" prop="deptComment" label-width="120px" v-if="taskName == '部门审核' || taskName == '分管审核' || taskName == '安排用车'">
|
92
|
92
|
<el-input type="textarea" :rows="2" placeholder="请输入部门审核意见" v-model="form.deptComment">
|
93
|
93
|
</el-input>
|
94
|
94
|
</el-form-item>
|
95
|
95
|
<!-- 分管审核意见 -->
|
96
|
|
- <el-form-item label="分管审核意见:" prop="managerComment" label-width="120px" v-if="taskName == '分管审核'">
|
|
96
|
+ <el-form-item label="分管审核意见:" prop="managerComment" label-width="120px" v-if="taskName == '分管审核' || taskName == '安排用车'">
|
97
|
97
|
<el-input type="textarea" :rows="2" placeholder="请输入分管审核意见" v-model="form.managerComment">
|
98
|
98
|
</el-input>
|
99
|
99
|
</el-form-item>
|
|
@@ -132,7 +132,7 @@ import { listDriver } from "@/api/system/post";
|
132
|
132
|
import {
|
133
|
133
|
complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm,
|
134
|
134
|
} from "@/api/flowable/todo";
|
135
|
|
-import { getUsersDeptLeader } from '@/api/system/post.js'
|
|
135
|
+import { getUsersDeptLeader, getUsersManageLeader } from '@/api/system/post.js'
|
136
|
136
|
export default {
|
137
|
137
|
props: {
|
138
|
138
|
taskName: {
|
|
@@ -214,7 +214,6 @@ export default {
|
214
|
214
|
},
|
215
|
215
|
submit() {
|
216
|
216
|
this.$refs['carForm'].validate((valid) => {
|
217
|
|
- debugger
|
218
|
217
|
if (valid) {
|
219
|
218
|
this.form.formId = this.taskForm.formId;
|
220
|
219
|
let formData = new FormData();
|
|
@@ -236,6 +235,8 @@ export default {
|
236
|
235
|
})
|
237
|
236
|
},
|
238
|
237
|
completeApply() {
|
|
238
|
+ this.form.formId = this.taskForm.formId;
|
|
239
|
+ this.form.carApplyId = this.taskForm.formId;
|
239
|
240
|
let formData = new FormData();
|
240
|
241
|
let jsonForm = JSON.stringify(this.form);
|
241
|
242
|
formData.append("form", jsonForm);
|
|
@@ -250,14 +251,33 @@ export default {
|
250
|
251
|
},
|
251
|
252
|
// 获取下一个审批人
|
252
|
253
|
getNextFlowNodeApproval() {
|
253
|
|
- getUsersDeptLeader({ userId: this.$store.getters.userId }).then(res => {
|
254
|
|
- let userId = res.data.userId;
|
255
|
|
- this.$set(this.taskForm.variables, "approval", userId);
|
256
|
|
- complete(this.taskForm).then(response => {
|
257
|
|
- this.$modal.msgSuccess(response.msg);
|
258
|
|
- this.$emit('goBack')
|
259
|
|
- });
|
260
|
|
- })
|
|
254
|
+ debugger
|
|
255
|
+ if (this.taskName == '用车申请') {
|
|
256
|
+ getUsersDeptLeader({ userId: this.$store.getters.userId }).then(res => {
|
|
257
|
+ let userId = res.data.userId;
|
|
258
|
+ this.$set(this.taskForm.variables, "approval", userId);
|
|
259
|
+ complete(this.taskForm).then(response => {
|
|
260
|
+ this.$modal.msgSuccess(response.msg);
|
|
261
|
+ this.$emit('goBack')
|
|
262
|
+ });
|
|
263
|
+ })
|
|
264
|
+ } else if (this.taskName == '部门审核') {
|
|
265
|
+ getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
|
|
266
|
+ let userId = res.data.userId;
|
|
267
|
+ this.$set(this.taskForm.variables, "approval", userId);
|
|
268
|
+ complete(this.taskForm).then(response => {
|
|
269
|
+ this.$modal.msgSuccess(response.msg);
|
|
270
|
+ this.$emit('goBack')
|
|
271
|
+ });
|
|
272
|
+ })
|
|
273
|
+ }else if(this.taskName == '分管审核') {
|
|
274
|
+ this.$set(this.taskForm.variables, "approval", 16);
|
|
275
|
+ complete(this.taskForm).then(response => {
|
|
276
|
+ this.$modal.msgSuccess(response.msg);
|
|
277
|
+ this.$emit('goBack')
|
|
278
|
+ });
|
|
279
|
+ }
|
|
280
|
+
|
261
|
281
|
},
|
262
|
282
|
// 查询项目列表
|
263
|
283
|
getProjectList() {
|