Przeglądaj źródła

工会用车审批

lamphua 1 rok temu
rodzic
commit
ac42c723d3

+ 17
- 17
oa-ui/src/views/flowable/form/carForm.vue Wyświetl plik

@@ -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-11 09:39:48
5
+ * @LastEditTime: 2024-03-11 10:43:10
6 6
 -->
7 7
 <!--
8 8
  * @Author: wrh
@@ -38,7 +38,7 @@
38 38
             </el-form-item>
39 39
           </el-col>
40 40
         </el-row>
41
-        <el-form-item label="项目编号:" prop="projectNumber">
41
+        <el-form-item label="项目编号:" prop="projectNumber" v-if="taskForm.procDefName == '用车审批'">
42 42
           <el-select v-model="form.projectNumber" filterable placeholder="请选择" @change="handleSelectProject" clearable>
43 43
             <el-option v-for="item in projectList" :key="item.value" :label="item.projectNumber" :value="item.projectId">
44 44
             </el-option>
@@ -88,17 +88,23 @@
88 88
         <el-divider></el-divider>
89 89
         <!-- 部门审核意见 -->
90 90
         <el-form-item label="部门审核意见:" prop="deptComment" label-width="120px"
91
-          v-if="taskName == '部门审核' || taskName == '分管审核' || taskName == '安排用车' || taskName == '申请确认'">
91
+          v-if="taskForm.procDefName == '用车审批' && (taskName == '部门审核' || 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 96
         <el-form-item label="分管审核意见:" prop="managerComment" label-width="120px"
97
-          v-if="taskName == '分管审核' || taskName == '安排用车' || taskName == '申请确认'">
97
+          v-if="taskForm.procDefName == '用车审批' && (taskName == '分管审核' || taskName == '安排用车' || taskName == '申请确认')">
98 98
           <el-input type="textarea" :rows="2" placeholder="请输入分管审核意见" v-model="form.managerComment">
99 99
           </el-input>
100 100
         </el-form-item>
101
-        <!-- 分管审核意见 -->
101
+        <!-- 工会审核意见 -->
102
+        <el-form-item label="工会审核意见:" prop="unionComment" label-width="120px"
103
+          v-if="taskForm.procDefName == '用车审批(工会)' && (taskName == '工会审核' || taskName == '安排用车' || taskName == '申请确认')">
104
+          <el-input type="textarea" :rows="2" placeholder="请输入工会审核意见" v-model="form.unionComment">
105
+          </el-input>
106
+        </el-form-item>
107
+        <!-- 安排用车意见 -->
102 108
         <el-form-item label="安排用车意见:" prop="dispatchComment" label-width="120px"
103 109
           v-if="taskName == '安排用车' || taskName == '申请确认'">
104 110
           <el-input type="textarea" :rows="2" placeholder="请输入安排用车意见" v-model="form.dispatchComment">
@@ -230,8 +236,6 @@ export default {
230 236
             data.cars = arr;
231 237
           }
232 238
           this.form = data;
233
-          console.log(this.form);
234
-          console.log(this.driverList);
235 239
         }
236 240
       })
237 241
     },
@@ -276,8 +280,10 @@ export default {
276 280
     getNextFlowNodeApproval() {
277 281
       if (this.taskName == '用车申请') {
278 282
         getUsersDeptLeader({ userId: this.$store.getters.userId }).then(res => {
279
-          let userId = res.data.userId;
280
-          this.$set(this.taskForm.variables, "approval", userId);
283
+          let userId = res.data.userId;          
284
+          if (this.taskForm.procDefName == '用车审批') {
285
+            this.$set(this.taskForm.variables, "approval", userId);
286
+          }
281 287
           complete(this.taskForm).then(response => {
282 288
             this.$modal.msgSuccess(response.msg);
283 289
             this.$emit('goBack')
@@ -292,24 +298,18 @@ export default {
292 298
             this.$emit('goBack')
293 299
           });
294 300
         })
295
-      } else if (this.taskName == '分管审核') {
301
+      } else if (this.taskName == '分管审核' || this.taskName == '工会审核') {
296 302
         this.$set(this.taskForm.variables, "approval", 16);
297 303
         complete(this.taskForm).then(response => {
298 304
           this.$modal.msgSuccess(response.msg);
299 305
           this.$emit('goBack')
300 306
         });
301
-      } else if (this.taskName == '安排用车') {
302
-        complete(this.taskForm).then(response => {
303
-          this.$modal.msgSuccess(response.msg);
304
-          this.$emit('goBack')
305
-        });
306
-      } else if (this.taskName == '申请确认') {
307
+      } else if (this.taskName == '安排用车' || this.taskName == '申请确认') {
307 308
         complete(this.taskForm).then(response => {
308 309
           this.$modal.msgSuccess(response.msg);
309 310
           this.$emit('goBack')
310 311
         });
311 312
       }
312
-
313 313
     },
314 314
     // 查询项目列表
315 315
     getProjectList() {

+ 2
- 1
oa-ui/src/views/flowable/task/todo/detail/index.vue Wyświetl plik

@@ -23,6 +23,7 @@
23 23
           <zh-table :tableForm="tableForm" :taskName="taskName" @submit="handleComplete"
24 24
             v-else-if="taskForm.procDefName == '综合事务部考核'"></zh-table>
25 25
           <car-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '用车审批'" @goBack="goBack"></car-form>
26
+          <car-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '用车审批(工会)'" @goBack="goBack"></car-form>
26 27
           <device-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '设备审批'"
27 28
             @goBack="goBack"></device-form>
28 29
           <el-row type="flex" justify="center" v-show="isShowApprove()">
@@ -542,7 +543,7 @@ export default {
542 543
     },
543 544
     // 是否显示审批通过
544 545
     isShowApprove() {
545
-      if (this.taskName == '员工填报' || this.taskForm.procDefName == '用车审批' || this.taskForm.procDefName == '设备审批') {
546
+      if (this.taskName == '员工填报' || this.taskForm.procDefName == '用车审批' || this.taskForm.procDefName == '用车审批(工会)' || this.taskForm.procDefName == '设备审批') {
546 547
         return false
547 548
       } else {
548 549
         return true

Ładowanie…
Anuluj
Zapisz