Bläddra i källkod

新增人员自动赋予普通角色,核算天数可计半天

lamphua 2 veckor sedan
förälder
incheckning
2bf5fdb2ad

+ 3
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java Visa fil

@@ -305,6 +305,9 @@ public class SysUserController extends BaseController
305 305
             user.setPoliticalAffiliation("13");
306 306
         String pinyin = Pinyin4jUtil.getPinyin(user.getNickName());
307 307
         user.setPinyin(pinyin.contains(",") ? pinyin.split(",")[0] : pinyin);
308
+        Long[] roleIds = new Long[1];
309
+        roleIds[0] = 2L;
310
+        user.setRoleIds(roleIds);
308 311
         user.setPassword(SecurityUtils.encryptPassword(user.getIdCard().substring(12,18)));
309 312
         if (user.getBirthday() != null)
310 313
             user.setAge(DateUtils.getAgeByBirth(user.getBirthday()));

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcBudgetStaff.java Visa fil

@@ -34,7 +34,7 @@ public class CmcBudgetStaff extends BaseEntity
34 34
 
35 35
     /** 天数 */
36 36
     @Excel(name = "天数")
37
-    private Integer days;
37
+    private Double days;
38 38
 
39 39
     private CmcPostSalary salary;
40 40
 
@@ -48,7 +48,7 @@ public class CmcBudgetStaff extends BaseEntity
48 48
 
49 49
     /** 核算天数 */
50 50
     @Excel(name = "核算天数")
51
-    private Long daysAdjust;
51
+    private Double daysAdjust;
52 52
 
53 53
     /** 预算绩效 */
54 54
     @Excel(name = "预算绩效")
@@ -114,12 +114,12 @@ public class CmcBudgetStaff extends BaseEntity
114 114
     {
115 115
         return user;
116 116
     }
117
-    public void setDays(Integer days) 
117
+    public void setDays(Double days)
118 118
     {
119 119
         this.days = days;
120 120
     }
121 121
 
122
-    public Integer getDays() 
122
+    public Double getDays()
123 123
     {
124 124
         return days;
125 125
     }
@@ -150,12 +150,12 @@ public class CmcBudgetStaff extends BaseEntity
150 150
     {
151 151
         return type;
152 152
     }
153
-    public void setDaysAdjust(Long daysAdjust)
153
+    public void setDaysAdjust(Double daysAdjust)
154 154
     {
155 155
         this.daysAdjust = daysAdjust;
156 156
     }
157 157
 
158
-    public Long getDaysAdjust()
158
+    public Double getDaysAdjust()
159 159
     {
160 160
         return daysAdjust;
161 161
     }

+ 5
- 12
oa-ui/src/views/flowable/form/budget/adjust/budgetAdjust.vue Visa fil

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2025-05-07 11:01:39
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2025-07-09 17:04:27
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2025-09-10 13:58:29
6 6
 -->
7 7
 <template>
8 8
   <div class="main">
@@ -410,20 +410,13 @@ export default {
410 410
   },
411 411
   watch: {
412 412
     'taskForm.formId'() {
413
-      if (!this.row.projectId) {
414
-        getCheck(this.taskForm.formId).then(res => {
415
-          this.row.projectId = res.data.projectId;
416
-          this.initBudgetForm();
417
-          this.initCheckForm();
418
-          this.getContractInfo();
419
-          this.getSubContractInfo();
420
-        });
421
-      } else {
413
+      getCheck(this.taskForm.formId).then(res => {
414
+        this.row.projectId = res.data.projectId;
422 415
         this.initBudgetForm();
423 416
         this.initCheckForm();
424 417
         this.getContractInfo();
425 418
         this.getSubContractInfo();
426
-      }
419
+      });
427 420
 
428 421
     }
429 422
   },

+ 2
- 1
oa-ui/src/views/oa/check/index.vue Visa fil

@@ -187,9 +187,10 @@ export default {
187 187
     },
188 188
     /** 查看按钮操作 */
189 189
     handleView(row) {
190
-      this.$set(this.taskForm, 'formId', row.checkId)
191 190
       this.open = true;
192 191
       this.title = "查看cmc项目核算";
192
+      this.form = row;
193
+      this.$set(this.taskForm, 'formId', row.checkId)
193 194
     },
194 195
     /** 重置按钮操作 */
195 196
     resetQuery() {

Loading…
Avbryt
Spara