瀏覽代碼

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

lamphua 8 月之前
父節點
當前提交
af3f73764b

+ 72
- 19
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTechnical.java 查看文件

42
 
42
 
43
     /** 安全交底人 */
43
     /** 安全交底人 */
44
     @Excel(name = "安全交底人")
44
     @Excel(name = "安全交底人")
45
-    private String disclosurerUserName;
45
+    private String disclosureUserName;
46
     private Long disclosurer;
46
     private Long disclosurer;
47
 
47
 
48
     /** 技术交底时间 */
48
     /** 技术交底时间 */
57
     /** 接受交底人 */
57
     /** 接受交底人 */
58
     @Excel(name = "接受交底人")
58
     @Excel(name = "接受交底人")
59
     private String acceptUserName;
59
     private String acceptUserName;
60
-    private Long disclosureAccepter;
60
+    private Long accepter;
61
 
61
 
62
     /** 接受交底时间 */
62
     /** 接受交底时间 */
63
     @JsonFormat(pattern = "yyyy-MM-dd")
63
     @JsonFormat(pattern = "yyyy-MM-dd")
64
     @Excel(name = "接受交底时间", width = 30, dateFormat = "yyyy-MM-dd")
64
     @Excel(name = "接受交底时间", width = 30, dateFormat = "yyyy-MM-dd")
65
     private Date acceptTime;
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
     private CmcProject project;
87
     private CmcProject project;
72
 
88
 
99
     {
115
     {
100
         return project;
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
     public void setDisclosurer(Long disclosurer)
137
     public void setDisclosurer(Long disclosurer)
122
     {
138
     {
127
     {
143
     {
128
         return disclosurer;
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
     public void setContent(String content) 
176
     public void setContent(String content) 
142
     {
177
     {
174
     {
209
     {
175
         return acceptComment;
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
     public void setDisclosureTime(Date disclosureTime) 
221
     public void setDisclosureTime(Date disclosureTime) 
178
     {
222
     {
179
         this.disclosureTime = disclosureTime;
223
         this.disclosureTime = disclosureTime;
192
     {
236
     {
193
         return acceptTime;
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
     @Override
249
     @Override
197
     public String toString() {
250
     public String toString() {
198
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
251
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
199
             .append("technicalId", getTechnicalId())
252
             .append("technicalId", getTechnicalId())
200
             .append("projectId", getProjectId())
253
             .append("projectId", getProjectId())
201
-            .append("disclosureAccepter", getDisclosureAccepter())
254
+            .append("accepter", getAccepter())
202
             .append("disclosurer", getDisclosurer())
255
             .append("disclosurer", getDisclosurer())
203
             .append("content", getContent())
256
             .append("content", getContent())
204
             .append("document", getDocument())
257
             .append("document", getDocument())

+ 53
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTechnicalPlan.java 查看文件

80
     @Excel(name = "技术审核时间", width = 30, dateFormat = "yyyy-MM-dd")
80
     @Excel(name = "技术审核时间", width = 30, dateFormat = "yyyy-MM-dd")
81
     private Date techApprovalTime;
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
     @Excel(name = "总工审核意见")
98
     @Excel(name = "总工审核意见")
85
     private String manageComment;
99
     private String manageComment;
109
 
123
 
110
     private SysUser designUser;
124
     private SysUser designUser;
111
 
125
 
126
+    private SysUser techDeptUser;
127
+
112
     private SysUser managerUser;
128
     private SysUser managerUser;
113
 
129
 
114
     private CmcProject project;
130
     private CmcProject project;
183
     {
199
     {
184
         return technicalAuditor;
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
     public void setDirectUser(SysUser directUser)
211
     public void setDirectUser(SysUser directUser)
187
     {
212
     {
188
         this.directUser = directUser;
213
         this.directUser = directUser;
223
     {
248
     {
224
         return auditUser;
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
     public void setManagerUser(SysUser managerUser)
261
     public void setManagerUser(SysUser managerUser)
227
     {
262
     {
228
         this.managerUser = managerUser;
263
         this.managerUser = managerUser;
314
     {
349
     {
315
         return technicalComment;
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
     public void setManagerUserId(Long managerUserId)
361
     public void setManagerUserId(Long managerUserId)
318
     {
362
     {
319
         this.managerUserId = managerUserId;
363
         this.managerUserId = managerUserId;
359
     {
403
     {
360
         return manageApprovalTime;
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
     @Override
416
     @Override
364
     public String toString() {
417
     public String toString() {

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml 查看文件

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

+ 30
- 14
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTechnicalMapper.xml 查看文件

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

+ 16
- 3
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTechnicalPlanMapper.xml 查看文件

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

+ 1
- 1
oa-ui/src/views/flowable/form/components/chooseProject.vue 查看文件

29
       <el-table-column label="项目名称" align="center" key="projectName" prop="projectName" :show-overflow-tooltip="true" />
29
       <el-table-column label="项目名称" align="center" key="projectName" prop="projectName" :show-overflow-tooltip="true" />
30
       <el-table-column label="项目负责人" align="center" key="projectLeader" prop="projectLeaderUser.nickName"
30
       <el-table-column label="项目负责人" align="center" key="projectLeader" prop="projectLeaderUser.nickName"
31
         :show-overflow-tooltip="true" />
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
       <el-table-column label="项目类型" align="center" key="projectType" prop="projectType" />
33
       <el-table-column label="项目类型" align="center" key="projectType" prop="projectType" />
34
     </el-table>
34
     </el-table>
35
     <div style="text-align: right;" class="mt20 mr20">
35
     <div style="text-align: right;" class="mt20 mr20">

+ 39
- 13
oa-ui/src/views/flowable/form/technicalForm.vue 查看文件

20
               }}</el-descriptions-item>
20
               }}</el-descriptions-item>
21
             </el-descriptions>
21
             </el-descriptions>
22
           </el-form-item>
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
               <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId"
25
               <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId"
26
                 v-if="item.nickName != 'admin'">
26
                 v-if="item.nickName != 'admin'">
27
               </el-option>
27
               </el-option>
51
           <el-row>
51
           <el-row>
52
             <el-col :span="6" :xs="24" :offset="12">
52
             <el-col :span="6" :xs="24" :offset="12">
53
               <el-form-item label="签名" prop="disclosurer">
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
                 </span>
55
                 </span>
56
               </el-form-item>
56
               </el-form-item>
57
             </el-col>
57
             </el-col>
68
           <el-row>
68
           <el-row>
69
             <el-col :span="6" :xs="24" :offset="12">
69
             <el-col :span="6" :xs="24" :offset="12">
70
               <el-form-item label="签名" v-if="taskName != '技术交底'">
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
               </el-form-item>
72
               </el-form-item>
73
             </el-col>
73
             </el-col>
74
             <el-col :span="6">
74
             <el-col :span="6">
77
               </el-form-item>
77
               </el-form-item>
78
             </el-col>
78
             </el-col>
79
           </el-row>
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
         </el-form>
97
         </el-form>
81
         <div style="text-align: center;" v-if="taskName">
98
         <div style="text-align: center;" v-if="taskName">
82
           <el-button type="primary" @click="submitForm">提 交</el-button>
99
           <el-button type="primary" @click="submitForm">提 交</el-button>
120
   data() {
137
   data() {
121
     return {
138
     return {
122
       baseUrl: process.env.VUE_APP_BASE_API,
139
       baseUrl: process.env.VUE_APP_BASE_API,
123
-      disclosurerUser: '',
124
-      accepterUser: '',
140
+      disclosureUser: '',
141
+      acceptUser: '',
142
+      confirmUser: '',
125
       // 遮罩层
143
       // 遮罩层
126
       loading: true,
144
       loading: true,
127
       // 选中数组
145
       // 选中数组
145
         pageNum: 1,
163
         pageNum: 1,
146
         pageSize: 10,
164
         pageSize: 10,
147
         projectId: null,
165
         projectId: null,
148
-        disclosureAccepter: null,
166
+        accepter: null,
149
         disclosurer: null,
167
         disclosurer: null,
168
+        confirmer: null,
150
         content: null,
169
         content: null,
151
         document: null,
170
         document: null,
152
         disclosureComment: null,
171
         disclosureComment: null,
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
     initForm() {
226
     initForm() {
201
       getTechnical(this.taskForm.formId).then(res => {
227
       getTechnical(this.taskForm.formId).then(res => {
202
         if (this.isEmptyObject(res.data)) {
228
         if (this.isEmptyObject(res.data)) {
203
           this.formTotal = 0;
229
           this.formTotal = 0;
204
           this.form.disclosurer = this.$store.getters.userId;
230
           this.form.disclosurer = this.$store.getters.userId;
205
-          this.disclosurerUser = this.$store.getters.name;
231
+          this.disclosureUser = this.$store.getters.name;
206
           this.form.disclosureTime = new Date();
232
           this.form.disclosureTime = new Date();
207
         }
233
         }
208
         else {
234
         else {
209
           this.formTotal = 1;
235
           this.formTotal = 1;
210
           this.form = res.data;
236
           this.form = res.data;
211
-          this.accepterUser = this.$store.getters.name;
237
+          this.acceptUser = this.$store.getters.name;
212
           this.form.acceptTime = new Date();
238
           this.form.acceptTime = new Date();
213
         }
239
         }
214
       })
240
       })
218
       getProject(this.taskForm.formId).then(response => {
244
       getProject(this.taskForm.formId).then(response => {
219
         this.chooseProject = response.data;
245
         this.chooseProject = response.data;
220
         this.isSelect = true;
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
       this.form = {
280
       this.form = {
255
         technicalId: null,
281
         technicalId: null,
256
         projectId: null,
282
         projectId: null,
257
-        disclosureAccepter: null,
283
+        accepter: null,
258
         disclosurer: null,
284
         disclosurer: null,
259
         content: null,
285
         content: null,
260
         document: null,
286
         document: null,
309
             const params = { taskId: this.taskForm.taskId };
335
             const params = { taskId: this.taskForm.taskId };
310
             getNextFlowNode(params).then(res => {
336
             getNextFlowNode(params).then(res => {
311
               if (this.taskName == '技术交底')                
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
               complete(this.taskForm).then(response => {
339
               complete(this.taskForm).then(response => {
314
                 this.$modal.msgSuccess(response.msg);
340
                 this.$modal.msgSuccess(response.msg);
315
                 this.$emit('goBack')
341
                 this.$emit('goBack')
326
             const params = { taskId: this.taskForm.taskId };
352
             const params = { taskId: this.taskForm.taskId };
327
             getNextFlowNode(params).then(res => {
353
             getNextFlowNode(params).then(res => {
328
               this.$set(this.taskForm.variables, "formId", this.taskForm.formId);
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
               complete(this.taskForm).then(response => {
356
               complete(this.taskForm).then(response => {
331
                 this.$modal.msgSuccess(response.msg);
357
                 this.$modal.msgSuccess(response.msg);
332
                 this.$emit('goBack')
358
                 this.$emit('goBack')

+ 4
- 4
oa-ui/src/views/oa/device/detail.vue 查看文件

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

Loading…
取消
儲存