Browse Source

查询车辆、驾驶员列表

lamphua 1 year ago
parent
commit
53111b8bd9

+ 1
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarApprovalController.java View File

@@ -1,8 +1,7 @@
1
-package com.ruoyi.oa.controller;
1
+package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcCarApprovalController extends BaseController
37 36
     /**
38 37
      * 查询cmc用车审批列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:approval:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcCarApproval cmcCarApproval)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcCarApprovalController extends BaseController
49 47
     /**
50 48
      * 导出cmc用车审批列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:approval:export')")
53 50
     @Log(title = "cmc用车审批", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcCarApproval cmcCarApproval)
@@ -62,7 +59,6 @@ public class CmcCarApprovalController extends BaseController
62 59
     /**
63 60
      * 获取cmc用车审批详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:approval:query')")
66 62
     @GetMapping(value = "/{carApplyId}")
67 63
     public AjaxResult getInfo(@PathVariable("carApplyId") String carApplyId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcCarApprovalController extends BaseController
72 68
     /**
73 69
      * 新增cmc用车审批
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:approval:add')")
76 71
     @Log(title = "cmc用车审批", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcCarApproval cmcCarApproval)
@@ -83,7 +78,6 @@ public class CmcCarApprovalController extends BaseController
83 78
     /**
84 79
      * 修改cmc用车审批
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:approval:edit')")
87 81
     @Log(title = "cmc用车审批", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcCarApproval cmcCarApproval)
@@ -94,7 +88,6 @@ public class CmcCarApprovalController extends BaseController
94 88
     /**
95 89
      * 删除cmc用车审批
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:approval:remove')")
98 91
     @Log(title = "cmc用车审批", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{carApplyIds}")
100 93
     public AjaxResult remove(@PathVariable String[] carApplyIds)

+ 3
- 10
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarController.java View File

@@ -1,8 +1,8 @@
1
-package com.ruoyi.oa.controller;
1
+package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+
6 6
 import org.springframework.beans.factory.annotation.Autowired;
7 7
 import org.springframework.web.bind.annotation.GetMapping;
8 8
 import org.springframework.web.bind.annotation.PostMapping;
@@ -23,7 +23,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
23 23
 
24 24
 /**
25 25
  * cmc车辆信息Controller
26
- * 
26
+ *
27 27
  * @author cmc
28 28
  * @date 2024-02-23
29 29
  */
@@ -33,11 +33,9 @@ public class CmcCarController extends BaseController
33 33
 {
34 34
     @Autowired
35 35
     private ICmcCarService cmcCarService;
36
-
37 36
     /**
38 37
      * 查询cmc车辆信息列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:car:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcCar cmcCar)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcCarController extends BaseController
49 47
     /**
50 48
      * 导出cmc车辆信息列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:car:export')")
53 50
     @Log(title = "cmc车辆信息", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcCar cmcCar)
@@ -62,7 +59,6 @@ public class CmcCarController extends BaseController
62 59
     /**
63 60
      * 获取cmc车辆信息详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:car:query')")
66 62
     @GetMapping(value = "/{carId}")
67 63
     public AjaxResult getInfo(@PathVariable("carId") Long carId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcCarController extends BaseController
72 68
     /**
73 69
      * 新增cmc车辆信息
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:car:add')")
76 71
     @Log(title = "cmc车辆信息", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcCar cmcCar)
@@ -83,7 +78,6 @@ public class CmcCarController extends BaseController
83 78
     /**
84 79
      * 修改cmc车辆信息
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:car:edit')")
87 81
     @Log(title = "cmc车辆信息", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcCar cmcCar)
@@ -94,7 +88,6 @@ public class CmcCarController extends BaseController
94 88
     /**
95 89
      * 删除cmc车辆信息
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:car:remove')")
98 91
     @Log(title = "cmc车辆信息", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{carIds}")
100 93
     public AjaxResult remove(@PathVariable Long[] carIds)

+ 15
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java View File

@@ -2,6 +2,9 @@ package com.ruoyi.web.controller.system;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.core.domain.entity.SysUser;
7
+import com.ruoyi.system.service.ISysUserService;
5 8
 import org.springframework.beans.factory.annotation.Autowired;
6 9
 import org.springframework.security.access.prepost.PreAuthorize;
7 10
 import org.springframework.validation.annotation.Validated;
@@ -45,7 +48,18 @@ public class SysPostController extends BaseController
45 48
         List<SysPost> list = postService.selectPostList(post);
46 49
         return getDataTable(list);
47 50
     }
48
-    
51
+
52
+    /**
53
+     * 获取岗位列表
54
+     */
55
+    @GetMapping("/driverList")
56
+    public TableDataInfo driverList()
57
+    {
58
+        startPage();
59
+        List<SysUser> list = postService.driverList();
60
+        return getDataTable(list);
61
+    }
62
+
49 63
     @Log(title = "岗位管理", businessType = BusinessType.EXPORT)
50 64
     @PreAuthorize("@ss.hasPermi('system:post:export')")
51 65
     @PostMapping("/export")

+ 14
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java View File

@@ -66,6 +66,10 @@ public class CmcProject extends BaseEntity
66 66
     @Excel(name = "项目登记人")
67 67
     private String projectRegistrant;
68 68
 
69
+    /** 承担部门 */
70
+    @Excel(name = "承担部门")
71
+    private String undertakingDept;
72
+
69 73
     public void setProjectId(String projectId)
70 74
     {
71 75
         this.projectId = projectId;
@@ -183,6 +187,15 @@ public class CmcProject extends BaseEntity
183 187
     {
184 188
         return projectRegistrant;
185 189
     }
190
+    public void setUndertakingDept(String undertakingDept)
191
+    {
192
+        this.undertakingDept = undertakingDept;
193
+    }
194
+
195
+    public String getUndertakingDept()
196
+    {
197
+        return undertakingDept;
198
+    }
186 199
 
187 200
     @Override
188 201
     public String toString() {
@@ -199,6 +212,7 @@ public class CmcProject extends BaseEntity
199 212
                 .append("projectType", getProjectType())
200 213
                 .append("projectLevel", getProjectLevel())
201 214
                 .append("projectRegistrant", getProjectRegistrant())
215
+                .append("undertakingDept", getUndertakingDept())
202 216
                 .toString();
203 217
     }
204 218
 }

+ 10
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java View File

@@ -1,6 +1,8 @@
1 1
 package com.ruoyi.system.mapper;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4 6
 import com.ruoyi.system.domain.SysUserPost;
5 7
 
6 8
 /**
@@ -41,4 +43,12 @@ public interface SysUserPostMapper
41 43
      * @return 结果
42 44
      */
43 45
     public int batchUserPost(List<SysUserPost> userPostList);
46
+
47
+    /**
48
+     * 查询驾驶员集合
49
+     *
50
+     * @param
51
+     * @return 驾驶员列表
52
+     */
53
+    List<SysUser> selectDriverList();
44 54
 }

+ 10
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java View File

@@ -1,6 +1,8 @@
1 1
 package com.ruoyi.system.service;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4 6
 import com.ruoyi.system.domain.SysPost;
5 7
 
6 8
 /**
@@ -96,4 +98,12 @@ public interface ISysPostService
96 98
      * @return 结果
97 99
      */
98 100
     public int updatePost(SysPost post);
101
+
102
+    /**
103
+     * 查询驾驶员集合
104
+     *
105
+     * @param
106
+     * @return 驾驶员列表
107
+     */
108
+    List<SysUser> driverList();
99 109
 }

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java View File

@@ -1,6 +1,8 @@
1 1
 package com.ruoyi.system.service.impl;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4 6
 import org.springframework.beans.factory.annotation.Autowired;
5 7
 import org.springframework.stereotype.Service;
6 8
 import com.ruoyi.common.constant.UserConstants;
@@ -175,4 +177,15 @@ public class SysPostServiceImpl implements ISysPostService
175 177
     {
176 178
         return postMapper.updatePost(post);
177 179
     }
180
+
181
+    /**
182
+     * 查询驾驶员集合
183
+     *
184
+     * @param
185
+     * @return 驾驶员列表
186
+     */
187
+    @Override
188
+    public List<SysUser> driverList() {
189
+        return userPostMapper.selectDriverList();
190
+    }
178 191
 }

+ 5
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml View File

@@ -17,12 +17,13 @@
17 17
         <result property="projectType"    column="project_type"    />
18 18
         <result property="projectLevel"    column="project_level"    />
19 19
         <result property="projectRegistrant"    column="project_registrant"    />
20
+        <result property="undertakingDept"    column="undertaking_dept"    />
20 21
         <result property="createTime"    column="create_time"    />
21 22
         <result property="remark"    column="remark"    />
22 23
     </resultMap>
23 24
 
24 25
     <sql id="selectCmcProjectVo">
25
-        select project_id, project_number, project_name, project_leader, is_finished, project_source, party_a, contact_person, telephone, project_type, project_level, project_registrant, create_time, remark from cmc_project
26
+        select project_id, project_number, project_name, project_leader, is_finished, project_source, party_a, contact_person, telephone, project_type, project_level, project_registrant, undertaking_dept, create_time, remark from cmc_project
26 27
     </sql>
27 28
 
28 29
     <select id="selectCmcProjectList" parameterType="CmcProject" resultMap="CmcProjectResult">
@@ -30,7 +31,6 @@
30 31
         <where>
31 32
             <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
32 33
             <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
33
-            <if test="projectLeader != null "> and project_leader = #{projectLeader}</if>
34 34
             <if test="isFinished != null  and isFinished != ''"> and is_finished = #{isFinished}</if>
35 35
             <if test="projectSource != null  and projectSource != ''"> and project_source = #{projectSource}</if>
36 36
             <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
@@ -38,7 +38,6 @@
38 38
             <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
39 39
             <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
40 40
             <if test="projectLevel != null  and projectLevel != ''"> and project_level = #{projectLevel}</if>
41
-            <if test="projectRegistrant != null "> and project_registrant = #{projectRegistrant}</if>
42 41
         </where>
43 42
     </select>
44 43
 
@@ -62,6 +61,7 @@
62 61
             <if test="projectType != null">project_type,</if>
63 62
             <if test="projectLevel != null">project_level,</if>
64 63
             <if test="projectRegistrant != null">project_registrant,</if>
64
+            <if test="undertakingDept != null">undertaking_dept,</if>
65 65
             <if test="createTime != null">create_time,</if>
66 66
             <if test="remark != null">remark,</if>
67 67
         </trim>
@@ -78,6 +78,7 @@
78 78
             <if test="projectType != null">#{projectType},</if>
79 79
             <if test="projectLevel != null">#{projectLevel},</if>
80 80
             <if test="projectRegistrant != null">#{projectRegistrant},</if>
81
+            <if test="undertakingDept != null">#{undertakingDept},</if>
81 82
             <if test="createTime != null">#{createTime},</if>
82 83
             <if test="remark != null">#{remark},</if>
83 84
         </trim>
@@ -97,6 +98,7 @@
97 98
             <if test="projectType != null">project_type = #{projectType},</if>
98 99
             <if test="projectLevel != null">project_level = #{projectLevel},</if>
99 100
             <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>
101
+            <if test="undertakingDept != null">undertaking_dept = #{undertakingDept},</if>
100 102
             <if test="createTime != null">create_time = #{createTime},</if>
101 103
             <if test="remark != null">remark = #{remark},</if>
102 104
         </trim>

+ 13
- 0
oa-back/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml View File

@@ -9,6 +9,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
9 9
 		<result property="postId"     column="post_id"      />
10 10
 	</resultMap>
11 11
 
12
+	<resultMap type="SysUser" id="SysUserResult">
13
+		<id     property="userId"       column="user_id"      />
14
+		<result property="nickName"     column="nick_name"    />
15
+	</resultMap>
16
+
17
+	<select id="selectDriverList" parameterType="SysUser" resultMap="SysUserResult">
18
+		select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.pm_level, u.titles, u.update_reason, u.engineer_level, u.entry_date, u.age,
19
+			   up.post_id
20
+		from sys_user u
21
+				 left join sys_user_post up on u.user_id = up.user_id
22
+		where up.post_id = 27
23
+	</select>
24
+
12 25
 	<delete id="deleteUserPostByUserId" parameterType="Long">
13 26
 		delete from sys_user_post where user_id=#{userId}
14 27
 	</delete>

+ 58
- 57
oa-back/sql/ry_20231130.sql View File

@@ -1280,6 +1280,7 @@ create table cmc_project  (
1280 1280
   project_type			varchar(20)				default null		comment '项目类型',
1281 1281
   project_level			char(1)					default null		comment '项目级别(0一般项目、1重大项目)',
1282 1282
   project_registrant	varchar(3)				default null		comment '项目登记人',
1283
+  undertaking_dept		varchar(20)				default null		comment '承担部门',
1283 1284
   create_time			datetime				default null		comment '项目登记时间',
1284 1285
   remark				varchar(255)				default null		comment '项目备注',
1285 1286
   primary key (project_id)
@@ -1288,63 +1289,63 @@ create table cmc_project  (
1288 1289
 -- ----------------------------
1289 1290
 -- 初始化-项目表数据
1290 1291
 -- ----------------------------
1291
-insert into `cmc_project` values ('1633765257669246977', '2023C05', 'ML及JW水电工程建设征地实物指标调查配合测量', null, '0', null, null, null, null, null, null, null, null, null);
1292
-insert into `cmc_project` values ('1633768222907957249', '2023C12', '雅砻江两河口水电站水库泥沙监测系统建设工程、运行维护及泥沙淤积影响分析研究项目测量工作', null, '0', null, null, null, null, null, null, null, null, null);
1293
-insert into `cmc_project` values ('1633770346022699010', '2023W02', '雅砻江桐子林水电站水库泥沙断面测量', null, '0', null, null, null, null, null, null, null, null, null);
1294
-insert into `cmc_project` values ('1633770811569471490', '2023C01', '绵竹抽水蓄能电站工程区可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1295
-insert into `cmc_project` values ('1633771027018285057', '2023C02', '江油抽水蓄能电站可研阶段工程区1:1000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1296
-insert into `cmc_project` values ('1633771294472273922', '2023C17', '江油抽水蓄能水电站青江补水泵断面测量项目', null, '0', null, null, null, null, null, null, null, null, null);
1297
-insert into `cmc_project` values ('1633781742236073985', '2023C22', '牙根一级水电站坝址下游河段整治测绘工作', null, '0', null, null, null, null, null, null, null, null, null);
1298
-insert into `cmc_project` values ('1641355612560293889', '2023C26', '金沙江上游清洁能源基地叶巴滩混合式抽水蓄能电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1299
-insert into `cmc_project` values ('1641805297456513026', '2023HY01', '航测遥感中心零星及借调项目', null, '0', null, null, null, null, null, null, null, null, null);
1300
-insert into `cmc_project` values ('1641807061123596290', '2023C24', '岷江干流张坎航电枢纽工程界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null);
1301
-insert into `cmc_project` values ('1652690353125326849', '2023W13', '拉萨水环境项目测绘工作', null, '0', null, null, null, null, null, null, null, null, null);
1302
-insert into `cmc_project` values ('1658642869419769857', '2023C44', '老木孔水电站库区道路边沟坐标高程测量', null, '0', null, null, null, null, null, null, null, null, null);
1303
-insert into `cmc_project` values ('1658656258510553089', '2023C23', 'YX移民项目地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1304
-insert into `cmc_project` values ('1673601192074149890', '2023C49', '甘孜抽水蓄能水电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1305
-insert into `cmc_project` values ('1673601523608715266', '2023C54', '国能大渡河汉源永利坪光伏电站项目1:500地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1306
-insert into `cmc_project` values ('1673601908515799042', '2023C52', '老木孔航电枢纽工程排涝区域1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1307
-insert into `cmc_project` values ('1673602123545182210', '2023C53', '岷江干流张坎航电枢纽工程排涝区域1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1308
-insert into `cmc_project` values ('1676948354560425986', '2023C58', '溪洛渡水电站雷波县元宝乡跑马坪村配合测量', null, '0', null, null, null, null, null, null, null, null, null);
1309
-insert into `cmc_project` values ('1676948591949643777', '2023C59', '老沟水库库容曲线测量', null, '0', null, null, null, null, null, null, null, null, null);
1310
-insert into `cmc_project` values ('1676948942941585410', '2023C57', '官地水电站地形图测绘本', null, '0', null, null, null, null, null, null, null, null, null);
1311
-insert into `cmc_project` values ('1679769237196898306', '2022C65', '大熊猫国家公园芦山县长石坝-南天门、鹿厂河-九里岗防火道路恢复重建工程地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1312
-insert into `cmc_project` values ('1679769589929476097', '2022C66', '大熊猫国家公园芦山县保护管理设施项目地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1313
-insert into `cmc_project` values ('1679769796872241154', '2023C60', '大渡河流域扩机电站坐标转换', null, '0', null, null, null, null, null, null, null, null, null);
1314
-insert into `cmc_project` values ('1679770747494465538', '2023C47', '绵竹抽水蓄能电站界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null);
1315
-insert into `cmc_project` values ('1679772570787774466', '2023W24', '双流地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1316
-insert into `cmc_project` values ('1685853339360690177', '2023W27', '简阳1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1317
-insert into `cmc_project` values ('1685853709264748546', '2023C61', '革什扎河吉牛水电站8#支洞口地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1318
-insert into `cmc_project` values ('1694527969734688770', '2023C63', '波罗水电站补充地形地类图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1319
-insert into `cmc_project` values ('1694528325550080002', '2023C69', '金沙江岗托水电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1320
-insert into `cmc_project` values ('1694633405980868610', '2023C66', '硬梁包水电站库区实物指标配合测量', null, '0', null, null, null, null, null, null, null, null, null);
1321
-insert into `cmc_project` values ('1694634867926499329', '2023C62', '铜街子水电站坝后段及渣场1:500地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1322
-insert into `cmc_project` values ('1697108010087743490', '2023C72', '江油抽水蓄能电站界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null);
1323
-insert into `cmc_project` values ('1697109013545615362', '2023C73', '雅江抽水蓄能电站规划阶段地形图测量', null, '0', null, null, null, null, null, null, null, null, null);
1324
-insert into `cmc_project` values ('1702491945512730626', '2023C76', '牙根二级水电站1:2000地形地类图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1325
-insert into `cmc_project` values ('1702492292125818881', '2023C75', '金沙江波罗水电站集镇新址国省干道占地范围公路配合测量', null, '0', null, null, null, null, null, null, null, null, null);
1326
-insert into `cmc_project` values ('1707211932139782146', '2023C78', '双江口混合式抽水蓄能电站地形图测绘', null, '1', null, null, null, null, null, null, null, null, null);
1327
-insert into `cmc_project` values ('1707626752387317762', '2023C74', '攀枝花市仁和区南部一期280MW光伏项目1:500地形图测绘', null, '1', null, null, null, null, null, null, null, null, null);
1328
-insert into `cmc_project` values ('1713455412201652225', '2023C79', '雅江抽水蓄能电站(茈卡村)地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1329
-insert into `cmc_project` values ('1715703538933301249', '2023C80', '安徽省西形冲抽水蓄能电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1330
-insert into `cmc_project` values ('1718965187043655682', '2023C82', '叙州区抽水蓄能电站1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1331
-insert into `cmc_project` values ('1718973009617747970', '2023C83', 'YJ电站施工图阶段1:500地形图补测工作', null, '1', null, null, null, null, null, null, null, null, null);
1332
-insert into `cmc_project` values ('1721876576657735682', '2023C89', '雅下多雄拉隧洞部位控制点复核工作', null, '1', null, null, null, null, null, null, null, null, null);
1333
-insert into `cmc_project` values ('1729523067262074882', '2023C86', '叶巴滩水电站连接道路硬化改建工程1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1334
-insert into `cmc_project` values ('1729523327594135553', '2023C88', '大邑抽水蓄能水电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1335
-insert into `cmc_project` values ('1729523650169667586', '2023C90', '牙根二级水电站集镇新址、泥石流沟、取水线路地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1336
-insert into `cmc_project` values ('1729523884455100418', '2023C93', '新龙抽水蓄能电站地形图测绘(新站址)', null, '0', null, null, null, null, null, null, null, null, null);
1337
-insert into `cmc_project` values ('1730092422756564993', '2023C87', '中核汇能昭觉县264MW风电+宁南县49MW风电项目', null, '1', null, null, null, null, null, null, null, null, null);
1338
-insert into `cmc_project` values ('1731465142576611330', '2023C94', 'JW梯级电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1339
-insert into `cmc_project` values ('1737454765236813825', '2023C101', 'ML水电站可研阶段1:1000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1340
-insert into `cmc_project` values ('1739658607567306754', '2023W37', '大唐长河坝115万千瓦光伏项目1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1341
-insert into `cmc_project` values ('1739658998220587009', '2023C99', '两河口水电站库区6座复建桥梁桥址河道断面形态以及桥墩、桥台的形态测量', null, '0', null, null, null, null, null, null, null, null, null);
1342
-insert into `cmc_project` values ('1739961827233628162', '2023C97', '西藏江达鲁格一期120万kW光伏项目场址地形图', null, '0', null, null, null, null, null, null, null, null, null);
1343
-insert into `cmc_project` values ('1741421858231681026', '2023C98', '藏东南(玉察)水风光一体化基地八宿2、3号光伏地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1344
-insert into `cmc_project` values ('1741422198586867714', '2023C95', '藏东南(玉察)水风光一体化基地八宿8号光伏地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1345
-insert into `cmc_project` values ('1741422566360219650', '2023C96', '藏东南(玉察)水风光一体化基地八宿12号光伏地形图测绘(Ⅰ标段测绘)', null, '0', null, null, null, null, null, null, null, null, null);
1346
-insert into `cmc_project` values ('1752902350986543105', '2024HY01', '航测遥感中心借调、零星项目', null, '0', null, null, null, null, null, null, null, null, null);
1347
-insert into `cmc_project` values ('1752903021416677378', '2024W02', '凤山平乐风电场地形图测绘', null, '0', null, null, null, null, null, null, null, null, null);
1292
+insert into `cmc_project` values ('1633765257669246977', '2023C05', 'ML及JW水电工程建设征地实物指标调查配合测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1293
+insert into `cmc_project` values ('1633768222907957249', '2023C12', '雅砻江两河口水电站水库泥沙监测系统建设工程、运行维护及泥沙淤积影响分析研究项目测量工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1294
+insert into `cmc_project` values ('1633770346022699010', '2023W02', '雅砻江桐子林水电站水库泥沙断面测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1295
+insert into `cmc_project` values ('1633770811569471490', '2023C01', '绵竹抽水蓄能电站工程区可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1296
+insert into `cmc_project` values ('1633771027018285057', '2023C02', '江油抽水蓄能电站可研阶段工程区1:1000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1297
+insert into `cmc_project` values ('1633771294472273922', '2023C17', '江油抽水蓄能水电站青江补水泵断面测量项目', null, '0', null, null, null, null, null, null, null, null, null, null);
1298
+insert into `cmc_project` values ('1633781742236073985', '2023C22', '牙根一级水电站坝址下游河段整治测绘工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1299
+insert into `cmc_project` values ('1641355612560293889', '2023C26', '金沙江上游清洁能源基地叶巴滩混合式抽水蓄能电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1300
+insert into `cmc_project` values ('1641805297456513026', '2023HY01', '航测遥感中心零星及借调项目', null, '0', null, null, null, null, null, null, null, null, null, null);
1301
+insert into `cmc_project` values ('1641807061123596290', '2023C24', '岷江干流张坎航电枢纽工程界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1302
+insert into `cmc_project` values ('1652690353125326849', '2023W13', '拉萨水环境项目测绘工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1303
+insert into `cmc_project` values ('1658642869419769857', '2023C44', '老木孔水电站库区道路边沟坐标高程测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1304
+insert into `cmc_project` values ('1658656258510553089', '2023C23', 'YX移民项目地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1305
+insert into `cmc_project` values ('1673601192074149890', '2023C49', '甘孜抽水蓄能水电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1306
+insert into `cmc_project` values ('1673601523608715266', '2023C54', '国能大渡河汉源永利坪光伏电站项目1:500地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1307
+insert into `cmc_project` values ('1673601908515799042', '2023C52', '老木孔航电枢纽工程排涝区域1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1308
+insert into `cmc_project` values ('1673602123545182210', '2023C53', '岷江干流张坎航电枢纽工程排涝区域1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1309
+insert into `cmc_project` values ('1676948354560425986', '2023C58', '溪洛渡水电站雷波县元宝乡跑马坪村配合测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1310
+insert into `cmc_project` values ('1676948591949643777', '2023C59', '老沟水库库容曲线测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1311
+insert into `cmc_project` values ('1676948942941585410', '2023C57', '官地水电站地形图测绘本', null, '0', null, null, null, null, null, null, null, null, null, null);
1312
+insert into `cmc_project` values ('1679769237196898306', '2022C65', '大熊猫国家公园芦山县长石坝-南天门、鹿厂河-九里岗防火道路恢复重建工程地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1313
+insert into `cmc_project` values ('1679769589929476097', '2022C66', '大熊猫国家公园芦山县保护管理设施项目地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1314
+insert into `cmc_project` values ('1679769796872241154', '2023C60', '大渡河流域扩机电站坐标转换', null, '0', null, null, null, null, null, null, null, null, null, null);
1315
+insert into `cmc_project` values ('1679770747494465538', '2023C47', '绵竹抽水蓄能电站界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1316
+insert into `cmc_project` values ('1679772570787774466', '2023W24', '双流地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1317
+insert into `cmc_project` values ('1685853339360690177', '2023W27', '简阳1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1318
+insert into `cmc_project` values ('1685853709264748546', '2023C61', '革什扎河吉牛水电站8#支洞口地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1319
+insert into `cmc_project` values ('1694527969734688770', '2023C63', '波罗水电站补充地形地类图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1320
+insert into `cmc_project` values ('1694528325550080002', '2023C69', '金沙江岗托水电站地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1321
+insert into `cmc_project` values ('1694633405980868610', '2023C66', '硬梁包水电站库区实物指标配合测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1322
+insert into `cmc_project` values ('1694634867926499329', '2023C62', '铜街子水电站坝后段及渣场1:500地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1323
+insert into `cmc_project` values ('1697108010087743490', '2023C72', '江油抽水蓄能电站界桩测设工作', null, '0', null, null, null, null, null, null, null, null, null, null);
1324
+insert into `cmc_project` values ('1697109013545615362', '2023C73', '雅江抽水蓄能电站规划阶段地形图测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1325
+insert into `cmc_project` values ('1702491945512730626', '2023C76', '牙根二级水电站1:2000地形地类图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1326
+insert into `cmc_project` values ('1702492292125818881', '2023C75', '金沙江波罗水电站集镇新址国省干道占地范围公路配合测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1327
+insert into `cmc_project` values ('1707211932139782146', '2023C78', '双江口混合式抽水蓄能电站地形图测绘', null, '1', null, null, null, null, null, null, null, null, null, null);
1328
+insert into `cmc_project` values ('1707626752387317762', '2023C74', '攀枝花市仁和区南部一期280MW光伏项目1:500地形图测绘', null, '1', null, null, null, null, null, null, null, null, null, null);
1329
+insert into `cmc_project` values ('1713455412201652225', '2023C79', '雅江抽水蓄能电站(茈卡村)地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1330
+insert into `cmc_project` values ('1715703538933301249', '2023C80', '安徽省西形冲抽水蓄能电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1331
+insert into `cmc_project` values ('1718965187043655682', '2023C82', '叙州区抽水蓄能电站1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1332
+insert into `cmc_project` values ('1718973009617747970', '2023C83', 'YJ电站施工图阶段1:500地形图补测工作', null, '1', null, null, null, null, null, null, null, null, null, null);
1333
+insert into `cmc_project` values ('1721876576657735682', '2023C89', '雅下多雄拉隧洞部位控制点复核工作', null, '1', null, null, null, null, null, null, null, null, null, null);
1334
+insert into `cmc_project` values ('1729523067262074882', '2023C86', '叶巴滩水电站连接道路硬化改建工程1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1335
+insert into `cmc_project` values ('1729523327594135553', '2023C88', '大邑抽水蓄能水电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1336
+insert into `cmc_project` values ('1729523650169667586', '2023C90', '牙根二级水电站集镇新址、泥石流沟、取水线路地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1337
+insert into `cmc_project` values ('1729523884455100418', '2023C93', '新龙抽水蓄能电站地形图测绘(新站址)', null, '0', null, null, null, null, null, null, null, null, null, null);
1338
+insert into `cmc_project` values ('1730092422756564993', '2023C87', '中核汇能昭觉县264MW风电+宁南县49MW风电项目', null, '1', null, null, null, null, null, null, null, null, null, null);
1339
+insert into `cmc_project` values ('1731465142576611330', '2023C94', 'JW梯级电站可研阶段地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1340
+insert into `cmc_project` values ('1737454765236813825', '2023C101', 'ML水电站可研阶段1:1000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1341
+insert into `cmc_project` values ('1739658607567306754', '2023W37', '大唐长河坝115万千瓦光伏项目1:2000地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1342
+insert into `cmc_project` values ('1739658998220587009', '2023C99', '两河口水电站库区6座复建桥梁桥址河道断面形态以及桥墩、桥台的形态测量', null, '0', null, null, null, null, null, null, null, null, null, null);
1343
+insert into `cmc_project` values ('1739961827233628162', '2023C97', '西藏江达鲁格一期120万kW光伏项目场址地形图', null, '0', null, null, null, null, null, null, null, null, null, null);
1344
+insert into `cmc_project` values ('1741421858231681026', '2023C98', '藏东南(玉察)水风光一体化基地八宿2、3号光伏地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1345
+insert into `cmc_project` values ('1741422198586867714', '2023C95', '藏东南(玉察)水风光一体化基地八宿8号光伏地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1346
+insert into `cmc_project` values ('1741422566360219650', '2023C96', '藏东南(玉察)水风光一体化基地八宿12号光伏地形图测绘(Ⅰ标段测绘)', null, '0', null, null, null, null, null, null, null, null, null, null);
1347
+insert into `cmc_project` values ('1752902350986543105', '2024HY01', '航测遥感中心借调、零星项目', null, '0', null, null, null, null, null, null, null, null, null, null);
1348
+insert into `cmc_project` values ('1752903021416677378', '2024W02', '凤山平乐风电场地形图测绘', null, '0', null, null, null, null, null, null, null, null, null, null);
1348 1349
 
1349 1350
 -- ----------------------------
1350 1351
 -- 24、cmc项目内容表

+ 8
- 0
oa-ui/src/api/system/post.js View File

@@ -9,6 +9,14 @@ export function listPost(query) {
9 9
   })
10 10
 }
11 11
 
12
+// 查询驾驶员列表
13
+export function listDriver() {
14
+  return request({
15
+    url: '/system/post/driverList',
16
+    method: 'get'
17
+  })
18
+}
19
+
12 20
 // 查询岗位详细
13 21
 export function getPost(postId) {
14 22
   return request({

+ 37
- 21
oa-ui/src/views/flowable/form/carForm.vue View File

@@ -1,3 +1,9 @@
1
+<!--
2
+ * @Author: wrh
3
+ * @Date: 2024-02-29 17:24:39
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2024-03-04 14:10:06
6
+-->
1 7
 <template>
2 8
   <div>
3 9
     <h2 style="text-align: center;">用车申请表</h2>
@@ -36,30 +42,17 @@
36 42
             <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeader
37 43
             }}</el-descriptions-item>
38 44
             <el-descriptions-item label="承担部门" label-class-name="my-label">
39
-              <el-tag size="small">{{ chooseProject.underDept }}</el-tag>
45
+              <el-tag size="small">{{ chooseProject.undertakingDept }}</el-tag>
40 46
             </el-descriptions-item>
41 47
             <el-descriptions-item label="项目类型" label-class-name="my-label">{{ chooseProject.projectType
42 48
             }}</el-descriptions-item>
43 49
           </el-descriptions>
44 50
         </el-form-item>
45 51
         <el-form-item label="车牌号:">
46
-          <el-select v-model="form.projectNumber" filterable placeholder="请选择" @change="handleSelectProject" clearable>
47
-            <el-option v-for="item in projectList" :key="item.value" :label="item.projectNumber" :value="item.projectId">
52
+          <el-select v-model="form.licensePlate" filterable multiple placeholder="请选择" clearable>
53
+            <el-option v-for="item in carList" :key="item.id" :label="item.licensePlate" :value="item.id">
48 54
             </el-option>
49 55
           </el-select>
50
-          <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="1">
51
-            <el-descriptions-item label="车牌号" label-class-name="my-label">{{ chooseProject.projectNumber
52
-            }}</el-descriptions-item>
53
-            <el-descriptions-item label="车辆型号" label-class-name="my-label">{{ chooseProject.projectName
54
-            }}</el-descriptions-item>
55
-            <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeader
56
-            }}</el-descriptions-item>
57
-            <el-descriptions-item label="承担部门" label-class-name="my-label">
58
-              <el-tag size="small">{{ chooseProject.underDept }}</el-tag>
59
-            </el-descriptions-item>
60
-            <el-descriptions-item label="项目类型" label-class-name="my-label">{{ chooseProject.projectType
61
-            }}</el-descriptions-item>
62
-          </el-descriptions>
63 56
         </el-form-item>
64 57
         <el-row>
65 58
           <el-col :span="6" :xs="24">
@@ -84,11 +77,10 @@
84 77
         </el-row>
85 78
 
86 79
         <el-form-item label="驾驶员:">
87
-          <el-radio-group v-model="form.driver">
88
-            <el-radio :label="3">备选项</el-radio>
89
-            <el-radio :label="6">备选项</el-radio>
90
-            <el-radio :label="9">备选项</el-radio>
91
-          </el-radio-group>
80
+          <el-select v-model="form.driver" filterable multiple placeholder="请选择" clearable>
81
+            <el-option v-for="item in driverList" :key="item.userId" :label="item.nickName" :value="item.userId">
82
+            </el-option>
83
+          </el-select>
92 84
         </el-form-item>
93 85
       </el-form>
94 86
     </div>
@@ -97,11 +89,15 @@
97 89
 
98 90
 <script>
99 91
 import { listProject, getProject } from "@/api/oa/project/project";
92
+import { listCar } from "@/api/oa/car/car";
93
+import { listDriver } from "@/api/system/post";
100 94
 export default {
101 95
   created() {
102 96
     this.form.user = this.$store.getters.name;
103 97
     this.form.deptName = this.$store.getters.deptName;
104 98
     this.getProjectList();
99
+    this.getCarList();
100
+    this.getDriverList();
105 101
   },
106 102
   data() {
107 103
     return {
@@ -110,6 +106,7 @@ export default {
110 106
         day: ''
111 107
       },
112 108
       projectList: [],
109
+      carList: [],
113 110
       driverList: [],
114 111
       chooseProject: {},
115 112
       isSelect: false
@@ -138,6 +135,25 @@ export default {
138 135
       }
139 136
 
140 137
     },
138
+    // 查询车辆列表
139
+    getCarList() {
140
+      listCar({
141
+        pageNum: 1,
142
+        pageSize: 9999999999
143
+      }).then(response => {
144
+        this.carList = response.rows;
145
+      })
146
+    },
147
+    
148
+    // 查询驾驶员列表
149
+    getDriverList() {
150
+      listDriver({
151
+        pageNum: 1,
152
+        pageSize: 9999999999
153
+      }).then(response => {
154
+        this.driverList = response.rows;
155
+      })
156
+    },
141 157
     calculateDay() {
142 158
       if (this.form.startTime && this.form.endTime) {
143 159
         let y1 = new Date(this.form.startTime);

Loading…
Cancel
Save