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

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

66
     @Excel(name = "项目登记人")
66
     @Excel(name = "项目登记人")
67
     private String projectRegistrant;
67
     private String projectRegistrant;
68
 
68
 
69
+    /** 承担部门 */
70
+    @Excel(name = "承担部门")
71
+    private String undertakingDept;
72
+
69
     public void setProjectId(String projectId)
73
     public void setProjectId(String projectId)
70
     {
74
     {
71
         this.projectId = projectId;
75
         this.projectId = projectId;
183
     {
187
     {
184
         return projectRegistrant;
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
     @Override
200
     @Override
188
     public String toString() {
201
     public String toString() {
199
                 .append("projectType", getProjectType())
212
                 .append("projectType", getProjectType())
200
                 .append("projectLevel", getProjectLevel())
213
                 .append("projectLevel", getProjectLevel())
201
                 .append("projectRegistrant", getProjectRegistrant())
214
                 .append("projectRegistrant", getProjectRegistrant())
215
+                .append("undertakingDept", getUndertakingDept())
202
                 .toString();
216
                 .toString();
203
     }
217
     }
204
 }
218
 }

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

1
 package com.ruoyi.system.mapper;
1
 package com.ruoyi.system.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4
 import com.ruoyi.system.domain.SysUserPost;
6
 import com.ruoyi.system.domain.SysUserPost;
5
 
7
 
6
 /**
8
 /**
41
      * @return 结果
43
      * @return 结果
42
      */
44
      */
43
     public int batchUserPost(List<SysUserPost> userPostList);
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
 package com.ruoyi.system.service;
1
 package com.ruoyi.system.service;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4
 import com.ruoyi.system.domain.SysPost;
6
 import com.ruoyi.system.domain.SysPost;
5
 
7
 
6
 /**
8
 /**
96
      * @return 结果
98
      * @return 结果
97
      */
99
      */
98
     public int updatePost(SysPost post);
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
 package com.ruoyi.system.service.impl;
1
 package com.ruoyi.system.service.impl;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
5
+import com.ruoyi.common.core.domain.entity.SysUser;
4
 import org.springframework.beans.factory.annotation.Autowired;
6
 import org.springframework.beans.factory.annotation.Autowired;
5
 import org.springframework.stereotype.Service;
7
 import org.springframework.stereotype.Service;
6
 import com.ruoyi.common.constant.UserConstants;
8
 import com.ruoyi.common.constant.UserConstants;
175
     {
177
     {
176
         return postMapper.updatePost(post);
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
         <result property="projectType"    column="project_type"    />
17
         <result property="projectType"    column="project_type"    />
18
         <result property="projectLevel"    column="project_level"    />
18
         <result property="projectLevel"    column="project_level"    />
19
         <result property="projectRegistrant"    column="project_registrant"    />
19
         <result property="projectRegistrant"    column="project_registrant"    />
20
+        <result property="undertakingDept"    column="undertaking_dept"    />
20
         <result property="createTime"    column="create_time"    />
21
         <result property="createTime"    column="create_time"    />
21
         <result property="remark"    column="remark"    />
22
         <result property="remark"    column="remark"    />
22
     </resultMap>
23
     </resultMap>
23
 
24
 
24
     <sql id="selectCmcProjectVo">
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
     </sql>
27
     </sql>
27
 
28
 
28
     <select id="selectCmcProjectList" parameterType="CmcProject" resultMap="CmcProjectResult">
29
     <select id="selectCmcProjectList" parameterType="CmcProject" resultMap="CmcProjectResult">
30
         <where>
31
         <where>
31
             <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
32
             <if test="projectNumber != null  and projectNumber != ''"> and project_number like concat('%', #{projectNumber}, '%')</if>
32
             <if test="projectName != null  and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
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
             <if test="isFinished != null  and isFinished != ''"> and is_finished = #{isFinished}</if>
34
             <if test="isFinished != null  and isFinished != ''"> and is_finished = #{isFinished}</if>
35
             <if test="projectSource != null  and projectSource != ''"> and project_source = #{projectSource}</if>
35
             <if test="projectSource != null  and projectSource != ''"> and project_source = #{projectSource}</if>
36
             <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
36
             <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
38
             <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
38
             <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
39
             <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
39
             <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
40
             <if test="projectLevel != null  and projectLevel != ''"> and project_level = #{projectLevel}</if>
40
             <if test="projectLevel != null  and projectLevel != ''"> and project_level = #{projectLevel}</if>
41
-            <if test="projectRegistrant != null "> and project_registrant = #{projectRegistrant}</if>
42
         </where>
41
         </where>
43
     </select>
42
     </select>
44
 
43
 
62
             <if test="projectType != null">project_type,</if>
61
             <if test="projectType != null">project_type,</if>
63
             <if test="projectLevel != null">project_level,</if>
62
             <if test="projectLevel != null">project_level,</if>
64
             <if test="projectRegistrant != null">project_registrant,</if>
63
             <if test="projectRegistrant != null">project_registrant,</if>
64
+            <if test="undertakingDept != null">undertaking_dept,</if>
65
             <if test="createTime != null">create_time,</if>
65
             <if test="createTime != null">create_time,</if>
66
             <if test="remark != null">remark,</if>
66
             <if test="remark != null">remark,</if>
67
         </trim>
67
         </trim>
78
             <if test="projectType != null">#{projectType},</if>
78
             <if test="projectType != null">#{projectType},</if>
79
             <if test="projectLevel != null">#{projectLevel},</if>
79
             <if test="projectLevel != null">#{projectLevel},</if>
80
             <if test="projectRegistrant != null">#{projectRegistrant},</if>
80
             <if test="projectRegistrant != null">#{projectRegistrant},</if>
81
+            <if test="undertakingDept != null">#{undertakingDept},</if>
81
             <if test="createTime != null">#{createTime},</if>
82
             <if test="createTime != null">#{createTime},</if>
82
             <if test="remark != null">#{remark},</if>
83
             <if test="remark != null">#{remark},</if>
83
         </trim>
84
         </trim>
97
             <if test="projectType != null">project_type = #{projectType},</if>
98
             <if test="projectType != null">project_type = #{projectType},</if>
98
             <if test="projectLevel != null">project_level = #{projectLevel},</if>
99
             <if test="projectLevel != null">project_level = #{projectLevel},</if>
99
             <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>
100
             <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>
101
+            <if test="undertakingDept != null">undertaking_dept = #{undertakingDept},</if>
100
             <if test="createTime != null">create_time = #{createTime},</if>
102
             <if test="createTime != null">create_time = #{createTime},</if>
101
             <if test="remark != null">remark = #{remark},</if>
103
             <if test="remark != null">remark = #{remark},</if>
102
         </trim>
104
         </trim>

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

9
 		<result property="postId"     column="post_id"      />
9
 		<result property="postId"     column="post_id"      />
10
 	</resultMap>
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
 	<delete id="deleteUserPostByUserId" parameterType="Long">
25
 	<delete id="deleteUserPostByUserId" parameterType="Long">
13
 		delete from sys_user_post where user_id=#{userId}
26
 		delete from sys_user_post where user_id=#{userId}
14
 	</delete>
27
 	</delete>

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

1280
   project_type			varchar(20)				default null		comment '项目类型',
1280
   project_type			varchar(20)				default null		comment '项目类型',
1281
   project_level			char(1)					default null		comment '项目级别(0一般项目、1重大项目)',
1281
   project_level			char(1)					default null		comment '项目级别(0一般项目、1重大项目)',
1282
   project_registrant	varchar(3)				default null		comment '项目登记人',
1282
   project_registrant	varchar(3)				default null		comment '项目登记人',
1283
+  undertaking_dept		varchar(20)				default null		comment '承担部门',
1283
   create_time			datetime				default null		comment '项目登记时间',
1284
   create_time			datetime				default null		comment '项目登记时间',
1284
   remark				varchar(255)				default null		comment '项目备注',
1285
   remark				varchar(255)				default null		comment '项目备注',
1285
   primary key (project_id)
1286
   primary key (project_id)
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
 -- 24、cmc项目内容表
1351
 -- 24、cmc项目内容表

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

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
 export function getPost(postId) {
21
 export function getPost(postId) {
14
   return request({
22
   return request({

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

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
 <template>
7
 <template>
2
   <div>
8
   <div>
3
     <h2 style="text-align: center;">用车申请表</h2>
9
     <h2 style="text-align: center;">用车申请表</h2>
36
             <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeader
42
             <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeader
37
             }}</el-descriptions-item>
43
             }}</el-descriptions-item>
38
             <el-descriptions-item label="承担部门" label-class-name="my-label">
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
             </el-descriptions-item>
46
             </el-descriptions-item>
41
             <el-descriptions-item label="项目类型" label-class-name="my-label">{{ chooseProject.projectType
47
             <el-descriptions-item label="项目类型" label-class-name="my-label">{{ chooseProject.projectType
42
             }}</el-descriptions-item>
48
             }}</el-descriptions-item>
43
           </el-descriptions>
49
           </el-descriptions>
44
         </el-form-item>
50
         </el-form-item>
45
         <el-form-item label="车牌号:">
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
             </el-option>
54
             </el-option>
49
           </el-select>
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
         </el-form-item>
56
         </el-form-item>
64
         <el-row>
57
         <el-row>
65
           <el-col :span="6" :xs="24">
58
           <el-col :span="6" :xs="24">
84
         </el-row>
77
         </el-row>
85
 
78
 
86
         <el-form-item label="驾驶员:">
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
         </el-form-item>
84
         </el-form-item>
93
       </el-form>
85
       </el-form>
94
     </div>
86
     </div>
97
 
89
 
98
 <script>
90
 <script>
99
 import { listProject, getProject } from "@/api/oa/project/project";
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
 export default {
94
 export default {
101
   created() {
95
   created() {
102
     this.form.user = this.$store.getters.name;
96
     this.form.user = this.$store.getters.name;
103
     this.form.deptName = this.$store.getters.deptName;
97
     this.form.deptName = this.$store.getters.deptName;
104
     this.getProjectList();
98
     this.getProjectList();
99
+    this.getCarList();
100
+    this.getDriverList();
105
   },
101
   },
106
   data() {
102
   data() {
107
     return {
103
     return {
110
         day: ''
106
         day: ''
111
       },
107
       },
112
       projectList: [],
108
       projectList: [],
109
+      carList: [],
113
       driverList: [],
110
       driverList: [],
114
       chooseProject: {},
111
       chooseProject: {},
115
       isSelect: false
112
       isSelect: false
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
     calculateDay() {
157
     calculateDay() {
142
       if (this.form.startTime && this.form.endTime) {
158
       if (this.form.startTime && this.form.endTime) {
143
         let y1 = new Date(this.form.startTime);
159
         let y1 = new Date(this.form.startTime);

Loading…
Cancel
Save