Bladeren bron

修改项目流转、技术方案、技术交底流程

lamphua 7 maanden geleden
bovenliggende
commit
af3f73764b

+ 72
- 19
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTechnical.java Bestand weergeven

@@ -42,7 +42,7 @@ public class CmcTechnical extends BaseEntity
42 42
 
43 43
     /** 安全交底人 */
44 44
     @Excel(name = "安全交底人")
45
-    private String disclosurerUserName;
45
+    private String disclosureUserName;
46 46
     private Long disclosurer;
47 47
 
48 48
     /** 技术交底时间 */
@@ -57,16 +57,32 @@ public class CmcTechnical extends BaseEntity
57 57
     /** 接受交底人 */
58 58
     @Excel(name = "接受交底人")
59 59
     private String acceptUserName;
60
-    private Long disclosureAccepter;
60
+    private Long accepter;
61 61
 
62 62
     /** 接受交底时间 */
63 63
     @JsonFormat(pattern = "yyyy-MM-dd")
64 64
     @Excel(name = "接受交底时间", width = 30, dateFormat = "yyyy-MM-dd")
65 65
     private Date acceptTime;
66 66
 
67
-    private SysUser disclosurerUser;
67
+    /** 确认交底意见 */
68
+    @Excel(name = "确认交底意见")
69
+    private String confirmComment;
68 70
 
69
-    private SysUser accepterUser;
71
+    /** 接受交底人 */
72
+    @Excel(name = "确认交底人")
73
+    private String confirmUserName;
74
+    private Long confirmer;
75
+
76
+    /** 确认交底时间 */
77
+    @JsonFormat(pattern = "yyyy-MM-dd")
78
+    @Excel(name = "确认交底时间", width = 30, dateFormat = "yyyy-MM-dd")
79
+    private Date confirmTime;
80
+
81
+    private SysUser disclosureUser;
82
+
83
+    private SysUser acceptUser;
84
+
85
+    private SysUser confirmUser;
70 86
 
71 87
     private CmcProject project;
72 88
 
@@ -99,24 +115,24 @@ public class CmcTechnical extends BaseEntity
99 115
     {
100 116
         return project;
101 117
     }
102
-    public void setDisclosureAccepter(Long disclosureAccepter) 
118
+    public void setAccepter(Long accepter)
103 119
     {
104
-        this.disclosureAccepter = disclosureAccepter;
120
+        this.accepter = accepter;
105 121
     }
106 122
 
107
-    public Long getDisclosureAccepter() 
123
+    public Long getAccepter()
108 124
     {
109
-        return disclosureAccepter;
125
+        return accepter;
110 126
     }
111
-    public void setAccepterUser(SysUser accepterUser)
127
+    public void setAcceptUser(SysUser acceptUser)
112 128
     {
113
-        this.accepterUser = accepterUser;
114
-        this.acceptUserName = accepterUser == null ? "" : accepterUser.getNickName();
129
+        this.acceptUser = acceptUser;
130
+        this.acceptUserName = acceptUser == null ? "" : acceptUser.getNickName();
115 131
     }
116 132
 
117
-    public SysUser getAccepterUser()
133
+    public SysUser getAcceptUser()
118 134
     {
119
-        return accepterUser;
135
+        return acceptUser;
120 136
     }
121 137
     public void setDisclosurer(Long disclosurer)
122 138
     {
@@ -127,16 +143,35 @@ public class CmcTechnical extends BaseEntity
127 143
     {
128 144
         return disclosurer;
129 145
     }
146
+    public void setConfirmer(Long confirmer)
147
+    {
148
+        this.confirmer = confirmer;
149
+    }
150
+
151
+    public Long getConfirmer()
152
+    {
153
+        return confirmer;
154
+    }
155
+
156
+    public void setDisclosureUser(SysUser disclosureUser)
157
+    {
158
+        this.disclosureUser = disclosureUser;
159
+        this.disclosureUserName = disclosureUser == null ? "" : disclosureUser.getNickName();
160
+    }
130 161
 
131
-    public void setDisclosurerUser(SysUser disclosurerUser)
162
+    public SysUser getDisclosureUser()
163
+    {
164
+        return disclosureUser;
165
+    }
166
+    public void setConfirmUser(SysUser confirmUser)
132 167
     {
133
-        this.disclosurerUser = disclosurerUser;
134
-        this.disclosurerUserName = disclosurerUser == null ? "" : disclosurerUser.getNickName();
168
+        this.confirmUser = confirmUser;
169
+        this.confirmUserName = confirmUser == null ? "" : confirmUser.getNickName();
135 170
     }
136 171
 
137
-    public SysUser getDisclosurerUser()
172
+    public SysUser getConfirmUser()
138 173
     {
139
-        return disclosurerUser;
174
+        return confirmUser;
140 175
     }
141 176
     public void setContent(String content) 
142 177
     {
@@ -174,6 +209,15 @@ public class CmcTechnical extends BaseEntity
174 209
     {
175 210
         return acceptComment;
176 211
     }
212
+    public void setConfirmComment(String confirmComment)
213
+    {
214
+        this.confirmComment = confirmComment;
215
+    }
216
+
217
+    public String getConfirmComment()
218
+    {
219
+        return confirmComment;
220
+    }
177 221
     public void setDisclosureTime(Date disclosureTime) 
178 222
     {
179 223
         this.disclosureTime = disclosureTime;
@@ -192,13 +236,22 @@ public class CmcTechnical extends BaseEntity
192 236
     {
193 237
         return acceptTime;
194 238
     }
239
+    public void setConfirmTime(Date confirmTime)
240
+    {
241
+        this.confirmTime = confirmTime;
242
+    }
243
+
244
+    public Date getConfirmTime()
245
+    {
246
+        return confirmTime;
247
+    }
195 248
 
196 249
     @Override
197 250
     public String toString() {
198 251
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
199 252
             .append("technicalId", getTechnicalId())
200 253
             .append("projectId", getProjectId())
201
-            .append("disclosureAccepter", getDisclosureAccepter())
254
+            .append("accepter", getAccepter())
202 255
             .append("disclosurer", getDisclosurer())
203 256
             .append("content", getContent())
204 257
             .append("document", getDocument())

+ 53
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTechnicalPlan.java Bestand weergeven

@@ -80,6 +80,20 @@ public class CmcTechnicalPlan extends BaseEntity
80 80
     @Excel(name = "技术审核时间", width = 30, dateFormat = "yyyy-MM-dd")
81 81
     private Date techApprovalTime;
82 82
 
83
+    /** 技术质量与安全部审核意见 */
84
+    @Excel(name = "技术质量与安全部审核意见")
85
+    private String techDeptComment;
86
+
87
+    /** 技术质量与安全部审核人 */
88
+    @Excel(name = "技术质量与安全部审核人")
89
+    private String techDeptUserName;
90
+    private Long techDeptLeader;
91
+
92
+    /** 技术质量与安全部审核时间 */
93
+    @JsonFormat(pattern = "yyyy-MM-dd")
94
+    @Excel(name = "技术质量与安全部审核时间", width = 30, dateFormat = "yyyy-MM-dd")
95
+    private Date techDeptTime;
96
+
83 97
     /** 总工审核意见 */
84 98
     @Excel(name = "总工审核意见")
85 99
     private String manageComment;
@@ -109,6 +123,8 @@ public class CmcTechnicalPlan extends BaseEntity
109 123
 
110 124
     private SysUser designUser;
111 125
 
126
+    private SysUser techDeptUser;
127
+
112 128
     private SysUser managerUser;
113 129
 
114 130
     private CmcProject project;
@@ -183,6 +199,15 @@ public class CmcTechnicalPlan extends BaseEntity
183 199
     {
184 200
         return technicalAuditor;
185 201
     }
202
+    public void setTechDeptLeader(Long techDeptLeader)
203
+    {
204
+        this.techDeptLeader = techDeptLeader;
205
+    }
206
+
207
+    public Long getTechDeptLeader()
208
+    {
209
+        return techDeptLeader;
210
+    }
186 211
     public void setDirectUser(SysUser directUser)
187 212
     {
188 213
         this.directUser = directUser;
@@ -223,6 +248,16 @@ public class CmcTechnicalPlan extends BaseEntity
223 248
     {
224 249
         return auditUser;
225 250
     }
251
+    public void setTechDeptUser(SysUser techDeptUser)
252
+    {
253
+        this.techDeptUser = techDeptUser;
254
+        this.techDeptUserName = techDeptUser == null ? "" : techDeptUser.getNickName();
255
+    }
256
+
257
+    public SysUser getTechDeptUser()
258
+    {
259
+        return techDeptUser;
260
+    }
226 261
     public void setManagerUser(SysUser managerUser)
227 262
     {
228 263
         this.managerUser = managerUser;
@@ -314,6 +349,15 @@ public class CmcTechnicalPlan extends BaseEntity
314 349
     {
315 350
         return technicalComment;
316 351
     }
352
+    public void setTechDeptComment(String techDeptComment)
353
+    {
354
+        this.techDeptComment = techDeptComment;
355
+    }
356
+
357
+    public String getTechDeptComment()
358
+    {
359
+        return techDeptComment;
360
+    }
317 361
     public void setManagerUserId(Long managerUserId)
318 362
     {
319 363
         this.managerUserId = managerUserId;
@@ -359,6 +403,15 @@ public class CmcTechnicalPlan extends BaseEntity
359 403
     {
360 404
         return manageApprovalTime;
361 405
     }
406
+    public void setTechDeptTime(Date techDeptTime)
407
+    {
408
+        this.techDeptTime = techDeptTime;
409
+    }
410
+
411
+    public Date getTechDeptTime()
412
+    {
413
+        return techDeptTime;
414
+    }
362 415
 
363 416
     @Override
364 417
     public String toString() {

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Bestand weergeven

@@ -111,7 +111,7 @@
111 111
             <if test="exitTime != null "> and p.exit_time = #{exitTime}</if>
112 112
             <if test="participates != null  and participates != ''"> and find_in_set(#{participates}, p.participates)</if>
113 113
         </where>
114
-        order by p.register_time desc
114
+        order by p.register_time desc, p.project_number desc
115 115
     </select>
116 116
 
117 117
     <select id="selectCmcProjectByProjectId" parameterType="String" resultMap="CmcProjectResult">

+ 30
- 14
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTechnicalMapper.xml Bestand weergeven

@@ -7,27 +7,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="CmcTechnical" id="CmcTechnicalResult">
8 8
         <result property="technicalId"    column="technical_id"    />
9 9
         <result property="projectId"    column="project_id"    />
10
-        <result property="disclosureAccepter"    column="disclosure_accepter"    />
10
+        <result property="accepter"    column="accepter"    />
11 11
         <result property="disclosurer"    column="disclosurer"    />
12
+        <result property="confirmer"    column="confirmer"    />
12 13
         <result property="content"    column="content"    />
13 14
         <result property="document"    column="document"    />
14 15
         <result property="disclosureComment"    column="disclosure_comment"    />
15 16
         <result property="acceptComment"    column="accept_comment"    />
17
+        <result property="confirmComment"    column="confirm_comment"    />
16 18
         <result property="disclosureTime"    column="disclosure_time"    />
17 19
         <result property="acceptTime"    column="accept_time"    />
18
-        <association property="accepterUser"    javaType="SysUser"         resultMap="AccepterUserResult" />
19
-        <association property="disclosurerUser"    javaType="SysUser"         resultMap="DisclosurerUserResult" />
20
+        <result property="confirmTime"    column="confirm_time"    />
21
+        <association property="acceptUser"    javaType="SysUser"         resultMap="AcceptUserResult" />
22
+        <association property="disclosureUser"    javaType="SysUser"         resultMap="DisclosureUserResult" />
23
+        <association property="confirmUser"    javaType="SysUser"         resultMap="confirmUserResult" />
20 24
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
21 25
     </resultMap>
22 26
 
23
-    <resultMap type="SysUser" id="AccepterUserResult">
27
+    <resultMap type="SysUser" id="AcceptUserResult">
24 28
         <result property="userId"    column="user_id"    />
25
-        <result property="nickName"    column="accepter_nick_name"    />
29
+        <result property="nickName"    column="accept_nick_name"    />
26 30
     </resultMap>
27 31
 
28
-    <resultMap type="SysUser" id="DisclosurerUserResult">
32
+    <resultMap type="SysUser" id="DisclosureUserResult">
29 33
         <result property="userId"    column="user_id"    />
30
-        <result property="nickName"    column="disclosurer_nick_name"    />
34
+        <result property="nickName"    column="disclosure_nick_name"    />
35
+    </resultMap>
36
+
37
+    <resultMap type="SysUser" id="ConfirmUserResult">
38
+        <result property="userId"    column="user_id"    />
39
+        <result property="nickName"    column="confirm_nick_name"    />
31 40
     </resultMap>
32 41
 
33 42
     <resultMap type="CmcProject" id="CmcProjectResult">
@@ -37,10 +46,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
37 46
     </resultMap>
38 47
 
39 48
     <sql id="selectCmcTechnicalVo">
40
-        select t.technical_id, t.project_id, p.project_number, p.project_name, t.disclosure_accepter, u.nick_name as accepter_nick_name, t.disclosurer, 
41
-        u1.nick_name as disclosurer_nick_name, t.content, t.document, t.disclosure_comment, t.accept_comment, t.disclosure_time, t.accept_time from cmc_technical as t
42
-        left join sys_user as u on u.user_id = t.disclosure_accepter
49
+        select t.technical_id, t.project_id, p.project_number, p.project_name, t.accepter, u.nick_name as accept_nick_name, t.disclosurer, u1.nick_name as disclosure_nick_name,
50
+               t.confirmer, u2.nick_name as confirm_nick_name, t.content, t.document, t.disclosure_comment, t.accept_comment, t.confirm_comment, t.disclosure_time, t.accept_time, t.confirm_time from cmc_technical as t
51
+        left join sys_user as u on u.user_id = t.accepter
43 52
         left join sys_user as u1 on u1.user_id = t.disclosurer
53
+        left join sys_user as u2 on u2.user_id = t.confirmer
44 54
         left join cmc_project as p on p.project_id = t.project_id
45 55
     </sql>
46 56
 
@@ -48,14 +58,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
48 58
         <include refid="selectCmcTechnicalVo"/>
49 59
         <where>  
50 60
             <if test="projectId != null  and projectId != ''"> and t.project_id = #{projectId}</if>
51
-            <if test="disclosureAccepter != null "> and t.disclosure_accepter = #{disclosureAccepter}</if>
61
+            <if test="accepter != null "> and t.accepter = #{accepter}</if>
52 62
             <if test="disclosurer != null "> and t.disclosurer = #{disclosurer}</if>
63
+            <if test="confirmer != null "> and t.confirmer = #{confirmer}</if>
53 64
             <if test="content != null  and content != ''"> and t.content = #{content}</if>
54 65
             <if test="document != null  and document != ''"> and t.document = #{document}</if>
55 66
             <if test="disclosureComment != null  and disclosureComment != ''"> and t.disclosure_comment = #{disclosureComment}</if>
56 67
             <if test="acceptComment != null  and acceptComment != ''"> and t.accept_comment = #{acceptComment}</if>
68
+            <if test="confirmComment != null  and confirmComment != ''"> and t.confirm_comment = #{confirmComment}</if>
57 69
             <if test="disclosureTime != null "> and t.disclosure_time = #{disclosureTime}</if>
58 70
             <if test="acceptTime != null "> and t.accept_time = #{acceptTime}</if>
71
+            <if test="confirmTime != null "> and t.confirm_time = #{confirmTime}</if>
59 72
         </where>
60 73
         order by t.disclosure_time desc
61 74
     </select>
@@ -70,7 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
70 83
         <trim prefix="(" suffix=")" suffixOverrides=",">
71 84
             <if test="technicalId != null">technical_id,</if>
72 85
             <if test="projectId != null">project_id,</if>
73
-            <if test="disclosureAccepter != null">disclosure_accepter,</if>
86
+            <if test="accepter != null">accepter,</if>
74 87
             <if test="disclosurer != null">disclosurer,</if>
75 88
             <if test="content != null">content,</if>
76 89
             <if test="document != null">document,</if>
@@ -82,7 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
82 95
         <trim prefix="values (" suffix=")" suffixOverrides=",">
83 96
             <if test="technicalId != null">#{technicalId},</if>
84 97
             <if test="projectId != null">#{projectId},</if>
85
-            <if test="disclosureAccepter != null">#{disclosureAccepter},</if>
98
+            <if test="accepter != null">#{accepter},</if>
86 99
             <if test="disclosurer != null">#{disclosurer},</if>
87 100
             <if test="content != null">#{content},</if>
88 101
             <if test="document != null">#{document},</if>
@@ -97,14 +110,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
97 110
         update cmc_technical
98 111
         <trim prefix="SET" suffixOverrides=",">
99 112
             <if test="projectId != null">project_id = #{projectId},</if>
100
-            <if test="disclosureAccepter != null">disclosure_accepter = #{disclosureAccepter},</if>
113
+            <if test="accepter != null">accepter = #{accepter},</if>
101 114
             <if test="disclosurer != null">disclosurer = #{disclosurer},</if>
115
+            <if test="confirmer != null">confirmer = #confirmer},</if>
102 116
             <if test="content != null">content = #{content},</if>
103 117
             <if test="document != null">document = #{document},</if>
104 118
             <if test="disclosureComment != null">disclosure_comment = #{disclosureComment},</if>
105 119
             <if test="acceptComment != null">accept_comment = #{acceptComment},</if>
120
+            <if test="confirmComment != null">confirm_comment = #{confirmComment},</if>
106 121
             <if test="disclosureTime != null">disclosure_time = #{disclosureTime},</if>
107 122
             <if test="acceptTime != null">accept_time = #{acceptTime},</if>
123
+            <if test="confirmTime != null">confirm_time = #{confirmTime},</if>
108 124
         </trim>
109 125
         where technical_id = #{technicalId}
110 126
     </update>

+ 16
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTechnicalPlanMapper.xml Bestand weergeven

@@ -11,6 +11,7 @@
11 11
         <result property="technicalDesigner"    column="technical_designer"    />
12 12
         <result property="technicalPlanner"    column="technical_planner"    />
13 13
         <result property="technicalAuditor"    column="technical_auditor"    />
14
+        <result property="techDeptLeader"    column="tech_dept_leader"    />
14 15
         <result property="planComment"    column="plan_comment"    />
15 16
         <result property="qualityInspector"    column="quality_inspector"    />
16 17
         <result property="technicalTime"    column="technical_time"    />
@@ -20,13 +21,16 @@
20 21
         <result property="designDescription"    column="design_description"    />
21 22
         <result property="technicalComment"    column="technical_comment"    />
22 23
         <result property="manageComment"    column="manage_comment"    />
24
+        <result property="techDeptComment"    column="tech_dept_comment"    />
23 25
         <result property="technicalUploadTime"    column="technical_upload_time"    />
24 26
         <result property="techApprovalTime"    column="tech_approval_time"    />
25 27
         <result property="manageApprovalTime"    column="manage_approval_time"    />
28
+        <result property="techDeptTime"    column="tech_dept_time"    />
26 29
         <association property="directUser"    javaType="SysUser"         resultMap="DirectUserResult" />
27 30
         <association property="planUser"    javaType="SysUser"         resultMap="PlanUserResult" />
28 31
         <association property="designUser"    javaType="SysUser"         resultMap="DesignUserResult" />
29 32
         <association property="auditUser"    javaType="SysUser"         resultMap="AuditUserResult" />
33
+        <association property="techDeptUser"    javaType="SysUser"         resultMap="TechDeptLeaderResult" />
30 34
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
31 35
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
32 36
     </resultMap>
@@ -51,6 +55,11 @@
51 55
         <result property="nickName"    column="audit_nick_name"    />
52 56
     </resultMap>
53 57
 
58
+    <resultMap type="SysUser" id="TechDeptLeaderResult">
59
+        <result property="userId"    column="user_id"    />
60
+        <result property="nickName"    column="tech_nick_name"    />
61
+    </resultMap>
62
+
54 63
     <resultMap type="SysUser" id="ManagerUserResult">
55 64
         <result property="userId"    column="user_id"    />
56 65
         <result property="nickName"    column="manager_nick_name"    />
@@ -65,13 +74,14 @@
65 74
     <sql id="selectCmcTechnicalPlanVo">
66 75
         select t.technical_plan_id, t.project_id, p.project_number, p.project_name, t.technical_director, u.nick_name as direct_nick_name, t.technical_designer, u1.nick_name as design_nick_name,
67 76
                t.technical_planner, u2.nick_name as plan_nick_name, t.plan_comment, t.quality_inspector, t.technical_time, t.technical_document, t.modify_document, t.final_document,
68
-               t.design_description, t.technical_comment, t.technical_auditor, u3.nick_name as audit_nick_name, t.manager_user_id, u4.nick_name as manager_nick_name, t.manage_comment,
69
-               t.technical_upload_time, t.tech_approval_time, t.manage_approval_time from cmc_technical_plan as t
77
+               t.design_description, t.technical_comment, t.technical_auditor, u3.nick_name as audit_nick_name, t.tech_dept_leader, u4.nick_name as tech_nick_name, t.tech_dept_comment, t.manager_user_id,
78
+               u5.nick_name as manager_nick_name, t.manage_comment, t.technical_upload_time, t.tech_approval_time, t.tech_dept_time, t.manage_approval_time from cmc_technical_plan as t
70 79
         left join sys_user as u on u.user_id = t.technical_director
71 80
         left join sys_user as u1 on u1.user_id = t.technical_designer
72 81
         left join sys_user as u2 on u2.user_id = t.technical_planner
73 82
         left join sys_user as u3 on u3.user_id = t.technical_auditor
74
-        left join sys_user as u4 on u4.user_id = t.manager_user_id
83
+        left join sys_user as u4 on u4.user_id = t.tech_dept_leader
84
+        left join sys_user as u5 on u5.user_id = t.manager_user_id
75 85
         left join cmc_project as p on p.project_id = t.project_id
76 86
     </sql>
77 87
 
@@ -157,6 +167,7 @@
157 167
             <if test="technicalDesigner != null">technical_designer = #{technicalDesigner},</if>
158 168
             <if test="technicalPlanner != null">technical_planner = #{technicalPlanner},</if>
159 169
             <if test="technicalAuditor != null">technical_auditor = #{technicalAuditor},</if>
170
+            <if test="techDeptLeader != null">tech_dept_leader = #{techDeptLeader},</if>
160 171
             <if test="planComment != null">plan_comment = #{planComment},</if>
161 172
             <if test="qualityInspector != null">quality_inspector = #{qualityInspector},</if>
162 173
             <if test="technicalTime != null">technical_time = #{technicalTime},</if>
@@ -165,10 +176,12 @@
165 176
             <if test="finalDocument != null">final_document = #{finalDocument},</if>
166 177
             <if test="designDescription != null">design_description = #{designDescription},</if>
167 178
             <if test="technicalComment != null">technical_comment = #{technicalComment},</if>
179
+            <if test="techDeptComment != null">tech_dept_comment = #{techDeptComment},</if>
168 180
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
169 181
             <if test="manageComment != null">manage_comment = #{manageComment},</if>
170 182
             <if test="technicalUploadTime != null">technical_upload_time = #{technicalUploadTime},</if>
171 183
             <if test="techApprovalTime != null">tech_approval_time = #{techApprovalTime},</if>
184
+            <if test="techDeptTime != null">tech_dept_time = #{techDeptTime},</if>
172 185
             <if test="manageApprovalTime != null">manage_approval_time = #{manageApprovalTime},</if>
173 186
         </trim>
174 187
         where technical_plan_id = #{technicalPlanId}

+ 1
- 1
oa-ui/src/views/flowable/form/components/chooseProject.vue Bestand weergeven

@@ -29,7 +29,7 @@
29 29
       <el-table-column label="项目名称" align="center" key="projectName" prop="projectName" :show-overflow-tooltip="true" />
30 30
       <el-table-column label="项目负责人" align="center" key="projectLeader" prop="projectLeaderUser.nickName"
31 31
         :show-overflow-tooltip="true" />
32
-      <el-table-column label="甲方单位" align="center" key="partyA" prop="partyA.partyName" :show-overflow-tooltip="true" />
32
+      <el-table-column label="甲方单位" align="center" key="partyA" prop="partyA.partyAName" :show-overflow-tooltip="true" />
33 33
       <el-table-column label="项目类型" align="center" key="projectType" prop="projectType" />
34 34
     </el-table>
35 35
     <div style="text-align: right;" class="mt20 mr20">

+ 39
- 13
oa-ui/src/views/flowable/form/technicalForm.vue Bestand weergeven

@@ -20,8 +20,8 @@
20 20
               }}</el-descriptions-item>
21 21
             </el-descriptions>
22 22
           </el-form-item>
23
-          <el-form-item label="接受交底人" prop="disclosureAccepter">
24
-            <el-select v-model="form.disclosureAccepter" style="width:220px" :disabled="true">
23
+          <el-form-item label="接受交底人" prop="accepter">
24
+            <el-select v-model="form.accepter" style="width:220px" :disabled="true">
25 25
               <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId"
26 26
                 v-if="item.nickName != 'admin'">
27 27
               </el-option>
@@ -51,7 +51,7 @@
51 51
           <el-row>
52 52
             <el-col :span="6" :xs="24" :offset="12">
53 53
               <el-form-item label="签名" prop="disclosurer">
54
-                <span class="auditor"> {{ form.disclosurerUser ? form.disclosurerUser.nickName : disclosurerUser }}
54
+                <span class="auditor"> {{ form.disclosureUser ? form.disclosureUser.nickName : disclosureUser }}
55 55
                 </span>
56 56
               </el-form-item>
57 57
             </el-col>
@@ -68,7 +68,7 @@
68 68
           <el-row>
69 69
             <el-col :span="6" :xs="24" :offset="12">
70 70
               <el-form-item label="签名" v-if="taskName != '技术交底'">
71
-                <span class="auditor"> {{ form.accepterUser ? form.accepterUser.nickName : accepterUser }} </span>
71
+                <span class="auditor"> {{ form.acceptUser ? form.acceptUser.nickName : acceptUser }} </span>
72 72
               </el-form-item>
73 73
             </el-col>
74 74
             <el-col :span="6">
@@ -77,6 +77,23 @@
77 77
               </el-form-item>
78 78
             </el-col>
79 79
           </el-row>
80
+          
81
+          <el-form-item label="确认交底意见" prop="confirmComment" v-if="taskName != '技术交底' && taskName != '接受交底'">
82
+            <el-input v-model="form.confirmComment" placeholder="请输入确认交底意见" type="textarea" :autosize="{ minRows: 4 }"
83
+              :disabled="taskName == ''" />
84
+          </el-form-item>
85
+          <el-row>
86
+            <el-col :span="6" :xs="24" :offset="12">
87
+              <el-form-item label="签名" v-if="taskName != '技术交底' && taskName != '接受交底'">
88
+                <span class="auditor"> {{ form.confirmUser ? form.confirmUser.nickName : confirmUser }} </span>
89
+              </el-form-item>
90
+            </el-col>
91
+            <el-col :span="6">
92
+              <el-form-item label="日期:" label-width="120px" v-if="taskName != '技术交底' && taskName != '接受交底'">
93
+                <span> {{ parseTime(form.confirmTime, '{y}-{m}-{d}') }} </span>
94
+              </el-form-item>
95
+            </el-col>
96
+          </el-row>
80 97
         </el-form>
81 98
         <div style="text-align: center;" v-if="taskName">
82 99
           <el-button type="primary" @click="submitForm">提 交</el-button>
@@ -120,8 +137,9 @@ export default {
120 137
   data() {
121 138
     return {
122 139
       baseUrl: process.env.VUE_APP_BASE_API,
123
-      disclosurerUser: '',
124
-      accepterUser: '',
140
+      disclosureUser: '',
141
+      acceptUser: '',
142
+      confirmUser: '',
125 143
       // 遮罩层
126 144
       loading: true,
127 145
       // 选中数组
@@ -145,8 +163,9 @@ export default {
145 163
         pageNum: 1,
146 164
         pageSize: 10,
147 165
         projectId: null,
148
-        disclosureAccepter: null,
166
+        accepter: null,
149 167
         disclosurer: null,
168
+        confirmer: null,
150 169
         content: null,
151 170
         document: null,
152 171
         disclosureComment: null,
@@ -196,19 +215,26 @@ export default {
196 215
           ],
197 216
         }
198 217
       }
218
+      else if (this.taskName == '确认交底') {
219
+        this.rules = {
220
+          confirmComment: [
221
+            { required: true, message: '请输入确认交底意见', trigger: 'blur' },
222
+          ],
223
+        }
224
+      }
199 225
     },
200 226
     initForm() {
201 227
       getTechnical(this.taskForm.formId).then(res => {
202 228
         if (this.isEmptyObject(res.data)) {
203 229
           this.formTotal = 0;
204 230
           this.form.disclosurer = this.$store.getters.userId;
205
-          this.disclosurerUser = this.$store.getters.name;
231
+          this.disclosureUser = this.$store.getters.name;
206 232
           this.form.disclosureTime = new Date();
207 233
         }
208 234
         else {
209 235
           this.formTotal = 1;
210 236
           this.form = res.data;
211
-          this.accepterUser = this.$store.getters.name;
237
+          this.acceptUser = this.$store.getters.name;
212 238
           this.form.acceptTime = new Date();
213 239
         }
214 240
       })
@@ -218,7 +244,7 @@ export default {
218 244
       getProject(this.taskForm.formId).then(response => {
219 245
         this.chooseProject = response.data;
220 246
         this.isSelect = true;
221
-        this.form.disclosureAccepter = response.data.projectLeader;
247
+        this.form.accepter = response.data.projectLeader;
222 248
       });
223 249
     },
224 250
     // 查询用户列表
@@ -254,7 +280,7 @@ export default {
254 280
       this.form = {
255 281
         technicalId: null,
256 282
         projectId: null,
257
-        disclosureAccepter: null,
283
+        accepter: null,
258 284
         disclosurer: null,
259 285
         content: null,
260 286
         document: null,
@@ -309,7 +335,7 @@ export default {
309 335
             const params = { taskId: this.taskForm.taskId };
310 336
             getNextFlowNode(params).then(res => {
311 337
               if (this.taskName == '技术交底')                
312
-                this.$set(this.taskForm.variables, "approval", this.form.disclosureAccepter);
338
+                this.$set(this.taskForm.variables, "approval", this.form.accepter);
313 339
               complete(this.taskForm).then(response => {
314 340
                 this.$modal.msgSuccess(response.msg);
315 341
                 this.$emit('goBack')
@@ -326,7 +352,7 @@ export default {
326 352
             const params = { taskId: this.taskForm.taskId };
327 353
             getNextFlowNode(params).then(res => {
328 354
               this.$set(this.taskForm.variables, "formId", this.taskForm.formId);
329
-              this.$set(this.taskForm.variables, "approval", this.form.disclosureAccepter);
355
+              this.$set(this.taskForm.variables, "approval", this.form.accepter);
330 356
               complete(this.taskForm).then(response => {
331 357
                 this.$modal.msgSuccess(response.msg);
332 358
                 this.$emit('goBack')

+ 4
- 4
oa-ui/src/views/oa/device/detail.vue Bestand weergeven

@@ -492,7 +492,7 @@ export default {
492 492
       },
493 493
       // 表单参数
494 494
       expenseForm: {
495
-        userId: 18,
495
+        userId: 17,
496 496
       },
497 497
       handoverForm: {},
498 498
       scrapForm: {},
@@ -832,7 +832,7 @@ export default {
832 832
       if (val == '1') {
833 833
         this.expenseName = '设备/维修保养费'
834 834
       }
835
-      if (val == '2') {
835
+      if (val == '3') {
836 836
         this.expenseName = '设备/检定费'
837 837
       }
838 838
     },
@@ -843,7 +843,7 @@ export default {
843 843
       if (row == '1') {
844 844
         return '维修/保养费'
845 845
       }
846
-      if (row == '2') {
846
+      if (row == '3') {
847 847
         return '检定费'
848 848
       }
849 849
     },
@@ -854,7 +854,7 @@ export default {
854 854
       if (row == '1') {
855 855
         return 'warning'
856 856
       }
857
-      if (row == '2') {
857
+      if (row == '3') {
858 858
         return 'success'
859 859
       }
860 860
     },

Laden…
Annuleren
Opslaan