Переглянути джерело

设备表、合作单位表更新;显示高级管理人员

lamphua 1 рік тому
джерело
коміт
53130fe2aa

+ 15
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSubContractController.java Переглянути файл

@@ -3,6 +3,10 @@ package com.ruoyi.web.controller.oa;
3 3
 import java.util.Date;
4 4
 import java.util.List;
5 5
 import javax.servlet.http.HttpServletResponse;
6
+
7
+import com.ruoyi.common.utils.SnowFlake;
8
+import com.ruoyi.oa.domain.CmcPartner;
9
+import com.ruoyi.oa.service.ICmcPartnerService;
6 10
 import org.springframework.beans.factory.annotation.Autowired;
7 11
 import org.springframework.web.bind.annotation.GetMapping;
8 12
 import org.springframework.web.bind.annotation.PostMapping;
@@ -34,6 +38,9 @@ public class CmcSubContractController extends BaseController
34 38
     @Autowired
35 39
     private ICmcSubContractService cmcSubContractService;
36 40
 
41
+    @Autowired
42
+    private ICmcPartnerService cmcPartnerService;
43
+
37 44
     /**
38 45
      * 查询cmc分包合同评审列表
39 46
      */
@@ -73,6 +80,14 @@ public class CmcSubContractController extends BaseController
73 80
     @PostMapping
74 81
     public AjaxResult add(@RequestBody CmcSubContract cmcSubContract)
75 82
     {
83
+        if (!cmcSubContract.getPartnerId().matches("-?\\d+(\\.\\d+)?")) {
84
+            CmcPartner cmcPartner = new CmcPartner();
85
+            cmcPartner.setPartnerId(new SnowFlake().generateId());
86
+            cmcPartner.setPartnerName(cmcSubContract.getPartnerId());
87
+            cmcPartner.setContactPerson(cmcSubContract.getContactPerson());
88
+            cmcPartnerService.insertCmcPartner(cmcPartner);
89
+            cmcSubContract.setPartnerId(cmcPartner.getPartnerId());
90
+        }
76 91
         return toAjax(cmcSubContractService.insertCmcSubContract(cmcSubContract));
77 92
     }
78 93
 

+ 3
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java Переглянути файл

@@ -74,6 +74,9 @@ public class SysUserController extends BaseController
74 74
     {
75 75
         startPage();
76 76
         List<SysUser> list = userService.selectUserList(user);
77
+        if (user.getDeptId() != null && user.getDeptId() == 103L) {
78
+            list = postService.selectGmAssistant(user);
79
+        }
77 80
         return getDataTable(list);
78 81
     }
79 82
 
@@ -133,7 +136,6 @@ public class SysUserController extends BaseController
133 136
      */
134 137
     @GetMapping("/change")
135 138
     public TableDataInfo getChangeInfo(SysUser user) {
136
-        startPage();
137 139
         Long userId = user.getUserId();
138 140
         SysUser sysUser = userService.selectUserById(userId);
139 141
         List<Long> userPostList = postService.selectPostListByUserId(userId);

+ 0
- 43
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcDevice.java Переглянути файл

@@ -67,19 +67,6 @@ public class CmcDevice extends BaseEntity
67 67
     @Excel(name = "存放地点")
68 68
     private String place;
69 69
 
70
-    /** 校验周期(年) */
71
-    @Excel(name = "校验周期", readConverterExp = "年=")
72
-    private Integer checkTerm;
73
-
74
-    /** 校验时间 */
75
-    @JsonFormat(pattern = "yyyy-MM-dd")
76
-    @Excel(name = "校验时间", width = 30, dateFormat = "yyyy-MM-dd")
77
-    private Date checkTime;
78
-
79
-    /** 保修期(月) */
80
-    @Excel(name = "保修期", readConverterExp = "月=")
81
-    private Integer warranty;
82
-
83 70
     /** 管理部门id */
84 71
     @Excel(name = "管理部门id")
85 72
     private Long manageDept;
@@ -196,33 +183,6 @@ public class CmcDevice extends BaseEntity
196 183
     {
197 184
         return place;
198 185
     }
199
-    public void setCheckTerm(Integer checkTerm)
200
-    {
201
-        this.checkTerm = checkTerm;
202
-    }
203
-
204
-    public Integer getCheckTerm()
205
-    {
206
-        return checkTerm;
207
-    }
208
-    public void setCheckTime(Date checkTime)
209
-    {
210
-        this.checkTime = checkTime;
211
-    }
212
-
213
-    public Date getCheckTime()
214
-    {
215
-        return checkTime;
216
-    }
217
-    public void setWarranty(Integer warranty)
218
-    {
219
-        this.warranty = warranty;
220
-    }
221
-
222
-    public Integer getWarranty()
223
-    {
224
-        return warranty;
225
-    }
226 186
     public void setManageDept(Long manageDept)
227 187
     {
228 188
         this.manageDept = manageDept;
@@ -258,9 +218,6 @@ public class CmcDevice extends BaseEntity
258 218
                 .append("dayCost", getDayCost())
259 219
                 .append("place", getPlace())
260 220
                 .append("remark", getRemark())
261
-                .append("checkTerm", getCheckTerm())
262
-                .append("checkTime", getCheckTime())
263
-                .append("warranty", getWarranty())
264 221
                 .append("manageDept", getManageDept())
265 222
                 .toString();
266 223
     }

+ 16
- 2
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcPartner.java Переглянути файл

@@ -22,12 +22,16 @@ public class CmcPartner extends BaseEntity
22 22
     @Excel(name = "单位名称")
23 23
     private String partnerName;
24 24
 
25
-    public void setPartnerId(String partnerId) 
25
+    /** 联系人 */
26
+    @Excel(name = "联系人")
27
+    private String contactPerson;
28
+
29
+    public void setPartnerId(String partnerId)
26 30
     {
27 31
         this.partnerId = partnerId;
28 32
     }
29 33
 
30
-    public String getPartnerId() 
34
+    public String getPartnerId()
31 35
     {
32 36
         return partnerId;
33 37
     }
@@ -40,12 +44,22 @@ public class CmcPartner extends BaseEntity
40 44
     {
41 45
         return partnerName;
42 46
     }
47
+    public void setContactPerson(String contactPerson)
48
+    {
49
+        this.contactPerson = contactPerson;
50
+    }
51
+
52
+    public String getContactPerson()
53
+    {
54
+        return contactPerson;
55
+    }
43 56
 
44 57
     @Override
45 58
     public String toString() {
46 59
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
47 60
             .append("partnerId", getPartnerId())
48 61
             .append("partnerName", getPartnerName())
62
+            .append("contactPerson", getContactPerson())
49 63
             .toString();
50 64
     }
51 65
 }

+ 0
- 43
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSupply.java Переглянути файл

@@ -66,19 +66,6 @@ public class CmcSupply extends BaseEntity
66 66
     @Excel(name = "存放地点")
67 67
     private String place;
68 68
 
69
-    /** 校验周期(年) */
70
-    @Excel(name = "校验周期", readConverterExp = "年=")
71
-    private Long checkTerm;
72
-
73
-    /** 保修期(月) */
74
-    @Excel(name = "保修期", readConverterExp = "月=")
75
-    private Long warranty;
76
-
77
-    /** 校验日期 */
78
-    @JsonFormat(pattern = "yyyy-MM-dd")
79
-    @Excel(name = "校验日期", width = 30, dateFormat = "yyyy-MM-dd")
80
-    private Date checkTime;
81
-
82 69
     /** 管理部门 */
83 70
     @Excel(name = "管理部门")
84 71
     private Long manageDept;
@@ -191,33 +178,6 @@ public class CmcSupply extends BaseEntity
191 178
     {
192 179
         return place;
193 180
     }
194
-    public void setCheckTerm(Long checkTerm) 
195
-    {
196
-        this.checkTerm = checkTerm;
197
-    }
198
-
199
-    public Long getCheckTerm() 
200
-    {
201
-        return checkTerm;
202
-    }
203
-    public void setWarranty(Long warranty) 
204
-    {
205
-        this.warranty = warranty;
206
-    }
207
-
208
-    public Long getWarranty() 
209
-    {
210
-        return warranty;
211
-    }
212
-    public void setCheckTime(Date checkTime) 
213
-    {
214
-        this.checkTime = checkTime;
215
-    }
216
-
217
-    public Date getCheckTime() 
218
-    {
219
-        return checkTime;
220
-    }
221 181
     public void setManageDept(Long manageDept) 
222 182
     {
223 183
         this.manageDept = manageDept;
@@ -244,9 +204,6 @@ public class CmcSupply extends BaseEntity
244 204
             .append("dayCost", getDayCost())
245 205
             .append("place", getPlace())
246 206
             .append("remark", getRemark())
247
-            .append("checkTerm", getCheckTerm())
248
-            .append("warranty", getWarranty())
249
-            .append("checkTime", getCheckTime())
250 207
             .append("manageDept", getManageDept())
251 208
             .toString();
252 209
     }

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java Переглянути файл

@@ -52,6 +52,14 @@ public interface SysUserPostMapper
52 52
      */
53 53
     public List<SysUser> selectDriverList();
54 54
 
55
+    /**
56
+     * 查询高级管理员集合
57
+     *
58
+     * @param
59
+     * @return 高级管理员列表
60
+     */
61
+    public List<SysUser> selectGmAssistant(SysUser user);
62
+
55 63
     /**
56 64
      * 查询总经理
57 65
      *

+ 8
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java Переглянути файл

@@ -108,6 +108,14 @@ public interface ISysPostService
108 108
      */
109 109
     public List<SysUser> selectDriverList();
110 110
 
111
+    /**
112
+     * 查询高级管理员集合
113
+     *
114
+     * @param
115
+     * @return 高级管理员列表
116
+     */
117
+    public List<SysUser> selectGmAssistant(SysUser user);
118
+
111 119
     /**
112 120
      * 查询总经理
113 121
      *

+ 11
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java Переглянути файл

@@ -189,6 +189,17 @@ public class SysPostServiceImpl implements ISysPostService
189 189
         return userPostMapper.selectDriverList();
190 190
     }
191 191
 
192
+    /**
193
+     * 查询高级管理员集合
194
+     *
195
+     * @param
196
+     * @return 高级管理员列表
197
+     */
198
+    @Override
199
+    public List<SysUser> selectGmAssistant(SysUser user) {
200
+        return userPostMapper.selectGmAssistant(user);
201
+    }
202
+
192 203
     /**
193 204
      * 查询总经理
194 205
      *

+ 1
- 16
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeviceMapper.xml Переглянути файл

@@ -18,9 +18,6 @@
18 18
         <result property="dayCost"    column="day_cost"    />
19 19
         <result property="place"    column="place"    />
20 20
         <result property="remark"    column="remark"    />
21
-        <result property="checkTerm"    column="check_term"    />
22
-        <result property="checkTime"    column="check_time"    />
23
-        <result property="warranty"    column="warranty"    />
24 21
         <result property="manageDept"    column="manage_dept"    />
25 22
         <association property="dept"    javaType="SysDept"         resultMap="deptResult" />
26 23
     </resultMap>
@@ -31,7 +28,7 @@
31 28
     </resultMap>
32 29
 
33 30
     <sql id="selectCmcDeviceVo">
34
-        select d.device_id, d.device_number, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.check_term, d.check_time, d.warranty, d.manage_dept, dept.dept_name from cmc_device as d left join sys_dept as dept
31
+        select d.device_id, d.device_number, d.code, d.name, d.type, d.acquisition_time, d.cost, d.expect_life, d.series, d.brand, d.day_cost, d.place, d.remark, d.manage_dept, dept.dept_name from cmc_device as d left join sys_dept as dept
35 32
     </sql>
36 33
 
37 34
     <select id="selectCmcDeviceList" parameterType="CmcDevice" resultMap="CmcDeviceResult">
@@ -49,9 +46,6 @@
49 46
             <if test="brand != null  and brand != ''"> and d.brand like concat('%', #{brand}, '%')</if>
50 47
             <if test="dayCost != null "> and d.day_cost = #{dayCost}</if>
51 48
             <if test="place != null  and place != ''"> and d.place like concat('%', #{place}, '%')</if>
52
-            <if test="checkTerm != null "> and d.check_term = #{checkTerm}</if>
53
-            <if test="checkTime != null "> and d.check_time = #{checkTime}</if>
54
-            <if test="warranty != null "> and d.warranty = #{warranty}</if>
55 49
             <if test="manageDept != null "> and d.manage_dept = #{manageDept}</if>
56 50
         </where>
57 51
     </select>
@@ -81,9 +75,6 @@
81 75
             <if test="dayCost != null">day_cost,</if>
82 76
             <if test="place != null">place,</if>
83 77
             <if test="remark != null">remark,</if>
84
-            <if test="checkTerm != null">check_term,</if>
85
-            <if test="checkTime != null">check_time,</if>
86
-            <if test="warranty != null">warranty,</if>
87 78
             <if test="manageDept != null">manage_dept,</if>
88 79
         </trim>
89 80
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -99,9 +90,6 @@
99 90
             <if test="dayCost != null">#{dayCost},</if>
100 91
             <if test="place != null">#{place},</if>
101 92
             <if test="remark != null">#{remark},</if>
102
-            <if test="checkTerm != null">#{checkTerm},</if>
103
-            <if test="checkTime != null">#{checkTime},</if>
104
-            <if test="warranty != null">#{warranty},</if>
105 93
             <if test="manageDept != null">#{manageDept},</if>
106 94
         </trim>
107 95
     </insert>
@@ -121,9 +109,6 @@
121 109
             <if test="dayCost != null">day_cost = #{dayCost},</if>
122 110
             <if test="place != null">place = #{place},</if>
123 111
             <if test="remark != null">remark = #{remark},</if>
124
-            <if test="checkTerm != null">check_term = #{checkTerm},</if>
125
-            <if test="checkTime != null">check_time = #{checkTime},</if>
126
-            <if test="warranty != null">warranty = #{warranty},</if>
127 112
             <if test="manageDept != null">manage_dept = #{manageDept},</if>
128 113
         </trim>
129 114
         where device_id = #{deviceId}

+ 5
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPartnerMapper.xml Переглянути файл

@@ -7,10 +7,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="CmcPartner" id="CmcPartnerResult">
8 8
         <result property="partnerId"    column="partner_id"    />
9 9
         <result property="partnerName"    column="partner_name"    />
10
+        <result property="contactPerson"    column="contact_person"    />
10 11
     </resultMap>
11 12
 
12 13
     <sql id="selectCmcPartnerVo">
13
-        select partner_id, partner_name from cmc_partner
14
+        select partner_id, partner_name, contact_person from cmc_partner
14 15
     </sql>
15 16
 
16 17
     <select id="selectCmcPartnerList" parameterType="CmcPartner" resultMap="CmcPartnerResult">
@@ -30,10 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 31
         <trim prefix="(" suffix=")" suffixOverrides=",">
31 32
             <if test="partnerId != null">partner_id,</if>
32 33
             <if test="partnerName != null">partner_name,</if>
34
+            <if test="contactPerson != null">contact_person,</if>
33 35
          </trim>
34 36
         <trim prefix="values (" suffix=")" suffixOverrides=",">
35 37
             <if test="partnerId != null">#{partnerId},</if>
36 38
             <if test="partnerName != null">#{partnerName},</if>
39
+            <if test="contactPerson != null">#{contactPerson},</if>
37 40
          </trim>
38 41
     </insert>
39 42
 
@@ -41,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
41 44
         update cmc_partner
42 45
         <trim prefix="SET" suffixOverrides=",">
43 46
             <if test="partnerName != null">partner_name = #{partnerName},</if>
47
+            <if test="contactPerson != null">contact_person = #{contactPerson},</if>
44 48
         </trim>
45 49
         where partner_id = #{partnerId}
46 50
     </update>

+ 11
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Переглянути файл

@@ -20,6 +20,8 @@
20 20
         <result property="undertakingDept"    column="undertaking_dept"    />
21 21
         <result property="projectPlanner"    column="project_planner"    />
22 22
         <result property="siteLeader"    column="site_leader"    />
23
+        <result property="organizeDocument"    column="organize_document"    />
24
+        <result property="organizeTime"    column="organize_time"    />
23 25
         <result property="registerTime"    column="register_time"    />
24 26
         <result property="planTime"    column="plan_time"    />
25 27
         <result property="entryTime"    column="entry_time"    />
@@ -61,9 +63,9 @@
61 63
 
62 64
     <sql id="selectCmcProjectVo">
63 65
         select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a, p.contact_person, p.telephone,
64
-               p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.register_time, p.plan_time,
65
-               p.entry_time, p.exit_time, p.remark, c.technical_director, u2.nick_name as director_nick_name, c.quality_inspector, u3.nick_name as inspector_nick_name, u3.user_id as inspector_user_id,
66
-               p.project_kml, p.project_cp, p.kml_lng, p.kml_lat, p.cars, p.drivers, p.devices, p.participates from cmc_project as p
66
+               p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.organize_document, p.organize_time,
67
+               p.register_time, p.plan_time, p.entry_time, p.exit_time, p.remark, c.technical_director, u2.nick_name as director_nick_name, c.quality_inspector, u3.nick_name as inspector_nick_name,
68
+               u3.user_id as inspector_user_id, p.project_kml, p.project_cp, p.kml_lng, p.kml_lat, p.cars, p.drivers, p.devices, p.participates from cmc_project as p
67 69
         left join sys_user as u on u.user_id = p.project_leader
68 70
         left join sys_user as u1 on u1.user_id = p.project_registrant
69 71
         left join cmc_technical as c on c.project_id = p.project_id
@@ -122,6 +124,8 @@
122 124
             <if test="undertakingDept != null">undertaking_dept,</if>
123 125
             <if test="projectPlanner != null">project_planner,</if>
124 126
             <if test="siteLeader != null">site_leader,</if>
127
+            <if test="organizeDocument != null">organize_document,</if>
128
+            <if test="organizeTime != null">organize_time,</if>
125 129
             <if test="registerTime != null">register_time,</if>
126 130
             <if test="planTime != null">plan_time,</if>
127 131
             <if test="entryTime != null">entry_time,</if>
@@ -152,6 +156,8 @@
152 156
             <if test="undertakingDept != null">#{undertakingDept},</if>
153 157
             <if test="projectPlanner != null">#{projectPlanner},</if>
154 158
             <if test="siteLeader != null">#{siteLeader},</if>
159
+            <if test="organizeDocument != null">#{organizeDocument},</if>
160
+            <if test="organizeTime != null">#{organizeTime},</if>
155 161
             <if test="registerTime != null">#{registerTime},</if>
156 162
             <if test="planTime != null">#{planTime},</if>
157 163
             <if test="entryTime != null">#{entryTime},</if>
@@ -185,6 +191,8 @@
185 191
             <if test="undertakingDept != null">undertaking_dept = #{undertakingDept},</if>
186 192
             <if test="projectPlanner != null">project_planner = #{projectPlanner},</if>
187 193
             <if test="siteLeader != null">site_leader = #{siteLeader},</if>
194
+            <if test="organizeDocument != null">organize_document = #{organizeDocument},</if>
195
+            <if test="organizeTime != null">organize_time = #{organizeTime},</if>
188 196
             <if test="registerTime != null">register_time = #{registerTime},</if>
189 197
             <if test="planTime != null">plan_time = #{planTime},</if>
190 198
             <if test="entryTime != null">entry_time = #{entryTime},</if>

+ 1
- 16
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSupplyMapper.xml Переглянути файл

@@ -18,14 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
         <result property="dayCost"    column="day_cost"    />
19 19
         <result property="place"    column="place"    />
20 20
         <result property="remark"    column="remark"    />
21
-        <result property="checkTerm"    column="check_term"    />
22
-        <result property="warranty"    column="warranty"    />
23
-        <result property="checkTime"    column="check_time"    />
24 21
         <result property="manageDept"    column="manage_dept"    />
25 22
     </resultMap>
26 23
 
27 24
     <sql id="selectCmcSupplyVo">
28
-        select supply_id, supply_number, code, name, type, acquisition_time, cost, expect_life, series, brand, day_cost, place, remark, check_term, warranty, check_time, manage_dept from cmc_supply
25
+        select supply_id, supply_number, code, name, type, acquisition_time, cost, expect_life, series, brand, day_cost, place, remark, manage_dept from cmc_supply
29 26
     </sql>
30 27
 
31 28
     <select id="selectCmcSupplyList" parameterType="CmcSupply" resultMap="CmcSupplyResult">
@@ -42,9 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
42 39
             <if test="brand != null  and brand != ''"> and brand = #{brand}</if>
43 40
             <if test="dayCost != null "> and day_cost = #{dayCost}</if>
44 41
             <if test="place != null  and place != ''"> and place = #{place}</if>
45
-            <if test="checkTerm != null "> and check_term = #{checkTerm}</if>
46
-            <if test="warranty != null "> and warranty = #{warranty}</if>
47
-            <if test="checkTime != null "> and check_time = #{checkTime}</if>
48 42
             <if test="manageDept != null "> and manage_dept = #{manageDept}</if>
49 43
         </where>
50 44
     </select>
@@ -69,9 +63,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
69 63
             <if test="dayCost != null">day_cost,</if>
70 64
             <if test="place != null">place,</if>
71 65
             <if test="remark != null">remark,</if>
72
-            <if test="checkTerm != null">check_term,</if>
73
-            <if test="warranty != null">warranty,</if>
74
-            <if test="checkTime != null">check_time,</if>
75 66
             <if test="manageDept != null">manage_dept,</if>
76 67
          </trim>
77 68
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -87,9 +78,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
87 78
             <if test="dayCost != null">#{dayCost},</if>
88 79
             <if test="place != null">#{place},</if>
89 80
             <if test="remark != null">#{remark},</if>
90
-            <if test="checkTerm != null">#{checkTerm},</if>
91
-            <if test="warranty != null">#{warranty},</if>
92
-            <if test="checkTime != null">#{checkTime},</if>
93 81
             <if test="manageDept != null">#{manageDept},</if>
94 82
          </trim>
95 83
     </insert>
@@ -109,9 +97,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
109 97
             <if test="dayCost != null">day_cost = #{dayCost},</if>
110 98
             <if test="place != null">place = #{place},</if>
111 99
             <if test="remark != null">remark = #{remark},</if>
112
-            <if test="checkTerm != null">check_term = #{checkTerm},</if>
113
-            <if test="warranty != null">warranty = #{warranty},</if>
114
-            <if test="checkTime != null">check_time = #{checkTime},</if>
115 100
             <if test="manageDept != null">manage_dept = #{manageDept},</if>
116 101
         </trim>
117 102
         where supply_id = #{supplyId}

+ 66
- 0
oa-back/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml Переглянути файл

@@ -11,7 +11,50 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
11 11
 
12 12
 	<resultMap type="SysUser" id="SysUserResult">
13 13
 		<id     property="userId"       column="user_id"      />
14
+		<result property="deptId"       column="dept_id"      />
15
+		<result property="userName"     column="user_name"    />
14 16
 		<result property="nickName"     column="nick_name"    />
17
+		<result property="email"        column="email"        />
18
+		<result property="phonenumber"  column="phonenumber"  />
19
+		<result property="sex"          column="sex"          />
20
+		<result property="avatar"       column="avatar"       />
21
+		<result property="password"     column="password"     />
22
+		<result property="status"       column="status"       />
23
+		<result property="delFlag"      column="del_flag"     />
24
+		<result property="loginIp"      column="login_ip"     />
25
+		<result property="loginDate"    column="login_date"   />
26
+		<result property="createBy"     column="create_by"    />
27
+		<result property="createTime"   column="create_time"  />
28
+		<result property="updateBy"     column="update_by"    />
29
+		<result property="updateTime"   column="update_time"  />
30
+		<result property="remark"       column="remark"       />
31
+		<result property="pmLevel"       column="pm_level"       />
32
+		<result property="titles"       column="titles"       />
33
+		<result property="certificates"       column="certificates"       />
34
+		<result property="updateReason"       column="update_reason"       />
35
+		<result property="engineerLevel"       column="engineer_level"       />
36
+		<result property="postLevel"       column="post_level"       />
37
+		<result property="salaryLevel"       column="salary_level"       />
38
+		<result property="operatorLevel"    column="operator_level"    />
39
+		<result property="entryDate"       column="entry_date"       />
40
+		<result property="birthday"       column="birthday"       />
41
+		<result property="age"       column="age"       />
42
+		<result property="idCard"    column="id_card"    />
43
+		<result property="nativePlace"    column="native_place"    />
44
+		<result property="politicalAffiliation"    column="political_affiliation"    />
45
+		<result property="ethnic"    column="ethnic"    />
46
+		<result property="graduateSchool"    column="graduate_school"    />
47
+		<result property="major"    column="major"    />
48
+		<result property="degree"    column="degree"    />
49
+		<result property="contractSign"    column="contract_sign"    />
50
+		<result property="contractExpire"    column="contract_expire"    />
51
+		<result property="homePlace"    column="home_place"    />
52
+		<association property="dept"    javaType="SysDept"         resultMap="deptResult" />
53
+	</resultMap>
54
+
55
+	<resultMap id="deptResult" type="SysDept">
56
+		<id     property="deptId"    column="dept_id"     />
57
+		<result property="deptName"  column="dept_name"   />
15 58
 	</resultMap>
16 59
 
17 60
 	<select id="selectDriverList" resultMap="SysUserResult">
@@ -20,6 +63,29 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
20 63
 		where up.post_id = 27 and u.status = '0'
21 64
 	</select>
22 65
 
66
+	<select id="selectGmAssistant" parameterType="SysUser" resultMap="SysUserResult">
67
+		select u.*, d.dept_name
68
+		from sys_user u
69
+				 left join sys_dept d on u.dept_id = d.dept_id
70
+				 left join sys_user_post up on u.user_id = up.user_id
71
+		where up.post_id = 11
72
+		<if test="userId != null and userId != 0">
73
+			AND u.user_id = #{userId}
74
+		</if>
75
+		<if test="userName != null and userName != ''">
76
+			AND u.user_name like concat('%', #{userName}, '%')
77
+		</if>
78
+		<if test="nickName != null and nickName != ''">
79
+			AND u.nick_name like concat('%', #{nickName}, '%')
80
+		</if>
81
+		<if test="status != null and status != ''">
82
+			AND u.status = #{status}
83
+		</if>
84
+		<if test="phonenumber != null and phonenumber != ''">
85
+			AND u.phonenumber like concat('%', #{phonenumber}, '%')
86
+		</if>
87
+	</select>
88
+
23 89
 	<select id="selectGm" resultMap="SysUserResult">
24 90
 		select u.user_id, u.nick_name
25 91
 		from sys_user u left join sys_user_post up on u.user_id = up.user_id

+ 734
- 602
oa-back/sql/sql.sql
Різницю між файлами не показано, бо вона завелика
Переглянути файл


+ 35
- 5
oa-ui/src/views/flowable/form/business/subContract.vue Переглянути файл

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-05-10 15:31:57
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-05-15 14:32:41
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-05-20 16:11:08
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -66,8 +66,8 @@
66 66
           <el-row :gutter="20">
67 67
             <el-col :span="16" :xs="24">
68 68
               <el-form-item label="承接单位" prop="partnerId">
69
-                <el-select v-model="form.partnerId" filterable placeholder="请选择" :disabled="taskName != '合同拟稿'"
70
-                  clearable>
69
+                <el-select allow-create v-model="form.partnerId" filterable placeholder="请选择" :disabled="taskName != '合同拟稿'"
70
+                  clearable @change="handleSelectPartner">
71 71
                   <el-option v-for="item in partnerList" :key="item.value" :label="item.partnerName"
72 72
                     :value="item.partnerId">
73 73
                   </el-option>
@@ -81,6 +81,23 @@
81 81
             </el-col>
82 82
           </el-row>
83 83
 
84
+          <el-form-item label="合同文件" prop="contractDocument">
85
+            <FileUpload v-if="taskName == '合同拟稿'" ref="contractFile" :limit="1" :filePathName="'分包合同文件'"
86
+              :fileType="['doc', 'docx', 'xls', 'xlsx', 'pdf']" @input="getContractPath"></FileUpload>
87
+            <div v-if="taskName != '合同拟稿'">
88
+              <transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear"
89
+                tag="ul">
90
+                <li key="li01" class="el-upload-list__item ele-upload-list__item-content">
91
+                  <el-link :href="`${baseUrl}${'/profile/upload' + form.contractDocument}`" :underline="false"
92
+                    target="_blank">
93
+                    <span class="el-icon-document" style="color:#0011ff;text-decoration: underline;">
94
+                      {{ getFileName(form.contractDocument) }}
95
+                    </span>
96
+                  </el-link>
97
+                </li>
98
+              </transition-group>
99
+            </div>
100
+          </el-form-item>
84 101
           <el-form-item label="合同计划工作量:">
85 102
             <table border="1">
86 103
               <tr>
@@ -393,7 +410,7 @@ import { parseTime } from "@/utils/ruoyi";
393 410
 import { listProject, getProject } from "@/api/oa/project/project";
394 411
 import { listDept } from '@/api/system/dept'
395 412
 import { listUser } from '@/api/system/user'
396
-import { listPartner } from "@/api/oa/partner/partner";
413
+import { listPartner, getPartner } from "@/api/oa/partner/partner";
397 414
 import { listContractWork, addContractWork } from "@/api/oa/contract/contractWork";
398 415
 import { listContractPayment, addContractPayment } from "@/api/oa/contract/contractPayment";
399 416
 import { listContractComment, addContractComment, updateContractComment } from "@/api/oa/contract/contractComment";
@@ -717,6 +734,12 @@ export default {
717 734
         this.deptList = res.data
718 735
       })
719 736
     },
737
+    // 选择单位
738
+    handleSelectPartner(val) {
739
+      getPartner(val).then(response => {
740
+        this.$set(this.form, 'contactPerson', response.data.contactPerson);
741
+      })
742
+    },
720 743
     // 选择项目
721 744
     handleSelectProject(val) {
722 745
       if (val != "" && val != undefined && val != null) {
@@ -1004,6 +1027,13 @@ export default {
1004 1027
         return arr[arr.length - 1];
1005 1028
       }
1006 1029
     },
1030
+    getContractPath(val) {
1031
+      let arr = val.split('/upload')
1032
+      this.form.contractDocument = arr[1]
1033
+      if (val == "") {
1034
+        this.form.contractDocument = ""
1035
+      }
1036
+    },
1007 1037
     getMeetingPath(val) {
1008 1038
       let arr = val.split('/upload')
1009 1039
       this.meetingForm.document = arr[1]

+ 0
- 21
oa-ui/src/views/oa/device/approval.vue Переглянути файл

@@ -69,27 +69,6 @@
69 69
         </template>
70 70
         {{ deviceInfo.place }}
71 71
       </el-descriptions-item>
72
-      <el-descriptions-item>
73
-        <template slot="label">
74
-          <svg-icon slot="prefix" icon-class="date" class="el-input__icon input-icon" />
75
-          校验周期(年)
76
-        </template>
77
-        {{ deviceInfo.checkTerm }}
78
-      </el-descriptions-item>
79
-      <el-descriptions-item>
80
-        <template slot="label">
81
-          <svg-icon slot="prefix" icon-class="date" class="el-input__icon input-icon" />
82
-          保修期(月)
83
-        </template>
84
-        {{ deviceInfo.warranty }}
85
-      </el-descriptions-item>
86
-      <el-descriptions-item>
87
-        <template slot="label">
88
-          <svg-icon slot="prefix" icon-class="date" class="el-input__icon input-icon" />
89
-          校验日期
90
-        </template>
91
-        {{ parseTime(deviceInfo.checkTime, '{y}-{m}-{d}') }}
92
-      </el-descriptions-item>
93 72
       <el-descriptions-item>
94 73
         <template slot="label">
95 74
           <svg-icon slot="prefix" icon-class="dept" class="el-input__icon input-icon" />

+ 3
- 30
oa-ui/src/views/oa/device/index.vue Переглянути файл

@@ -51,9 +51,6 @@
51 51
       <el-table-column label="设备品牌" align="center" prop="brand" />
52 52
       <el-table-column label="单日成本(元)" align="center" prop="dayCost" />
53 53
       <el-table-column label="存放地点" align="center" prop="place" />
54
-      <el-table-column label="校验周期(年)" align="center" prop="checkTerm" />
55
-      <el-table-column label="保修期(月)" align="center" prop="warranty" />
56
-      <el-table-column label="校验日期" align="center" prop="checkTime" />
57 54
       <el-table-column label="管理部门" align="center" prop="dept.deptName" />
58 55
       <el-table-column label="备注" align="center" prop="remark" />
59 56
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -137,35 +134,11 @@
137 134
             <el-form-item label="设备类别" prop="place">
138 135
               <el-input v-model="form.type" placeholder="请输入设备类别" />
139 136
             </el-form-item>
140
-
141
-          </el-col>
142
-        </el-row>
143
-        <el-row :gutter="20">
144
-          <el-col :span="12">
145
-            <el-form-item label="校验周期" prop="checkTerm">
146
-              <el-input v-model="form.checkTerm" placeholder="请输入校验周期" />
147
-            </el-form-item>
148
-          </el-col>
149
-          <el-col :span="12">
150
-            <el-form-item label="校验日期" prop="checkTime">
151
-              <el-date-picker clearable v-model="form.checkTime" type="date" value-format="yyyy-MM-dd"
152
-                placeholder="请选择校验日期">
153
-              </el-date-picker>
154
-            </el-form-item>
155
-          </el-col>
156
-        </el-row>
157
-        <el-row :gutter="20">
158
-          <el-col :span="12">
159
-            <el-form-item label="保修期" prop="warranty">
160
-              <el-input v-model="form.warranty" placeholder="请输入保修期" />
161
-            </el-form-item>
162
-          </el-col>
163
-          <el-col :span="12">
164
-            <el-form-item label="管理部门" prop="dept.deptName">
165
-              <el-input v-model="form.deptName" placeholder="请输入管理部门" />
166
-            </el-form-item>
167 137
           </el-col>
168 138
         </el-row>
139
+        <el-form-item label="管理部门" prop="dept.deptName">
140
+          <el-input v-model="form.deptName" placeholder="请输入管理部门" />
141
+        </el-form-item>
169 142
         <el-row :gutter="20">
170 143
           <el-col :span="24">
171 144
             <el-form-item label="备注" prop="remark">

+ 0
- 51
oa-ui/src/views/oa/supply/index.vue Переглянути файл

@@ -81,30 +81,6 @@
81 81
           @keyup.enter.native="handleQuery"
82 82
         />
83 83
       </el-form-item>
84
-      <el-form-item label="校验周期" prop="checkTerm">
85
-        <el-input
86
-          v-model="queryParams.checkTerm"
87
-          placeholder="请输入校验周期"
88
-          clearable
89
-          @keyup.enter.native="handleQuery"
90
-        />
91
-      </el-form-item>
92
-      <el-form-item label="保修期" prop="warranty">
93
-        <el-input
94
-          v-model="queryParams.warranty"
95
-          placeholder="请输入保修期"
96
-          clearable
97
-          @keyup.enter.native="handleQuery"
98
-        />
99
-      </el-form-item>
100
-      <el-form-item label="校验日期" prop="checkTime">
101
-        <el-date-picker clearable
102
-          v-model="queryParams.checkTime"
103
-          type="date"
104
-          value-format="yyyy-MM-dd"
105
-          placeholder="请选择校验日期">
106
-        </el-date-picker>
107
-      </el-form-item>
108 84
       <el-form-item label="管理部门" prop="manageDept">
109 85
         <el-input
110 86
           v-model="queryParams.manageDept"
@@ -184,13 +160,6 @@
184 160
       <el-table-column label="单日成本" align="center" prop="dayCost" />
185 161
       <el-table-column label="存放地点" align="center" prop="place" />
186 162
       <el-table-column label="备注" align="center" prop="remark" />
187
-      <el-table-column label="校验周期" align="center" prop="checkTerm" />
188
-      <el-table-column label="保修期" align="center" prop="warranty" />
189
-      <el-table-column label="校验日期" align="center" prop="checkTime" width="180">
190
-        <template slot-scope="scope">
191
-          <span>{{ parseTime(scope.row.checkTime, '{y}-{m}-{d}') }}</span>
192
-        </template>
193
-      </el-table-column>
194 163
       <el-table-column label="管理部门" align="center" prop="manageDept" />
195 164
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
196 165
         <template slot-scope="scope">
@@ -261,20 +230,6 @@
261 230
         <el-form-item label="备注" prop="remark">
262 231
           <el-input v-model="form.remark" placeholder="请输入备注" />
263 232
         </el-form-item>
264
-        <el-form-item label="校验周期" prop="checkTerm">
265
-          <el-input v-model="form.checkTerm" placeholder="请输入校验周期" />
266
-        </el-form-item>
267
-        <el-form-item label="保修期" prop="warranty">
268
-          <el-input v-model="form.warranty" placeholder="请输入保修期" />
269
-        </el-form-item>
270
-        <el-form-item label="校验日期" prop="checkTime">
271
-          <el-date-picker clearable
272
-            v-model="form.checkTime"
273
-            type="date"
274
-            value-format="yyyy-MM-dd"
275
-            placeholder="请选择校验日期">
276
-          </el-date-picker>
277
-        </el-form-item>
278 233
         <el-form-item label="管理部门" prop="manageDept">
279 234
           <el-input v-model="form.manageDept" placeholder="请输入管理部门" />
280 235
         </el-form-item>
@@ -327,9 +282,6 @@ export default {
327 282
         brand: null,
328 283
         dayCost: null,
329 284
         place: null,
330
-        checkTerm: null,
331
-        warranty: null,
332
-        checkTime: null,
333 285
         manageDept: null
334 286
       },
335 287
       // 表单参数
@@ -373,9 +325,6 @@ export default {
373 325
         dayCost: null,
374 326
         place: null,
375 327
         remark: null,
376
-        checkTerm: null,
377
-        warranty: null,
378
-        checkTime: null,
379 328
         manageDept: null
380 329
       };
381 330
       this.resetForm("form");

Завантаження…
Відмінити
Зберегти