Sfoglia il codice sorgente

结算单价查询

lamphua 1 anno fa
parent
commit
b0f566cc96

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPriceMapper.xml Vedi File

51
 
51
 
52
     <select id="selectCmcPriceByScaleGrade" parameterType="String" resultMap="CmcPriceResult">
52
     <select id="selectCmcPriceByScaleGrade" parameterType="String" resultMap="CmcPriceResult">
53
         <include refid="selectCmcPriceVo"/>
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
     </select>
59
     </select>
56
 
60
 
57
     <insert id="insertCmcPrice" parameterType="CmcPrice" useGeneratedKeys="true" keyProperty="id">
61
     <insert id="insertCmcPrice" parameterType="CmcPrice" useGeneratedKeys="true" keyProperty="id">

+ 1
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Vedi File

46
         <where>
46
         <where>
47
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
47
             <if test="projectNumber != null  and projectNumber != ''"> and p.project_number like concat('%', #{projectNumber}, '%')</if>
48
             <if test="projectName != null  and projectName != ''"> and p.project_name like concat('%', #{projectName}, '%')</if>
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
             <if test="isFinished != null  and isFinished != ''"> and p.is_finished = #{isFinished}</if>
50
             <if test="isFinished != null  and isFinished != ''"> and p.is_finished = #{isFinished}</if>
50
             <if test="projectSource != null  and projectSource != ''"> and p.project_source = #{projectSource}</if>
51
             <if test="projectSource != null  and projectSource != ''"> and p.project_source = #{projectSource}</if>
51
             <if test="partyA != null  and partyA != ''"> and p.party_a like concat('%', #{partyA}, '%')</if>
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 Vedi File

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

+ 21
- 22
oa-ui/src/views/oa/project/index.vue Vedi File

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-02-27 14:49:15
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
 <template>
7
 <template>
8
   <div class="project-wrapper">
8
   <div class="project-wrapper">
13
           <el-input v-model="queryParams.projectNumber" placeholder="请输入项目编号" clearable
13
           <el-input v-model="queryParams.projectNumber" placeholder="请输入项目编号" clearable
14
             @keyup.enter.native="handleQuery" />
14
             @keyup.enter.native="handleQuery" />
15
         </el-form-item>
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
         </el-form-item>
20
         </el-form-item>
20
         <el-form-item label="项目名称" prop="projectName">
21
         <el-form-item label="项目名称" prop="projectName">
21
           <el-input v-model="queryParams.projectName" placeholder="请输入项目名称" clearable @keyup.enter.native="handleQuery" />
22
           <el-input v-model="queryParams.projectName" placeholder="请输入项目名称" clearable @keyup.enter.native="handleQuery" />
80
         </el-table-column>
81
         </el-table-column>
81
         <el-table-column label="项目编号" align="center" key="projectNumber" prop="projectNumber" />
82
         <el-table-column label="项目编号" align="center" key="projectNumber" prop="projectNumber" />
82
         <el-table-column label="项目名称" align="center" key="projectName" prop="projectName" />
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
         <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
85
         <el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
85
           <template slot-scope="scope" v-if="scope.row.userId !== 1">
86
           <template slot-scope="scope" v-if="scope.row.userId !== 1">
86
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
87
             <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
219
 export default {
220
 export default {
220
   data() {
221
   data() {
221
     return {
222
     return {
223
+      userList: [],
222
       // 查询参数
224
       // 查询参数
223
       queryParams: {
225
       queryParams: {
224
         pageNum: 1,
226
         pageNum: 1,
225
         pageSize: 10,
227
         pageSize: 10,
226
         projectNumber: '',
228
         projectNumber: '',
227
-        projectLeader: '',
228
-        projectLeaderName: undefined,
229
+        projectLeader: undefined,
229
         projectName: '',
230
         projectName: '',
230
       },
231
       },
231
       projectList: [],
232
       projectList: [],
259
   created() {
260
   created() {
260
     this.getList();
261
     this.getList();
261
     this.getDeptList();
262
     this.getDeptList();
263
+    this.getUserList();
262
   },
264
   },
263
   methods: {
265
   methods: {
264
     // 查询项目列表
266
     // 查询项目列表
265
     getList() {
267
     getList() {
266
       this.loading = true
268
       this.loading = true
267
       listProject(this.queryParams).then(response => {
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
         this.total = response.total;
271
         this.total = response.total;
278
         this.loading = false;
272
         this.loading = false;
279
       })
273
       })
286
         this.peopleForm.deptList = res.data
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
     handleQuery() {
288
     handleQuery() {
290
       this.queryParams.pageNum = 1;
289
       this.queryParams.pageNum = 1;
291
       this.getList();
290
       this.getList();
324
         });
323
         });
325
       else
324
       else
326
         modifyProject(formData).then(response => {
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
     choosePeople() {
332
     choosePeople() {
383
         arr.splice(index, 1);
382
         arr.splice(index, 1);
384
       }
383
       }
385
     },
384
     },
386
-    cancelChoosePeople(){
385
+    cancelChoosePeople() {
387
       this.peopleForm.deptId = '';
386
       this.peopleForm.deptId = '';
388
       this.peopleForm.userId = '';
387
       this.peopleForm.userId = '';
389
       this.peopleVisible = false;
388
       this.peopleVisible = false;

Loading…
Annulla
Salva