Przeglądaj źródła

Merge branch 'master' of http://oa.sccehui.com:6101/cmc-coding/cmc-oa

余思翰 2 tygodni temu
rodzic
commit
25645f7d2e

+ 26
- 0
oa-back/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java Wyświetl plik

@@ -177,6 +177,14 @@ public class SysUser extends BaseEntity
177 177
     @Excel(name = "家庭住址")
178 178
     private String homePlace;
179 179
 
180
+    /** 紧急联系人 */
181
+    @Excel(name = "紧急联系人")
182
+    private String contact;
183
+
184
+    /** 紧急联系电话 */
185
+    @Excel(name = "紧急联系电话")
186
+    private String telephone;
187
+
180 188
     /** 部门对象 */
181 189
     @Excels({
182 190
         @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT),
@@ -666,6 +674,24 @@ public class SysUser extends BaseEntity
666 674
     {
667 675
         return titleProfession;
668 676
     }
677
+    public void setContact(String contact)
678
+    {
679
+        this.contact = contact;
680
+    }
681
+
682
+    public String getContact()
683
+    {
684
+        return contact;
685
+    }
686
+    public void setTelephone(String telephone)
687
+    {
688
+        this.telephone = telephone;
689
+    }
690
+
691
+    public String getTelephone()
692
+    {
693
+        return telephone;
694
+    }
669 695
 
670 696
     @Override
671 697
     public String toString() {

+ 0
- 4
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcResourceMapper.xml Wyświetl plik

@@ -6,7 +6,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
6 6
     
7 7
     <resultMap type="CmcResource" id="CmcResourceResult">
8 8
         <result property="resourceId"    column="resource_id"    />
9
-        <result property="trainId"    column="train_id"    />
10 9
         <result property="uploader"    column="uploader"    />
11 10
         <result property="uploadDept"    column="upload_dept"    />
12 11
         <result property="title"    column="title"    />
@@ -98,7 +97,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
98 97
             <if test="fieldId != null">field_id,</if>
99 98
             <if test="uploadTime != null">upload_time,</if>
100 99
             <if test="hours != null">hours,</if>
101
-            <if test="trainId != null">train_id,</if>
102 100
          </trim>
103 101
         <trim prefix="values (" suffix=")" suffixOverrides=",">
104 102
             <if test="uploader != null">#{uploader},</if>
@@ -109,7 +107,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
109 107
             <if test="fieldId != null">#{fieldId},</if>
110 108
             <if test="uploadTime != null">#{uploadTime},</if>
111 109
             <if test="hours != null">#{hours},</if>
112
-            <if test="trainId != null">#{trainId},</if>
113 110
          </trim>
114 111
     </insert>
115 112
 
@@ -124,7 +121,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
124 121
             <if test="fieldId != null">field_id = #{fieldId},</if>
125 122
             <if test="uploadTime != null">upload_time = #{uploadTime},</if>
126 123
             <if test="hours != null">hours = #{hours},</if>
127
-            <if test="trainId != null">train_id = #{trainId},</if>
128 124
         </trim>
129 125
         where resource_id = #{resourceId}
130 126
     </update>

+ 12
- 3
oa-back/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Wyświetl plik

@@ -49,6 +49,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 49
 		<result property="initialMajor"    column="initial_major"    />
50 50
 		<result property="initialSchool"    column="initial_school"    />
51 51
 		<result property="titleProfession"    column="title_profession"    />
52
+		<result property="contact"    column="contact"    />
53
+		<result property="telephone"    column="telephone"    />
52 54
         <association property="dept"    javaType="SysDept"         resultMap="deptResult" />
53 55
         <association property="salary"    javaType="CmcPostSalary"         resultMap="CmcPostSalaryResult" />
54 56
         <collection  property="roles"   javaType="java.util.List"  resultMap="RoleResult" />
@@ -85,7 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 87
                u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark,
86 88
                u.pm_level, u.titles, u.certificates, u.update_reason, u.engineer_level, u.post_level, u.salary_level,
87 89
                u.operator_level, u.entry_date, u.birthday, u.age, u.id_card, u.native_place, u.political_affiliation,
88
-               u.ethnic, u.graduate_school, u.major, u.degree, u.contract_sign, u.contract_expire, u.home_place, u.initial_degree, u.initial_major, u.initial_school, u.title_profession,
90
+               u.ethnic, u.graduate_school, u.major, u.degree, u.contract_sign, u.contract_expire, u.home_place, u.initial_degree,
91
+               u.initial_major, u.initial_school, u.title_profession, u.contact, u.telephone,
89 92
                d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
90 93
                r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status, ps.salary
91 94
         from sys_user u
@@ -100,7 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
100 103
 		       u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.pm_level, u.titles, u.certificates, u.update_reason,
101 104
 		       u.engineer_level, u.post_level, u.salary_level, u.operator_level, u.entry_date, u.birthday, u.age, u.id_card,
102 105
 		       u.native_place, u.political_affiliation, u.ethnic, u.graduate_school, u.major, u.degree, u.contract_sign, u.contract_expire,
103
-		       u.home_place, d.dept_name, d.leader, ps.salary, u.initial_degree, u.initial_major, u.initial_school, u.title_profession from sys_user u
106
+		       u.home_place, d.dept_name, d.leader, ps.salary, u.initial_degree, u.initial_major, u.initial_school, u.title_profession, u.contact, u.telephone from sys_user u
104 107
 		left join sys_dept d on u.dept_id = d.dept_id
105 108
 		left join cmc_post_salary ps on u.post_level = ps.post_level and u.salary_level = ps.salary_level
106 109
 		where u.del_flag = '0' and u.user_id != 1
@@ -150,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
150 153
 		       u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.pm_level, u.titles, u.certificates, u.update_reason,
151 154
 		       u.engineer_level, u.post_level, u.salary_level, u.operator_level, u.entry_date, u.birthday, u.age, u.id_card,
152 155
 		       u.native_place, u.political_affiliation, u.ethnic, u.graduate_school, u.major, u.degree, u.contract_sign, u.contract_expire,
153
-		       u.home_place, d.dept_name, d.leader, ps.salary, u.initial_degree, u.initial_major, u.initial_school, u.title_profession from sys_user u
156
+		       u.home_place, d.dept_name, d.leader, ps.salary, u.initial_degree, u.initial_major, u.initial_school, u.title_profession, u.contact, u.telephone from sys_user u
154 157
 		left join sys_dept d on u.dept_id = d.dept_id
155 158
 		left join cmc_post_salary ps on u.post_level = ps.post_level and u.salary_level = ps.salary_level
156 159
 		where u.del_flag = '0' and u.user_id != 1 AND (u.status = '0' or u.status = '3' or u.status = '4')
@@ -289,6 +292,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
289 292
 			<if test="initialMajor != null">initial_major,</if>
290 293
 			<if test="initialSchool != null">initial_school,</if>
291 294
 			<if test="titleProfession != null">title_profession,</if>
295
+			<if test="contact != null">contact,</if>
296
+			<if test="telephone != null">telephone,</if>
292 297
  			create_time
293 298
  		)values(
294 299
  			<if test="userId != null and userId != ''">#{userId},</if>
@@ -329,6 +334,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
329 334
 			<if test="initialMajor != null">#{initialMajor},</if>
330 335
 			<if test="initialSchool != null">#{initialSchool},</if>
331 336
 			<if test="titleProfession != null">#{titleProfession},</if>
337
+			<if test="contact != null">#{contact},</if>
338
+			<if test="telephone != null">#{telephone},</if>
332 339
  			sysdate()
333 340
  		)
334 341
 	</insert>
@@ -375,6 +382,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
375 382
 			<if test="initialMajor != null">initial_major = #{initialMajor},</if>
376 383
 			<if test="initialSchool != null">initial_school = #{initialSchool},</if>
377 384
 			<if test="titleProfession != null">title_profession = #{titleProfession},</if>
385
+			<if test="contact != null">contact = #{contact},</if>
386
+			<if test="telephone != null">telephone = #{telephone},</if>
378 387
  			update_time = sysdate()
379 388
  		</set>
380 389
  		where user_id = #{userId}

+ 7
- 1
oa-back/sql/sq.sql Wyświetl plik

@@ -23,4 +23,10 @@ alter table cmc_budget add column out_adjust decimal(10,2) default null comment
23 23
 alter table cmc_budget add column tax_adjust decimal(10,2) default null comment '核算税费';
24 24
 alter table cmc_budget add column letter_adjust decimal(10,2) default null comment '保函核算费用';
25 25
 alter table cmc_budget add column win_adjust decimal(10,2) default null comment '中标服务核算费用';
26
-alter table cmc_budget add column travel_adjust decimal(10,2) default null comment '管理出差核算费用';
26
+alter table cmc_budget add column travel_adjust decimal(10,2) default null comment '管理出差核算费用';
27
+insert into sys_user_role values(73,15);
28
+insert into sys_user_role values(115,15);
29
+insert into sys_user_role values(149,15);
30
+insert into sys_user_role values(150,15);
31
+alter table sys_user add column contact varchar(30) default null comment '紧急联系人';
32
+alter table sys_user add column telephone varchar(11) default null comment '紧急联系电话';

+ 1
- 1
oa-ui/src/views/oa/car/index.vue Wyświetl plik

@@ -157,7 +157,7 @@
157 157
           </el-radio-group>
158 158
         </el-form-item>
159 159
         <el-form-item v-if="form.isRent == '1'" label="单日成本" prop="dayCost">
160
-          <el-input style="width:400px;margin-right:10px;" v-model="form.dayCost" placeholder="若不填写,将以残值5%,采用年数总和法计提单日成本"/>
160
+          <el-input style="width:400px;margin-right:10px;" v-model="form.dayCost" placeholder="请输入单日成本"/>
161 161
           <span>元</span>
162 162
         </el-form-item>
163 163
         <el-form-item label="车辆状态" prop="status">

+ 1
- 1
oa-ui/src/views/oa/device/index.vue Wyświetl plik

@@ -166,7 +166,7 @@
166 166
           <el-col :span="12">
167 167
             <el-form-item label="单日成本" prop="dayCost">
168 168
               <el-input type="textarea" :rows="2" style="width:230px;margin-right:10px;" v-model="form.dayCost"
169
-                placeholder="若不填写,将以残值5%,采用年数总和法计提单日成本" />
169
+                placeholder="请输入单日成本" />
170 170
               <span>元</span>
171 171
             </el-form-item>
172 172
           </el-col>

+ 22
- 5
oa-ui/src/views/oa/staff/index.vue Wyświetl plik

@@ -133,6 +133,8 @@
133 133
           <el-table-column label="最高学历专业" align="center" key="major" prop="major" v-if="columns[11].visible" />
134 134
           <el-table-column label="最高学历" sortable align="center" key="degree" prop="degree" :formatter="formatterDegree"
135 135
             v-if="columns[12].visible" />
136
+          <el-table-column label="初始学历毕业院校" align="center" key="initialSchool" prop="initialSchool"
137
+            v-if="columns[21].visible" sortable="custom" />
136 138
           <el-table-column label="初始学历专业" align="center" key="initialMajor" prop="initialMajor" v-if="columns[20].visible" />
137 139
           <el-table-column label="初始学历" sortable align="center" key="initialDegree" prop="initialDegree" :formatter="formatterInitialDegree"
138 140
             v-if="columns[19].visible" />
@@ -229,24 +231,27 @@
229 231
               <el-input v-model="form.ethnic" placeholder="请输入民族" />
230 232
             </el-form-item>
231 233
             <el-form-item label="初始学历专业" prop="initialDegree">
232
-              <el-col :span="12">
234
+              <el-col :span="8">
233 235
                 <el-select v-model="form.initialDegree" placeholder="请选择" style="width:100%;" clearable>
234 236
                   <el-option v-for="dict in dict.type.sys_user_degree" :key="dict.value" :label="dict.label"
235 237
                   :value="dict.value" />
236 238
                 </el-select>
237 239
               </el-col>
238
-              <el-col :span="12">
240
+              <el-col :span="16">
239 241
                 <el-input v-model="form.initialMajor" placeholder="请输入专业" />
240 242
               </el-col>
241 243
             </el-form-item>
244
+            <el-form-item label="初始学历毕业学校" prop="initialSchool">
245
+              <el-input v-model="form.initialSchool" placeholder="请输入初始学历毕业学校" />
246
+            </el-form-item>
242 247
             <el-form-item label="最高学历专业" prop="degree">
243
-              <el-col :span="12">
248
+              <el-col :span="8">
244 249
                 <el-select v-model="form.degree" placeholder="请选择" style="width:100%;" clearable>
245 250
                   <el-option v-for="dict in dict.type.sys_user_degree" :key="dict.value" :label="dict.label"
246 251
                   :value="dict.value" />
247 252
                 </el-select>
248 253
               </el-col>
249
-              <el-col :span="12">
254
+              <el-col :span="16">
250 255
                 <el-input v-model="form.major" placeholder="请输入专业" />
251 256
               </el-col>
252 257
             </el-form-item>
@@ -333,6 +338,12 @@
333 338
                     :value="dict.value" />
334 339
                 </el-select>
335 340
               </el-col>
341
+            </el-form-item>            
342
+            <el-form-item label="紧急联系人" prop="contact">
343
+              <el-input v-model="form.contact" placeholder="请输入紧急联系人" />
344
+            </el-form-item>
345
+            <el-form-item label="紧急联系电话" prop="telephone">
346
+              <el-input v-model="form.telephone" placeholder="请输入紧急联系电话" />
336 347
             </el-form-item>
337 348
           </el-col>
338 349
         </el-row>
@@ -476,6 +487,7 @@ export default {
476 487
         { key: 18, label: `职业资格`, visible: false },
477 488
         { key: 19, label: `初始学历`, visible: false },
478 489
         { key: 20, label: `初始学历专业`, visible: false },
490
+        { key: 21, label: `初始学历毕业院校`, visible: false },
479 491
       ],
480 492
       // 表单校验
481 493
       rules: {
@@ -592,6 +604,9 @@ export default {
592 604
         graduateSchool: undefined,
593 605
         major: undefined,
594 606
         degree: undefined,
607
+        initialSchool: undefined,
608
+        initialMajor: undefined,
609
+        initialDegree: undefined,
595 610
         homePlace: undefined,
596 611
         entryDate: undefined,
597 612
         contractSign: undefined,
@@ -606,7 +621,9 @@ export default {
606 621
         postIds: [],
607 622
         postLevel: undefined,
608 623
         salaryLevel: undefined,
609
-        salaryLevel: undefined,
624
+        titleProfession: undefined,
625
+        contact: null,
626
+        telephone: null
610 627
       };
611 628
       // this.resetForm("form");
612 629
     },

+ 16
- 4
oa-ui/src/views/oa/staff/info.vue Wyświetl plik

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-03-22 14:50:46
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-02-27 11:40:45
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2025-05-19 16:50:50
6 6
 -->
7 7
 <template>
8 8
   <div class="bg" v-loading="loading">
@@ -81,6 +81,13 @@
81 81
             <div class="item-label" style="min-width:70px;">家庭住址:</div>
82 82
           </div>
83 83
           <div>{{ form.homePlace }}</div>
84
+        </div>        
85
+        <div class="info-item">
86
+          <div class="item-label">
87
+            <svg-icon icon-class="user" class="info-icon"></svg-icon>
88
+            <div class="item-label" style="min-width:70px;">紧急联系方式:</div>
89
+          </div>
90
+          <div>{{ form.contact + form.telephone }}</div>
84 91
         </div>
85 92
       </el-col>
86 93
       <el-col :span="15" class="stateInfo">
@@ -205,6 +212,11 @@ export default {
205 212
               icon: 'degree',
206 213
               value: this.selectDictLabel(this.dict.type.sys_user_degree, this.form.degree)
207 214
             },
215
+            {
216
+              label: '初始学历毕业院校:',
217
+              icon: 'school',
218
+              value: this.form.initialSchool
219
+            },
208 220
             {
209 221
               label: '初始学历专业:',
210 222
               icon: 'major',
@@ -309,7 +321,7 @@ export default {
309 321
 
310 322
 .userInfo {
311 323
   background-color: #fff;
312
-  height: 900px;
324
+  height: 1000px;
313 325
   margin-right: 40px;
314 326
   padding: 5px;
315 327
 
@@ -369,7 +381,7 @@ export default {
369 381
 
370 382
 .stateInfo {
371 383
   background-color: #fff;
372
-  height: 900px;
384
+  height: 1000px;
373 385
   overflow-y: scroll;
374 386
   padding: 10px 30px 0;
375 387
 }

Ładowanie…
Anuluj
Zapisz