Parcourir la source

根据项目id查询项目进度

lamphua il y a 1 an
Parent
révision
5cfbe010a3

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectProgressController.java Voir le fichier

@@ -61,10 +61,10 @@ public class CmcProjectProgressController extends BaseController
61 61
     /**
62 62
      * 获取cmc项目进度详细信息
63 63
      */
64
-    @GetMapping(value = "/{progressId}")
65
-    public AjaxResult getInfo(@PathVariable("progressId") String progressId)
64
+    @GetMapping(value = "/{projectId}")
65
+    public AjaxResult getInfo(@PathVariable("projectId") String projectId)
66 66
     {
67
-        return success(cmcProjectProgressService.selectCmcProjectProgressByProgressId(progressId));
67
+        return success(cmcProjectProgressService.selectCmcProjectProgressByProjectId(projectId));
68 68
     }
69 69
 
70 70
     /**
@@ -74,7 +74,7 @@ public class CmcProjectProgressController extends BaseController
74 74
     @PostMapping
75 75
     public AjaxResult add(@RequestBody CmcProjectProgress cmcProjectProgress)
76 76
     {
77
-        cmcProjectProgress.setProgressId(new SnowFlake().generateId());
77
+        cmcProjectProgress.setProjectId(new SnowFlake().generateId());
78 78
         return toAjax(cmcProjectProgressService.insertCmcProjectProgress(cmcProjectProgress));
79 79
     }
80 80
 
@@ -92,9 +92,9 @@ public class CmcProjectProgressController extends BaseController
92 92
      * 删除cmc项目进度
93 93
      */
94 94
     @Log(title = "cmc项目进度", businessType = BusinessType.DELETE)
95
-	@DeleteMapping("/{progressIds}")
96
-    public AjaxResult remove(@PathVariable String[] progressIds)
95
+	@DeleteMapping("/{projectIds}")
96
+    public AjaxResult remove(@PathVariable String[] projectIds)
97 97
     {
98
-        return toAjax(cmcProjectProgressService.deleteCmcProjectProgressByProgressIds(progressIds));
98
+        return toAjax(cmcProjectProgressService.deleteCmcProjectProgressByProjectIds(projectIds));
99 99
     }
100 100
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectProgressMapper.java Voir le fichier

@@ -14,10 +14,10 @@ public interface CmcProjectProgressMapper
14 14
     /**
15 15
      * 查询cmc项目进度
16 16
      * 
17
-     * @param progressId cmc项目进度主键
17
+     * @param projectId cmc项目进度主键
18 18
      * @return cmc项目进度
19 19
      */
20
-    public CmcProjectProgress selectCmcProjectProgressByProgressId(String progressId);
20
+    public CmcProjectProgress selectCmcProjectProgressByProjectId(String projectId);
21 21
 
22 22
     /**
23 23
      * 查询cmc项目进度列表
@@ -46,16 +46,16 @@ public interface CmcProjectProgressMapper
46 46
     /**
47 47
      * 删除cmc项目进度
48 48
      * 
49
-     * @param progressId cmc项目进度主键
49
+     * @param projectId cmc项目进度主键
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcProjectProgressByProgressId(String progressId);
52
+    public int deleteCmcProjectProgressByProjectId(String projectId);
53 53
 
54 54
     /**
55 55
      * 批量删除cmc项目进度
56 56
      * 
57
-     * @param progressIds 需要删除的数据主键集合
57
+     * @param projectIds 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcProjectProgressByProgressIds(String[] progressIds);
60
+    public int deleteCmcProjectProgressByProjectIds(String[] projectIds);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectProgressService.java Voir le fichier

@@ -14,10 +14,10 @@ public interface ICmcProjectProgressService
14 14
     /**
15 15
      * 查询cmc项目进度
16 16
      * 
17
-     * @param progressId cmc项目进度主键
17
+     * @param projectId cmc项目进度主键
18 18
      * @return cmc项目进度
19 19
      */
20
-    public CmcProjectProgress selectCmcProjectProgressByProgressId(String progressId);
20
+    public CmcProjectProgress selectCmcProjectProgressByProjectId(String projectId);
21 21
 
22 22
     /**
23 23
      * 查询cmc项目进度列表
@@ -46,16 +46,16 @@ public interface ICmcProjectProgressService
46 46
     /**
47 47
      * 批量删除cmc项目进度
48 48
      * 
49
-     * @param progressIds 需要删除的cmc项目进度主键集合
49
+     * @param projectIds 需要删除的cmc项目进度主键集合
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcProjectProgressByProgressIds(String[] progressIds);
52
+    public int deleteCmcProjectProgressByProjectIds(String[] projectIds);
53 53
 
54 54
     /**
55 55
      * 删除cmc项目进度信息
56 56
      * 
57
-     * @param progressId cmc项目进度主键
57
+     * @param projectId cmc项目进度主键
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcProjectProgressByProgressId(String progressId);
60
+    public int deleteCmcProjectProgressByProjectId(String projectId);
61 61
 }

+ 9
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectProgressServiceImpl.java Voir le fichier

@@ -22,13 +22,13 @@ public class CmcProjectProgressServiceImpl implements ICmcProjectProgressService
22 22
     /**
23 23
      * 查询cmc项目进度
24 24
      * 
25
-     * @param progressId cmc项目进度主键
25
+     * @param projectId cmc项目进度主键
26 26
      * @return cmc项目进度
27 27
      */
28 28
     @Override
29
-    public CmcProjectProgress selectCmcProjectProgressByProgressId(String progressId)
29
+    public CmcProjectProgress selectCmcProjectProgressByProjectId(String projectId)
30 30
     {
31
-        return cmcProjectProgressMapper.selectCmcProjectProgressByProgressId(progressId);
31
+        return cmcProjectProgressMapper.selectCmcProjectProgressByProjectId(projectId);
32 32
     }
33 33
 
34 34
     /**
@@ -70,24 +70,24 @@ public class CmcProjectProgressServiceImpl implements ICmcProjectProgressService
70 70
     /**
71 71
      * 批量删除cmc项目进度
72 72
      * 
73
-     * @param progressIds 需要删除的cmc项目进度主键
73
+     * @param projectIds 需要删除的cmc项目进度主键
74 74
      * @return 结果
75 75
      */
76 76
     @Override
77
-    public int deleteCmcProjectProgressByProgressIds(String[] progressIds)
77
+    public int deleteCmcProjectProgressByProjectIds(String[] projectIds)
78 78
     {
79
-        return cmcProjectProgressMapper.deleteCmcProjectProgressByProgressIds(progressIds);
79
+        return cmcProjectProgressMapper.deleteCmcProjectProgressByProjectIds(projectIds);
80 80
     }
81 81
 
82 82
     /**
83 83
      * 删除cmc项目进度信息
84 84
      * 
85
-     * @param progressId cmc项目进度主键
85
+     * @param projectId cmc项目进度主键
86 86
      * @return 结果
87 87
      */
88 88
     @Override
89
-    public int deleteCmcProjectProgressByProgressId(String progressId)
89
+    public int deleteCmcProjectProgressByProjectId(String projectId)
90 90
     {
91
-        return cmcProjectProgressMapper.deleteCmcProjectProgressByProgressId(progressId);
91
+        return cmcProjectProgressMapper.deleteCmcProjectProgressByProjectId(projectId);
92 92
     }
93 93
 }

+ 8
- 8
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectProgressMapper.xml Voir le fichier

@@ -26,9 +26,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
26 26
         </where>
27 27
     </select>
28 28
     
29
-    <select id="selectCmcProjectProgressByProgressId" parameterType="String" resultMap="CmcProjectProgressResult">
29
+    <select id="selectCmcProjectProgressByProjectId" parameterType="String" resultMap="CmcProjectProgressResult">
30 30
         <include refid="selectCmcProjectProgressVo"/>
31
-        where progress_id = #{progressId}
31
+        where project_id = #{projectId}
32 32
     </select>
33 33
         
34 34
     <insert id="insertCmcProjectProgress" parameterType="CmcProjectProgress">
@@ -60,14 +60,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
60 60
         where progress_id = #{progressId}
61 61
     </update>
62 62
 
63
-    <delete id="deleteCmcProjectProgressByProgressId" parameterType="String">
64
-        delete from cmc_project_progress where progress_id = #{progressId}
63
+    <delete id="deleteCmcProjectProgressByProjectId" parameterType="String">
64
+        delete from cmc_project_progress where project_id = #{projectId}
65 65
     </delete>
66 66
 
67
-    <delete id="deleteCmcProjectProgressByProgressIds" parameterType="String">
68
-        delete from cmc_project_progress where progress_id in 
69
-        <foreach item="progressId" collection="array" open="(" separator="," close=")">
70
-            #{progressId}
67
+    <delete id="deleteCmcProjectProgressByProjectIds" parameterType="String">
68
+        delete from cmc_project_progress where project_id in
69
+        <foreach item="projectId" collection="array" open="(" separator="," close=")">
70
+            #{projectId}
71 71
         </foreach>
72 72
     </delete>
73 73
 </mapper>

+ 31
- 14
oa-ui/src/views/flowable/form/cwTable.vue Voir le fichier

@@ -39,10 +39,12 @@
39 39
             :disabled="!isDeptLeader">
40 40
           </el-input>
41 41
           <el-row justify="center" type="flex">
42
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
43
-                :disabled="!isDeptLeader"></el-input> </el-col>
44
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
45
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
42
+                        <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
43
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
44
+            </el-col>
45
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
46
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
47
+            </el-col>
46 48
           </el-row>
47 49
         </td>
48 50
         <td colspan="3" rowspan="3">
@@ -50,10 +52,12 @@
50 52
             :disabled="!isManager">
51 53
           </el-input>
52 54
           <el-row justify="center">
53
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
54
-                :disabled="!isManager"></el-input></el-col>
55
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
56
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
55
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
56
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
57
+            </el-col>
58
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
59
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
60
+            </el-col>
57 61
           </el-row>
58 62
         </td>
59 63
       </tr>
@@ -529,6 +533,8 @@
529 533
 </template>
530 534
 
531 535
 <script>
536
+import { parseTime } from "@/utils/ruoyi";
537
+import { mapGetters } from "vuex";
532 538
 import { XMContent } from '@/assets/datas/XMContent'
533 539
 import { getDicts as getDicts } from '@/api/system/dict/data'
534 540
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
@@ -551,6 +557,10 @@ export default {
551 557
   },
552 558
   data() {
553 559
     return {
560
+      deptAssesser: '',
561
+      deptTime: undefined,
562
+      managerAssesser: '',
563
+      managerTime: undefined,
554 564
       tableForm: {},
555 565
       form: {},
556 566
       radio1: "",
@@ -564,6 +574,14 @@ export default {
564 574
     }
565 575
   },
566 576
   created() {
577
+    if (this.taskName == '部门审核') {
578
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
579
+      this.deptAssesser = this.name;
580
+    }
581
+    else if (this.taskName == '分管审核') {
582
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
583
+      this.managerAssesser = this.name;
584
+    }
567 585
     this.initForm();
568 586
   },
569 587
   mounted() {
@@ -588,13 +606,8 @@ export default {
588 606
     },
589 607
     formatForm() {
590 608
 
591
-      if (this.taskName == '项目负责人审核') {
609
+      if (this.taskName == '部门审核') {
592 610
         this.isPiLeader = true;
593
-        this.isDeptLeader = false;
594
-        this.isManager = false;
595
-        this.isStaff = false;
596
-      } else if (this.taskName == '部门审核') {
597
-        this.isPiLeader = false;
598 611
         this.isDeptLeader = true;
599 612
         this.isManager = false;
600 613
         this.isStaff = false;
@@ -784,4 +797,8 @@ td {
784 797
   border-radius: 0px;
785 798
   background: none;
786 799
 }
800
+.auditor {
801
+  font-family: '华文行楷';
802
+  font-size: 20px;
803
+}
787 804
 </style>

+ 32
- 14
oa-ui/src/views/flowable/form/jsTable.vue Voir le fichier

@@ -40,10 +40,12 @@
40 40
             :disabled="!isDeptLeader">
41 41
           </el-input>
42 42
           <el-row justify="center" type="flex">
43
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
44
-                :disabled="!isDeptLeader"></el-input> </el-col>
45
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
46
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
43
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
44
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
45
+            </el-col>
46
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
47
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
48
+            </el-col>
47 49
           </el-row>
48 50
         </td>
49 51
         <td colspan="3" rowspan="4">
@@ -51,10 +53,12 @@
51 53
             :disabled="!isManager">
52 54
           </el-input>
53 55
           <el-row justify="center">
54
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
55
-                :disabled="!isManager"></el-input></el-col>
56
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
57
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
56
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
57
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
58
+            </el-col>
59
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
60
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
61
+            </el-col>
58 62
           </el-row>
59 63
         </td>
60 64
       </tr>
@@ -610,6 +614,8 @@
610 614
 </template>
611 615
 
612 616
 <script>
617
+import { parseTime } from "@/utils/ruoyi";
618
+import { mapGetters } from "vuex";
613 619
 import { JYContent } from '@/assets/datas/JYContent'
614 620
 import { getDicts as getDicts } from '@/api/system/dict/data'
615 621
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
@@ -632,6 +638,10 @@ export default {
632 638
   },
633 639
   data() {
634 640
     return {
641
+      deptAssesser: '',
642
+      deptTime: undefined,
643
+      managerAssesser: '',
644
+      managerTime: undefined,
635 645
       tableForm: {},
636 646
       form: {},
637 647
       radio1: "",
@@ -645,6 +655,14 @@ export default {
645 655
     }
646 656
   },
647 657
   created() {
658
+    if (this.taskName == '部门审核') {
659
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
660
+      this.deptAssesser = this.name;
661
+    }
662
+    else if (this.taskName == '分管审核') {
663
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
664
+      this.managerAssesser = this.name;
665
+    }
648 666
     this.initForm();
649 667
   },
650 668
   mounted() {
@@ -668,13 +686,9 @@ export default {
668 686
       })
669 687
     },
670 688
     formatForm() {
671
-      if (this.taskName == '项目负责人审核') {
689
+
690
+      if (this.taskName == '部门审核') {
672 691
         this.isPiLeader = true;
673
-        this.isDeptLeader = false;
674
-        this.isManager = false;
675
-        this.isStaff = false;
676
-      } else if (this.taskName == '部门审核') {
677
-        this.isPiLeader = false;
678 692
         this.isDeptLeader = true;
679 693
         this.isManager = false;
680 694
         this.isStaff = false;
@@ -864,4 +878,8 @@ td {
864 878
   border-radius: 0px;
865 879
   background: none;
866 880
 }
881
+.auditor {
882
+  font-family: '华文行楷';
883
+  font-size: 20px;
884
+}
867 885
 </style>

+ 32
- 13
oa-ui/src/views/flowable/form/jyTable.vue Voir le fichier

@@ -39,10 +39,12 @@
39 39
             :disabled="!isDeptLeader">
40 40
           </el-input>
41 41
           <el-row justify="center" type="flex">
42
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
43
-                :disabled="!isDeptLeader"></el-input> </el-col>
44
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
45
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
42
+                        <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
43
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
44
+            </el-col>
45
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
46
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
47
+            </el-col>
46 48
           </el-row>
47 49
         </td>
48 50
         <td colspan="3" rowspan="3">
@@ -50,10 +52,12 @@
50 52
             :disabled="!isManager">
51 53
           </el-input>
52 54
           <el-row justify="center">
53
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
54
-                :disabled="!isManager"></el-input></el-col>
55
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
56
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
55
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
56
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
57
+            </el-col>
58
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
59
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
60
+            </el-col>
57 61
           </el-row>
58 62
         </td>
59 63
       </tr>
@@ -313,6 +317,8 @@
313 317
 </template>
314 318
 
315 319
 <script>
320
+import { parseTime } from "@/utils/ruoyi";
321
+import { mapGetters } from "vuex";
316 322
 import { JYContent } from '@/assets/datas/JYContent'
317 323
 import { getDicts as getDicts } from '@/api/system/dict/data'
318 324
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
@@ -335,6 +341,10 @@ export default {
335 341
   },
336 342
   data() {
337 343
     return {
344
+      deptAssesser: '',
345
+      deptTime: undefined,
346
+      managerAssesser: '',
347
+      managerTime: undefined,
338 348
       tableForm: {},
339 349
       form: {},
340 350
       radio1: "",
@@ -348,6 +358,14 @@ export default {
348 358
     }
349 359
   },
350 360
   created() {
361
+    if (this.taskName == '部门审核') {
362
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
363
+      this.deptAssesser = this.name;
364
+    }
365
+    else if (this.taskName == '分管审核') {
366
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
367
+      this.managerAssesser = this.name;
368
+    }
351 369
     this.initForm();
352 370
   },
353 371
   mounted() {
@@ -371,12 +389,9 @@ export default {
371 389
       })
372 390
     },
373 391
     formatForm() {
374
-      if (this.taskName == '项目负责人审核') {
392
+
393
+      if (this.taskName == '部门审核') {
375 394
         this.isPiLeader = true;
376
-        this.isDeptLeader = false;
377
-        this.isManager = false;
378
-        this.isStaff = false;
379
-      } else if (this.taskName == '部门审核') {
380 395
         this.isPiLeader = false;
381 396
         this.isDeptLeader = true;
382 397
         this.isManager = false;
@@ -568,4 +583,8 @@ td {
568 583
   border-radius: 0px;
569 584
   background: none;
570 585
 }
586
+.auditor {
587
+  font-family: '华文行楷';
588
+  font-size: 20px;
589
+}
571 590
 </style>

+ 32
- 9
oa-ui/src/views/flowable/form/scTable.vue Voir le fichier

@@ -57,10 +57,12 @@
57 57
             :disabled="!isDeptLeader">
58 58
           </el-input>
59 59
           <el-row justify="center" type="flex">
60
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
61
-                :disabled="!isDeptLeader"></el-input> </el-col>
62
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
63
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
60
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
61
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
62
+            </el-col>
63
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
64
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
65
+            </el-col>
64 66
           </el-row>
65 67
         </td>
66 68
         <td colspan="3" rowspan="5">
@@ -68,10 +70,12 @@
68 70
             :disabled="!isManager">
69 71
           </el-input>
70 72
           <el-row justify="center">
71
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
72
-                :disabled="!isManager"></el-input></el-col>
73
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
74
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
73
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
74
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
75
+            </el-col>
76
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
77
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
78
+            </el-col>
75 79
           </el-row>
76 80
         </td>
77 81
       </tr>
@@ -1595,6 +1599,8 @@
1595 1599
 </template>
1596 1600
 
1597 1601
 <script>
1602
+import { parseTime } from "@/utils/ruoyi";
1603
+import { mapGetters } from "vuex";
1598 1604
 import { SCContent } from '@/assets/datas/SCContent'
1599 1605
 import { getDicts as getDicts } from '@/api/system/dict/data'
1600 1606
 import { listProject } from '@/api/oa/project/project.js'
@@ -1620,6 +1626,10 @@ export default {
1620 1626
   },
1621 1627
   data() {
1622 1628
     return {
1629
+      deptAssesser: '',
1630
+      deptTime: undefined,
1631
+      managerAssesser: '',
1632
+      managerTime: undefined,
1623 1633
       tableForm: {},
1624 1634
       form: {},
1625 1635
       radio1: "",
@@ -1634,6 +1644,14 @@ export default {
1634 1644
     }
1635 1645
   },
1636 1646
   created() {
1647
+    if (this.taskName == '部门审核') {
1648
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
1649
+      this.deptAssesser = this.name;
1650
+    }
1651
+    else if (this.taskName == '分管审核') {
1652
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
1653
+      this.managerAssesser = this.name;
1654
+    }
1637 1655
     this.initForm();
1638 1656
   },
1639 1657
   mounted() {
@@ -1909,4 +1927,9 @@ td {
1909 1927
   transform: rotate(-45deg);
1910 1928
   border-radius: 0px;
1911 1929
   background: none;
1912
-}</style>
1930
+}
1931
+.auditor {
1932
+  font-family: '华文行楷';
1933
+  font-size: 20px;
1934
+}
1935
+</style>

+ 38
- 16
oa-ui/src/views/flowable/form/xmTable.vue Voir le fichier

@@ -39,10 +39,12 @@
39 39
             :disabled="!isDeptLeader">
40 40
           </el-input>
41 41
           <el-row justify="center" type="flex">
42
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
43
-                :disabled="!isDeptLeader"></el-input> </el-col>
44
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
45
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
42
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
43
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
44
+            </el-col>
45
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
46
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
47
+            </el-col>
46 48
           </el-row>
47 49
         </td>
48 50
         <td colspan="3" rowspan="3">
@@ -50,10 +52,12 @@
50 52
             :disabled="!isManager">
51 53
           </el-input>
52 54
           <el-row justify="center">
53
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
54
-                :disabled="!isManager"></el-input></el-col>
55
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
56
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
55
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
56
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
57
+            </el-col>
58
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
59
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
60
+            </el-col>
57 61
           </el-row>
58 62
         </td>
59 63
       </tr>
@@ -336,13 +340,15 @@
336 340
       </tr>
337 341
     </table>
338 342
     <el-row justify="center" type="flex" style="margin-top:20px;">
339
-      <el-button type="primary" size="mini" @click="submit">{{ taskName == '员工填报' ? '提交' : '审核通过'  }}</el-button>
343
+      <el-button type="primary" size="mini" @click="submit">{{ taskName == '员工填报' ? '提交' : '审核通过' }}</el-button>
340 344
       <el-button v-if="taskName == '员工填报'" type="warning" size="mini" @click="$emit('close')">取消</el-button>
341 345
     </el-row>
342 346
   </div>
343 347
 </template>
344 348
 
345 349
 <script>
350
+import { parseTime } from "@/utils/ruoyi";
351
+import { mapGetters } from "vuex";
346 352
 import { XMContent } from '@/assets/datas/XMContent'
347 353
 import { getDicts as getDicts } from '@/api/system/dict/data'
348 354
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
@@ -365,7 +371,11 @@ export default {
365 371
   },
366 372
   data() {
367 373
     return {
368
-      tableForm: {},      
374
+      deptAssesser: '',
375
+      deptTime: undefined,
376
+      managerAssesser: '',
377
+      managerTime: undefined,
378
+      tableForm: {},
369 379
       form: {},
370 380
       radio1: "",
371 381
       radio2: "",
@@ -377,7 +387,18 @@ export default {
377 387
       isStaff: false,
378 388
     }
379 389
   },
390
+  computed: {
391
+    ...mapGetters(["userId", "name"]),
392
+  },
380 393
   created() {
394
+    if (this.taskName == '部门审核') {
395
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
396
+      this.deptAssesser = this.name;
397
+    }
398
+    else if (this.taskName == '分管审核') {
399
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
400
+      this.managerAssesser = this.name;
401
+    }
381 402
     this.initForm();
382 403
   },
383 404
   mounted() {
@@ -401,13 +422,9 @@ export default {
401 422
       })
402 423
     },
403 424
     formatForm() {
404
-      if (this.taskName == '项目负责人审核') {
425
+
426
+      if (this.taskName == '部门审核') {
405 427
         this.isPiLeader = true;
406
-        this.isDeptLeader = false;
407
-        this.isManager = false;
408
-        this.isStaff = false;
409
-      } else if (this.taskName == '部门审核') {
410
-        this.isPiLeader = false;
411 428
         this.isDeptLeader = true;
412 429
         this.isManager = false;
413 430
         this.isStaff = false;
@@ -598,4 +615,9 @@ td {
598 615
   border-radius: 0px;
599 616
   background: none;
600 617
 }
618
+
619
+.auditor {
620
+  font-family: '华文行楷';
621
+  font-size: 20px;
622
+}
601 623
 </style>

+ 34
- 15
oa-ui/src/views/flowable/form/zhTable.vue Voir le fichier

@@ -39,10 +39,12 @@
39 39
             :disabled="!isDeptLeader">
40 40
           </el-input>
41 41
           <el-row justify="center" type="flex">
42
-            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人"
43
-                :disabled="!isDeptLeader"></el-input> </el-col>
44
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.deptTime"
45
-                style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
42
+                        <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
43
+              <span class="auditor"> {{ tableForm.deptAssesser ? tableForm.deptAssesser.nickName : deptAssesser }} </span>
44
+            </el-col>
45
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
46
+              <span> {{ tableForm.deptTime ? tableForm.deptTime : deptTime }} </span>
47
+            </el-col>
46 48
           </el-row>
47 49
         </td>
48 50
         <td colspan="3" rowspan="3">
@@ -50,10 +52,12 @@
50 52
             :disabled="!isManager">
51 53
           </el-input>
52 54
           <el-row justify="center">
53
-            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人"
54
-                :disabled="!isManager"></el-input></el-col>
55
-            <el-col :span="12">日期:<el-date-picker type="date" placeholder="请选择考核日期" v-model="tableForm.managerTime"
56
-                style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
55
+            <el-col :span="12" style="text-align:center; padding-top:7px;">考核人:
56
+              <span class="auditor"> {{ tableForm.managerAssesser ? tableForm.managerAssesser.nickName : managerAssesser }} </span>
57
+            </el-col>
58
+            <el-col :span="12" style="text-align:center; padding-top:7px;">日期:
59
+              <span> {{ tableForm.managerTime ? tableForm.managerTime : managerTime }} </span>
60
+            </el-col>
57 61
           </el-row>
58 62
         </td>
59 63
       </tr>
@@ -761,6 +765,8 @@
761 765
 </template>
762 766
 
763 767
 <script>
768
+import { parseTime } from "@/utils/ruoyi";
769
+import { mapGetters } from "vuex";
764 770
 import { JYContent } from '@/assets/datas/JYContent'
765 771
 import { getDicts as getDicts } from '@/api/system/dict/data'
766 772
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
@@ -787,6 +793,10 @@ export default {
787 793
   },
788 794
   data() {
789 795
     return {
796
+      deptAssesser: '',
797
+      deptTime: undefined,
798
+      managerAssesser: '',
799
+      managerTime: undefined,
790 800
       tableForm: {},
791 801
       form: {},
792 802
       radio1: "",
@@ -800,6 +810,14 @@ export default {
800 810
     }
801 811
   },
802 812
   created() {
813
+    if (this.taskName == '部门审核') {
814
+      this.deptTime = parseTime(new Date(), '{y}-{m}-{d}')
815
+      this.deptAssesser = this.name;
816
+    }
817
+    else if (this.taskName == '分管审核') {
818
+      this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
819
+      this.managerAssesser = this.name;
820
+    }
803 821
     this.initForm();
804 822
   },
805 823
   mounted() {
@@ -823,13 +841,9 @@ initForm() {
823 841
       })
824 842
     },
825 843
     formatForm() {
826
-      if (this.taskName == '项目负责人审核') {
844
+
845
+      if (this.taskName == '部门审核') {
827 846
         this.isPiLeader = true;
828
-        this.isDeptLeader = false;
829
-        this.isManager = false;
830
-        this.isStaff = false;
831
-      } else if (this.taskName == '部门审核') {
832
-        this.isPiLeader = false;
833 847
         this.isDeptLeader = true;
834 848
         this.isManager = false;
835 849
         this.isStaff = false;
@@ -1019,4 +1033,9 @@ td {
1019 1033
   transform: rotate(-45deg);
1020 1034
   border-radius: 0px;
1021 1035
   background: none;
1022
-}</style>
1036
+}
1037
+.auditor {
1038
+  font-family: '华文行楷';
1039
+  font-size: 20px;
1040
+}
1041
+</style>

Loading…
Annuler
Enregistrer