Parcourir la source

工会用车审批

lamphua il y a 1 an
Parent
révision
ac42c723d3

+ 17
- 17
oa-ui/src/views/flowable/form/carForm.vue Voir le fichier

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

+ 2
- 1
oa-ui/src/views/flowable/task/todo/detail/index.vue Voir le fichier

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

Loading…
Annuler
Enregistrer