Pārlūkot izejas kodu

安全要求、合同总经理审核、技术方案流程

lamphua 1 gadu atpakaļ
vecāks
revīzija
9ac6eb9c2c

+ 5
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractController.java Parādīt failu

96
     @PutMapping
96
     @PutMapping
97
     public AjaxResult edit(@RequestBody CmcContract cmcContract)
97
     public AjaxResult edit(@RequestBody CmcContract cmcContract)
98
     {
98
     {
99
-        if (cmcContract.getManagerComment() != null && cmcContract.getSignDate() == null) {
99
+        if (cmcContract.getManagerComment() != null && cmcContract.getGmComment() == null) {
100
             cmcContract.setManagerUserId(getLoginUser().getUserId());
100
             cmcContract.setManagerUserId(getLoginUser().getUserId());
101
             cmcContract.setManagerTime(new Date());
101
             cmcContract.setManagerTime(new Date());
102
         }
102
         }
103
+        if (cmcContract.getGmComment() != null && cmcContract.getSignDate() == null) {
104
+            cmcContract.setGmUserId(getLoginUser().getUserId());
105
+            cmcContract.setGmTime(new Date());
106
+        }
103
         return toAjax(cmcContractService.updateCmcContract(cmcContract));
107
         return toAjax(cmcContractService.updateCmcContract(cmcContract));
104
     }
108
     }
105
 
109
 

+ 5
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSubContractController.java Parādīt failu

90
     @PutMapping
90
     @PutMapping
91
     public AjaxResult edit(@RequestBody CmcSubContract cmcSubContract)
91
     public AjaxResult edit(@RequestBody CmcSubContract cmcSubContract)
92
     {
92
     {
93
-        if (cmcSubContract.getManagerComment() != null && cmcSubContract.getSignDate() == null) {
93
+        if (cmcSubContract.getManagerComment() != null && cmcSubContract.getGmComment() == null) {
94
             cmcSubContract.setManagerUserId(getLoginUser().getUserId());
94
             cmcSubContract.setManagerUserId(getLoginUser().getUserId());
95
             cmcSubContract.setManagerTime(new Date());
95
             cmcSubContract.setManagerTime(new Date());
96
         }
96
         }
97
+        if (cmcSubContract.getGmComment() != null && cmcSubContract.getSignDate() == null) {
98
+            cmcSubContract.setGmUserId(getLoginUser().getUserId());
99
+            cmcSubContract.setGmTime(new Date());
100
+        }
97
         return toAjax(cmcSubContractService.updateCmcSubContract(cmcSubContract));
101
         return toAjax(cmcSubContractService.updateCmcSubContract(cmcSubContract));
98
     }
102
     }
99
 
103
 

+ 2
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTechnicalPlanController.java Parādīt failu

88
     public AjaxResult add(@RequestBody CmcTechnicalPlan cmcTechnicalPlan)
88
     public AjaxResult add(@RequestBody CmcTechnicalPlan cmcTechnicalPlan)
89
     {
89
     {
90
         cmcTechnicalPlan.setTechnicalTime(new Date());
90
         cmcTechnicalPlan.setTechnicalTime(new Date());
91
+        cmcTechnicalPlan.setTechnicalPlanner(getLoginUser().getUserId());
91
         return toAjax(cmcTechnicalPlanService.insertCmcTechnicalPlan(cmcTechnicalPlan));
92
         return toAjax(cmcTechnicalPlanService.insertCmcTechnicalPlan(cmcTechnicalPlan));
92
     }
93
     }
93
 
94
 
103
             cmcTechnicalPlan.setTechnicalUploadTime(new Date());
104
             cmcTechnicalPlan.setTechnicalUploadTime(new Date());
104
         }
105
         }
105
         if ((cmcTechnicalPlan.getModifyDocument() != null || cmcTechnicalPlan.getTechnicalComment() != null) && cmcTechnicalPlan.getManageComment() == null) {
106
         if ((cmcTechnicalPlan.getModifyDocument() != null || cmcTechnicalPlan.getTechnicalComment() != null) && cmcTechnicalPlan.getManageComment() == null) {
106
-            cmcTechnicalPlan.setTechnicalPlanner(getLoginUser().getUserId());
107
+            cmcTechnicalPlan.setTechnicalAuditor(getLoginUser().getUserId());
107
             cmcTechnicalPlan.setTechApprovalTime(new Date());
108
             cmcTechnicalPlan.setTechApprovalTime(new Date());
108
         }
109
         }
109
         if (cmcTechnicalPlan.getManageComment() != null) {
110
         if (cmcTechnicalPlan.getManageComment() != null) {

+ 1
- 0
oa-back/ruoyi-flowable/src/main/java/com/ruoyi/flowable/oa/CallSafeActivityExecutionListener.java Parādīt failu

15
         SysUserPostMapper userPostMapper = SpringUtils.getBean(SysUserPostMapper.class);
15
         SysUserPostMapper userPostMapper = SpringUtils.getBean(SysUserPostMapper.class);
16
         String userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId().toString();
16
         String userId = userPostMapper.selectUserListByPostName("专职安全员").get(0).getUserId().toString();
17
         Authentication.setAuthenticatedUserId(userId);
17
         Authentication.setAuthenticatedUserId(userId);
18
+        delegateExecution.setVariable("approval", userId);
18
     }
19
     }
19
 }
20
 }

+ 52
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java Parādīt failu

105
     @Excel(name = "分管审批日期", width = 30, dateFormat = "yyyy-MM-dd")
105
     @Excel(name = "分管审批日期", width = 30, dateFormat = "yyyy-MM-dd")
106
     private Date managerTime;
106
     private Date managerTime;
107
 
107
 
108
+    /** 总经理审核人 */
109
+    private Long gmUserId;
110
+    @Excel(name = "总经理")
111
+    private String gmUserName;
112
+    private SysUser gmUser;
113
+
114
+    /** 总经理审核日期 */
115
+    @JsonFormat(pattern = "yyyy-MM-dd")
116
+    @Excel(name = "总经理审核日期", width = 30, dateFormat = "yyyy-MM-dd")
117
+    private Date gmTime;
118
+
119
+    /** 总经理审核意见 */
120
+    @Excel(name = "总经理审核意见")
121
+    private String gmComment;
122
+
108
     public void setContractId(String contractId)
123
     public void setContractId(String contractId)
109
     {
124
     {
110
         this.contractId = contractId;
125
         this.contractId = contractId;
308
     {
323
     {
309
         return managerTime;
324
         return managerTime;
310
     }
325
     }
326
+    public void setGmUserId(Long gmUserId)
327
+    {
328
+        this.gmUserId = gmUserId;
329
+    }
330
+
331
+    public Long getGmUserId()
332
+    {
333
+        return gmUserId;
334
+    }
335
+    public void setGmTime(Date gmTime)
336
+    {
337
+        this.gmTime = gmTime;
338
+    }
339
+
340
+    public Date getGmTime()
341
+    {
342
+        return gmTime;
343
+    }
344
+    public void setGmComment(String gmComment)
345
+    {
346
+        this.gmComment = gmComment;
347
+    }
348
+
349
+    public String getGmComment()
350
+    {
351
+        return gmComment;
352
+    }
353
+    public void setGmUser(SysUser gmUser)
354
+    {
355
+        this.gmUser = gmUser;
356
+        this.gmUserName = gmUser == null ? "" : gmUser.getNickName();
357
+    }
358
+
359
+    public SysUser getGmUser()
360
+    {
361
+        return gmUser;
362
+    }
311
 
363
 
312
     @Override
364
     @Override
313
     public String toString() {
365
     public String toString() {

+ 1
- 3
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSettle.java Parādīt failu

126
     private String deptComment;
126
     private String deptComment;
127
 
127
 
128
     /** 经营发展部审核人 */
128
     /** 经营发展部审核人 */
129
-    @Excel(name = "经营发展部审核人")
130
     private Long jyUserId;
129
     private Long jyUserId;
131
 
130
 
132
     /** 经营发展部审核日期 */
131
     /** 经营发展部审核日期 */
151
     private String managerComment;
150
     private String managerComment;
152
 
151
 
153
     /** 总经理审核人 */
152
     /** 总经理审核人 */
154
-    @Excel(name = "总经理审核人")
155
     private Long gmUserId;
153
     private Long gmUserId;
156
 
154
 
157
     /** 总经理审核日期 */
155
     /** 总经理审核日期 */
534
 
532
 
535
     public SysUser getGmUser()
533
     public SysUser getGmUser()
536
     {
534
     {
537
-        return reporterUser;
535
+        return gmUser;
538
     }
536
     }
539
 
537
 
540
     @Override
538
     @Override

+ 52
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java Parādīt failu

94
     @Excel(name = "分管审批日期", width = 30, dateFormat = "yyyy-MM-dd")
94
     @Excel(name = "分管审批日期", width = 30, dateFormat = "yyyy-MM-dd")
95
     private Date managerTime;
95
     private Date managerTime;
96
 
96
 
97
+    /** 总经理审核人 */
98
+    private Long gmUserId;
99
+    @Excel(name = "总经理")
100
+    private String gmUserName;
101
+    private SysUser gmUser;
102
+
103
+    /** 总经理审核日期 */
104
+    @JsonFormat(pattern = "yyyy-MM-dd")
105
+    @Excel(name = "总经理审核日期", width = 30, dateFormat = "yyyy-MM-dd")
106
+    private Date gmTime;
107
+
108
+    /** 总经理审核意见 */
109
+    @Excel(name = "总经理审核意见")
110
+    private String gmComment;
111
+
97
     public void setSubContractId(String subContractId)
112
     public void setSubContractId(String subContractId)
98
     {
113
     {
99
         this.subContractId = subContractId;
114
         this.subContractId = subContractId;
269
     {
284
     {
270
         return managerTime;
285
         return managerTime;
271
     }
286
     }
287
+    public void setGmUserId(Long gmUserId)
288
+    {
289
+        this.gmUserId = gmUserId;
290
+    }
291
+
292
+    public Long getGmUserId()
293
+    {
294
+        return gmUserId;
295
+    }
296
+    public void setGmTime(Date gmTime)
297
+    {
298
+        this.gmTime = gmTime;
299
+    }
300
+
301
+    public Date getGmTime()
302
+    {
303
+        return gmTime;
304
+    }
305
+    public void setGmComment(String gmComment)
306
+    {
307
+        this.gmComment = gmComment;
308
+    }
309
+
310
+    public String getGmComment()
311
+    {
312
+        return gmComment;
313
+    }
314
+    public void setGmUser(SysUser gmUser)
315
+    {
316
+        this.gmUser = gmUser;
317
+        this.gmUserName = gmUser == null ? "" : gmUser.getNickName();
318
+    }
319
+
320
+    public SysUser getGmUser()
321
+    {
322
+        return gmUser;
323
+    }
272
 
324
 
273
     @Override
325
     @Override
274
     public String toString() {
326
     public String toString() {

+ 26
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcTechnicalPlan.java Parādīt failu

35
     /** 技术设计人 */
35
     /** 技术设计人 */
36
     private Long technicalDesigner;
36
     private Long technicalDesigner;
37
 
37
 
38
+    /** 技术设计人 */
39
+    private Long technicalAuditor;
40
+
38
     /** 技术安排人 */
41
     /** 技术安排人 */
39
     private Long technicalPlanner;
42
     private Long technicalPlanner;
40
 
43
 
52
     private String planUserName;
55
     private String planUserName;
53
     private SysUser planUser;
56
     private SysUser planUser;
54
 
57
 
58
+    @Excel(name = "技术审核人")
59
+    private String auditUserName;
60
+    private SysUser auditUser;
61
+
55
     @Excel(name = "技术设计人")
62
     @Excel(name = "技术设计人")
56
     private String designUserName;
63
     private String designUserName;
57
     private SysUser designUser;
64
     private SysUser designUser;
167
     {
174
     {
168
         return technicalPlanner;
175
         return technicalPlanner;
169
     }
176
     }
177
+    public void setTechnicalAuditor(Long technicalAuditor)
178
+    {
179
+        this.technicalAuditor = technicalAuditor;
180
+    }
181
+
182
+    public Long getTechnicalAuditor()
183
+    {
184
+        return technicalAuditor;
185
+    }
170
     public void setDirectUser(SysUser directUser)
186
     public void setDirectUser(SysUser directUser)
171
     {
187
     {
172
         this.directUser = directUser;
188
         this.directUser = directUser;
199
     {
215
     {
200
         return designUser;
216
         return designUser;
201
     }
217
     }
218
+    public void setAuditUser(SysUser auditUser)
219
+    {
220
+        this.auditUser = auditUser;
221
+        this.auditUserName = auditUser == null ? "" : auditUser.getNickName();
222
+    }
223
+
224
+    public SysUser getAuditUser()
225
+    {
226
+        return auditUser;
227
+    }
202
     public void setManagerUser(SysUser managerUser)
228
     public void setManagerUser(SysUser managerUser)
203
     {
229
     {
204
         this.managerUser = managerUser;
230
         this.managerUser = managerUser;

+ 20
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml Parādīt failu

24
         <result property="managerComment"    column="manager_comment"    />
24
         <result property="managerComment"    column="manager_comment"    />
25
         <result property="managerUserId"    column="manager_user_id"    />
25
         <result property="managerUserId"    column="manager_user_id"    />
26
         <result property="managerTime"    column="manager_time"    />
26
         <result property="managerTime"    column="manager_time"    />
27
+        <result property="gmUserId"    column="gm_user_id"    />
28
+        <result property="gmTime"    column="gm_time"    />
29
+        <result property="gmComment"    column="gm_comment"    />
27
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
30
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
28
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
31
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
32
+        <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
29
         <association property="tender"    javaType="CmcTender"         resultMap="CmcTenderResult" />
33
         <association property="tender"    javaType="CmcTender"         resultMap="CmcTenderResult" />
30
         <association property="partyA"    javaType="CmcPartyA"         resultMap="CmcPartyAResult" />
34
         <association property="partyA"    javaType="CmcPartyA"         resultMap="CmcPartyAResult" />
31
     </resultMap>
35
     </resultMap>
51
         <result property="nickName"    column="manager_nick_name"    />
55
         <result property="nickName"    column="manager_nick_name"    />
52
     </resultMap>
56
     </resultMap>
53
 
57
 
58
+    <resultMap type="SysUser" id="GmUserResult">
59
+        <result property="userId"    column="user_id"    />
60
+        <result property="nickName"    column="gm_nick_name"    />
61
+    </resultMap>
62
+
54
     <resultMap type="CmcPartyA" id="CmcPartyAResult">
63
     <resultMap type="CmcPartyA" id="CmcPartyAResult">
55
         <result property="partyAId"    column="party_a_id"    />
64
         <result property="partyAId"    column="party_a_id"    />
56
         <result property="partyAName"    column="party_a_name"    />
65
         <result property="partyAName"    column="party_a_name"    />
60
         select c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, c.party_a_id, pa.party_a_name, t.project_name as project_name, t.party_a_id as party_a_id, t.a_person as a_person,
69
         select c.contract_id, c.contract_code, c.contract_name, c.contract_number, c.tender_id, c.party_a_id, pa.party_a_name, t.project_name as project_name, t.party_a_id as party_a_id, t.a_person as a_person,
61
                t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person, t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document,
70
                t.a_phone as a_phone, t.agent as agent, t.agent_person as agent_person, t.agent_phone as agent_phone, c.amount, c.deposit, c.contract_document,
62
                c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan, c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name,
71
                c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark, c.sign_scan, c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name,
63
-               c.manager_time from cmc_contract as c
72
+               c.manager_time, c.gm_user_id, u2.nick_name as gm_nick_name, c.gm_time, c.gm_comment from cmc_contract as c
64
         left join sys_user as u on u.user_id = c.drafter
73
         left join sys_user as u on u.user_id = c.drafter
65
         left join sys_user as u1 on u1.user_id = c.manager_user_id
74
         left join sys_user as u1 on u1.user_id = c.manager_user_id
75
+        left join sys_user as u2 on u2.user_id = c.gm_user_id
66
         left join cmc_tender as t on t.tender_id = c.tender_id
76
         left join cmc_tender as t on t.tender_id = c.tender_id
67
         left join cmc_party_a as pa on pa.party_a_id = c.party_a_id
77
         left join cmc_party_a as pa on pa.party_a_id = c.party_a_id
68
     </sql>
78
     </sql>
115
             <if test="managerComment != null">manager_comment,</if>
125
             <if test="managerComment != null">manager_comment,</if>
116
             <if test="managerUserId != null">manager_user_id,</if>
126
             <if test="managerUserId != null">manager_user_id,</if>
117
             <if test="managerTime != null">manager_time,</if>
127
             <if test="managerTime != null">manager_time,</if>
128
+            <if test="gmUserId != null">gm_user_id,</if>
129
+            <if test="gmTime != null">gm_time,</if>
130
+            <if test="gmComment != null">gm_comment,</if>
118
         </trim>
131
         </trim>
119
         <trim prefix="values (" suffix=")" suffixOverrides=",">
132
         <trim prefix="values (" suffix=")" suffixOverrides=",">
120
             <if test="contractId != null">#{contractId},</if>
133
             <if test="contractId != null">#{contractId},</if>
136
             <if test="managerComment != null">#{managerComment},</if>
149
             <if test="managerComment != null">#{managerComment},</if>
137
             <if test="managerUserId != null">#{managerUserId},</if>
150
             <if test="managerUserId != null">#{managerUserId},</if>
138
             <if test="managerTime != null">#{managerTime},</if>
151
             <if test="managerTime != null">#{managerTime},</if>
152
+            <if test="gmUserId != null">#{gmUserId},</if>
153
+            <if test="gmTime != null">#{gmTime},</if>
154
+            <if test="gmComment != null">#{gmComment},</if>
139
         </trim>
155
         </trim>
140
     </insert>
156
     </insert>
141
 
157
 
160
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
176
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
161
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
177
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
162
             <if test="managerTime != null">manager_time = #{managerTime},</if>
178
             <if test="managerTime != null">manager_time = #{managerTime},</if>
179
+            <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
180
+            <if test="gmTime != null">gm_time = #{gmTime},</if>
181
+            <if test="gmComment != null">gm_comment = #{gmComment},</if>
163
         </trim>
182
         </trim>
164
         where contract_id = #{contractId}
183
         where contract_id = #{contractId}
165
     </update>
184
     </update>

+ 21
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml Parādīt failu

22
         <result property="managerComment"    column="manager_comment"    />
22
         <result property="managerComment"    column="manager_comment"    />
23
         <result property="managerUserId"    column="manager_user_id"    />
23
         <result property="managerUserId"    column="manager_user_id"    />
24
         <result property="managerTime"    column="manager_time"    />
24
         <result property="managerTime"    column="manager_time"    />
25
+        <result property="gmUserId"    column="gm_user_id"    />
26
+        <result property="gmTime"    column="gm_time"    />
27
+        <result property="gmComment"    column="gm_comment"    />
25
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
28
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
26
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
29
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
30
+        <association property="gmUser"    javaType="SysUser"         resultMap="GmUserResult" />
27
         <association property="partner"    javaType="CmcPartner"         resultMap="CmcPartnerResult" />
31
         <association property="partner"    javaType="CmcPartner"         resultMap="CmcPartnerResult" />
28
     </resultMap>
32
     </resultMap>
29
 
33
 
37
         <result property="nickName"    column="manager_nick_name"    />
41
         <result property="nickName"    column="manager_nick_name"    />
38
     </resultMap>
42
     </resultMap>
39
 
43
 
44
+    <resultMap type="SysUser" id="GmUserResult">
45
+        <result property="userId"    column="user_id"    />
46
+        <result property="nickName"    column="gm_nick_name"    />
47
+    </resultMap>
48
+
40
     <resultMap type="CmcPartner" id="CmcPartnerResult">
49
     <resultMap type="CmcPartner" id="CmcPartnerResult">
41
         <result property="partnerId"    column="partner_id"    />
50
         <result property="partnerId"    column="partner_id"    />
42
         <result property="partnerName"    column="partner_name"    />
51
         <result property="partnerName"    column="partner_name"    />
44
 
53
 
45
     <sql id="selectCmcSubContractVo">
54
     <sql id="selectCmcSubContractVo">
46
         select sc.sub_contract_id, sc.sub_contract_name, sc.sub_amount, sc.partner_id, p.partner_name, sc.contact_person, sc.telephone, sc.contract_document, sc.drafter, u.nick_name as draft_nick_name, sc.draft_time,
55
         select sc.sub_contract_id, sc.sub_contract_name, sc.sub_amount, sc.partner_id, p.partner_name, sc.contact_person, sc.telephone, sc.contract_document, sc.drafter, u.nick_name as draft_nick_name, sc.draft_time,
47
-               sc.remark, sc.sign_date, sc.sign_remark, sc.sign_scan, sc.comment_type, sc.manager_comment, sc.manager_user_id, u1.nick_name as manager_nick_name, sc.manager_time from cmc_sub_contract as sc
56
+               sc.remark, sc.sign_date, sc.sign_remark, sc.sign_scan, sc.comment_type, sc.manager_comment, sc.manager_user_id, u1.nick_name as manager_nick_name, sc.manager_time, sc.gm_user_id, u2.nick_name as gm_nick_name,
57
+               sc.gm_time, sc.gm_comment from cmc_sub_contract as sc
48
         left join sys_user as u on u.user_id = sc.drafter
58
         left join sys_user as u on u.user_id = sc.drafter
49
         left join sys_user as u1 on u1.user_id = sc.manager_user_id
59
         left join sys_user as u1 on u1.user_id = sc.manager_user_id
60
+        left join sys_user as u2 on u2.user_id = sc.gm_user_id
50
         left join cmc_partner as p on p.partner_id = sc.partner_id
61
         left join cmc_partner as p on p.partner_id = sc.partner_id
51
     </sql>
62
     </sql>
52
 
63
 
94
             <if test="managerComment != null">manager_comment,</if>
105
             <if test="managerComment != null">manager_comment,</if>
95
             <if test="managerUserId != null">manager_user_id,</if>
106
             <if test="managerUserId != null">manager_user_id,</if>
96
             <if test="managerTime != null">manager_time,</if>
107
             <if test="managerTime != null">manager_time,</if>
108
+            <if test="gmUserId != null">gm_user_id,</if>
109
+            <if test="gmTime != null">gm_time,</if>
110
+            <if test="gmComment != null">gm_comment,</if>
97
          </trim>
111
          </trim>
98
         <trim prefix="values (" suffix=")" suffixOverrides=",">
112
         <trim prefix="values (" suffix=")" suffixOverrides=",">
99
             <if test="subContractId != null">#{subContractId},</if>
113
             <if test="subContractId != null">#{subContractId},</if>
113
             <if test="managerComment != null">#{managerComment},</if>
127
             <if test="managerComment != null">#{managerComment},</if>
114
             <if test="managerUserId != null">#{managerUserId},</if>
128
             <if test="managerUserId != null">#{managerUserId},</if>
115
             <if test="managerTime != null">#{managerTime},</if>
129
             <if test="managerTime != null">#{managerTime},</if>
130
+            <if test="gmUserId != null">#{gmUserId},</if>
131
+            <if test="gmTime != null">#{gmTime},</if>
132
+            <if test="gmComment != null">#{gmComment},</if>
116
          </trim>
133
          </trim>
117
     </insert>
134
     </insert>
118
 
135
 
135
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
152
             <if test="managerComment != null">manager_comment = #{managerComment},</if>
136
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
153
             <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
137
             <if test="managerTime != null">manager_time = #{managerTime},</if>
154
             <if test="managerTime != null">manager_time = #{managerTime},</if>
155
+            <if test="gmUserId != null">gm_user_id = #{gmUserId},</if>
156
+            <if test="gmTime != null">gm_time = #{gmTime},</if>
157
+            <if test="gmComment != null">gm_comment = #{gmComment},</if>
138
         </trim>
158
         </trim>
139
         where sub_contract_id = #{subContractId}
159
         where sub_contract_id = #{subContractId}
140
     </update>
160
     </update>

+ 15
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcTechnicalPlanMapper.xml Parādīt failu

10
         <result property="technicalDirector"    column="technical_director"    />
10
         <result property="technicalDirector"    column="technical_director"    />
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="planComment"    column="plan_comment"    />
14
         <result property="planComment"    column="plan_comment"    />
14
         <result property="qualityInspector"    column="quality_inspector"    />
15
         <result property="qualityInspector"    column="quality_inspector"    />
15
         <result property="technicalTime"    column="technical_time"    />
16
         <result property="technicalTime"    column="technical_time"    />
25
         <association property="directUser"    javaType="SysUser"         resultMap="DirectUserResult" />
26
         <association property="directUser"    javaType="SysUser"         resultMap="DirectUserResult" />
26
         <association property="planUser"    javaType="SysUser"         resultMap="PlanUserResult" />
27
         <association property="planUser"    javaType="SysUser"         resultMap="PlanUserResult" />
27
         <association property="designUser"    javaType="SysUser"         resultMap="DesignUserResult" />
28
         <association property="designUser"    javaType="SysUser"         resultMap="DesignUserResult" />
29
+        <association property="auditUser"    javaType="SysUser"         resultMap="AuditUserResult" />
28
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
30
         <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
29
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
31
         <association property="project"    javaType="CmcProject"         resultMap="CmcProjectResult" />
30
     </resultMap>
32
     </resultMap>
44
         <result property="nickName"    column="design_nick_name"    />
46
         <result property="nickName"    column="design_nick_name"    />
45
     </resultMap>
47
     </resultMap>
46
 
48
 
49
+    <resultMap type="SysUser" id="AuditUserResult">
50
+        <result property="userId"    column="user_id"    />
51
+        <result property="nickName"    column="audit_nick_name"    />
52
+    </resultMap>
53
+
47
     <resultMap type="SysUser" id="ManagerUserResult">
54
     <resultMap type="SysUser" id="ManagerUserResult">
48
         <result property="userId"    column="user_id"    />
55
         <result property="userId"    column="user_id"    />
49
         <result property="nickName"    column="manager_nick_name"    />
56
         <result property="nickName"    column="manager_nick_name"    />
58
     <sql id="selectCmcTechnicalPlanVo">
65
     <sql id="selectCmcTechnicalPlanVo">
59
         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,
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,
60
                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,
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,
61
-               t.design_description, t.technical_comment, t.manager_user_id, u3.nick_name as manager_nick_name, t.manage_comment, t.technical_upload_time, t.tech_approval_time, t.manage_approval_time from cmc_technical_plan as t
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
62
         left join sys_user as u on u.user_id = t.technical_director
70
         left join sys_user as u on u.user_id = t.technical_director
63
         left join sys_user as u1 on u1.user_id = t.technical_designer
71
         left join sys_user as u1 on u1.user_id = t.technical_designer
64
         left join sys_user as u2 on u2.user_id = t.technical_planner
72
         left join sys_user as u2 on u2.user_id = t.technical_planner
65
-        left join sys_user as u3 on u3.user_id = t.manager_user_id
73
+        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
66
         left join cmc_project as p on p.project_id = t.project_id
75
         left join cmc_project as p on p.project_id = t.project_id
67
     </sql>
76
     </sql>
68
 
77
 
73
             <if test="technicalDirector != null "> and t.technical_director = #{technicalDirector}</if>
82
             <if test="technicalDirector != null "> and t.technical_director = #{technicalDirector}</if>
74
             <if test="technicalDesigner != null "> and t.technical_designer = #{technicalDesigner}</if>
83
             <if test="technicalDesigner != null "> and t.technical_designer = #{technicalDesigner}</if>
75
             <if test="technicalPlanner != null "> and t.technical_planner = #{technicalPlanner}</if>
84
             <if test="technicalPlanner != null "> and t.technical_planner = #{technicalPlanner}</if>
85
+            <if test="technicalAuditor != null "> and t.technical_auditor = #{technicalAuditor}</if>
76
             <if test="planComment != null  and planComment != ''"> and t.plan_comment = #{planComment}</if>
86
             <if test="planComment != null  and planComment != ''"> and t.plan_comment = #{planComment}</if>
77
             <if test="qualityInspector != null  and qualityInspector != ''"> and t.quality_inspector = #{qualityInspector}</if>
87
             <if test="qualityInspector != null  and qualityInspector != ''"> and t.quality_inspector = #{qualityInspector}</if>
78
             <if test="technicalTime != null "> and t.technical_time = #{technicalTime}</if>
88
             <if test="technicalTime != null "> and t.technical_time = #{technicalTime}</if>
101
             <if test="technicalDirector != null">technical_director,</if>
111
             <if test="technicalDirector != null">technical_director,</if>
102
             <if test="technicalDesigner != null">technical_designer,</if>
112
             <if test="technicalDesigner != null">technical_designer,</if>
103
             <if test="technicalPlanner != null">technical_planner,</if>
113
             <if test="technicalPlanner != null">technical_planner,</if>
114
+            <if test="technicalAuditor != null">technical_auditor,</if>
104
             <if test="planComment != null">plan_comment,</if>
115
             <if test="planComment != null">plan_comment,</if>
105
             <if test="qualityInspector != null">quality_inspector,</if>
116
             <if test="qualityInspector != null">quality_inspector,</if>
106
             <if test="technicalTime != null">technical_time,</if>
117
             <if test="technicalTime != null">technical_time,</if>
121
             <if test="technicalDirector != null">#{technicalDirector},</if>
132
             <if test="technicalDirector != null">#{technicalDirector},</if>
122
             <if test="technicalDesigner != null">#{technicalDesigner},</if>
133
             <if test="technicalDesigner != null">#{technicalDesigner},</if>
123
             <if test="technicalPlanner != null">#{technicalPlanner},</if>
134
             <if test="technicalPlanner != null">#{technicalPlanner},</if>
135
+            <if test="technicalAuditor != null">#{technicalAuditor},</if>
124
             <if test="planComment != null">#{planComment},</if>
136
             <if test="planComment != null">#{planComment},</if>
125
             <if test="qualityInspector != null">#{qualityInspector},</if>
137
             <if test="qualityInspector != null">#{qualityInspector},</if>
126
             <if test="technicalTime != null">#{technicalTime},</if>
138
             <if test="technicalTime != null">#{technicalTime},</if>
144
             <if test="technicalDirector != null">technical_director = #{technicalDirector},</if>
156
             <if test="technicalDirector != null">technical_director = #{technicalDirector},</if>
145
             <if test="technicalDesigner != null">technical_designer = #{technicalDesigner},</if>
157
             <if test="technicalDesigner != null">technical_designer = #{technicalDesigner},</if>
146
             <if test="technicalPlanner != null">technical_planner = #{technicalPlanner},</if>
158
             <if test="technicalPlanner != null">technical_planner = #{technicalPlanner},</if>
159
+            <if test="technicalAuditor != null">technical_auditor = #{technicalAuditor},</if>
147
             <if test="planComment != null">plan_comment = #{planComment},</if>
160
             <if test="planComment != null">plan_comment = #{planComment},</if>
148
             <if test="qualityInspector != null">quality_inspector = #{qualityInspector},</if>
161
             <if test="qualityInspector != null">quality_inspector = #{qualityInspector},</if>
149
             <if test="technicalTime != null">technical_time = #{technicalTime},</if>
162
             <if test="technicalTime != null">technical_time = #{technicalTime},</if>

+ 1590
- 1541
oa-back/sql/sql.sql
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 43
- 10
oa-ui/src/views/flowable/form/business/contractForm.vue Parādīt failu

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-05-10 15:31:57
3
  * @Date: 2024-05-10 15:31:57
4
  * @LastEditors: wrh
4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-07-05 17:33:58
5
+ * @LastEditTime: 2024-07-08 18:28:06
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
354
             </table>
354
             </table>
355
           </el-form-item>
355
           </el-form-item>
356
           <el-divider></el-divider>
356
           <el-divider></el-divider>
357
-          <el-form-item label="分管审批意见" prop="remark">
357
+          <el-form-item label="分管审批意见" prop="managerComment">
358
             <el-input v-model="form.managerComment" type="textarea" :autosize="{ minRows: 4 }" placeholder="请输入审批意见"
358
             <el-input v-model="form.managerComment" type="textarea" :autosize="{ minRows: 4 }" placeholder="请输入审批意见"
359
               :disabled="taskName != '分管审核'" />
359
               :disabled="taskName != '分管审核'" />
360
           </el-form-item>
360
           </el-form-item>
372
               </el-form-item>
372
               </el-form-item>
373
             </el-col>
373
             </el-col>
374
           </el-row>
374
           </el-row>
375
+          <el-form-item label="总经理审批意见" prop="gmComment">
376
+            <el-input v-model="form.gmComment" type="textarea" :autosize="{ minRows: 4 }" placeholder="请输入总经理审批意见"
377
+              :disabled="taskName != '总经理审核'" />
378
+          </el-form-item>
379
+          <el-row>
380
+            <el-col :span="6" :xs="24" :offset="12">
381
+              <el-form-item label="签名:" label-width="120px"
382
+                v-if="taskName != '合同拟稿' && taskName != '线上会审' && taskName != '会议评审' && taskName != '分管审核'">
383
+                <span class="auditor"> {{ form.gmUser ? form.gmUser.nickName : gmUser }} </span>
384
+              </el-form-item>
385
+            </el-col>
386
+            <el-col :span="6">
387
+              <el-form-item label="日期:" label-width="120px"
388
+                v-if="taskName != '合同拟稿' && taskName != '线上会审' && taskName != '会议评审' && taskName != '分管审核'">
389
+                <span> {{ form.gmTime ? form.gmTime : gmTime }} </span>
390
+              </el-form-item>
391
+            </el-col>
392
+          </el-row>
375
           <el-divider></el-divider>
393
           <el-divider></el-divider>
376
           <el-form-item label="签订日期" prop="signDate">
394
           <el-form-item label="签订日期" prop="signDate">
377
             <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期"
395
             <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期"
453
 import { listProjectContract, addProjectContract, delProjectContract } from "@/api/oa/contract/projectContract";
471
 import { listProjectContract, addProjectContract, delProjectContract } from "@/api/oa/contract/projectContract";
454
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
472
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
455
 import { listTender, getTender } from "@/api/oa/tender/tender";
473
 import { listTender, getTender } from "@/api/oa/tender/tender";
456
-import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept } from '@/api/system/post.js'
474
+import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept, getUserByPost } from '@/api/system/post.js'
457
 import flow from '@/views/flowable/task/todo/detail/flow'
475
 import flow from '@/views/flowable/task/todo/detail/flow'
458
 import { flowXmlAndNode } from "@/api/flowable/definition";
476
 import { flowXmlAndNode } from "@/api/flowable/definition";
459
 import ChooseProject from '../components/chooseProject.vue';
477
 import ChooseProject from '../components/chooseProject.vue';
512
       draftTime: undefined,
530
       draftTime: undefined,
513
       managerUser: '',
531
       managerUser: '',
514
       managerTime: undefined,
532
       managerTime: undefined,
533
+      gmUser: '',
534
+      gmTime: undefined,
515
       hostUser: '',
535
       hostUser: '',
516
       commentTime: undefined,
536
       commentTime: undefined,
517
       // 遮罩层
537
       // 遮罩层
611
       this.managerUser = this.$store.getters.name;
631
       this.managerUser = this.$store.getters.name;
612
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
632
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
613
     }
633
     }
634
+    else if (this.taskName == '总经理审核') {
635
+      this.gmUser = this.$store.getters.name;
636
+      this.gmTime = parseTime(new Date(), '{y}-{m}-{d}')
637
+    }
614
     this.getProjectList();
638
     this.getProjectList();
615
     this.getPartyAList();
639
     this.getPartyAList();
616
     this.getDeptList();
640
     this.getDeptList();
1003
             }
1027
             }
1004
             getNextFlowNode(params).then(res => {
1028
             getNextFlowNode(params).then(res => {
1005
               if (this.taskName == '分管审核') {
1029
               if (this.taskName == '分管审核') {
1006
-                complete(this.taskForm).then(response => {
1007
-                  this.$modal.msgSuccess(response.msg);
1008
-                  this.$emit('goBack')
1009
-                });
1030
+                getUserByPost({ postName: '总经理' }).then(res => {
1031
+                  this.$set(this.taskForm.variables, "approval", res.data[0].userId);
1032
+                  complete(this.taskForm).then(response => {
1033
+                    this.$modal.msgSuccess(response.msg);
1034
+                    this.$emit('goBack')
1035
+                  });
1036
+                })
1010
               }
1037
               }
1011
               else if (this.taskName == '线上会审') {
1038
               else if (this.taskName == '线上会审') {
1012
                 for (let comment of this.commentList) {
1039
                 for (let comment of this.commentList) {
1029
                 formData.append("form", jsonForm);
1056
                 formData.append("form", jsonForm);
1030
                 updateContractMeeting(formData);
1057
                 updateContractMeeting(formData);
1031
                 getUsersManageLeader({ userId: this.form.drafter }).then(res => {
1058
                 getUsersManageLeader({ userId: this.form.drafter }).then(res => {
1032
-            let userIdList = [];
1033
-            userIdList.push(res.data[0].userId)
1034
-            this.$set(this.taskForm.variables, "approvalList", userIdList);
1059
+                  let userIdList = [];
1060
+                  userIdList.push(res.data[0].userId)
1061
+                  this.$set(this.taskForm.variables, "approvalList", userIdList);
1035
                   complete(this.taskForm).then(response => {
1062
                   complete(this.taskForm).then(response => {
1036
                     this.$modal.msgSuccess(response.msg);
1063
                     this.$modal.msgSuccess(response.msg);
1037
                     this.$emit('goBack')
1064
                     this.$emit('goBack')
1038
                   });
1065
                   });
1039
                 })
1066
                 })
1040
               }
1067
               }
1068
+              else if (this.taskName == '总经理审核') {
1069
+                complete(this.taskForm).then(response => {
1070
+                  this.$modal.msgSuccess(response.msg);
1071
+                  this.$emit('goBack')
1072
+                });
1073
+              }
1041
               else if (this.taskName == '合同签订') {
1074
               else if (this.taskName == '合同签订') {
1042
                 complete(this.taskForm).then(response => {
1075
                 complete(this.taskForm).then(response => {
1043
                   this.$modal.msgSuccess(response.msg);
1076
                   this.$modal.msgSuccess(response.msg);

+ 34
- 3
oa-ui/src/views/flowable/form/business/subContract.vue Parādīt failu

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-05-10 15:31:57
3
  * @Date: 2024-05-10 15:31:57
4
  * @LastEditors: wrh
4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-07-05 17:29:38
5
+ * @LastEditTime: 2024-07-09 09:19:28
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
369
               </el-form-item>
369
               </el-form-item>
370
             </el-col>
370
             </el-col>
371
           </el-row>
371
           </el-row>
372
+          <el-form-item label="总经理审批意见" prop="gmComment">
373
+            <el-input v-model="form.gmComment" type="textarea" :autosize="{ minRows: 4 }" placeholder="请输入总经理审批意见"
374
+              :disabled="taskName != '总经理审核'" />
375
+          </el-form-item>
376
+          <el-row>
377
+            <el-col :span="6" :xs="24" :offset="12">
378
+              <el-form-item label="签名:" label-width="120px"
379
+                v-if="taskName != '合同拟稿' && taskName != '线上会审' && taskName != '会议评审' && taskName != '分管审核'">
380
+                <span class="auditor"> {{ form.gmUser ? form.gmUser.nickName : gmUser }} </span>
381
+              </el-form-item>
382
+            </el-col>
383
+            <el-col :span="6">
384
+              <el-form-item label="日期:" label-width="120px"
385
+                v-if="taskName != '合同拟稿' && taskName != '线上会审' && taskName != '会议评审' && taskName != '分管审核'">
386
+                <span> {{ form.gmTime ? form.gmTime : gmTime }} </span>
387
+              </el-form-item>
388
+            </el-col>
389
+          </el-row>
372
           <el-divider></el-divider>
390
           <el-divider></el-divider>
373
           <el-form-item label="签订日期" prop="signDate">
391
           <el-form-item label="签订日期" prop="signDate">
374
             <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期"
392
             <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期"
430
 import { getContract } from "@/api/oa/contract/contract";
448
 import { getContract } from "@/api/oa/contract/contract";
431
 import { listSubContract, getSubContract, delSubContract, addSubContract, updateSubContract } from "@/api/oa/contract/subContract";
449
 import { listSubContract, getSubContract, delSubContract, addSubContract, updateSubContract } from "@/api/oa/contract/subContract";
432
 import { listProjectSubcontract, addProjectSubcontract, delProjectSubcontract } from '@/api/oa/contract/projectSubcontract'
450
 import { listProjectSubcontract, addProjectSubcontract, delProjectSubcontract } from '@/api/oa/contract/projectSubcontract'
433
-import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept } from '@/api/system/post.js'
451
+import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept, getDeptLeadersByDeptId, getUsersManageLeaderByDept, getUserByPost } from '@/api/system/post.js'
434
 import flow from '@/views/flowable/task/todo/detail/flow'
452
 import flow from '@/views/flowable/task/todo/detail/flow'
435
 import { flowXmlAndNode } from "@/api/flowable/definition";
453
 import { flowXmlAndNode } from "@/api/flowable/definition";
436
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
454
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
482
       draftTime: undefined,
500
       draftTime: undefined,
483
       managerUser: '',
501
       managerUser: '',
484
       managerTime: undefined,
502
       managerTime: undefined,
503
+      gmUser: '',
504
+      gmTime: undefined,
485
       hostUser: '',
505
       hostUser: '',
486
       commentTime: undefined,
506
       commentTime: undefined,
487
       // 遮罩层
507
       // 遮罩层
608
       this.managerUser = this.$store.getters.name;
628
       this.managerUser = this.$store.getters.name;
609
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
629
       this.managerTime = parseTime(new Date(), '{y}-{m}-{d}')
610
     }
630
     }
631
+    else if (this.taskName == '总经理审核') {
632
+      this.gmUser = this.$store.getters.name;
633
+      this.gmTime = parseTime(new Date(), '{y}-{m}-{d}')
634
+    }
611
     this.getProjectList();
635
     this.getProjectList();
612
     this.getPartnerList();
636
     this.getPartnerList();
613
     this.getDeptList();
637
     this.getDeptList();
739
                 if (comment.deptId == 105)
763
                 if (comment.deptId == 105)
740
                   getDeptLeadersByDeptId({ deptId: comment.deptId }).then(res => {
764
                   getDeptLeadersByDeptId({ deptId: comment.deptId }).then(res => {
741
                     comment.userId = res.data[1].userId;
765
                     comment.userId = res.data[1].userId;
766
+                    console.log(comment.userId);
742
                   })
767
                   })
743
                 else
768
                 else
744
                   getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
769
                   getUsersDeptLeaderByDept({ deptId: comment.deptId }).then(res => {
937
             const params = { taskId: this.taskForm.taskId };
962
             const params = { taskId: this.taskForm.taskId };
938
             getNextFlowNode(params).then(res => {
963
             getNextFlowNode(params).then(res => {
939
               if (this.taskName == '分管审核') {
964
               if (this.taskName == '分管审核') {
940
-                handleComplete(this.taskForm);
965
+                getUserByPost({ postName: '总经理' }).then(res => {
966
+                  this.$set(this.taskForm.variables, "approval", res.data[0].userId);
967
+                  handleComplete(this.taskForm);
968
+                })
941
               }
969
               }
942
               else if (this.taskName == '合同拟稿') {
970
               else if (this.taskName == '合同拟稿') {
943
                 this.contractDraftSubmit(handleComplete)
971
                 this.contractDraftSubmit(handleComplete)
966
                   handleComplete(this.taskForm);
994
                   handleComplete(this.taskForm);
967
                 })
995
                 })
968
               }
996
               }
997
+              else if (this.taskName == '总经理审核') {
998
+                handleComplete(this.taskForm);
999
+              }
969
               else if (this.taskName == '合同签订') {
1000
               else if (this.taskName == '合同签订') {
970
                 handleComplete(this.taskForm);
1001
                 handleComplete(this.taskForm);
971
               }
1002
               }

+ 5
- 5
oa-ui/src/views/flowable/form/projectProcess/planTab.vue Parādīt failu

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-19 15:32:00
3
  * @Date: 2024-04-19 15:32:00
4
  * @LastEditors: wrh
4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-07-01 14:04:29
5
+ * @LastEditTime: 2024-07-08 18:00:55
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
89
             </el-link>
89
             </el-link>
90
           </div>
90
           </div>
91
         </el-form-item>
91
         </el-form-item>
92
-        <el-form-item label="技术质量与安全部审核意见" prop="technicalComment">
93
-          <el-input type="textarea" v-model="form.technicalComment" placeholder="请输入技术质量与安全部审核意见" />
92
+        <el-form-item label="技术方案审核意见" prop="technicalComment">
93
+          <el-input type="textarea" v-model="form.technicalComment" placeholder="请输入技术方案审核意见" />
94
         </el-form-item>
94
         </el-form-item>
95
         <el-row>
95
         <el-row>
96
           <el-col :span="6" :xs="24" :offset="12">
96
           <el-col :span="6" :xs="24" :offset="12">
97
-            <el-form-item label="签名" prop="technicalPlanner">
98
-              <span class="auditor"> {{ form.planUser ? form.planUser.nickName : '' }} </span>
97
+            <el-form-item label="签名" prop="technicalAuditor">
98
+              <span class="auditor"> {{ form.auditUser ? form.auditUser.nickName : '' }} </span>
99
             </el-form-item>
99
             </el-form-item>
100
           </el-col>
100
           </el-col>
101
           <el-col :span="6">
101
           <el-col :span="6">

+ 48
- 11
oa-ui/src/views/flowable/form/technicalPlan.vue Parādīt failu

120
               </el-link>
120
               </el-link>
121
             </div>
121
             </div>
122
           </el-form-item>
122
           </el-form-item>
123
-          <el-form-item label="技术质量与安全部审核意见" prop="technicalComment">
124
-            <el-input type="textarea" v-model="form.technicalComment" :autosize="{ minRows: 4 }" placeholder="请输入技术质量与安全部审核意见"
123
+          <el-form-item label="技术方案审核意见" prop="technicalComment">
124
+            <el-input type="textarea" v-model="form.technicalComment" :autosize="{ minRows: 4 }" placeholder="请输入技术方案审核意见"
125
               :disabled="taskName != '技术审核'" />
125
               :disabled="taskName != '技术审核'" />
126
           </el-form-item>
126
           </el-form-item>
127
           <el-row>
127
           <el-row>
128
             <el-col :span="6" :xs="24" :offset="12">
128
             <el-col :span="6" :xs="24" :offset="12">
129
-              <el-form-item label="签名" prop="technicalPlanner" v-if="showFormItem('技术审核')">
130
-                <span class="auditor"> {{ form.planUser ? form.planUser.nickName : planUser }} </span>
129
+              <el-form-item label="签名" prop="technicalAuditor" v-if="showFormItem('技术审核')">
130
+                <span class="auditor"> {{ form.auditUser ? form.auditUser.nickName : auditUser }} </span>
131
               </el-form-item>
131
               </el-form-item>
132
             </el-col>
132
             </el-col>
133
             <el-col :span="6">
133
             <el-col :span="6">
183
         </el-card>
183
         </el-card>
184
       </el-col>
184
       </el-col>
185
     </el-row>
185
     </el-row>
186
+    <el-dialog :title="completeTitle" :visible.sync="completeOpen" width="60%" append-to-body>
187
+      <el-form ref="taskForm" :model="taskForm">
188
+        <el-form-item prop="targetKey">
189
+          <flow-user v-if="checkSendUser" :checkType="checkType" @handleUserSelect="handleUserSelect"></flow-user>
190
+        </el-form-item>
191
+      </el-form>
192
+      <span slot="footer" class="dialog-footer">
193
+        <el-button @click="completeOpen = false">取 消</el-button>
194
+        <el-button type="primary" @click="taskComplete">确 定</el-button>
195
+      </span>
196
+    </el-dialog>
186
   </div>
197
   </div>
187
 </template>
198
 </template>
188
 
199
 
191
 import { listTechnicalPlan, getTechnicalPlan, delTechnicalPlan, addTechnicalPlan, updateTechnicalPlan } from "@/api/oa/technical/technicalPlan";
202
 import { listTechnicalPlan, getTechnicalPlan, delTechnicalPlan, addTechnicalPlan, updateTechnicalPlan } from "@/api/oa/technical/technicalPlan";
192
 import { getProject } from "@/api/oa/project/project";
203
 import { getProject } from "@/api/oa/project/project";
193
 import { listUser } from '@/api/system/user';
204
 import { listUser } from '@/api/system/user';
205
+import FlowUser from '@/components/flow/User';
194
 import flow from '@/views/flowable/task/todo/detail/flow';
206
 import flow from '@/views/flowable/task/todo/detail/flow';
195
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
207
 import { complete, getNextFlowNode } from "@/api/flowable/todo";
196
 import { flowXmlAndNode } from "@/api/flowable/definition";
208
 import { flowXmlAndNode } from "@/api/flowable/definition";
198
 
210
 
199
 export default {
211
 export default {
200
   components: {
212
   components: {
213
+    FlowUser,
201
     flow
214
     flow
202
   },
215
   },
203
   name: "Technical",
216
   name: "Technical",
216
       planUser: '',
229
       planUser: '',
217
       managerUser: '',
230
       managerUser: '',
218
       designUser: '',
231
       designUser: '',
232
+      auditUser: '',
219
       technicalTime: undefined,
233
       technicalTime: undefined,
220
       technicalUploadTime: undefined,
234
       technicalUploadTime: undefined,
221
       techApprovalTime: undefined,
235
       techApprovalTime: undefined,
246
         technicalDirector: null,
260
         technicalDirector: null,
247
         technicalDesigner: null,
261
         technicalDesigner: null,
248
         technicalPlanner: null,
262
         technicalPlanner: null,
263
+        technicalAuditor: null,
249
         planComment: null,
264
         planComment: null,
250
         qualityInspector: null,
265
         qualityInspector: null,
251
         technicalTime: null,
266
         technicalTime: null,
271
       form: {},
286
       form: {},
272
       formTotal: 0,
287
       formTotal: 0,
273
       flowData: {},
288
       flowData: {},
289
+      checkSendUser: false,
290
+      completeOpen: false,
291
+      completeTitle: '',
292
+      checkType: 'single',
274
       isDocumentValid: true
293
       isDocumentValid: true
275
     };
294
     };
276
   },
295
   },
284
       this.technicalUploadTime = parseTime(new Date(), '{y}-{m}-{d}')
303
       this.technicalUploadTime = parseTime(new Date(), '{y}-{m}-{d}')
285
     }
304
     }
286
     if (this.taskName == '技术审核') {
305
     if (this.taskName == '技术审核') {
287
-      this.planUser = this.$store.getters.name;
306
+      this.auditUser = this.$store.getters.name;
288
       this.techApprovalTime = parseTime(new Date(), '{y}-{m}-{d}')
307
       this.techApprovalTime = parseTime(new Date(), '{y}-{m}-{d}')
289
     }
308
     }
290
     if (this.taskName == '总工审核') {
309
     if (this.taskName == '总工审核') {
407
       }
426
       }
408
       return true;
427
       return true;
409
     },
428
     },
429
+    // 用户信息选中数据
430
+    handleUserSelect(selection) {
431
+      if (selection) {
432
+        //不多选
433
+        this.$set(this.taskForm.variables, "approval", selection.userId.toString());
434
+      }
435
+    },
436
+    /** 用户审批任务 */
437
+    taskComplete() {
438
+      if (!this.taskForm.variables && this.checkSendUser) {
439
+        this.$modal.msgError("请选择流程接收人员!");
440
+        return;
441
+      }
442
+      if (this.taskForm) {
443
+        complete(this.taskForm).then(response => {
444
+          this.$modal.msgSuccess(response.msg);
445
+          this.$emit('goBack')
446
+        });
447
+      }
448
+    },
410
     validateDocument(doc) {
449
     validateDocument(doc) {
411
       // 这里添加你的验证逻辑  
450
       // 这里添加你的验证逻辑  
412
       // 例如,检查tenderId是否为空或者是否符合其他规则  
451
       // 例如,检查tenderId是否为空或者是否符合其他规则  
435
             });
474
             });
436
             const params = { taskId: this.taskForm.taskId };
475
             const params = { taskId: this.taskForm.taskId };
437
             getNextFlowNode(params).then(res => {
476
             getNextFlowNode(params).then(res => {
438
-              if (this.taskName == '方案上传') {
439
-                this.$set(this.taskForm.variables, "approval", this.form.technicalPlanner);
440
-                complete(this.taskForm).then(response => {
441
-                  this.$modal.msgSuccess(response.msg);
442
-                  this.$emit('goBack')
443
-                });
477
+              if (this.taskName == '方案上传') {                
478
+                this.checkSendUser = true;
479
+                this.completeOpen = true;
480
+                this.completeTitle = "流程审批";
444
               }
481
               }
445
               else if (this.taskName == '技术审核') {
482
               else if (this.taskName == '技术审核') {
446
                 getUsersManageLeaderByDept({ deptId: 110 }).then(res => {
483
                 getUsersManageLeaderByDept({ deptId: 110 }).then(res => {

+ 2
- 1
oa-ui/vue.config.js Parādīt failu

35
     proxy: {
35
     proxy: {
36
       // detail: https://cli.vuejs.org/config/#devserver-proxy
36
       // detail: https://cli.vuejs.org/config/#devserver-proxy
37
       [process.env.VUE_APP_BASE_API]: {
37
       [process.env.VUE_APP_BASE_API]: {
38
-        target: `http://localhost:8080`,
38
+        target: `http://localhost:8086`,
39
+        // target: `http://localhost:8080`,
39
         changeOrigin: true,
40
         changeOrigin: true,
40
         pathRewrite: {
41
         pathRewrite: {
41
           ['^' + process.env.VUE_APP_BASE_API]: ''
42
           ['^' + process.env.VUE_APP_BASE_API]: ''

Notiek ielāde…
Atcelt
Saglabāt