瀏覽代碼

合同线上评审

lamphua 1 年之前
父節點
當前提交
ce9e81592d
共有 34 個檔案被更改,包括 439 行新增231 行删除
  1. 9
    6
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java
  2. 9
    6
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractMeetingController.java
  3. 9
    6
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java
  4. 9
    6
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java
  5. 13
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java
  6. 13
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java
  7. 13
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java
  8. 56
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java
  9. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractCommentMapper.java
  10. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractMeetingMapper.java
  11. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractPaymentMapper.java
  12. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractWorkMapper.java
  13. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractCommentService.java
  14. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractMeetingService.java
  15. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractPaymentService.java
  16. 6
    6
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractWorkService.java
  17. 9
    9
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractCommentServiceImpl.java
  18. 9
    9
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractMeetingServiceImpl.java
  19. 9
    9
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractPaymentServiceImpl.java
  20. 9
    9
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractWorkServiceImpl.java
  21. 6
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcBorrowMapper.xml
  22. 13
    9
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml
  23. 6
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml
  24. 13
    9
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml
  25. 8
    8
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml
  26. 8
    8
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml
  27. 21
    2
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml
  28. 19
    12
      oa-back/sql/sql.sql
  29. 4
    4
      oa-ui/src/api/oa/contract/contractComment.js
  30. 4
    4
      oa-ui/src/api/oa/contract/contractMeeting.js
  31. 4
    4
      oa-ui/src/api/oa/contract/contractPayment.js
  32. 4
    4
      oa-ui/src/api/oa/contract/contractWork.js
  33. 6
    0
      oa-ui/src/api/oa/contract/projectContract.js
  34. 108
    56
      oa-ui/src/views/flowable/form/contractForm.vue

+ 9
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java 查看文件

@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5 7
 import org.springframework.security.access.prepost.PreAuthorize;
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
@@ -60,10 +62,10 @@ public class CmcContractCommentController extends BaseController
60 62
     /**
61 63
      * 获取cmc合同意见详细信息
62 64
      */
63
-    @GetMapping(value = "/{commentId}")
64
-    public AjaxResult getInfo(@PathVariable("commentId") String commentId)
65
+    @GetMapping(value = "/{contractId}")
66
+    public AjaxResult getInfo(@PathVariable("contractId") String contractId)
65 67
     {
66
-        return success(cmcContractCommentService.selectCmcContractCommentByCommentId(commentId));
68
+        return success(cmcContractCommentService.selectCmcContractCommentByContractId(contractId));
67 69
     }
68 70
 
69 71
     /**
@@ -73,6 +75,7 @@ public class CmcContractCommentController extends BaseController
73 75
     @PostMapping
74 76
     public AjaxResult add(@RequestBody CmcContractComment cmcContractComment)
75 77
     {
78
+        cmcContractComment.setCommentId(new SnowFlake().generateId());
76 79
         return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
77 80
     }
78 81
 
@@ -90,9 +93,9 @@ public class CmcContractCommentController extends BaseController
90 93
      * 删除cmc合同意见
91 94
      */
92 95
     @Log(title = "cmc合同意见", businessType = BusinessType.DELETE)
93
-	@DeleteMapping("/{commentIds}")
94
-    public AjaxResult remove(@PathVariable String[] commentIds)
96
+	@DeleteMapping("/{contractIds}")
97
+    public AjaxResult remove(@PathVariable String[] contractIds)
95 98
     {
96
-        return toAjax(cmcContractCommentService.deleteCmcContractCommentByCommentIds(commentIds));
99
+        return toAjax(cmcContractCommentService.deleteCmcContractCommentByContractIds(contractIds));
97 100
     }
98 101
 }

+ 9
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractMeetingController.java 查看文件

@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5 7
 import org.springframework.security.access.prepost.PreAuthorize;
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
@@ -60,10 +62,10 @@ public class CmcContractMeetingController extends BaseController
60 62
     /**
61 63
      * 获取cmc合同会审详细信息
62 64
      */
63
-    @GetMapping(value = "/{meetingId}")
64
-    public AjaxResult getInfo(@PathVariable("meetingId") String meetingId)
65
+    @GetMapping(value = "/{contractId}")
66
+    public AjaxResult getInfo(@PathVariable("contractId") String contractId)
65 67
     {
66
-        return success(cmcContractMeetingService.selectCmcContractMeetingByMeetingId(meetingId));
68
+        return success(cmcContractMeetingService.selectCmcContractMeetingByContractId(contractId));
67 69
     }
68 70
 
69 71
     /**
@@ -73,6 +75,7 @@ public class CmcContractMeetingController extends BaseController
73 75
     @PostMapping
74 76
     public AjaxResult add(@RequestBody CmcContractMeeting cmcContractMeeting)
75 77
     {
78
+        cmcContractMeeting.setMeetingId(new SnowFlake().generateId());
76 79
         return toAjax(cmcContractMeetingService.insertCmcContractMeeting(cmcContractMeeting));
77 80
     }
78 81
 
@@ -90,9 +93,9 @@ public class CmcContractMeetingController extends BaseController
90 93
      * 删除cmc合同会审
91 94
      */
92 95
     @Log(title = "cmc合同会审", businessType = BusinessType.DELETE)
93
-	@DeleteMapping("/{meetingIds}")
94
-    public AjaxResult remove(@PathVariable String[] meetingIds)
96
+	@DeleteMapping("/{contractIds}")
97
+    public AjaxResult remove(@PathVariable String[] contractIds)
95 98
     {
96
-        return toAjax(cmcContractMeetingService.deleteCmcContractMeetingByMeetingIds(meetingIds));
99
+        return toAjax(cmcContractMeetingService.deleteCmcContractMeetingByContractIds(contractIds));
97 100
     }
98 101
 }

+ 9
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java 查看文件

@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5 7
 import org.springframework.security.access.prepost.PreAuthorize;
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
@@ -60,10 +62,10 @@ public class CmcContractPaymentController extends BaseController
60 62
     /**
61 63
      * 获取cmc合同回款详细信息
62 64
      */
63
-    @GetMapping(value = "/{paymentId}")
64
-    public AjaxResult getInfo(@PathVariable("paymentId") String paymentId)
65
+    @GetMapping(value = "/{contractId}")
66
+    public AjaxResult getInfo(@PathVariable("contractId") String contractId)
65 67
     {
66
-        return success(cmcContractPaymentService.selectCmcContractPaymentByPaymentId(paymentId));
68
+        return success(cmcContractPaymentService.selectCmcContractPaymentByContractId(contractId));
67 69
     }
68 70
 
69 71
     /**
@@ -73,6 +75,7 @@ public class CmcContractPaymentController extends BaseController
73 75
     @PostMapping
74 76
     public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment)
75 77
     {
78
+        cmcContractPayment.setPaymentId(new SnowFlake().generateId());
76 79
         return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
77 80
     }
78 81
 
@@ -90,9 +93,9 @@ public class CmcContractPaymentController extends BaseController
90 93
      * 删除cmc合同回款
91 94
      */
92 95
     @Log(title = "cmc合同回款", businessType = BusinessType.DELETE)
93
-	@DeleteMapping("/{paymentIds}")
94
-    public AjaxResult remove(@PathVariable String[] paymentIds)
96
+	@DeleteMapping("/{contractIds}")
97
+    public AjaxResult remove(@PathVariable String[] contractIds)
95 98
     {
96
-        return toAjax(cmcContractPaymentService.deleteCmcContractPaymentByPaymentIds(paymentIds));
99
+        return toAjax(cmcContractPaymentService.deleteCmcContractPaymentByContractIds(contractIds));
97 100
     }
98 101
 }

+ 9
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java 查看文件

@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5 7
 import org.springframework.security.access.prepost.PreAuthorize;
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
@@ -60,10 +62,10 @@ public class CmcContractWorkController extends BaseController
60 62
     /**
61 63
      * 获取cmc合同内容详细信息
62 64
      */
63
-    @GetMapping(value = "/{workId}")
64
-    public AjaxResult getInfo(@PathVariable("workId") String workId)
65
+    @GetMapping(value = "/{contractId}")
66
+    public AjaxResult getInfo(@PathVariable("contractId") String contractId)
65 67
     {
66
-        return success(cmcContractWorkService.selectCmcContractWorkByWorkId(workId));
68
+        return success(cmcContractWorkService.selectCmcContractWorkByContractId(contractId));
67 69
     }
68 70
 
69 71
     /**
@@ -73,6 +75,7 @@ public class CmcContractWorkController extends BaseController
73 75
     @PostMapping
74 76
     public AjaxResult add(@RequestBody CmcContractWork cmcContractWork)
75 77
     {
78
+        cmcContractWork.setWorkId(new SnowFlake().generateId());
76 79
         return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
77 80
     }
78 81
 
@@ -90,9 +93,9 @@ public class CmcContractWorkController extends BaseController
90 93
      * 删除cmc合同内容
91 94
      */
92 95
     @Log(title = "cmc合同内容", businessType = BusinessType.DELETE)
93
-	@DeleteMapping("/{workIds}")
94
-    public AjaxResult remove(@PathVariable String[] workIds)
96
+	@DeleteMapping("/{contractIds}")
97
+    public AjaxResult remove(@PathVariable String[] contractIds)
95 98
     {
96
-        return toAjax(cmcContractWorkService.deleteCmcContractWorkByWorkIds(workIds));
99
+        return toAjax(cmcContractWorkService.deleteCmcContractWorkByContractIds(contractIds));
97 100
     }
98 101
 }

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

@@ -22,6 +22,10 @@ public class CmcContract extends BaseEntity
22 22
     /** 合同id(ht2024w002) */
23 23
     private String contractId;
24 24
 
25
+    /** 合同编码 */
26
+    @Excel(name = "合同编码")
27
+    private String contractCode;
28
+
25 29
     /** 合同编号 */
26 30
     @Excel(name = "合同编号")
27 31
     private String contractNumber;
@@ -93,6 +97,15 @@ public class CmcContract extends BaseEntity
93 97
     {
94 98
         return contractId;
95 99
     }
100
+    public void setContractCode(String contractCode)
101
+    {
102
+        this.contractCode = contractCode;
103
+    }
104
+
105
+    public String getContractCode()
106
+    {
107
+        return contractCode;
108
+    }
96 109
     public void setContractNumber(String contractNumber)
97 110
     {
98 111
         this.contractNumber = contractNumber;

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

@@ -24,6 +24,10 @@ public class CmcContractComment extends BaseEntity
24 24
     @Excel(name = "合同id")
25 25
     private String contractId;
26 26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27 31
     /** 会审部门 */
28 32
     @Excel(name = "会审部门")
29 33
     private Long deptId;
@@ -63,6 +67,15 @@ public class CmcContractComment extends BaseEntity
63 67
     {
64 68
         return contractId;
65 69
     }
70
+    public void setSubContractId(String subContractId)
71
+    {
72
+        this.subContractId = subContractId;
73
+    }
74
+
75
+    public String getSubContractId()
76
+    {
77
+        return subContractId;
78
+    }
66 79
     public void setDeptId(Long deptId)
67 80
     {
68 81
         this.deptId = deptId;

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

@@ -24,6 +24,10 @@ public class CmcContractMeeting extends BaseEntity
24 24
     @Excel(name = "合同id")
25 25
     private String contractId;
26 26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27 31
     /** 评审时间 */
28 32
     @JsonFormat(pattern = "yyyy-MM-dd")
29 33
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
@@ -72,6 +76,15 @@ public class CmcContractMeeting extends BaseEntity
72 76
     {
73 77
         return contractId;
74 78
     }
79
+    public void setSubContractId(String subContractId)
80
+    {
81
+        this.subContractId = subContractId;
82
+    }
83
+
84
+    public String getSubContractId()
85
+    {
86
+        return subContractId;
87
+    }
75 88
     public void setMeetingTime(Date meetingTime)
76 89
     {
77 90
         this.meetingTime = meetingTime;

+ 56
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java 查看文件

@@ -19,7 +19,7 @@ public class CmcSubContract extends BaseEntity
19 19
 {
20 20
     private static final long serialVersionUID = 1L;
21 21
 
22
-    /** 分包合同id(ht2024w002) */
22
+    /** 分包合同id */
23 23
     private String subContractId;
24 24
 
25 25
     /** 主合同id */
@@ -48,6 +48,8 @@ public class CmcSubContract extends BaseEntity
48 48
 
49 49
     private SysUser draftUser;
50 50
 
51
+    private SysUser managerUser;
52
+
51 53
     /** 拟稿日期 */
52 54
     @JsonFormat(pattern = "yyyy-MM-dd")
53 55
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
@@ -70,6 +72,19 @@ public class CmcSubContract extends BaseEntity
70 72
     @Excel(name = "评审方式")
71 73
     private String commentType;
72 74
 
75
+    /** 分管审批意见 */
76
+    @Excel(name = "分管审批意见")
77
+    private String managerComment;
78
+
79
+    /** 分管审批人 */
80
+    @Excel(name = "分管审批人")
81
+    private Long managerUserId;
82
+
83
+    /** 分管审批日期 */
84
+    @JsonFormat(pattern = "yyyy-MM-dd")
85
+    @Excel(name = "分管审批日期", width = 30, dateFormat = "yyyy-MM-dd")
86
+    private Date managerTime;
87
+
73 88
     public void setSubContractId(String subContractId) 
74 89
     {
75 90
         this.subContractId = subContractId;
@@ -142,6 +157,15 @@ public class CmcSubContract extends BaseEntity
142 157
     {
143 158
         return draftUser;
144 159
     }
160
+    public void setManagerUser(SysUser managerUser)
161
+    {
162
+        this.managerUser = managerUser;
163
+    }
164
+
165
+    public SysUser getManagerUser()
166
+    {
167
+        return managerUser;
168
+    }
145 169
     public void setDraftTime(Date draftTime) 
146 170
     {
147 171
         this.draftTime = draftTime;
@@ -188,6 +212,34 @@ public class CmcSubContract extends BaseEntity
188 212
         return commentType;
189 213
     }
190 214
 
215
+    public void setManagerComment(String managerComment)
216
+    {
217
+        this.managerComment = managerComment;
218
+    }
219
+
220
+    public String getManagerComment()
221
+    {
222
+        return managerComment;
223
+    }
224
+    public void setManagerUserId(Long managerUserId)
225
+    {
226
+        this.managerUserId = managerUserId;
227
+    }
228
+
229
+    public Long getManagerUserId()
230
+    {
231
+        return managerUserId;
232
+    }
233
+    public void setManagerTime(Date managerTime)
234
+    {
235
+        this.managerTime = managerTime;
236
+    }
237
+
238
+    public Date getManagerTime()
239
+    {
240
+        return managerTime;
241
+    }
242
+
191 243
     @Override
192 244
     public String toString() {
193 245
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -204,6 +256,9 @@ public class CmcSubContract extends BaseEntity
204 256
             .append("signRemark", getSignRemark())
205 257
             .append("signScan", getSignScan())
206 258
             .append("commentType", getCommentType())
259
+                .append("managerComment", getManagerComment())
260
+                .append("managerUserId", getManagerUserId())
261
+                .append("managerTime", getManagerTime())
207 262
             .toString();
208 263
     }
209 264
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractCommentMapper.java 查看文件

@@ -14,10 +14,10 @@ public interface CmcContractCommentMapper
14 14
     /**
15 15
      * 查询cmc合同意见
16 16
      * 
17
-     * @param commentId cmc合同意见主键
17
+     * @param contractId cmc合同意见主键
18 18
      * @return cmc合同意见
19 19
      */
20
-    public CmcContractComment selectCmcContractCommentByCommentId(String commentId);
20
+    public List<CmcContractComment> selectCmcContractCommentByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同意见列表
@@ -46,16 +46,16 @@ public interface CmcContractCommentMapper
46 46
     /**
47 47
      * 删除cmc合同意见
48 48
      * 
49
-     * @param commentId cmc合同意见主键
49
+     * @param contractId cmc合同意见主键
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractCommentByCommentId(String commentId);
52
+    public int deleteCmcContractCommentByContractId(String contractId);
53 53
 
54 54
     /**
55 55
      * 批量删除cmc合同意见
56 56
      * 
57
-     * @param commentIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractCommentByCommentIds(String[] commentIds);
60
+    public int deleteCmcContractCommentByContractIds(String[] contractIds);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractMeetingMapper.java 查看文件

@@ -14,10 +14,10 @@ public interface CmcContractMeetingMapper
14 14
     /**
15 15
      * 查询cmc合同会审
16 16
      * 
17
-     * @param meetingId cmc合同会审主键
17
+     * @param contractId cmc合同会审主键
18 18
      * @return cmc合同会审
19 19
      */
20
-    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
20
+    public CmcContractMeeting selectCmcContractMeetingByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同会审列表
@@ -46,16 +46,16 @@ public interface CmcContractMeetingMapper
46 46
     /**
47 47
      * 删除cmc合同会审
48 48
      * 
49
-     * @param meetingId cmc合同会审主键
49
+     * @param contractId cmc合同会审主键
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractMeetingByMeetingId(String meetingId);
52
+    public int deleteCmcContractMeetingByContractId(String contractId);
53 53
 
54 54
     /**
55 55
      * 批量删除cmc合同会审
56 56
      * 
57
-     * @param meetingIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds);
60
+    public int deleteCmcContractMeetingByContractIds(String[] contractIds);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractPaymentMapper.java 查看文件

@@ -14,10 +14,10 @@ public interface CmcContractPaymentMapper
14 14
     /**
15 15
      * 查询cmc合同回款
16 16
      * 
17
-     * @param paymentId cmc合同回款主键
17
+     * @param contractId cmc合同回款主键
18 18
      * @return cmc合同回款
19 19
      */
20
-    public CmcContractPayment selectCmcContractPaymentByPaymentId(String paymentId);
20
+    public List<CmcContractPayment> selectCmcContractPaymentByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同回款列表
@@ -46,16 +46,16 @@ public interface CmcContractPaymentMapper
46 46
     /**
47 47
      * 删除cmc合同回款
48 48
      * 
49
-     * @param paymentId cmc合同回款主键
49
+     * @param contractId cmc合同回款主键
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractPaymentByPaymentId(String paymentId);
52
+    public int deleteCmcContractPaymentByContractId(String contractId);
53 53
 
54 54
     /**
55 55
      * 批量删除cmc合同回款
56 56
      * 
57
-     * @param paymentIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractPaymentByPaymentIds(String[] paymentIds);
60
+    public int deleteCmcContractPaymentByContractIds(String[] contractIds);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractWorkMapper.java 查看文件

@@ -14,10 +14,10 @@ public interface CmcContractWorkMapper
14 14
     /**
15 15
      * 查询cmc合同内容
16 16
      * 
17
-     * @param workId cmc合同内容主键
17
+     * @param contractId cmc合同内容主键
18 18
      * @return cmc合同内容
19 19
      */
20
-    public CmcContractWork selectCmcContractWorkByWorkId(String workId);
20
+    public List<CmcContractWork> selectCmcContractWorkByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同内容列表
@@ -46,16 +46,16 @@ public interface CmcContractWorkMapper
46 46
     /**
47 47
      * 删除cmc合同内容
48 48
      * 
49
-     * @param workId cmc合同内容主键
49
+     * @param contractId cmc合同内容主键
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractWorkByWorkId(String workId);
52
+    public int deleteCmcContractWorkByContractId(String contractId);
53 53
 
54 54
     /**
55 55
      * 批量删除cmc合同内容
56 56
      * 
57
-     * @param workIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractWorkByWorkIds(String[] workIds);
60
+    public int deleteCmcContractWorkByContractIds(String[] contractIds);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractCommentService.java 查看文件

@@ -14,10 +14,10 @@ public interface ICmcContractCommentService
14 14
     /**
15 15
      * 查询cmc合同意见
16 16
      * 
17
-     * @param commentId cmc合同意见主键
17
+     * @param contractId cmc合同意见主键
18 18
      * @return cmc合同意见
19 19
      */
20
-    public CmcContractComment selectCmcContractCommentByCommentId(String commentId);
20
+    public List<CmcContractComment> selectCmcContractCommentByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同意见列表
@@ -46,16 +46,16 @@ public interface ICmcContractCommentService
46 46
     /**
47 47
      * 批量删除cmc合同意见
48 48
      * 
49
-     * @param commentIds 需要删除的cmc合同意见主键集合
49
+     * @param contractIds 需要删除的cmc合同意见主键集合
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractCommentByCommentIds(String[] commentIds);
52
+    public int deleteCmcContractCommentByContractIds(String[] contractIds);
53 53
 
54 54
     /**
55 55
      * 删除cmc合同意见信息
56 56
      * 
57
-     * @param commentId cmc合同意见主键
57
+     * @param contractId cmc合同意见主键
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractCommentByCommentId(String commentId);
60
+    public int deleteCmcContractCommentByContractId(String contractId);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractMeetingService.java 查看文件

@@ -14,10 +14,10 @@ public interface ICmcContractMeetingService
14 14
     /**
15 15
      * 查询cmc合同会审
16 16
      * 
17
-     * @param meetingId cmc合同会审主键
17
+     * @param contractId cmc合同会审主键
18 18
      * @return cmc合同会审
19 19
      */
20
-    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
20
+    public CmcContractMeeting selectCmcContractMeetingByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同会审列表
@@ -46,16 +46,16 @@ public interface ICmcContractMeetingService
46 46
     /**
47 47
      * 批量删除cmc合同会审
48 48
      * 
49
-     * @param meetingIds 需要删除的cmc合同会审主键集合
49
+     * @param contractIds 需要删除的cmc合同会审主键集合
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds);
52
+    public int deleteCmcContractMeetingByContractIds(String[] contractIds);
53 53
 
54 54
     /**
55 55
      * 删除cmc合同会审信息
56 56
      * 
57
-     * @param meetingId cmc合同会审主键
57
+     * @param contractId cmc合同会审主键
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractMeetingByMeetingId(String meetingId);
60
+    public int deleteCmcContractMeetingByContractId(String contractId);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractPaymentService.java 查看文件

@@ -14,10 +14,10 @@ public interface ICmcContractPaymentService
14 14
     /**
15 15
      * 查询cmc合同回款
16 16
      * 
17
-     * @param paymentId cmc合同回款主键
17
+     * @param contractId cmc合同回款主键
18 18
      * @return cmc合同回款
19 19
      */
20
-    public CmcContractPayment selectCmcContractPaymentByPaymentId(String paymentId);
20
+    public List<CmcContractPayment> selectCmcContractPaymentByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同回款列表
@@ -46,16 +46,16 @@ public interface ICmcContractPaymentService
46 46
     /**
47 47
      * 批量删除cmc合同回款
48 48
      * 
49
-     * @param paymentIds 需要删除的cmc合同回款主键集合
49
+     * @param contractIds 需要删除的cmc合同回款主键集合
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractPaymentByPaymentIds(String[] paymentIds);
52
+    public int deleteCmcContractPaymentByContractIds(String[] contractIds);
53 53
 
54 54
     /**
55 55
      * 删除cmc合同回款信息
56 56
      * 
57
-     * @param paymentId cmc合同回款主键
57
+     * @param contractId cmc合同回款主键
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractPaymentByPaymentId(String paymentId);
60
+    public int deleteCmcContractPaymentByContractId(String contractId);
61 61
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractWorkService.java 查看文件

@@ -14,10 +14,10 @@ public interface ICmcContractWorkService
14 14
     /**
15 15
      * 查询cmc合同内容
16 16
      * 
17
-     * @param workId cmc合同内容主键
17
+     * @param contractId cmc合同内容主键
18 18
      * @return cmc合同内容
19 19
      */
20
-    public CmcContractWork selectCmcContractWorkByWorkId(String workId);
20
+    public List<CmcContractWork> selectCmcContractWorkByContractId(String contractId);
21 21
 
22 22
     /**
23 23
      * 查询cmc合同内容列表
@@ -46,16 +46,16 @@ public interface ICmcContractWorkService
46 46
     /**
47 47
      * 批量删除cmc合同内容
48 48
      * 
49
-     * @param workIds 需要删除的cmc合同内容主键集合
49
+     * @param contractIds 需要删除的cmc合同内容主键集合
50 50
      * @return 结果
51 51
      */
52
-    public int deleteCmcContractWorkByWorkIds(String[] workIds);
52
+    public int deleteCmcContractWorkByContractIds(String[] contractIds);
53 53
 
54 54
     /**
55 55
      * 删除cmc合同内容信息
56 56
      * 
57
-     * @param workId cmc合同内容主键
57
+     * @param contractId cmc合同内容主键
58 58
      * @return 结果
59 59
      */
60
-    public int deleteCmcContractWorkByWorkId(String workId);
60
+    public int deleteCmcContractWorkByContractId(String contractId);
61 61
 }

+ 9
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractCommentServiceImpl.java 查看文件

@@ -22,13 +22,13 @@ public class CmcContractCommentServiceImpl implements ICmcContractCommentService
22 22
     /**
23 23
      * 查询cmc合同意见
24 24
      * 
25
-     * @param commentId cmc合同意见主键
25
+     * @param contractId cmc合同意见主键
26 26
      * @return cmc合同意见
27 27
      */
28 28
     @Override
29
-    public CmcContractComment selectCmcContractCommentByCommentId(String commentId)
29
+    public List<CmcContractComment> selectCmcContractCommentByContractId(String contractId)
30 30
     {
31
-        return cmcContractCommentMapper.selectCmcContractCommentByCommentId(commentId);
31
+        return cmcContractCommentMapper.selectCmcContractCommentByContractId(contractId);
32 32
     }
33 33
 
34 34
     /**
@@ -70,24 +70,24 @@ public class CmcContractCommentServiceImpl implements ICmcContractCommentService
70 70
     /**
71 71
      * 批量删除cmc合同意见
72 72
      * 
73
-     * @param commentIds 需要删除的cmc合同意见主键
73
+     * @param contractIds 需要删除的cmc合同意见主键
74 74
      * @return 结果
75 75
      */
76 76
     @Override
77
-    public int deleteCmcContractCommentByCommentIds(String[] commentIds)
77
+    public int deleteCmcContractCommentByContractIds(String[] contractIds)
78 78
     {
79
-        return cmcContractCommentMapper.deleteCmcContractCommentByCommentIds(commentIds);
79
+        return cmcContractCommentMapper.deleteCmcContractCommentByContractIds(contractIds);
80 80
     }
81 81
 
82 82
     /**
83 83
      * 删除cmc合同意见信息
84 84
      * 
85
-     * @param commentId cmc合同意见主键
85
+     * @param contractId cmc合同意见主键
86 86
      * @return 结果
87 87
      */
88 88
     @Override
89
-    public int deleteCmcContractCommentByCommentId(String commentId)
89
+    public int deleteCmcContractCommentByContractId(String contractId)
90 90
     {
91
-        return cmcContractCommentMapper.deleteCmcContractCommentByCommentId(commentId);
91
+        return cmcContractCommentMapper.deleteCmcContractCommentByContractId(contractId);
92 92
     }
93 93
 }

+ 9
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractMeetingServiceImpl.java 查看文件

@@ -22,13 +22,13 @@ public class CmcContractMeetingServiceImpl implements ICmcContractMeetingService
22 22
     /**
23 23
      * 查询cmc合同会审
24 24
      * 
25
-     * @param meetingId cmc合同会审主键
25
+     * @param contractId cmc合同会审主键
26 26
      * @return cmc合同会审
27 27
      */
28 28
     @Override
29
-    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId)
29
+    public CmcContractMeeting selectCmcContractMeetingByContractId(String contractId)
30 30
     {
31
-        return cmcContractMeetingMapper.selectCmcContractMeetingByMeetingId(meetingId);
31
+        return cmcContractMeetingMapper.selectCmcContractMeetingByContractId(contractId);
32 32
     }
33 33
 
34 34
     /**
@@ -70,24 +70,24 @@ public class CmcContractMeetingServiceImpl implements ICmcContractMeetingService
70 70
     /**
71 71
      * 批量删除cmc合同会审
72 72
      * 
73
-     * @param meetingIds 需要删除的cmc合同会审主键
73
+     * @param contractIds 需要删除的cmc合同会审主键
74 74
      * @return 结果
75 75
      */
76 76
     @Override
77
-    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds)
77
+    public int deleteCmcContractMeetingByContractIds(String[] contractIds)
78 78
     {
79
-        return cmcContractMeetingMapper.deleteCmcContractMeetingByMeetingIds(meetingIds);
79
+        return cmcContractMeetingMapper.deleteCmcContractMeetingByContractIds(contractIds);
80 80
     }
81 81
 
82 82
     /**
83 83
      * 删除cmc合同会审信息
84 84
      * 
85
-     * @param meetingId cmc合同会审主键
85
+     * @param contractId cmc合同会审主键
86 86
      * @return 结果
87 87
      */
88 88
     @Override
89
-    public int deleteCmcContractMeetingByMeetingId(String meetingId)
89
+    public int deleteCmcContractMeetingByContractId(String contractId)
90 90
     {
91
-        return cmcContractMeetingMapper.deleteCmcContractMeetingByMeetingId(meetingId);
91
+        return cmcContractMeetingMapper.deleteCmcContractMeetingByContractId(contractId);
92 92
     }
93 93
 }

+ 9
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractPaymentServiceImpl.java 查看文件

@@ -22,13 +22,13 @@ public class CmcContractPaymentServiceImpl implements ICmcContractPaymentService
22 22
     /**
23 23
      * 查询cmc合同回款
24 24
      * 
25
-     * @param paymentId cmc合同回款主键
25
+     * @param contractId cmc合同回款主键
26 26
      * @return cmc合同回款
27 27
      */
28 28
     @Override
29
-    public CmcContractPayment selectCmcContractPaymentByPaymentId(String paymentId)
29
+    public List<CmcContractPayment> selectCmcContractPaymentByContractId(String contractId)
30 30
     {
31
-        return cmcContractPaymentMapper.selectCmcContractPaymentByPaymentId(paymentId);
31
+        return cmcContractPaymentMapper.selectCmcContractPaymentByContractId(contractId);
32 32
     }
33 33
 
34 34
     /**
@@ -70,24 +70,24 @@ public class CmcContractPaymentServiceImpl implements ICmcContractPaymentService
70 70
     /**
71 71
      * 批量删除cmc合同回款
72 72
      * 
73
-     * @param paymentIds 需要删除的cmc合同回款主键
73
+     * @param contractIds 需要删除的cmc合同回款主键
74 74
      * @return 结果
75 75
      */
76 76
     @Override
77
-    public int deleteCmcContractPaymentByPaymentIds(String[] paymentIds)
77
+    public int deleteCmcContractPaymentByContractIds(String[] contractIds)
78 78
     {
79
-        return cmcContractPaymentMapper.deleteCmcContractPaymentByPaymentIds(paymentIds);
79
+        return cmcContractPaymentMapper.deleteCmcContractPaymentByContractIds(contractIds);
80 80
     }
81 81
 
82 82
     /**
83 83
      * 删除cmc合同回款信息
84 84
      * 
85
-     * @param paymentId cmc合同回款主键
85
+     * @param contractId cmc合同回款主键
86 86
      * @return 结果
87 87
      */
88 88
     @Override
89
-    public int deleteCmcContractPaymentByPaymentId(String paymentId)
89
+    public int deleteCmcContractPaymentByContractId(String contractId)
90 90
     {
91
-        return cmcContractPaymentMapper.deleteCmcContractPaymentByPaymentId(paymentId);
91
+        return cmcContractPaymentMapper.deleteCmcContractPaymentByContractId(contractId);
92 92
     }
93 93
 }

+ 9
- 9
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractWorkServiceImpl.java 查看文件

@@ -22,13 +22,13 @@ public class CmcContractWorkServiceImpl implements ICmcContractWorkService
22 22
     /**
23 23
      * 查询cmc合同内容
24 24
      * 
25
-     * @param workId cmc合同内容主键
25
+     * @param contractId cmc合同内容主键
26 26
      * @return cmc合同内容
27 27
      */
28 28
     @Override
29
-    public CmcContractWork selectCmcContractWorkByWorkId(String workId)
29
+    public List<CmcContractWork> selectCmcContractWorkByContractId(String contractId)
30 30
     {
31
-        return cmcContractWorkMapper.selectCmcContractWorkByWorkId(workId);
31
+        return cmcContractWorkMapper.selectCmcContractWorkByContractId(contractId);
32 32
     }
33 33
 
34 34
     /**
@@ -70,24 +70,24 @@ public class CmcContractWorkServiceImpl implements ICmcContractWorkService
70 70
     /**
71 71
      * 批量删除cmc合同内容
72 72
      * 
73
-     * @param workIds 需要删除的cmc合同内容主键
73
+     * @param contractIds 需要删除的cmc合同内容主键
74 74
      * @return 结果
75 75
      */
76 76
     @Override
77
-    public int deleteCmcContractWorkByWorkIds(String[] workIds)
77
+    public int deleteCmcContractWorkByContractIds(String[] contractIds)
78 78
     {
79
-        return cmcContractWorkMapper.deleteCmcContractWorkByWorkIds(workIds);
79
+        return cmcContractWorkMapper.deleteCmcContractWorkByContractIds(contractIds);
80 80
     }
81 81
 
82 82
     /**
83 83
      * 删除cmc合同内容信息
84 84
      * 
85
-     * @param workId cmc合同内容主键
85
+     * @param contractId cmc合同内容主键
86 86
      * @return 结果
87 87
      */
88 88
     @Override
89
-    public int deleteCmcContractWorkByWorkId(String workId)
89
+    public int deleteCmcContractWorkByContractId(String contractId)
90 90
     {
91
-        return cmcContractWorkMapper.deleteCmcContractWorkByWorkId(workId);
91
+        return cmcContractWorkMapper.deleteCmcContractWorkByContractId(contractId);
92 92
     }
93 93
 }

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

@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
11 11
         <result property="applier"    column="applier"    />
12 12
         <result property="applyDept"    column="apply_dept"    />
13 13
         <result property="applyDate"    column="apply_date"    />
14
+        <result property="remark"    column="remark"    />
14 15
         <result property="applyAmount"    column="apply_amount"    />
15 16
         <result property="managerAmount"    column="manager_amount"    />
16 17
         <result property="deptComment"    column="dept_comment"    />
@@ -80,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
80 81
     </resultMap>
81 82
 
82 83
     <sql id="selectCmcBorrowVo">
83
-        select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept,
84
+        select b.borrow_id, b.project_id, p.project_number, p.project_name, b.apply_reason, b.applier, u.nick_name as applier_nick_name, d.dept_name, b.apply_dept, b.remark,
84 85
                b.apply_date, b.apply_amount, b.manager_amount, b.dept_comment, b.dept_user_id, u1.nick_name as dept_nick_name, b.xm_user_id, u2.nick_name as xm_nick_name, b.xm_comment,
85 86
                b.manager_comment, b.manager_user_id, u3.nick_name as manager_nick_name, b.zjl_user_id, u4.nick_name as zjl_nick_name, b.zjl_comment, b.cw_user_id, u5.nick_name as cw_nick_name,
86 87
                b.cw_comment, b.dept_time, b.xm_time, b.manager_time, b.zjl_time, b.lend_time from cmc_borrow as b
@@ -101,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
101 102
             <if test="applyReason != null  and applyReason != ''"> and b.apply_reason = #{applyReason}</if>
102 103
             <if test="applyDept != null  and applyDept != ''"> and b.apply_dept = #{applyDept}</if>
103 104
             <if test="applier != null "> and b.applier = #{applier}</if>
105
+            <if test="remark != null "> and b.remark = #{remark}</if>
104 106
             <if test="applyDate != null "> and b.apply_date = #{applyDate}</if>
105 107
             <if test="applyAmount != null "> and b.apply_amount = #{applyAmount}</if>
106 108
             <if test="managerAmount != null "> and b.manager_amount = #{managerAmount}</if>
@@ -134,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
134 136
             <if test="projectId != null">project_id,</if>
135 137
             <if test="applyReason != null">apply_reason,</if>
136 138
             <if test="applier != null">applier,</if>
139
+            <if test="remark != null">remark,</if>
137 140
             <if test="applyDept != null">apply_dept,</if>
138 141
             <if test="applyDate != null">apply_date,</if>
139 142
             <if test="applyAmount != null">apply_amount,</if>
@@ -159,6 +162,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
159 162
             <if test="projectId != null">#{projectId},</if>
160 163
             <if test="applyReason != null">#{applyReason},</if>
161 164
             <if test="applier != null">#{applier},</if>
165
+            <if test="remark != null">#{remark},</if>
162 166
             <if test="applyDept != null">#{applyDept},</if>
163 167
             <if test="applyDate != null">#{applyDate},</if>
164 168
             <if test="applyAmount != null">#{applyAmount},</if>
@@ -187,6 +191,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
187 191
             <if test="projectId != null">project_id = #{projectId},</if>
188 192
             <if test="applyReason != null">apply_reason = #{applyReason},</if>
189 193
             <if test="applier != null">applier = #{applier},</if>
194
+            <if test="remark != null">remark = #{remark},</if>
190 195
             <if test="applyDept != null">apply_dept = #{applyDept},</if>
191 196
             <if test="applyDate != null">apply_date = #{applyDate},</if>
192 197
             <if test="applyAmount != null">apply_amount = #{applyAmount},</if>

+ 13
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml 查看文件

@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
7 7
     <resultMap type="CmcContractComment" id="CmcContractCommentResult">
8 8
         <result property="commentId"    column="comment_id"    />
9 9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10 11
         <result property="deptId"    column="dept_id"    />
11 12
         <result property="userId"    column="user_id"    />
12 13
         <result property="comment"    column="comment"    />
@@ -15,7 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
15 16
     </resultMap>
16 17
 
17 18
     <sql id="selectCmcContractCommentVo">
18
-        select comment_id, contract_id, dept_id, user_id, comment, document, comment_time from cmc_contract_comment
19
+        select comment_id, contract_id, sub_contract_id, dept_id, user_id, comment, document, comment_time from cmc_contract_comment
19 20
     </sql>
20 21
 
21 22
     <select id="selectCmcContractCommentList" parameterType="CmcContractComment" resultMap="CmcContractCommentResult">
@@ -30,9 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
30 31
         </where>
31 32
     </select>
32 33
 
33
-    <select id="selectCmcContractCommentByCommentId" parameterType="String" resultMap="CmcContractCommentResult">
34
+    <select id="selectCmcContractCommentByContractId" parameterType="String" resultMap="CmcContractCommentResult">
34 35
         <include refid="selectCmcContractCommentVo"/>
35
-        where comment_id = #{commentId}
36
+        where contract_id = #{contractId}
36 37
     </select>
37 38
 
38 39
     <insert id="insertCmcContractComment" parameterType="CmcContractComment">
@@ -40,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
40 41
         <trim prefix="(" suffix=")" suffixOverrides=",">
41 42
             <if test="commentId != null">comment_id,</if>
42 43
             <if test="contractId != null">contract_id,</if>
44
+            <if test="subContractId != null">sub_contract_id,</if>
43 45
             <if test="deptId != null">dept_id,</if>
44 46
             <if test="userId != null">user_id,</if>
45 47
             <if test="comment != null">comment,</if>
@@ -49,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
50 52
             <if test="commentId != null">#{commentId},</if>
51 53
             <if test="contractId != null">#{contractId},</if>
54
+            <if test="subContractId != null">#{subContractId},</if>
52 55
             <if test="deptId != null">#{deptId},</if>
53 56
             <if test="userId != null">#{userId},</if>
54 57
             <if test="comment != null">#{comment},</if>
@@ -61,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
61 64
         update cmc_contract_comment
62 65
         <trim prefix="SET" suffixOverrides=",">
63 66
             <if test="contractId != null">contract_id = #{contractId},</if>
67
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
64 68
             <if test="deptId != null">dept_id = #{deptId},</if>
65 69
             <if test="userId != null">user_id = #{userId},</if>
66 70
             <if test="comment != null">comment = #{comment},</if>
@@ -70,14 +74,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
70 74
         where comment_id = #{commentId}
71 75
     </update>
72 76
 
73
-    <delete id="deleteCmcContractCommentByCommentId" parameterType="String">
74
-        delete from cmc_contract_comment where comment_id = #{commentId}
77
+    <delete id="deleteCmcContractCommentByContractId" parameterType="String">
78
+        delete from cmc_contract_comment where contract_id = #{contractId}
75 79
     </delete>
76 80
 
77
-    <delete id="deleteCmcContractCommentByCommentIds" parameterType="String">
78
-        delete from cmc_contract_comment where comment_id in 
79
-        <foreach item="commentId" collection="array" open="(" separator="," close=")">
80
-            #{commentId}
81
+    <delete id="deleteCmcContractCommentByContractIds" parameterType="String">
82
+        delete from cmc_contract_comment where contract_id in 
83
+        <foreach item="contractId" collection="array" open="(" separator="," close=")">
84
+            #{contractId}
81 85
         </foreach>
82 86
     </delete>
83 87
 </mapper>

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

@@ -6,6 +6,7 @@
6 6
 
7 7
     <resultMap type="CmcContract" id="CmcContractResult">
8 8
         <result property="contractId"    column="contract_id"    />
9
+        <result property="contractCode"    column="contract_code"    />
9 10
         <result property="contractNumber"    column="contract_number"    />
10 11
         <result property="tenderId"    column="tender_id"    />
11 12
         <result property="amount"    column="amount"    />
@@ -36,7 +37,7 @@
36 37
     </resultMap>
37 38
 
38 39
     <sql id="selectCmcContractVo">
39
-        select c.contract_id, c.contract_number, c.tender_id, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark,
40
+        select c.contract_id, c.contract_code, c.contract_number, c.tender_id, c.amount, c.deposit, c.contract_document, c.drafter, u.nick_name as draft_nick_name, c.draft_time, c.remark, c.sign_date, c.sign_remark,
40 41
                c.sign_scan, c.comment_type, c.manager_comment, c.manager_user_id, u1.nick_name as manager_nick_name, c.manager_time from cmc_contract as c
41 42
         left join sys_user as u on u.user_id = c.drafter
42 43
         left join sys_user as u1 on u1.user_id = c.manager_user_id
@@ -46,6 +47,7 @@
46 47
         <include refid="selectCmcContractVo"/>
47 48
         <where>
48 49
             <if test="contractId != null  and contractId != ''"> and c.contract_id like concat('%', #{contractId}, '%')</if>
50
+            <if test="contractCode!= null  and contractCode != ''"> and c.contract_code like concat('%', #{contractCode}, '%')</if>
49 51
             <if test="tenderId != null  and tenderId != ''"> and c.tender_id = #{tenderId}</if>
50 52
             <if test="contractNumber != null  and contractNumber != ''"> and c.contract_number = #{contractNumber}</if>
51 53
             <if test="amount != null "> and c.amount = #{amount}</if>
@@ -70,6 +72,7 @@
70 72
         insert into cmc_contract
71 73
         <trim prefix="(" suffix=")" suffixOverrides=",">
72 74
             <if test="contractId != null">contract_id,</if>
75
+            <if test="contractCode != null">contract_code,</if>
73 76
             <if test="tenderId != null">tender_id,</if>
74 77
             <if test="contractNumber != null">contract_number,</if>
75 78
             <if test="amount != null">amount,</if>
@@ -88,6 +91,7 @@
88 91
         </trim>
89 92
         <trim prefix="values (" suffix=")" suffixOverrides=",">
90 93
             <if test="contractId != null">#{contractId},</if>
94
+            <if test="contractCode != null">#{contractCode},</if>
91 95
             <if test="tenderId != null">#{tenderId},</if>
92 96
             <if test="contractNumber != null">#{contractNumber},</if>
93 97
             <if test="amount != null">#{amount},</if>
@@ -109,6 +113,7 @@
109 113
     <update id="updateCmcContract" parameterType="CmcContract">
110 114
         update cmc_contract
111 115
         <trim prefix="SET" suffixOverrides=",">
116
+            <if test="contractCode != null">contract_code = #{contractCode},</if>
112 117
             <if test="tenderId != null">tender_id = #{tenderId},</if>
113 118
             <if test="contractNumber != null">contract_number = #{contractNumber},</if>
114 119
             <if test="amount != null">amount = #{amount},</if>

+ 13
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml 查看文件

@@ -7,6 +7,7 @@
7 7
     <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
8 8
         <result property="meetingId"    column="meeting_id"    />
9 9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10 11
         <result property="meetingTime"    column="meeting_time"    />
11 12
         <result property="hostId"    column="host_id"    />
12 13
         <result property="place"    column="place"    />
@@ -17,7 +18,7 @@
17 18
     </resultMap>
18 19
 
19 20
     <sql id="selectCmcContractMeetingVo">
20
-        select meeting_id, contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
21
+        select meeting_id, contract_id, sub_contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
21 22
     </sql>
22 23
 
23 24
     <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
@@ -34,9 +35,9 @@
34 35
         </where>
35 36
     </select>
36 37
 
37
-    <select id="selectCmcContractMeetingByMeetingId" parameterType="String" resultMap="CmcContractMeetingResult">
38
+    <select id="selectCmcContractMeetingByContractId" parameterType="String" resultMap="CmcContractMeetingResult">
38 39
         <include refid="selectCmcContractMeetingVo"/>
39
-        where meeting_id = #{meetingId}
40
+        where contract_id = #{contractId}
40 41
     </select>
41 42
 
42 43
     <insert id="insertCmcContractMeeting" parameterType="CmcContractMeeting">
@@ -44,6 +45,7 @@
44 45
         <trim prefix="(" suffix=")" suffixOverrides=",">
45 46
             <if test="meetingId != null">meeting_id,</if>
46 47
             <if test="contractId != null">contract_id,</if>
48
+            <if test="subContractId != null">sub_contract_id,</if>
47 49
             <if test="meetingTime != null">meeting_time,</if>
48 50
             <if test="hostId != null">host_id,</if>
49 51
             <if test="place != null">place,</if>
@@ -55,6 +57,7 @@
55 57
         <trim prefix="values (" suffix=")" suffixOverrides=",">
56 58
             <if test="meetingId != null">#{meetingId},</if>
57 59
             <if test="contractId != null">#{contractId},</if>
60
+            <if test="subContractId != null">#{subContractId},</if>
58 61
             <if test="meetingTime != null">#{meetingTime},</if>
59 62
             <if test="hostId != null">#{hostId},</if>
60 63
             <if test="place != null">#{place},</if>
@@ -69,6 +72,7 @@
69 72
         update cmc_contract_meeting
70 73
         <trim prefix="SET" suffixOverrides=",">
71 74
             <if test="contractId != null">contract_id = #{contractId},</if>
75
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
72 76
             <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
73 77
             <if test="hostId != null">host_id = #{hostId},</if>
74 78
             <if test="place != null">place = #{place},</if>
@@ -80,14 +84,14 @@
80 84
         where meeting_id = #{meetingId}
81 85
     </update>
82 86
 
83
-    <delete id="deleteCmcContractMeetingByMeetingId" parameterType="String">
84
-        delete from cmc_contract_meeting where meeting_id = #{meetingId}
87
+    <delete id="deleteCmcContractMeetingByContractId" parameterType="String">
88
+        delete from cmc_contract_meeting where contract_id = #{contractId}
85 89
     </delete>
86 90
 
87
-    <delete id="deleteCmcContractMeetingByMeetingIds" parameterType="String">
88
-        delete from cmc_contract_meeting where meeting_id in
89
-        <foreach item="meetingId" collection="array" open="(" separator="," close=")">
90
-            #{meetingId}
91
+    <delete id="deleteCmcContractMeetingByContractIds" parameterType="String">
92
+        delete from cmc_contract_meeting where contract_id in
93
+        <foreach item="contractId" collection="array" open="(" separator="," close=")">
94
+            #{contractId}
91 95
         </foreach>
92 96
     </delete>
93 97
 </mapper>

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

@@ -31,9 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
31 31
         </where>
32 32
     </select>
33 33
     
34
-    <select id="selectCmcContractPaymentByPaymentId" parameterType="String" resultMap="CmcContractPaymentResult">
34
+    <select id="selectCmcContractPaymentByContractId" parameterType="String" resultMap="CmcContractPaymentResult">
35 35
         <include refid="selectCmcContractPaymentVo"/>
36
-        where payment_id = #{paymentId}
36
+        where contract_id = #{contractId}
37 37
     </select>
38 38
         
39 39
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
@@ -74,14 +74,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
74 74
         where payment_id = #{paymentId}
75 75
     </update>
76 76
 
77
-    <delete id="deleteCmcContractPaymentByPaymentId" parameterType="String">
78
-        delete from cmc_contract_payment where payment_id = #{paymentId}
77
+    <delete id="deleteCmcContractPaymentByContractId" parameterType="String">
78
+        delete from cmc_contract_payment where contract_id = #{contractId}
79 79
     </delete>
80 80
 
81
-    <delete id="deleteCmcContractPaymentByPaymentIds" parameterType="String">
82
-        delete from cmc_contract_payment where payment_id in 
83
-        <foreach item="paymentId" collection="array" open="(" separator="," close=")">
84
-            #{paymentId}
81
+    <delete id="deleteCmcContractPaymentByContractIds" parameterType="String">
82
+        delete from cmc_contract_payment where contract_id in 
83
+        <foreach item="contractId" collection="array" open="(" separator="," close=")">
84
+            #{contractId}
85 85
         </foreach>
86 86
     </delete>
87 87
 </mapper>

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

@@ -33,9 +33,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
33 33
         </where>
34 34
     </select>
35 35
     
36
-    <select id="selectCmcContractWorkByWorkId" parameterType="String" resultMap="CmcContractWorkResult">
36
+    <select id="selectCmcContractWorkByContractId" parameterType="String" resultMap="CmcContractWorkResult">
37 37
         <include refid="selectCmcContractWorkVo"/>
38
-        where work_id = #{workId}
38
+        where contract_id = #{contractId}
39 39
     </select>
40 40
         
41 41
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
@@ -79,14 +79,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
79 79
         where work_id = #{workId}
80 80
     </update>
81 81
 
82
-    <delete id="deleteCmcContractWorkByWorkId" parameterType="String">
83
-        delete from cmc_contract_work where work_id = #{workId}
82
+    <delete id="deleteCmcContractWorkByContractId" parameterType="String">
83
+        delete from cmc_contract_work where contract_id = #{contractId}
84 84
     </delete>
85 85
 
86
-    <delete id="deleteCmcContractWorkByWorkIds" parameterType="String">
87
-        delete from cmc_contract_work where work_id in 
88
-        <foreach item="workId" collection="array" open="(" separator="," close=")">
89
-            #{workId}
86
+    <delete id="deleteCmcContractWorkByContractIds" parameterType="String">
87
+        delete from cmc_contract_work where contract_id in 
88
+        <foreach item="contractId" collection="array" open="(" separator="," close=")">
89
+            #{contractId}
90 90
         </foreach>
91 91
     </delete>
92 92
 </mapper>

+ 21
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml 查看文件

@@ -18,7 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
         <result property="signRemark"    column="sign_remark"    />
19 19
         <result property="signScan"    column="sign_scan"    />
20 20
         <result property="commentType"    column="comment_type"    />
21
+        <result property="managerComment"    column="manager_comment"    />
22
+        <result property="managerUserId"    column="manager_user_id"    />
23
+        <result property="managerTime"    column="manager_time"    />
21 24
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
25
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
22 26
     </resultMap>
23 27
 
24 28
     <resultMap type="SysUser" id="DraftUserResult">
@@ -26,10 +30,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
26 30
         <result property="nickName"    column="draft_nick_name"    />
27 31
     </resultMap>
28 32
 
33
+    <resultMap type="SysUser" id="ManagerUserResult">
34
+        <result property="userId"    column="user_id"    />
35
+        <result property="nickName"    column="manager_nick_name"    />
36
+    </resultMap>
37
+
29 38
     <sql id="selectCmcSubContractVo">
30 39
         select sc.sub_contract_id, sc.contract_id, sc.sub_contract_name, sc.sub_amount, sc.partner_id, sc.contact_person, sc.drafter, u.nick_name as draft_nick_name, sc.draft_time,
31
-               sc.remark, sc.sign_date, sc.sign_remark, sc.sign_scan, sc.comment_type from cmc_sub_contract
32
-        left join sys_user as u on u.user_id = ca.drafter
40
+               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
41
+        left join sys_user as u on u.user_id = sc.drafter
42
+        left join sys_user as u1 on u1.user_id = sc.manager_user_id
33 43
     </sql>
34 44
 
35 45
     <select id="selectCmcSubContractList" parameterType="CmcSubContract" resultMap="CmcSubContractResult">
@@ -70,6 +80,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
70 80
             <if test="signRemark != null">sign_remark,</if>
71 81
             <if test="signScan != null">sign_scan,</if>
72 82
             <if test="commentType != null">comment_type,</if>
83
+            <if test="managerComment != null">manager_comment,</if>
84
+            <if test="managerUserId != null">manager_user_id,</if>
85
+            <if test="managerTime != null">manager_time,</if>
73 86
          </trim>
74 87
         <trim prefix="values (" suffix=")" suffixOverrides=",">
75 88
             <if test="subContractId != null">#{subContractId},</if>
@@ -85,6 +98,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
85 98
             <if test="signRemark != null">#{signRemark},</if>
86 99
             <if test="signScan != null">#{signScan},</if>
87 100
             <if test="commentType != null">#{commentType},</if>
101
+            <if test="managerComment != null">#{managerComment},</if>
102
+            <if test="managerUserId != null">#{managerUserId},</if>
103
+            <if test="managerTime != null">#{managerTime},</if>
88 104
          </trim>
89 105
     </insert>
90 106
 
@@ -103,6 +119,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
103 119
             <if test="signRemark != null">sign_remark = #{signRemark},</if>
104 120
             <if test="signScan != null">sign_scan = #{signScan},</if>
105 121
             <if test="commentType != null">comment_type = #{commentType},</if>
122
+            <if test="managerComment != null">manager_comment = #{managerComment},</if>
123
+            <if test="managerUserId != null">manager_user_id = #{managerUserId},</if>
124
+            <if test="managerTime != null">manager_time = #{managerTime},</if>
106 125
         </trim>
107 126
         where sub_contract_id = #{subContractId}
108 127
     </update>

+ 19
- 12
oa-back/sql/sql.sql
文件差異過大導致無法顯示
查看文件


+ 4
- 4
oa-ui/src/api/oa/contract/contractComment.js 查看文件

@@ -10,9 +10,9 @@ export function listContractComment(query) {
10 10
 }
11 11
 
12 12
 // 查询cmc合同意见详细
13
-export function getContractComment(commentId) {
13
+export function getContractComment(contractId) {
14 14
   return request({
15
-    url: '/oa/contractComment/' + commentId,
15
+    url: '/oa/contractComment/' + contractId,
16 16
     method: 'get'
17 17
   })
18 18
 }
@@ -36,9 +36,9 @@ export function updateContractComment(data) {
36 36
 }
37 37
 
38 38
 // 删除cmc合同意见
39
-export function delContractComment(commentId) {
39
+export function delContractComment(contractId) {
40 40
   return request({
41
-    url: '/oa/contractComment/' + commentId,
41
+    url: '/oa/contractComment/' + contractId,
42 42
     method: 'delete'
43 43
   })
44 44
 }

+ 4
- 4
oa-ui/src/api/oa/contract/contractMeeting.js 查看文件

@@ -10,9 +10,9 @@ export function listContractMeeting(query) {
10 10
 }
11 11
 
12 12
 // 查询cmc合同会审详细
13
-export function getContractMeeting(meetingId) {
13
+export function getContractMeeting(contractId) {
14 14
   return request({
15
-    url: '/oa/contractMeeting/' + meetingId,
15
+    url: '/oa/contractMeeting/' + contractId,
16 16
     method: 'get'
17 17
   })
18 18
 }
@@ -36,9 +36,9 @@ export function updateContractMeeting(data) {
36 36
 }
37 37
 
38 38
 // 删除cmc合同会审
39
-export function delContractMeeting(meetingId) {
39
+export function delContractMeeting(contractId) {
40 40
   return request({
41
-    url: '/oa/contractMeeting/' + meetingId,
41
+    url: '/oa/contractMeeting/' + contractId,
42 42
     method: 'delete'
43 43
   })
44 44
 }

+ 4
- 4
oa-ui/src/api/oa/contract/contractPayment.js 查看文件

@@ -10,9 +10,9 @@ export function listContractPayment(query) {
10 10
 }
11 11
 
12 12
 // 查询cmc合同回款详细
13
-export function getContractPayment(paymentId) {
13
+export function getContractPayment(contractId) {
14 14
   return request({
15
-    url: '/oa/contractPayment/' + paymentId,
15
+    url: '/oa/contractPayment/' + contractId,
16 16
     method: 'get'
17 17
   })
18 18
 }
@@ -36,9 +36,9 @@ export function updateContractPayment(data) {
36 36
 }
37 37
 
38 38
 // 删除cmc合同回款
39
-export function delContractPayment(paymentId) {
39
+export function delContractPayment(contractId) {
40 40
   return request({
41
-    url: '/oa/contractPayment/' + paymentId,
41
+    url: '/oa/contractPayment/' + contractId,
42 42
     method: 'delete'
43 43
   })
44 44
 }

+ 4
- 4
oa-ui/src/api/oa/contract/contractWork.js 查看文件

@@ -10,9 +10,9 @@ export function listContractWork(query) {
10 10
 }
11 11
 
12 12
 // 查询cmc合同内容详细
13
-export function getContractWork(workId) {
13
+export function getContractWork(contractId) {
14 14
   return request({
15
-    url: '/oa/contractWork/' + workId,
15
+    url: '/oa/contractWork/' + contractId,
16 16
     method: 'get'
17 17
   })
18 18
 }
@@ -36,9 +36,9 @@ export function updateContractWork(data) {
36 36
 }
37 37
 
38 38
 // 删除cmc合同内容
39
-export function delContractWork(workId) {
39
+export function delContractWork(contractId) {
40 40
   return request({
41
-    url: '/oa/contractWork/' + workId,
41
+    url: '/oa/contractWork/' + contractId,
42 42
     method: 'delete'
43 43
   })
44 44
 }

+ 6
- 0
oa-ui/src/api/oa/contract/projectContract.js 查看文件

@@ -1,3 +1,9 @@
1
+/*
2
+ * @Author: wrh
3
+ * @Date: 2024-04-19 09:22:00
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-04-24 14:16:38
6
+ */
1 7
 import request from '@/utils/request'
2 8
 
3 9
 // 查询cmc项目合同列表

+ 108
- 56
oa-ui/src/views/flowable/form/contractForm.vue 查看文件

@@ -24,30 +24,30 @@
24 24
           </el-form-item>
25 25
           <el-row>
26 26
             <el-col :span="6">
27
-              <el-form-item label="合同编码" prop="contractId">
28
-                <el-input v-model="form.contractId" :disabled="true"></el-input>
27
+              <el-form-item label="合同编码" prop="contractCode">
28
+                <el-input v-model="form.contractCode" :disabled="true"></el-input>
29 29
               </el-form-item>
30 30
             </el-col>
31 31
             <el-col :span="6">
32 32
               <el-form-item label="合同编号" prop="contractNumber">
33
-                <el-input v-model="form.contractNumber" placeholder="请输入合同编号"></el-input>
33
+                <el-input v-model="form.contractNumber" placeholder="请输入合同编号" :disabled="taskName != '合同拟稿'"></el-input>
34 34
               </el-form-item>
35 35
             </el-col>
36 36
           </el-row>
37 37
           <el-row>
38 38
             <el-col :span="6">
39 39
               <el-form-item label="合同金额" prop="amount">
40
-                <el-input v-model="form.amount" placeholder="请输入合同金额" />
40
+                <el-input v-model="form.amount" placeholder="请输入合同金额" :disabled="taskName != '合同拟稿'" />
41 41
               </el-form-item>
42 42
             </el-col>
43 43
             <el-col :span="6">
44 44
               <el-form-item label="履约保证金" prop="deposit">
45
-                <el-input v-model="form.deposit" placeholder="请输入履约保证金" />
45
+                <el-input v-model="form.deposit" placeholder="请输入履约保证金" :disabled="taskName != '合同拟稿'" />
46 46
               </el-form-item>
47 47
             </el-col>
48 48
           </el-row>
49 49
           <el-form-item label="合同文件" prop="contractDocument">
50
-            <el-input v-model="form.contractDocument" placeholder="请输入合同文件" />
50
+            <el-input v-model="form.contractDocument" placeholder="请输入合同文件" :disabled="taskName != '合同拟稿'" />
51 51
           </el-form-item>
52 52
           <el-form-item label="合同计划工作量:">
53 53
             <table border="1">
@@ -65,26 +65,26 @@
65 65
                   {{ index + 1 }}
66 66
                 </td>
67 67
                 <td>
68
-                  <el-input v-model="work.content" type="textarea" clearable
69
-                    :autosize="{ minRows: 4, maxRows: 10 }"></el-input>
68
+                  <el-input v-model="work.content" type="textarea" clearable :autosize="{ minRows: 4, maxRows: 10 }"
69
+                    :disabled="taskName != '合同拟稿'"></el-input>
70 70
                 </td>
71 71
                 <td>
72
-                  <el-input v-model="work.scale" clearable></el-input>
72
+                  <el-input v-model="work.scale" clearable :disabled="taskName != '合同拟稿'"></el-input>
73 73
                 </td>
74 74
                 <td>
75
-                  <el-input v-model="work.unit" clearable></el-input>
75
+                  <el-input v-model="work.unit" clearable :disabled="taskName != '合同拟稿'"></el-input>
76 76
                 </td>
77 77
                 <td>
78
-                  <el-input v-model="work.workload" clearable></el-input>
78
+                  <el-input v-model="work.workload" clearable :disabled="taskName != '合同拟稿'"></el-input>
79 79
                 </td>
80 80
                 <td>
81 81
                   <el-date-picker style="width: 140px" v-model="work.deadline" value-format="yyyy-MM-dd" type="date"
82
-                    placeholder="选择日期">
82
+                    placeholder="选择日期" :disabled="taskName != '合同拟稿'">
83 83
                   </el-date-picker>
84 84
                 </td>
85 85
                 <td>
86
-                  <el-input v-model="work.remark" type="textarea" clearable
87
-                    :autosize="{ minRows: 4, maxRows: 10 }"></el-input>
86
+                  <el-input v-model="work.remark" type="textarea" clearable :autosize="{ minRows: 4, maxRows: 10 }"
87
+                    :disabled="taskName != '合同拟稿'"></el-input>
88 88
                 </td>
89 89
                 <td>
90 90
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
@@ -110,22 +110,22 @@
110 110
                 </td>
111 111
                 <td>
112 112
                   <el-input v-model="payment.paymentCondition" type="textarea" clearable
113
-                    :autosize="{ minRows: 4, maxRows: 10 }"></el-input>
113
+                    :autosize="{ minRows: 4, maxRows: 10 }" :disabled="taskName != '合同拟稿'"></el-input>
114 114
                 </td>
115 115
                 <td>
116
-                  <el-input v-model="payment.paymentPercentage" clearable></el-input>
116
+                  <el-input v-model="payment.paymentPercentage" clearable :disabled="taskName != '合同拟稿'"></el-input>
117 117
                 </td>
118 118
                 <td>
119
-                  <el-input v-model="payment.paymentAmount" clearable></el-input>
119
+                  <el-input v-model="payment.paymentAmount" clearable :disabled="taskName != '合同拟稿'"></el-input>
120 120
                 </td>
121 121
                 <td>
122 122
                   <el-date-picker style="width: 140px" v-model="payment.paymentTime" value-format="yyyy-MM-dd" type="date"
123
-                    placeholder="选择日期">
123
+                    placeholder="选择日期" :disabled="taskName != '合同拟稿'">
124 124
                   </el-date-picker>
125 125
                 </td>
126 126
                 <td>
127
-                  <el-input v-model="payment.remark" type="textarea" clearable
128
-                    :autosize="{ minRows: 4, maxRows: 10 }"></el-input>
127
+                  <el-input v-model="payment.remark" type="textarea" clearable :autosize="{ minRows: 4, maxRows: 10 }"
128
+                    :disabled="taskName != '合同拟稿'"></el-input>
129 129
                 </td>
130 130
                 <td>
131 131
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
@@ -152,7 +152,7 @@
152 152
           </el-row>
153 153
           <el-divider></el-divider>
154 154
           <el-form-item label="评审方式" prop="commentType">
155
-            <el-radio-group v-model="form.commentType" @change="changeCommentType">
155
+            <el-radio-group v-model="form.commentType" @change="changeCommentType" :disabled="taskName != '合同拟稿'">
156 156
               <el-radio :label="0">无须评审</el-radio>
157 157
               <el-radio :label="1">会议评审</el-radio>
158 158
               <el-radio :label="2">线上评审</el-radio>
@@ -174,13 +174,15 @@
174 174
                   {{ index + 1 }}
175 175
                 </td>
176 176
                 <td>
177
-                  <el-select v-model="comment.deptId" clearable style="width:120px" :disabled="index < 4" @change="getDeptLeader">
177
+                  <el-select v-model="comment.deptId" clearable style="width:120px"
178
+                    :disabled="(index < 4 && taskName == '合同拟稿') || taskName != '合同拟稿'" @change="getDeptLeader">
178 179
                     <el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName" :value="item.deptId">
179 180
                     </el-option>
180 181
                   </el-select>
181 182
                 </td>
182 183
                 <td>
183
-                  <el-select v-model="comment.userId" clearable style="width:120px" :disabled="index < 4">
184
+                  <el-select v-model="comment.userId" clearable style="width:120px"
185
+                    :disabled="(index < 4 && taskName == '合同拟稿') || taskName != '合同拟稿'">
184 186
                     <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
185 187
                     </el-option>
186 188
                   </el-select>
@@ -266,12 +268,12 @@
266 268
           </el-form-item>
267 269
           <el-row>
268 270
             <el-col :span="6" :xs="24" :offset="12">
269
-              <el-form-item label="签名:" label-width="120px">
271
+              <el-form-item label="签名:" label-width="120px" v-if="taskName == '分管审核'">
270 272
                 <span class="auditor"> {{ form.managerUser ? form.managerUser.nickName : managerUser }} </span>
271 273
               </el-form-item>
272 274
             </el-col>
273 275
             <el-col :span="6">
274
-              <el-form-item label="日期:" label-width="120px">
276
+              <el-form-item label="日期:" label-width="120px" v-if="taskName == '分管审核'">
275 277
                 <span> {{ form.managerTime ? form.managerTime : managerTime }} </span>
276 278
               </el-form-item>
277 279
             </el-col>
@@ -288,7 +290,7 @@
288 290
             <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
289 291
           </el-form-item>
290 292
         </el-form>
291
-        <div slot="footer" class="dialog-footer">
293
+        <div style="text-align: center;">
292 294
           <el-button type="primary" @click="submitForm">确 定</el-button>
293 295
           <el-button @click="cancel">取 消</el-button>
294 296
         </div>
@@ -310,10 +312,10 @@ import { parseTime } from "@/utils/ruoyi";
310 312
 import { listDept } from '@/api/system/dept'
311 313
 import { listUser } from '@/api/system/user'
312 314
 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
313
-import { getContractWork } from "@/api/oa/contract/contractWork";
314
-import { getContractPayment } from "@/api/oa/contract/contractPayment";
315
-import { getContractComment } from "@/api/oa/contract/contractComment";
316
-import { getContractMeeting } from "@/api/oa/contract/contractMeeting";
315
+import { getContractWork, addContractWork } from "@/api/oa/contract/contractWork";
316
+import { getContractPayment, addContractPayment } from "@/api/oa/contract/contractPayment";
317
+import { getContractComment, addContractComment } from "@/api/oa/contract/contractComment";
318
+import { getContractMeeting, addContractMeeting } from "@/api/oa/contract/contractMeeting";
317 319
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
318 320
 import { listTender, getTender } from "@/api/oa/tender/tender";
319 321
 import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept } from '@/api/system/post.js'
@@ -385,8 +387,21 @@ export default {
385 387
       commentOpen: false,
386 388
       deptList: [],
387 389
       userList: [],
388
-      workList: [],
389
-      paymentList: [],
390
+      workList: [{
391
+        content: "",
392
+        scale: "",
393
+        unit: "",
394
+        workload: "",
395
+        deadline: undefined,
396
+        remark: "",
397
+      }],
398
+      paymentList: [{
399
+        paymentCondition: "",
400
+        paymentPercentage: "",
401
+        paymentAmount: "",
402
+        paymentTime: undefined,
403
+        remark: "",
404
+      }],
390 405
       placeList: [{ id: 0, name: '301会议室' }, { id: 1, name: '216会议室' }],
391 406
       commentList: [
392 407
         {
@@ -452,12 +467,13 @@ export default {
452 467
         if (this.isEmptyObject(res.data)) {
453 468
           this.formTotal = 0;
454 469
           this.form.drafter = this.$store.getters.userId;
470
+          this.form.draftTime = parseTime(new Date(), '{y}-{m}-{d}');
455 471
         }
456 472
         else {
457 473
           this.formTotal = 1;
458 474
           this.form = res.data;
459
-          if (data.tenderId) {
460
-            getTender(data.tenderId).then(response => {
475
+          if (res.data.tenderId) {
476
+            getTender(res.data.tenderId).then(response => {
461 477
               this.chooseTender = response.data;
462 478
               this.isSelect = true
463 479
             })
@@ -516,7 +532,7 @@ export default {
516 532
         getTender(val).then(res => {
517 533
           this.chooseTender = res.data;
518 534
           this.isSelect = true;
519
-          this.getContractId(this.chooseTender)
535
+          this.getContractCode(this.chooseTender)
520 536
         })
521 537
       } else {
522 538
         this.isSelect = false
@@ -539,25 +555,25 @@ export default {
539 555
       let partyAList = ['中国电建集团成都勘测设计研究院勘测设计分公司', '成勘院 水环境与城建工程分公司'];
540 556
       return partyAList.indexOf(chooseTender.partyA) != -1 ? '院内' : '院外';
541 557
     },
542
-    getContractId(chooseTender) {
543
-      let contractId = '';
558
+    getContractCode(chooseTender) {
559
+      let contractCode = '';
544 560
       if (chooseTender) {
545 561
         if (this.getProjectSource(chooseTender) == '院内') {
546
-          listContract({ contractId: 'C' }).then(res => {
562
+          listContract({ contractCode: 'C' }).then(res => {
547 563
             if (res.total == 0)
548
-              contractId = 'HT' + new Date().getFullYear() + 'C' + '001';
564
+              contractCode = 'HT' + new Date().getFullYear() + 'C' + '001';
549 565
             else
550
-              contractId = 'HT' + new Date().getFullYear() + 'C' + this.fillZero(Number(res.rows[0].contractId.substring(7, 10)) + 1);
551
-            this.$set(this.form, 'contractId', contractId);
566
+              contractCode = 'HT' + new Date().getFullYear() + 'C' + this.fillZero(Number(res.rows[0].contractCode.substring(7, 10)) + 1);
567
+            this.$set(this.form, 'contractCode', contractCode);
552 568
           })
553 569
         }
554 570
         else {
555
-          listContract({ contractId: 'W' }).then(res => {
571
+          listContract({ contractCode: 'W' }).then(res => {
556 572
             if (res.total == 0)
557
-              contractId = 'HT' + new Date().getFullYear() + 'W' + '001';
573
+              contractCode = 'HT' + new Date().getFullYear() + 'W' + '001';
558 574
             else
559
-              contractId = 'HT' + new Date().getFullYear() + 'W' + this.fillZero(Number(res.rows[0].contractId.substring(7, 10)) + 1);
560
-            this.$set(this.form, 'contractId', contractId);
575
+              contractCode = 'HT' + new Date().getFullYear() + 'W' + this.fillZero(Number(res.rows[0].contractCode.substring(7, 10)) + 1);
576
+            this.$set(this.form, 'contractCode', contractCode);
561 577
           })
562 578
         }
563 579
       }
@@ -645,19 +661,20 @@ export default {
645 661
           })
646 662
         }
647 663
       }
648
-    },    
664
+    },
649 665
     getDeptLeader(val) {
650
-        getUsersDeptLeaderByDept({ deptId: Number(val) }).then(res => {
651
-          for(let comment of this.commentList) {
652
-            if (comment.deptId == val)
653
-              comment.userId = res.data.userId;
654
-          }
655
-        })
666
+      getUsersDeptLeaderByDept({ deptId: Number(val) }).then(res => {
667
+        for (let comment of this.commentList) {
668
+          if (comment.deptId == val)
669
+            comment.userId = res.data.userId;
670
+        }
671
+      })
656 672
     },
657 673
     // 表单重置
658 674
     reset() {
659 675
       this.form = {
660 676
         contractId: null,
677
+        contractCode: null,
661 678
         contractNumber: null,
662 679
         amount: null,
663 680
         deposit: null,
@@ -721,16 +738,51 @@ export default {
721 738
               this.open = false;
722 739
               this.getList();
723 740
             });
741
+            for (let work of this.workList) {
742
+              work.contractId = this.form.contractId
743
+              addContractWork(work);
744
+            }
745
+            for (let payment of this.paymentList) {
746
+              payment.contractId = this.form.contractId
747
+              addContractPayment(payment);
748
+            }
724 749
             const params = { taskId: this.taskForm.taskId };
725 750
             getNextFlowNode(params).then(res => {
726
-              getUsersDeptLeader({ userId: this.$store.getters.userId }).then(res => {
727
-                let userId = res.data.userId;
728
-                this.$set(this.taskForm.variables, "approval", userId);
751
+              if (this.commentOpen == false && this.meetingOpen == false) {
752
+                getUsersManageLeader({ userId: this.$store.getters.userId }).then(res => {
753
+                  let userId = res.data.userId;
754
+                  this.$set(this.taskForm.variables, "approval", userId);
755
+                  this.$set(this.taskForm.variables, "commentType", 0);
756
+                  complete(this.taskForm).then(response => {
757
+                    this.$modal.msgSuccess(response.msg);
758
+                    this.$emit('goBack')
759
+                  });
760
+                })
761
+              }
762
+              else if (this.commentOpen == true && this.meetingOpen == false) {
763
+                let approvalList = [];
764
+                for (let commment of this.commentList) {
765
+                  commment.contractId = this.form.contractId
766
+                  addContractComment(commment);
767
+                  approvalList.push(commment.userId)
768
+                }
769
+                this.$set(this.taskForm.variables, "approvalList", approvalList);
770
+                this.$set(this.taskForm.variables, "commentType", 2);
771
+                complete(this.taskForm).then(response => {
772
+                  this.$modal.msgSuccess(response.msg);
773
+                  this.$emit('goBack')
774
+                });
775
+              }
776
+              else if (this.commentOpen == false && this.meetingOpen == true) {
777
+                this.meetingForm.contractId = this.form.contractId;
778
+                addContractMeeting(this.meetingForm);
779
+                this.$set(this.taskForm.variables, "approval", this.meetingForm.hostId);
780
+                this.$set(this.taskForm.variables, "commentType", 1);
729 781
                 complete(this.taskForm).then(response => {
730 782
                   this.$modal.msgSuccess(response.msg);
731 783
                   this.$emit('goBack')
732 784
                 });
733
-              })
785
+              }
734 786
             })
735 787
           }
736 788
         }

Loading…
取消
儲存