浏览代码

结算单价查询

lamphua 1年前
父节点
当前提交
b0f566cc96

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPriceMapper.xml 查看文件

@@ -51,7 +51,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
51 51
 
52 52
     <select id="selectCmcPriceByScaleGrade" parameterType="String" resultMap="CmcPriceResult">
53 53
         <include refid="selectCmcPriceVo"/>
54
-        where work_item = #{param1} and sub_item = #{param2} and scale_grade = #{param3}
54
+        <where>
55
+            <if test="param1 != null  and param1 != ''"> and work_item = #{param1}</if>
56
+            <if test="param2 != null  and param2 != ''"> and sub_item = #{param2}</if>
57
+            <if test="param3 != null  and param3 != ''"> and scale_grade = #{param3}</if>
58
+        </where>
55 59
     </select>
56 60
 
57 61
     <insert id="insertCmcPrice" parameterType="CmcPrice" useGeneratedKeys="true" keyProperty="id">

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml 查看文件

@@ -46,6 +46,7 @@
46 46
         <where>
47 47
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
48 48
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
49
+            <if test="projectLeader != null  and projectLeader != ''"> and p.project_leader like concat('%', #{projectLeader}, '%')</if>
49 50
             <if test="isFinished != null  and isFinished != ''"> and p.is_finished = #{isFinished}</if>
50 51
             <if test="projectSource != null  and projectSource != ''"> and p.project_source = #{projectSource}</if>
51 52
             <if test="partyA != null  and partyA != ''"> and p.party_a like concat('%', #{partyA}, '%')</if>

+ 1
- 1
oa-ui/src/views/oa/car/expense.vue 查看文件

@@ -23,7 +23,7 @@
23 23
       <el-descriptions-item>
24 24
         <template slot="label">
25 25
           <svg-icon slot="prefix" icon-class="PhAppStoreLogoFill" class="el-input__icon input-icon" />
26
-          系列
26
+          车型
27 27
         </template>
28 28
         {{ carInfo.series }}
29 29
       </el-descriptions-item>

+ 21
- 22
oa-ui/src/views/oa/project/index.vue 查看文件

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-27 14:49:15
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-03-04 09:29:14
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-03-28 10:50:22
6 6
 -->
7 7
 <template>
8 8
   <div class="project-wrapper">
@@ -13,9 +13,10 @@
13 13
           <el-input v-model="queryParams.projectNumber" placeholder="请输入项目编号" clearable
14 14
             @keyup.enter.native="handleQuery" />
15 15
         </el-form-item>
16
-        <el-form-item label="项目负责人" prop="projectLeaderName">
17
-          <el-input v-model="queryParams.projectLeaderName" placeholder="请输入项目负责人" clearable
18
-            @keyup.enter.native="handleQuery" />
16
+        <el-form-item label="项目负责人" prop="projectLeader">
17
+          <el-select v-model="queryParams.projectLeader" clearable filterable placeholder="请输入项目负责人" size="large" style="width: 240px" @keyup.enter.native="handleQuery">
18
+            <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId" />
19
+          </el-select>
19 20
         </el-form-item>
20 21
         <el-form-item label="项目名称" prop="projectName">
21 22
           <el-input v-model="queryParams.projectName" placeholder="请输入项目名称" clearable @keyup.enter.native="handleQuery" />
@@ -80,7 +81,7 @@
80 81
         </el-table-column>
81 82
         <el-table-column label="项目编号" align="center" key="projectNumber" prop="projectNumber" />
82 83
         <el-table-column label="项目名称" align="center" key="projectName" prop="projectName" />
83
-        <el-table-column label="项目负责人" align="center" key="projectLeaderName" prop="projectLeaderName" />
84
+        <el-table-column label="项目负责人" align="center" key="projectLeaderName" prop="projectLeaderUser.nickName" />
84 85
         <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
85 86
           <template slot-scope="scope" v-if="scope.row.userId !== 1">
86 87
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
@@ -219,13 +220,13 @@ import { listUser, getUser } from '@/api/system/user'
219 220
 export default {
220 221
   data() {
221 222
     return {
223
+      userList: [],
222 224
       // 查询参数
223 225
       queryParams: {
224 226
         pageNum: 1,
225 227
         pageSize: 10,
226 228
         projectNumber: '',
227
-        projectLeader: '',
228
-        projectLeaderName: undefined,
229
+        projectLeader: undefined,
229 230
         projectName: '',
230 231
       },
231 232
       projectList: [],
@@ -259,21 +260,14 @@ export default {
259 260
   created() {
260 261
     this.getList();
261 262
     this.getDeptList();
263
+    this.getUserList();
262 264
   },
263 265
   methods: {
264 266
     // 查询项目列表
265 267
     getList() {
266 268
       this.loading = true
267 269
       listProject(this.queryParams).then(response => {
268
-        this.projectList = [];
269
-        for (let p of response.rows) {
270
-          if (p.projectLeader != null) {
271
-            getUser(Number(p.projectLeader)).then(res => {
272
-              p.projectLeaderName = res.data.nickName;
273
-            })
274
-          }
275
-          this.projectList.push(p);
276
-        }
270
+        this.projectList = response.rows;
277 271
         this.total = response.total;
278 272
         this.loading = false;
279 273
       })
@@ -286,6 +280,11 @@ export default {
286 280
         this.peopleForm.deptList = res.data
287 281
       })
288 282
     },
283
+    getUserList() {
284
+      listUser({pageNum: 1, pageSize: 9999}).then(res => {
285
+        this.userList = res.rows
286
+      })
287
+    },
289 288
     handleQuery() {
290 289
       this.queryParams.pageNum = 1;
291 290
       this.getList();
@@ -324,10 +323,10 @@ export default {
324 323
         });
325 324
       else
326 325
         modifyProject(formData).then(response => {
327
-            this.$modal.msgSuccess("修改成功");
328
-            this.addOpen = false;
329
-            this.getList();
330
-          });
326
+          this.$modal.msgSuccess("修改成功");
327
+          this.addOpen = false;
328
+          this.getList();
329
+        });
331 330
     },
332 331
     // 人员选择
333 332
     choosePeople() {
@@ -383,7 +382,7 @@ export default {
383 382
         arr.splice(index, 1);
384 383
       }
385 384
     },
386
-    cancelChoosePeople(){
385
+    cancelChoosePeople() {
387 386
       this.peopleForm.deptId = '';
388 387
       this.peopleForm.userId = '';
389 388
       this.peopleVisible = false;

正在加载...
取消
保存