Quellcode durchsuchen

部门负责人查询借款、结算列表

lamphua vor 9 Monaten
Ursprung
Commit
52f22dd7a2

+ 11
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBorrow.java Datei anzeigen

@@ -29,6 +29,8 @@ public class CmcBorrow extends BaseEntity
29 29
     private String projectNumber;
30 30
     @Excel(name = "项目名称")
31 31
     private String projectName;
32
+    @Excel(name = "承担部门")
33
+    private String undertakingDept;
32 34
 
33 35
     /** 借款事由 */
34 36
     @Excel(name = "借款事由")
@@ -197,6 +199,15 @@ public class CmcBorrow extends BaseEntity
197 199
     {
198 200
         return project;
199 201
     }
202
+    public void setUndertakingDept(String undertakingDept)
203
+    {
204
+        this.undertakingDept = undertakingDept;
205
+    }
206
+
207
+    public String getUndertakingDept()
208
+    {
209
+        return undertakingDept;
210
+    }
200 211
     public void setApplyReason(String applyReason) 
201 212
     {
202 213
         this.applyReason = applyReason;

+ 11
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java Datei anzeigen

@@ -27,6 +27,8 @@ public class CmcSettle extends BaseEntity
27 27
     private String projectNumber;
28 28
     @Excel(name = "项目名称")
29 29
     private String projectName;
30
+    @Excel(name = "承担部门")
31
+    private String undertakingDept;
30 32
 
31 33
     /** 其他项目名称 */
32 34
     @Excel(name = "其他项目名称")
@@ -200,6 +202,15 @@ public class CmcSettle extends BaseEntity
200 202
     {
201 203
         return project;
202 204
     }
205
+    public void setUndertakingDept(String undertakingDept)
206
+    {
207
+        this.undertakingDept = undertakingDept;
208
+    }
209
+
210
+    public String getUndertakingDept()
211
+    {
212
+        return undertakingDept;
213
+    }
203 214
     public void setWorkloadReport(String workloadReport) 
204 215
     {
205 216
         this.workloadReport = workloadReport;

+ 4
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml Datei anzeigen

@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="CmcBorrow" id="CmcBorrowResult">
8 8
         <result property="borrowId"    column="borrow_id"    />
9 9
         <result property="projectId"    column="project_id"    />
10
+        <result property="undertakingDept"    column="undertaking_dept"    />
10 11
         <result property="applyReason"    column="apply_reason"    />
11 12
         <result property="borrowUsage"    column="borrow_usage"    />
12 13
         <result property="applier"    column="applier"    />
@@ -90,10 +91,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
90 91
         <result property="projectId"    column="project_id"    />
91 92
         <result property="projectNumber"    column="project_number"    />
92 93
         <result property="projectName"    column="project_name"    />
94
+        <result property="undertakingDept"    column="undertaking_dept"    />
93 95
     </resultMap>
94 96
 
95 97
     <sql id="selectCmcBorrowVo">
96
-        select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
98
+        select b.borrow_id, b.project_id, p.project_number, p.project_name, p.undertaking_dept, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark, b.borrow_usage,
97 99
                b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.manager_comment, b.manager_user_id, u2.nick_name as manager_nick_name,
98 100
                b.zjl_user_id, u3.nick_name as zjl_nick_name, b.zjl_comment, b.dsz_comment,  b.union_user_id, u4.nick_name as union_nick_name, b.union_comment, b.cw_user_id, u5.nick_name as cw_nick_name,
99 101
                b.dsz_user_id, u6.nick_name as dsz_nick_name, b.cw_comment, b.dept_time, b.manager_time, b.zjl_time, b.dsz_time, b.lend_time, b.lend_document, b.borrow_document, b.union_time from cmc_borrow as b
@@ -112,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
112 114
         <include refid="selectCmcBorrowVo"/>
113 115
         <where>  
114 116
             <if test="projectId != null  and projectId != ''"> and b.project_id = #{projectId}</if>
117
+            <if test="undertakingDept != null  and undertakingDept != ''"> and p.undertaking_dept = #{undertakingDept}</if>
115 118
             <if test="applyReason != null  and applyReason != ''"> and b.apply_reason = #{applyReason}</if>
116 119
             <if test="borrowUsage != null  and borrowUsage != ''"> and b.borrow_usage = #{borrowUsage}</if>
117 120
             <if test="applyDept != null  and applyDept != ''"> and b.apply_dept = #{applyDept}</if>

+ 4
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSettleMapper.xml Datei anzeigen

@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="CmcSettle" id="CmcSettleResult">
8 8
         <result property="settleId"    column="settle_id"    />
9 9
         <result property="projectId"    column="project_id"    />
10
+        <result property="undertakingDept"    column="undertaking_dept"    />
10 11
         <result property="xmName"    column="xm_name"    />
11 12
         <result property="workloadReport"    column="workload_report"    />
12 13
         <result property="reporter"    column="reporter"    />
@@ -82,10 +83,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
82 83
         <result property="projectId"    column="project_id"    />
83 84
         <result property="projectNumber"    column="project_number"    />
84 85
         <result property="projectName"    column="project_name"    />
86
+        <result property="undertakingDept"    column="undertaking_dept"    />
85 87
     </resultMap>
86 88
 
87 89
     <sql id="selectCmcSettleVo">
88
-        select s.settle_id, s.project_id, p.project_number, p.project_name, s.xm_name, s.workload_report, s.reporter, u.nick_name as reporter_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
90
+        select s.settle_id, s.project_id, p.project_number, p.project_name, p.undertaking_dept, s.xm_name, s.workload_report, s.reporter, u.nick_name as reporter_nick_name, s.report_time, s.settle_comment, s.zh_user_id, u1.nick_name as zh_nick_name,
89 91
                s.zh_time, s.zh_comment, s.js_user_id, u2.nick_name as js_nick_name, s.js_time, s.js_comment, s.jy_user_id, u3.nick_name as jy_nick_name, s.jy_time, s.jy_comment, 
90 92
                s.manager_user_id, u4.nick_name as manager_nick_name, s.manager_time, s.manager_comment, s.gm_user_id, u5.nick_name as gm_nick_name, s.gm_time, s.gm_comment,
91 93
                s.dsz_user_id, u6.nick_name as dsz_nick_name, s.dsz_time, s.dsz_comment, s.settle_document, s.modify_document, s.final_document from cmc_settle as s
@@ -104,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
104 106
         <where>
105 107
             <if test="settleId != null  and settleId != ''"> and s.settle_id = #{settleId}</if>
106 108
             <if test="projectId != null"> and s.project_id = #{projectId}</if>
109
+            <if test="undertakingDept != null  and undertakingDept != ''"> and p.undertaking_dept = #{undertakingDept}</if>
107 110
             <if test="xmName != null"> and s.xm_name like concat('%', #{xmName}, '%')</if>
108 111
             <if test="workloadReport != null  and workloadReport != ''"> and s.workload_report = #{workloadReport}</if>
109 112
             <if test="reporter != null "> and s.reporter = #{reporter}</if>

+ 7
- 4
oa-ui/src/views/file/index.vue Datei anzeigen

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-06-21 18:51:49
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-08-19 11:45:35
5
+ * @LastEditTime: 2024-08-20 11:05:25
6 6
 -->
7 7
 <template>
8 8
   <div class="warpper-container">
@@ -193,8 +193,8 @@
193 193
                       label="数据年份:">{{
194 194
                         props.row.dataYear }}</el-descriptions-item>
195 195
                     <el-descriptions-item min-width="195px" label-class-name="my-label" class-name="my-content"
196
-                      label="成果类型:">{{
197
-                        props.row.resultType }}</el-descriptions-item>
196
+                      label="成果类型:">{{ selectDictLabel(dict.type.cmc_achi_type, props.row.resultType)
197
+                      }}</el-descriptions-item>
198 198
                     <el-descriptions-item min-width="195px" label-class-name="my-label" class-name="my-content"
199 199
                       label="文件类型:">{{
200 200
                         props.row.fileType }}</el-descriptions-item>
@@ -211,7 +211,8 @@
211 211
                       label="分辨率:">{{
212 212
                         props.row.resolution }}</el-descriptions-item>
213 213
                     <el-descriptions-item min-width="195px" label-class-name="my-label" class-name="my-content"
214
-                      label="比例尺或等级:">{{ props.row.scaleOrder }}</el-descriptions-item>
214
+                      label="比例尺或等级:">{{ selectDictLabel(dict.type.cmc_scale_grade, props.row.scaleGrade)
215
+                      }}</el-descriptions-item>
215 216
                     <el-descriptions-item min-width="195px" label-class-name="my-label" class-name="my-content"
216 217
                       label="数据类型:">{{
217 218
                         props.row.dataType }}</el-descriptions-item>
@@ -266,6 +267,7 @@ import { MousePosition, ScaleLine, defaults as defaultControls } from 'ol/contro
266 267
 import { getAchievementByProject, listAchievement } from "@/api/file/achievement";
267 268
 export default {
268 269
   components: { infoBox },
270
+  dicts: ['cmc_achi_type', 'cmc_scale_grade'],
269 271
   data() {
270 272
     return {
271 273
       queryParams: {
@@ -832,6 +834,7 @@ export default {
832 834
           this.achiDialogData = [];
833 835
         } else {
834 836
           this.dialogTableVisible = true;
837
+          console.log(res.rows);
835 838
           this.achiDialogData = res.rows;
836 839
         }
837 840
       })

Laden…
Abbrechen
Speichern