Browse Source

新增用车审批,安排用车节点判断是否有意见

余思翰 4 months ago
parent
commit
b8b6664cd3
1 changed files with 12 additions and 6 deletions
  1. 12
    6
      oa-ui/src/views/flowable/form/oa/carForm.vue

+ 12
- 6
oa-ui/src/views/flowable/form/oa/carForm.vue View File

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-29 11:44:28
4
- * @LastEditors: wrh
5
- * @LastEditTime: 2024-10-16 13:49:16
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2025-01-16 16:10:27
6 6
 -->
7 7
 
8 8
 <template>
@@ -60,7 +60,7 @@
60 60
                   <el-descriptions-item label="项目名称" label-class-name="my-label">{{ chooseProject.projectName
61 61
                     }}</el-descriptions-item>
62 62
                   <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeaderUser ?
63
-    chooseProject.projectLeaderUser.nickName : ''
63
+                    chooseProject.projectLeaderUser.nickName : ''
64 64
                     }}</el-descriptions-item>
65 65
                   <el-descriptions-item label="承担部门" label-class-name="my-label">
66 66
                     <el-tag size="small">{{ chooseProject.undertakingDeptName }}</el-tag>
@@ -211,8 +211,8 @@
211 211
               <!-- 综合事务部管理人员填写 -->
212 212
               <el-form-item label="车牌号:" prop="cars">
213 213
                 <el-checkbox-group v-model="form.cars" :disabled="taskName != '安排用车'">
214
-                  <el-checkbox :disabled="item.status == 1 ? false : true" :label="item.carId" v-for="item in carList" :key="item.carId" :value="item.carId"
215
-                    v-if="item.remark == null">
214
+                  <el-checkbox :disabled="item.status == 1 ? false : true" :label="item.carId" v-for="item in carList"
215
+                    :key="item.carId" :value="item.carId" v-if="item.remark == null">
216 216
                     {{ item.licensePlate + (item.brand ? item.brand : '') + (item.series ? item.series : '') }}
217 217
                   </el-checkbox>
218 218
                 </el-checkbox-group>
@@ -252,7 +252,7 @@
252 252
             </el-row>
253 253
             <el-row style="text-align: center;" v-else>
254 254
               <el-button type="warning" @click="saves()" v-if="taskName == '安排用车'">保存</el-button>
255
-              <el-button type="primary" v-if="taskName" @click="completeApply">完成审批</el-button>
255
+              <el-button type="primary" v-if="taskName" @click="completeApply" :disabled="taskName == '安排用车' && !form.returnDate">完成审批</el-button>
256 256
             </el-row>
257 257
           </div>
258 258
         </el-card>
@@ -555,6 +555,12 @@ export default {
555 555
       })
556 556
     },
557 557
     saves() {
558
+      if (this.taskName == '安排用车') {
559
+        if(!this.form.dispatchComment){
560
+          this.$message.error('请填写安排用车意见')
561
+          return
562
+        }
563
+      }
558 564
       let formData = new FormData();
559 565
       let jsonForm = JSON.stringify(this.form);
560 566
       formData.append("form", jsonForm);

Loading…
Cancel
Save