Kaynağa Gözat

合同线上评审

lamphua 1 yıl önce
ebeveyn
işleme
ce9e81592d
34 değiştirilmiş dosya ile 439 ekleme ve 231 silme
  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 Dosyayı Görüntüle

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5
 import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
60
     /**
62
     /**
61
      * 获取cmc合同意见详细信息
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
     @PostMapping
75
     @PostMapping
74
     public AjaxResult add(@RequestBody CmcContractComment cmcContractComment)
76
     public AjaxResult add(@RequestBody CmcContractComment cmcContractComment)
75
     {
77
     {
78
+        cmcContractComment.setCommentId(new SnowFlake().generateId());
76
         return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
79
         return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
77
     }
80
     }
78
 
81
 
90
      * 删除cmc合同意见
93
      * 删除cmc合同意见
91
      */
94
      */
92
     @Log(title = "cmc合同意见", businessType = BusinessType.DELETE)
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 Dosyayı Görüntüle

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5
 import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
60
     /**
62
     /**
61
      * 获取cmc合同会审详细信息
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
     @PostMapping
75
     @PostMapping
74
     public AjaxResult add(@RequestBody CmcContractMeeting cmcContractMeeting)
76
     public AjaxResult add(@RequestBody CmcContractMeeting cmcContractMeeting)
75
     {
77
     {
78
+        cmcContractMeeting.setMeetingId(new SnowFlake().generateId());
76
         return toAjax(cmcContractMeetingService.insertCmcContractMeeting(cmcContractMeeting));
79
         return toAjax(cmcContractMeetingService.insertCmcContractMeeting(cmcContractMeeting));
77
     }
80
     }
78
 
81
 
90
      * 删除cmc合同会审
93
      * 删除cmc合同会审
91
      */
94
      */
92
     @Log(title = "cmc合同会审", businessType = BusinessType.DELETE)
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 Dosyayı Görüntüle

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5
 import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
60
     /**
62
     /**
61
      * 获取cmc合同回款详细信息
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
     @PostMapping
75
     @PostMapping
74
     public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment)
76
     public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment)
75
     {
77
     {
78
+        cmcContractPayment.setPaymentId(new SnowFlake().generateId());
76
         return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
79
         return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
77
     }
80
     }
78
 
81
 
90
      * 删除cmc合同回款
93
      * 删除cmc合同回款
91
      */
94
      */
92
     @Log(title = "cmc合同回款", businessType = BusinessType.DELETE)
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 Dosyayı Görüntüle

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
5
 import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
60
     /**
62
     /**
61
      * 获取cmc合同内容详细信息
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
     @PostMapping
75
     @PostMapping
74
     public AjaxResult add(@RequestBody CmcContractWork cmcContractWork)
76
     public AjaxResult add(@RequestBody CmcContractWork cmcContractWork)
75
     {
77
     {
78
+        cmcContractWork.setWorkId(new SnowFlake().generateId());
76
         return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
79
         return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
77
     }
80
     }
78
 
81
 
90
      * 删除cmc合同内容
93
      * 删除cmc合同内容
91
      */
94
      */
92
     @Log(title = "cmc合同内容", businessType = BusinessType.DELETE)
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 Dosyayı Görüntüle

22
     /** 合同id(ht2024w002) */
22
     /** 合同id(ht2024w002) */
23
     private String contractId;
23
     private String contractId;
24
 
24
 
25
+    /** 合同编码 */
26
+    @Excel(name = "合同编码")
27
+    private String contractCode;
28
+
25
     /** 合同编号 */
29
     /** 合同编号 */
26
     @Excel(name = "合同编号")
30
     @Excel(name = "合同编号")
27
     private String contractNumber;
31
     private String contractNumber;
93
     {
97
     {
94
         return contractId;
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
     public void setContractNumber(String contractNumber)
109
     public void setContractNumber(String contractNumber)
97
     {
110
     {
98
         this.contractNumber = contractNumber;
111
         this.contractNumber = contractNumber;

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java Dosyayı Görüntüle

24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27
     /** 会审部门 */
31
     /** 会审部门 */
28
     @Excel(name = "会审部门")
32
     @Excel(name = "会审部门")
29
     private Long deptId;
33
     private Long deptId;
63
     {
67
     {
64
         return contractId;
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
     public void setDeptId(Long deptId)
79
     public void setDeptId(Long deptId)
67
     {
80
     {
68
         this.deptId = deptId;
81
         this.deptId = deptId;

+ 13
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java Dosyayı Görüntüle

24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27
     /** 评审时间 */
31
     /** 评审时间 */
28
     @JsonFormat(pattern = "yyyy-MM-dd")
32
     @JsonFormat(pattern = "yyyy-MM-dd")
29
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
33
     @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
72
     {
76
     {
73
         return contractId;
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
     public void setMeetingTime(Date meetingTime)
88
     public void setMeetingTime(Date meetingTime)
76
     {
89
     {
77
         this.meetingTime = meetingTime;
90
         this.meetingTime = meetingTime;

+ 56
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java Dosyayı Görüntüle

19
 {
19
 {
20
     private static final long serialVersionUID = 1L;
20
     private static final long serialVersionUID = 1L;
21
 
21
 
22
-    /** 分包合同id(ht2024w002) */
22
+    /** 分包合同id */
23
     private String subContractId;
23
     private String subContractId;
24
 
24
 
25
     /** 主合同id */
25
     /** 主合同id */
48
 
48
 
49
     private SysUser draftUser;
49
     private SysUser draftUser;
50
 
50
 
51
+    private SysUser managerUser;
52
+
51
     /** 拟稿日期 */
53
     /** 拟稿日期 */
52
     @JsonFormat(pattern = "yyyy-MM-dd")
54
     @JsonFormat(pattern = "yyyy-MM-dd")
53
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
55
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
70
     @Excel(name = "评审方式")
72
     @Excel(name = "评审方式")
71
     private String commentType;
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
     public void setSubContractId(String subContractId) 
88
     public void setSubContractId(String subContractId) 
74
     {
89
     {
75
         this.subContractId = subContractId;
90
         this.subContractId = subContractId;
142
     {
157
     {
143
         return draftUser;
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
     public void setDraftTime(Date draftTime) 
169
     public void setDraftTime(Date draftTime) 
146
     {
170
     {
147
         this.draftTime = draftTime;
171
         this.draftTime = draftTime;
188
         return commentType;
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
     @Override
243
     @Override
192
     public String toString() {
244
     public String toString() {
193
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
245
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
204
             .append("signRemark", getSignRemark())
256
             .append("signRemark", getSignRemark())
205
             .append("signScan", getSignScan())
257
             .append("signScan", getSignScan())
206
             .append("commentType", getCommentType())
258
             .append("commentType", getCommentType())
259
+                .append("managerComment", getManagerComment())
260
+                .append("managerUserId", getManagerUserId())
261
+                .append("managerTime", getManagerTime())
207
             .toString();
262
             .toString();
208
     }
263
     }
209
 }
264
 }

+ 6
- 6
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractCommentMapper.java Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同意见
15
      * 查询cmc合同意见
16
      * 
16
      * 
17
-     * @param commentId cmc合同意见主键
17
+     * @param contractId cmc合同意见主键
18
      * @return cmc合同意见
18
      * @return cmc合同意见
19
      */
19
      */
20
-    public CmcContractComment selectCmcContractCommentByCommentId(String commentId);
20
+    public List<CmcContractComment> selectCmcContractCommentByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同意见列表
23
      * 查询cmc合同意见列表
46
     /**
46
     /**
47
      * 删除cmc合同意见
47
      * 删除cmc合同意见
48
      * 
48
      * 
49
-     * @param commentId cmc合同意见主键
49
+     * @param contractId cmc合同意见主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractCommentByCommentId(String commentId);
52
+    public int deleteCmcContractCommentByContractId(String contractId);
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除cmc合同意见
55
      * 批量删除cmc合同意见
56
      * 
56
      * 
57
-     * @param commentIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同会审
15
      * 查询cmc合同会审
16
      * 
16
      * 
17
-     * @param meetingId cmc合同会审主键
17
+     * @param contractId cmc合同会审主键
18
      * @return cmc合同会审
18
      * @return cmc合同会审
19
      */
19
      */
20
-    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
20
+    public CmcContractMeeting selectCmcContractMeetingByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同会审列表
23
      * 查询cmc合同会审列表
46
     /**
46
     /**
47
      * 删除cmc合同会审
47
      * 删除cmc合同会审
48
      * 
48
      * 
49
-     * @param meetingId cmc合同会审主键
49
+     * @param contractId cmc合同会审主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractMeetingByMeetingId(String meetingId);
52
+    public int deleteCmcContractMeetingByContractId(String contractId);
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除cmc合同会审
55
      * 批量删除cmc合同会审
56
      * 
56
      * 
57
-     * @param meetingIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同回款
15
      * 查询cmc合同回款
16
      * 
16
      * 
17
-     * @param paymentId cmc合同回款主键
17
+     * @param contractId cmc合同回款主键
18
      * @return cmc合同回款
18
      * @return cmc合同回款
19
      */
19
      */
20
-    public CmcContractPayment selectCmcContractPaymentByPaymentId(String paymentId);
20
+    public List<CmcContractPayment> selectCmcContractPaymentByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同回款列表
23
      * 查询cmc合同回款列表
46
     /**
46
     /**
47
      * 删除cmc合同回款
47
      * 删除cmc合同回款
48
      * 
48
      * 
49
-     * @param paymentId cmc合同回款主键
49
+     * @param contractId cmc合同回款主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractPaymentByPaymentId(String paymentId);
52
+    public int deleteCmcContractPaymentByContractId(String contractId);
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除cmc合同回款
55
      * 批量删除cmc合同回款
56
      * 
56
      * 
57
-     * @param paymentIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同内容
15
      * 查询cmc合同内容
16
      * 
16
      * 
17
-     * @param workId cmc合同内容主键
17
+     * @param contractId cmc合同内容主键
18
      * @return cmc合同内容
18
      * @return cmc合同内容
19
      */
19
      */
20
-    public CmcContractWork selectCmcContractWorkByWorkId(String workId);
20
+    public List<CmcContractWork> selectCmcContractWorkByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同内容列表
23
      * 查询cmc合同内容列表
46
     /**
46
     /**
47
      * 删除cmc合同内容
47
      * 删除cmc合同内容
48
      * 
48
      * 
49
-     * @param workId cmc合同内容主键
49
+     * @param contractId cmc合同内容主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractWorkByWorkId(String workId);
52
+    public int deleteCmcContractWorkByContractId(String contractId);
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除cmc合同内容
55
      * 批量删除cmc合同内容
56
      * 
56
      * 
57
-     * @param workIds 需要删除的数据主键集合
57
+     * @param contractIds 需要删除的数据主键集合
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同意见
15
      * 查询cmc合同意见
16
      * 
16
      * 
17
-     * @param commentId cmc合同意见主键
17
+     * @param contractId cmc合同意见主键
18
      * @return cmc合同意见
18
      * @return cmc合同意见
19
      */
19
      */
20
-    public CmcContractComment selectCmcContractCommentByCommentId(String commentId);
20
+    public List<CmcContractComment> selectCmcContractCommentByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同意见列表
23
      * 查询cmc合同意见列表
46
     /**
46
     /**
47
      * 批量删除cmc合同意见
47
      * 批量删除cmc合同意见
48
      * 
48
      * 
49
-     * @param commentIds 需要删除的cmc合同意见主键集合
49
+     * @param contractIds 需要删除的cmc合同意见主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractCommentByCommentIds(String[] commentIds);
52
+    public int deleteCmcContractCommentByContractIds(String[] contractIds);
53
 
53
 
54
     /**
54
     /**
55
      * 删除cmc合同意见信息
55
      * 删除cmc合同意见信息
56
      * 
56
      * 
57
-     * @param commentId cmc合同意见主键
57
+     * @param contractId cmc合同意见主键
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同会审
15
      * 查询cmc合同会审
16
      * 
16
      * 
17
-     * @param meetingId cmc合同会审主键
17
+     * @param contractId cmc合同会审主键
18
      * @return cmc合同会审
18
      * @return cmc合同会审
19
      */
19
      */
20
-    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
20
+    public CmcContractMeeting selectCmcContractMeetingByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同会审列表
23
      * 查询cmc合同会审列表
46
     /**
46
     /**
47
      * 批量删除cmc合同会审
47
      * 批量删除cmc合同会审
48
      * 
48
      * 
49
-     * @param meetingIds 需要删除的cmc合同会审主键集合
49
+     * @param contractIds 需要删除的cmc合同会审主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds);
52
+    public int deleteCmcContractMeetingByContractIds(String[] contractIds);
53
 
53
 
54
     /**
54
     /**
55
      * 删除cmc合同会审信息
55
      * 删除cmc合同会审信息
56
      * 
56
      * 
57
-     * @param meetingId cmc合同会审主键
57
+     * @param contractId cmc合同会审主键
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同回款
15
      * 查询cmc合同回款
16
      * 
16
      * 
17
-     * @param paymentId cmc合同回款主键
17
+     * @param contractId cmc合同回款主键
18
      * @return cmc合同回款
18
      * @return cmc合同回款
19
      */
19
      */
20
-    public CmcContractPayment selectCmcContractPaymentByPaymentId(String paymentId);
20
+    public List<CmcContractPayment> selectCmcContractPaymentByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同回款列表
23
      * 查询cmc合同回款列表
46
     /**
46
     /**
47
      * 批量删除cmc合同回款
47
      * 批量删除cmc合同回款
48
      * 
48
      * 
49
-     * @param paymentIds 需要删除的cmc合同回款主键集合
49
+     * @param contractIds 需要删除的cmc合同回款主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractPaymentByPaymentIds(String[] paymentIds);
52
+    public int deleteCmcContractPaymentByContractIds(String[] contractIds);
53
 
53
 
54
     /**
54
     /**
55
      * 删除cmc合同回款信息
55
      * 删除cmc合同回款信息
56
      * 
56
      * 
57
-     * @param paymentId cmc合同回款主键
57
+     * @param contractId cmc合同回款主键
58
      * @return 结果
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 Dosyayı Görüntüle

14
     /**
14
     /**
15
      * 查询cmc合同内容
15
      * 查询cmc合同内容
16
      * 
16
      * 
17
-     * @param workId cmc合同内容主键
17
+     * @param contractId cmc合同内容主键
18
      * @return cmc合同内容
18
      * @return cmc合同内容
19
      */
19
      */
20
-    public CmcContractWork selectCmcContractWorkByWorkId(String workId);
20
+    public List<CmcContractWork> selectCmcContractWorkByContractId(String contractId);
21
 
21
 
22
     /**
22
     /**
23
      * 查询cmc合同内容列表
23
      * 查询cmc合同内容列表
46
     /**
46
     /**
47
      * 批量删除cmc合同内容
47
      * 批量删除cmc合同内容
48
      * 
48
      * 
49
-     * @param workIds 需要删除的cmc合同内容主键集合
49
+     * @param contractIds 需要删除的cmc合同内容主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
52
-    public int deleteCmcContractWorkByWorkIds(String[] workIds);
52
+    public int deleteCmcContractWorkByContractIds(String[] contractIds);
53
 
53
 
54
     /**
54
     /**
55
      * 删除cmc合同内容信息
55
      * 删除cmc合同内容信息
56
      * 
56
      * 
57
-     * @param workId cmc合同内容主键
57
+     * @param contractId cmc合同内容主键
58
      * @return 结果
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 Dosyayı Görüntüle

22
     /**
22
     /**
23
      * 查询cmc合同意见
23
      * 查询cmc合同意见
24
      * 
24
      * 
25
-     * @param commentId cmc合同意见主键
25
+     * @param contractId cmc合同意见主键
26
      * @return cmc合同意见
26
      * @return cmc合同意见
27
      */
27
      */
28
     @Override
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
     /**
70
     /**
71
      * 批量删除cmc合同意见
71
      * 批量删除cmc合同意见
72
      * 
72
      * 
73
-     * @param commentIds 需要删除的cmc合同意见主键
73
+     * @param contractIds 需要删除的cmc合同意见主键
74
      * @return 结果
74
      * @return 结果
75
      */
75
      */
76
     @Override
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
      * 删除cmc合同意见信息
83
      * 删除cmc合同意见信息
84
      * 
84
      * 
85
-     * @param commentId cmc合同意见主键
85
+     * @param contractId cmc合同意见主键
86
      * @return 结果
86
      * @return 结果
87
      */
87
      */
88
     @Override
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 Dosyayı Görüntüle

22
     /**
22
     /**
23
      * 查询cmc合同会审
23
      * 查询cmc合同会审
24
      * 
24
      * 
25
-     * @param meetingId cmc合同会审主键
25
+     * @param contractId cmc合同会审主键
26
      * @return cmc合同会审
26
      * @return cmc合同会审
27
      */
27
      */
28
     @Override
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
     /**
70
     /**
71
      * 批量删除cmc合同会审
71
      * 批量删除cmc合同会审
72
      * 
72
      * 
73
-     * @param meetingIds 需要删除的cmc合同会审主键
73
+     * @param contractIds 需要删除的cmc合同会审主键
74
      * @return 结果
74
      * @return 结果
75
      */
75
      */
76
     @Override
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
      * 删除cmc合同会审信息
83
      * 删除cmc合同会审信息
84
      * 
84
      * 
85
-     * @param meetingId cmc合同会审主键
85
+     * @param contractId cmc合同会审主键
86
      * @return 结果
86
      * @return 结果
87
      */
87
      */
88
     @Override
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 Dosyayı Görüntüle

22
     /**
22
     /**
23
      * 查询cmc合同回款
23
      * 查询cmc合同回款
24
      * 
24
      * 
25
-     * @param paymentId cmc合同回款主键
25
+     * @param contractId cmc合同回款主键
26
      * @return cmc合同回款
26
      * @return cmc合同回款
27
      */
27
      */
28
     @Override
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
     /**
70
     /**
71
      * 批量删除cmc合同回款
71
      * 批量删除cmc合同回款
72
      * 
72
      * 
73
-     * @param paymentIds 需要删除的cmc合同回款主键
73
+     * @param contractIds 需要删除的cmc合同回款主键
74
      * @return 结果
74
      * @return 结果
75
      */
75
      */
76
     @Override
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
      * 删除cmc合同回款信息
83
      * 删除cmc合同回款信息
84
      * 
84
      * 
85
-     * @param paymentId cmc合同回款主键
85
+     * @param contractId cmc合同回款主键
86
      * @return 结果
86
      * @return 结果
87
      */
87
      */
88
     @Override
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 Dosyayı Görüntüle

22
     /**
22
     /**
23
      * 查询cmc合同内容
23
      * 查询cmc合同内容
24
      * 
24
      * 
25
-     * @param workId cmc合同内容主键
25
+     * @param contractId cmc合同内容主键
26
      * @return cmc合同内容
26
      * @return cmc合同内容
27
      */
27
      */
28
     @Override
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
     /**
70
     /**
71
      * 批量删除cmc合同内容
71
      * 批量删除cmc合同内容
72
      * 
72
      * 
73
-     * @param workIds 需要删除的cmc合同内容主键
73
+     * @param contractIds 需要删除的cmc合同内容主键
74
      * @return 结果
74
      * @return 结果
75
      */
75
      */
76
     @Override
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
      * 删除cmc合同内容信息
83
      * 删除cmc合同内容信息
84
      * 
84
      * 
85
-     * @param workId cmc合同内容主键
85
+     * @param contractId cmc合同内容主键
86
      * @return 结果
86
      * @return 结果
87
      */
87
      */
88
     @Override
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 Dosyayı Görüntüle

11
         <result property="applier"    column="applier"    />
11
         <result property="applier"    column="applier"    />
12
         <result property="applyDept"    column="apply_dept"    />
12
         <result property="applyDept"    column="apply_dept"    />
13
         <result property="applyDate"    column="apply_date"    />
13
         <result property="applyDate"    column="apply_date"    />
14
+        <result property="remark"    column="remark"    />
14
         <result property="applyAmount"    column="apply_amount"    />
15
         <result property="applyAmount"    column="apply_amount"    />
15
         <result property="managerAmount"    column="manager_amount"    />
16
         <result property="managerAmount"    column="manager_amount"    />
16
         <result property="deptComment"    column="dept_comment"    />
17
         <result property="deptComment"    column="dept_comment"    />
80
     </resultMap>
81
     </resultMap>
81
 
82
 
82
     <sql id="selectCmcBorrowVo">
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
                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
                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
                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
                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
                b.cw_comment, b.dept_time, b.xm_time, b.manager_time, b.zjl_time, b.lend_time from cmc_borrow as b
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
             <if test="applyReason != null  and applyReason != ''"> and b.apply_reason = #{applyReason}</if>
102
             <if test="applyReason != null  and applyReason != ''"> and b.apply_reason = #{applyReason}</if>
102
             <if test="applyDept != null  and applyDept != ''"> and b.apply_dept = #{applyDept}</if>
103
             <if test="applyDept != null  and applyDept != ''"> and b.apply_dept = #{applyDept}</if>
103
             <if test="applier != null "> and b.applier = #{applier}</if>
104
             <if test="applier != null "> and b.applier = #{applier}</if>
105
+            <if test="remark != null "> and b.remark = #{remark}</if>
104
             <if test="applyDate != null "> and b.apply_date = #{applyDate}</if>
106
             <if test="applyDate != null "> and b.apply_date = #{applyDate}</if>
105
             <if test="applyAmount != null "> and b.apply_amount = #{applyAmount}</if>
107
             <if test="applyAmount != null "> and b.apply_amount = #{applyAmount}</if>
106
             <if test="managerAmount != null "> and b.manager_amount = #{managerAmount}</if>
108
             <if test="managerAmount != null "> and b.manager_amount = #{managerAmount}</if>
134
             <if test="projectId != null">project_id,</if>
136
             <if test="projectId != null">project_id,</if>
135
             <if test="applyReason != null">apply_reason,</if>
137
             <if test="applyReason != null">apply_reason,</if>
136
             <if test="applier != null">applier,</if>
138
             <if test="applier != null">applier,</if>
139
+            <if test="remark != null">remark,</if>
137
             <if test="applyDept != null">apply_dept,</if>
140
             <if test="applyDept != null">apply_dept,</if>
138
             <if test="applyDate != null">apply_date,</if>
141
             <if test="applyDate != null">apply_date,</if>
139
             <if test="applyAmount != null">apply_amount,</if>
142
             <if test="applyAmount != null">apply_amount,</if>
159
             <if test="projectId != null">#{projectId},</if>
162
             <if test="projectId != null">#{projectId},</if>
160
             <if test="applyReason != null">#{applyReason},</if>
163
             <if test="applyReason != null">#{applyReason},</if>
161
             <if test="applier != null">#{applier},</if>
164
             <if test="applier != null">#{applier},</if>
165
+            <if test="remark != null">#{remark},</if>
162
             <if test="applyDept != null">#{applyDept},</if>
166
             <if test="applyDept != null">#{applyDept},</if>
163
             <if test="applyDate != null">#{applyDate},</if>
167
             <if test="applyDate != null">#{applyDate},</if>
164
             <if test="applyAmount != null">#{applyAmount},</if>
168
             <if test="applyAmount != null">#{applyAmount},</if>
187
             <if test="projectId != null">project_id = #{projectId},</if>
191
             <if test="projectId != null">project_id = #{projectId},</if>
188
             <if test="applyReason != null">apply_reason = #{applyReason},</if>
192
             <if test="applyReason != null">apply_reason = #{applyReason},</if>
189
             <if test="applier != null">applier = #{applier},</if>
193
             <if test="applier != null">applier = #{applier},</if>
194
+            <if test="remark != null">remark = #{remark},</if>
190
             <if test="applyDept != null">apply_dept = #{applyDept},</if>
195
             <if test="applyDept != null">apply_dept = #{applyDept},</if>
191
             <if test="applyDate != null">apply_date = #{applyDate},</if>
196
             <if test="applyDate != null">apply_date = #{applyDate},</if>
192
             <if test="applyAmount != null">apply_amount = #{applyAmount},</if>
197
             <if test="applyAmount != null">apply_amount = #{applyAmount},</if>

+ 13
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml Dosyayı Görüntüle

7
     <resultMap type="CmcContractComment" id="CmcContractCommentResult">
7
     <resultMap type="CmcContractComment" id="CmcContractCommentResult">
8
         <result property="commentId"    column="comment_id"    />
8
         <result property="commentId"    column="comment_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10
         <result property="deptId"    column="dept_id"    />
11
         <result property="deptId"    column="dept_id"    />
11
         <result property="userId"    column="user_id"    />
12
         <result property="userId"    column="user_id"    />
12
         <result property="comment"    column="comment"    />
13
         <result property="comment"    column="comment"    />
15
     </resultMap>
16
     </resultMap>
16
 
17
 
17
     <sql id="selectCmcContractCommentVo">
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
     </sql>
20
     </sql>
20
 
21
 
21
     <select id="selectCmcContractCommentList" parameterType="CmcContractComment" resultMap="CmcContractCommentResult">
22
     <select id="selectCmcContractCommentList" parameterType="CmcContractComment" resultMap="CmcContractCommentResult">
30
         </where>
31
         </where>
31
     </select>
32
     </select>
32
 
33
 
33
-    <select id="selectCmcContractCommentByCommentId" parameterType="String" resultMap="CmcContractCommentResult">
34
+    <select id="selectCmcContractCommentByContractId" parameterType="String" resultMap="CmcContractCommentResult">
34
         <include refid="selectCmcContractCommentVo"/>
35
         <include refid="selectCmcContractCommentVo"/>
35
-        where comment_id = #{commentId}
36
+        where contract_id = #{contractId}
36
     </select>
37
     </select>
37
 
38
 
38
     <insert id="insertCmcContractComment" parameterType="CmcContractComment">
39
     <insert id="insertCmcContractComment" parameterType="CmcContractComment">
40
         <trim prefix="(" suffix=")" suffixOverrides=",">
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
41
             <if test="commentId != null">comment_id,</if>
42
             <if test="commentId != null">comment_id,</if>
42
             <if test="contractId != null">contract_id,</if>
43
             <if test="contractId != null">contract_id,</if>
44
+            <if test="subContractId != null">sub_contract_id,</if>
43
             <if test="deptId != null">dept_id,</if>
45
             <if test="deptId != null">dept_id,</if>
44
             <if test="userId != null">user_id,</if>
46
             <if test="userId != null">user_id,</if>
45
             <if test="comment != null">comment,</if>
47
             <if test="comment != null">comment,</if>
49
         <trim prefix="values (" suffix=")" suffixOverrides=",">
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
50
             <if test="commentId != null">#{commentId},</if>
52
             <if test="commentId != null">#{commentId},</if>
51
             <if test="contractId != null">#{contractId},</if>
53
             <if test="contractId != null">#{contractId},</if>
54
+            <if test="subContractId != null">#{subContractId},</if>
52
             <if test="deptId != null">#{deptId},</if>
55
             <if test="deptId != null">#{deptId},</if>
53
             <if test="userId != null">#{userId},</if>
56
             <if test="userId != null">#{userId},</if>
54
             <if test="comment != null">#{comment},</if>
57
             <if test="comment != null">#{comment},</if>
61
         update cmc_contract_comment
64
         update cmc_contract_comment
62
         <trim prefix="SET" suffixOverrides=",">
65
         <trim prefix="SET" suffixOverrides=",">
63
             <if test="contractId != null">contract_id = #{contractId},</if>
66
             <if test="contractId != null">contract_id = #{contractId},</if>
67
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
64
             <if test="deptId != null">dept_id = #{deptId},</if>
68
             <if test="deptId != null">dept_id = #{deptId},</if>
65
             <if test="userId != null">user_id = #{userId},</if>
69
             <if test="userId != null">user_id = #{userId},</if>
66
             <if test="comment != null">comment = #{comment},</if>
70
             <if test="comment != null">comment = #{comment},</if>
70
         where comment_id = #{commentId}
74
         where comment_id = #{commentId}
71
     </update>
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
     </delete>
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
         </foreach>
85
         </foreach>
82
     </delete>
86
     </delete>
83
 </mapper>
87
 </mapper>

+ 6
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml Dosyayı Görüntüle

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

+ 13
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml Dosyayı Görüntüle

7
     <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
7
     <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
8
         <result property="meetingId"    column="meeting_id"    />
8
         <result property="meetingId"    column="meeting_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10
         <result property="meetingTime"    column="meeting_time"    />
11
         <result property="meetingTime"    column="meeting_time"    />
11
         <result property="hostId"    column="host_id"    />
12
         <result property="hostId"    column="host_id"    />
12
         <result property="place"    column="place"    />
13
         <result property="place"    column="place"    />
17
     </resultMap>
18
     </resultMap>
18
 
19
 
19
     <sql id="selectCmcContractMeetingVo">
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
     </sql>
22
     </sql>
22
 
23
 
23
     <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
24
     <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
34
         </where>
35
         </where>
35
     </select>
36
     </select>
36
 
37
 
37
-    <select id="selectCmcContractMeetingByMeetingId" parameterType="String" resultMap="CmcContractMeetingResult">
38
+    <select id="selectCmcContractMeetingByContractId" parameterType="String" resultMap="CmcContractMeetingResult">
38
         <include refid="selectCmcContractMeetingVo"/>
39
         <include refid="selectCmcContractMeetingVo"/>
39
-        where meeting_id = #{meetingId}
40
+        where contract_id = #{contractId}
40
     </select>
41
     </select>
41
 
42
 
42
     <insert id="insertCmcContractMeeting" parameterType="CmcContractMeeting">
43
     <insert id="insertCmcContractMeeting" parameterType="CmcContractMeeting">
44
         <trim prefix="(" suffix=")" suffixOverrides=",">
45
         <trim prefix="(" suffix=")" suffixOverrides=",">
45
             <if test="meetingId != null">meeting_id,</if>
46
             <if test="meetingId != null">meeting_id,</if>
46
             <if test="contractId != null">contract_id,</if>
47
             <if test="contractId != null">contract_id,</if>
48
+            <if test="subContractId != null">sub_contract_id,</if>
47
             <if test="meetingTime != null">meeting_time,</if>
49
             <if test="meetingTime != null">meeting_time,</if>
48
             <if test="hostId != null">host_id,</if>
50
             <if test="hostId != null">host_id,</if>
49
             <if test="place != null">place,</if>
51
             <if test="place != null">place,</if>
55
         <trim prefix="values (" suffix=")" suffixOverrides=",">
57
         <trim prefix="values (" suffix=")" suffixOverrides=",">
56
             <if test="meetingId != null">#{meetingId},</if>
58
             <if test="meetingId != null">#{meetingId},</if>
57
             <if test="contractId != null">#{contractId},</if>
59
             <if test="contractId != null">#{contractId},</if>
60
+            <if test="subContractId != null">#{subContractId},</if>
58
             <if test="meetingTime != null">#{meetingTime},</if>
61
             <if test="meetingTime != null">#{meetingTime},</if>
59
             <if test="hostId != null">#{hostId},</if>
62
             <if test="hostId != null">#{hostId},</if>
60
             <if test="place != null">#{place},</if>
63
             <if test="place != null">#{place},</if>
69
         update cmc_contract_meeting
72
         update cmc_contract_meeting
70
         <trim prefix="SET" suffixOverrides=",">
73
         <trim prefix="SET" suffixOverrides=",">
71
             <if test="contractId != null">contract_id = #{contractId},</if>
74
             <if test="contractId != null">contract_id = #{contractId},</if>
75
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
72
             <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
76
             <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
73
             <if test="hostId != null">host_id = #{hostId},</if>
77
             <if test="hostId != null">host_id = #{hostId},</if>
74
             <if test="place != null">place = #{place},</if>
78
             <if test="place != null">place = #{place},</if>
80
         where meeting_id = #{meetingId}
84
         where meeting_id = #{meetingId}
81
     </update>
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
     </delete>
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
         </foreach>
95
         </foreach>
92
     </delete>
96
     </delete>
93
 </mapper>
97
 </mapper>

+ 8
- 8
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml Dosyayı Görüntüle

31
         </where>
31
         </where>
32
     </select>
32
     </select>
33
     
33
     
34
-    <select id="selectCmcContractPaymentByPaymentId" parameterType="String" resultMap="CmcContractPaymentResult">
34
+    <select id="selectCmcContractPaymentByContractId" parameterType="String" resultMap="CmcContractPaymentResult">
35
         <include refid="selectCmcContractPaymentVo"/>
35
         <include refid="selectCmcContractPaymentVo"/>
36
-        where payment_id = #{paymentId}
36
+        where contract_id = #{contractId}
37
     </select>
37
     </select>
38
         
38
         
39
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
39
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
74
         where payment_id = #{paymentId}
74
         where payment_id = #{paymentId}
75
     </update>
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
     </delete>
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
         </foreach>
85
         </foreach>
86
     </delete>
86
     </delete>
87
 </mapper>
87
 </mapper>

+ 8
- 8
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml Dosyayı Görüntüle

33
         </where>
33
         </where>
34
     </select>
34
     </select>
35
     
35
     
36
-    <select id="selectCmcContractWorkByWorkId" parameterType="String" resultMap="CmcContractWorkResult">
36
+    <select id="selectCmcContractWorkByContractId" parameterType="String" resultMap="CmcContractWorkResult">
37
         <include refid="selectCmcContractWorkVo"/>
37
         <include refid="selectCmcContractWorkVo"/>
38
-        where work_id = #{workId}
38
+        where contract_id = #{contractId}
39
     </select>
39
     </select>
40
         
40
         
41
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
41
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
79
         where work_id = #{workId}
79
         where work_id = #{workId}
80
     </update>
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
     </delete>
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
         </foreach>
90
         </foreach>
91
     </delete>
91
     </delete>
92
 </mapper>
92
 </mapper>

+ 21
- 2
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml Dosyayı Görüntüle

18
         <result property="signRemark"    column="sign_remark"    />
18
         <result property="signRemark"    column="sign_remark"    />
19
         <result property="signScan"    column="sign_scan"    />
19
         <result property="signScan"    column="sign_scan"    />
20
         <result property="commentType"    column="comment_type"    />
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
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
24
         <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
25
+        <association property="managerUser"    javaType="SysUser"         resultMap="ManagerUserResult" />
22
     </resultMap>
26
     </resultMap>
23
 
27
 
24
     <resultMap type="SysUser" id="DraftUserResult">
28
     <resultMap type="SysUser" id="DraftUserResult">
26
         <result property="nickName"    column="draft_nick_name"    />
30
         <result property="nickName"    column="draft_nick_name"    />
27
     </resultMap>
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
     <sql id="selectCmcSubContractVo">
38
     <sql id="selectCmcSubContractVo">
30
         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,
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
     </sql>
43
     </sql>
34
 
44
 
35
     <select id="selectCmcSubContractList" parameterType="CmcSubContract" resultMap="CmcSubContractResult">
45
     <select id="selectCmcSubContractList" parameterType="CmcSubContract" resultMap="CmcSubContractResult">
70
             <if test="signRemark != null">sign_remark,</if>
80
             <if test="signRemark != null">sign_remark,</if>
71
             <if test="signScan != null">sign_scan,</if>
81
             <if test="signScan != null">sign_scan,</if>
72
             <if test="commentType != null">comment_type,</if>
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
          </trim>
86
          </trim>
74
         <trim prefix="values (" suffix=")" suffixOverrides=",">
87
         <trim prefix="values (" suffix=")" suffixOverrides=",">
75
             <if test="subContractId != null">#{subContractId},</if>
88
             <if test="subContractId != null">#{subContractId},</if>
85
             <if test="signRemark != null">#{signRemark},</if>
98
             <if test="signRemark != null">#{signRemark},</if>
86
             <if test="signScan != null">#{signScan},</if>
99
             <if test="signScan != null">#{signScan},</if>
87
             <if test="commentType != null">#{commentType},</if>
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
          </trim>
104
          </trim>
89
     </insert>
105
     </insert>
90
 
106
 
103
             <if test="signRemark != null">sign_remark = #{signRemark},</if>
119
             <if test="signRemark != null">sign_remark = #{signRemark},</if>
104
             <if test="signScan != null">sign_scan = #{signScan},</if>
120
             <if test="signScan != null">sign_scan = #{signScan},</if>
105
             <if test="commentType != null">comment_type = #{commentType},</if>
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
         </trim>
125
         </trim>
107
         where sub_contract_id = #{subContractId}
126
         where sub_contract_id = #{subContractId}
108
     </update>
127
     </update>

+ 19
- 12
oa-back/sql/sql.sql
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 4
- 4
oa-ui/src/api/oa/contract/contractComment.js Dosyayı Görüntüle

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

+ 4
- 4
oa-ui/src/api/oa/contract/contractMeeting.js Dosyayı Görüntüle

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

+ 4
- 4
oa-ui/src/api/oa/contract/contractPayment.js Dosyayı Görüntüle

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

+ 4
- 4
oa-ui/src/api/oa/contract/contractWork.js Dosyayı Görüntüle

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

+ 6
- 0
oa-ui/src/api/oa/contract/projectContract.js Dosyayı Görüntüle

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
 import request from '@/utils/request'
7
 import request from '@/utils/request'
2
 
8
 
3
 // 查询cmc项目合同列表
9
 // 查询cmc项目合同列表

+ 108
- 56
oa-ui/src/views/flowable/form/contractForm.vue Dosyayı Görüntüle

24
           </el-form-item>
24
           </el-form-item>
25
           <el-row>
25
           <el-row>
26
             <el-col :span="6">
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
               </el-form-item>
29
               </el-form-item>
30
             </el-col>
30
             </el-col>
31
             <el-col :span="6">
31
             <el-col :span="6">
32
               <el-form-item label="合同编号" prop="contractNumber">
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
               </el-form-item>
34
               </el-form-item>
35
             </el-col>
35
             </el-col>
36
           </el-row>
36
           </el-row>
37
           <el-row>
37
           <el-row>
38
             <el-col :span="6">
38
             <el-col :span="6">
39
               <el-form-item label="合同金额" prop="amount">
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
               </el-form-item>
41
               </el-form-item>
42
             </el-col>
42
             </el-col>
43
             <el-col :span="6">
43
             <el-col :span="6">
44
               <el-form-item label="履约保证金" prop="deposit">
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
               </el-form-item>
46
               </el-form-item>
47
             </el-col>
47
             </el-col>
48
           </el-row>
48
           </el-row>
49
           <el-form-item label="合同文件" prop="contractDocument">
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
           </el-form-item>
51
           </el-form-item>
52
           <el-form-item label="合同计划工作量:">
52
           <el-form-item label="合同计划工作量:">
53
             <table border="1">
53
             <table border="1">
65
                   {{ index + 1 }}
65
                   {{ index + 1 }}
66
                 </td>
66
                 </td>
67
                 <td>
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
                 </td>
70
                 </td>
71
                 <td>
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
                 </td>
73
                 </td>
74
                 <td>
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
                 </td>
76
                 </td>
77
                 <td>
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
                 </td>
79
                 </td>
80
                 <td>
80
                 <td>
81
                   <el-date-picker style="width: 140px" v-model="work.deadline" value-format="yyyy-MM-dd" type="date"
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
                   </el-date-picker>
83
                   </el-date-picker>
84
                 </td>
84
                 </td>
85
                 <td>
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
                 </td>
88
                 </td>
89
                 <td>
89
                 <td>
90
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
90
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
110
                 </td>
110
                 </td>
111
                 <td>
111
                 <td>
112
                   <el-input v-model="payment.paymentCondition" type="textarea" clearable
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
                 </td>
114
                 </td>
115
                 <td>
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
                 </td>
117
                 </td>
118
                 <td>
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
                 </td>
120
                 </td>
121
                 <td>
121
                 <td>
122
                   <el-date-picker style="width: 140px" v-model="payment.paymentTime" value-format="yyyy-MM-dd" type="date"
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
                   </el-date-picker>
124
                   </el-date-picker>
125
                 </td>
125
                 </td>
126
                 <td>
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
                 </td>
129
                 </td>
130
                 <td>
130
                 <td>
131
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
131
                   <el-button type="danger" icon="el-icon-minus" size="mini" circle
152
           </el-row>
152
           </el-row>
153
           <el-divider></el-divider>
153
           <el-divider></el-divider>
154
           <el-form-item label="评审方式" prop="commentType">
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
               <el-radio :label="0">无须评审</el-radio>
156
               <el-radio :label="0">无须评审</el-radio>
157
               <el-radio :label="1">会议评审</el-radio>
157
               <el-radio :label="1">会议评审</el-radio>
158
               <el-radio :label="2">线上评审</el-radio>
158
               <el-radio :label="2">线上评审</el-radio>
174
                   {{ index + 1 }}
174
                   {{ index + 1 }}
175
                 </td>
175
                 </td>
176
                 <td>
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
                     <el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName" :value="item.deptId">
179
                     <el-option v-for="item in deptList" :key="item.deptId" :label="item.deptName" :value="item.deptId">
179
                     </el-option>
180
                     </el-option>
180
                   </el-select>
181
                   </el-select>
181
                 </td>
182
                 </td>
182
                 <td>
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
                     <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
186
                     <el-option v-for="item in userList" :key="item.userId" :label="item.nickName" :value="item.userId">
185
                     </el-option>
187
                     </el-option>
186
                   </el-select>
188
                   </el-select>
266
           </el-form-item>
268
           </el-form-item>
267
           <el-row>
269
           <el-row>
268
             <el-col :span="6" :xs="24" :offset="12">
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
                 <span class="auditor"> {{ form.managerUser ? form.managerUser.nickName : managerUser }} </span>
272
                 <span class="auditor"> {{ form.managerUser ? form.managerUser.nickName : managerUser }} </span>
271
               </el-form-item>
273
               </el-form-item>
272
             </el-col>
274
             </el-col>
273
             <el-col :span="6">
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
                 <span> {{ form.managerTime ? form.managerTime : managerTime }} </span>
277
                 <span> {{ form.managerTime ? form.managerTime : managerTime }} </span>
276
               </el-form-item>
278
               </el-form-item>
277
             </el-col>
279
             </el-col>
288
             <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
290
             <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
289
           </el-form-item>
291
           </el-form-item>
290
         </el-form>
292
         </el-form>
291
-        <div slot="footer" class="dialog-footer">
293
+        <div style="text-align: center;">
292
           <el-button type="primary" @click="submitForm">确 定</el-button>
294
           <el-button type="primary" @click="submitForm">确 定</el-button>
293
           <el-button @click="cancel">取 消</el-button>
295
           <el-button @click="cancel">取 消</el-button>
294
         </div>
296
         </div>
310
 import { listDept } from '@/api/system/dept'
312
 import { listDept } from '@/api/system/dept'
311
 import { listUser } from '@/api/system/user'
313
 import { listUser } from '@/api/system/user'
312
 import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
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
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
319
 import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
318
 import { listTender, getTender } from "@/api/oa/tender/tender";
320
 import { listTender, getTender } from "@/api/oa/tender/tender";
319
 import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept } from '@/api/system/post.js'
321
 import { getUsersDeptLeader, getUsersManageLeader, getUsersDeptLeaderByDept } from '@/api/system/post.js'
385
       commentOpen: false,
387
       commentOpen: false,
386
       deptList: [],
388
       deptList: [],
387
       userList: [],
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
       placeList: [{ id: 0, name: '301会议室' }, { id: 1, name: '216会议室' }],
405
       placeList: [{ id: 0, name: '301会议室' }, { id: 1, name: '216会议室' }],
391
       commentList: [
406
       commentList: [
392
         {
407
         {
452
         if (this.isEmptyObject(res.data)) {
467
         if (this.isEmptyObject(res.data)) {
453
           this.formTotal = 0;
468
           this.formTotal = 0;
454
           this.form.drafter = this.$store.getters.userId;
469
           this.form.drafter = this.$store.getters.userId;
470
+          this.form.draftTime = parseTime(new Date(), '{y}-{m}-{d}');
455
         }
471
         }
456
         else {
472
         else {
457
           this.formTotal = 1;
473
           this.formTotal = 1;
458
           this.form = res.data;
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
               this.chooseTender = response.data;
477
               this.chooseTender = response.data;
462
               this.isSelect = true
478
               this.isSelect = true
463
             })
479
             })
516
         getTender(val).then(res => {
532
         getTender(val).then(res => {
517
           this.chooseTender = res.data;
533
           this.chooseTender = res.data;
518
           this.isSelect = true;
534
           this.isSelect = true;
519
-          this.getContractId(this.chooseTender)
535
+          this.getContractCode(this.chooseTender)
520
         })
536
         })
521
       } else {
537
       } else {
522
         this.isSelect = false
538
         this.isSelect = false
539
       let partyAList = ['中国电建集团成都勘测设计研究院勘测设计分公司', '成勘院 水环境与城建工程分公司'];
555
       let partyAList = ['中国电建集团成都勘测设计研究院勘测设计分公司', '成勘院 水环境与城建工程分公司'];
540
       return partyAList.indexOf(chooseTender.partyA) != -1 ? '院内' : '院外';
556
       return partyAList.indexOf(chooseTender.partyA) != -1 ? '院内' : '院外';
541
     },
557
     },
542
-    getContractId(chooseTender) {
543
-      let contractId = '';
558
+    getContractCode(chooseTender) {
559
+      let contractCode = '';
544
       if (chooseTender) {
560
       if (chooseTender) {
545
         if (this.getProjectSource(chooseTender) == '院内') {
561
         if (this.getProjectSource(chooseTender) == '院内') {
546
-          listContract({ contractId: 'C' }).then(res => {
562
+          listContract({ contractCode: 'C' }).then(res => {
547
             if (res.total == 0)
563
             if (res.total == 0)
548
-              contractId = 'HT' + new Date().getFullYear() + 'C' + '001';
564
+              contractCode = 'HT' + new Date().getFullYear() + 'C' + '001';
549
             else
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
         else {
570
         else {
555
-          listContract({ contractId: 'W' }).then(res => {
571
+          listContract({ contractCode: 'W' }).then(res => {
556
             if (res.total == 0)
572
             if (res.total == 0)
557
-              contractId = 'HT' + new Date().getFullYear() + 'W' + '001';
573
+              contractCode = 'HT' + new Date().getFullYear() + 'W' + '001';
558
             else
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
           })
661
           })
646
         }
662
         }
647
       }
663
       }
648
-    },    
664
+    },
649
     getDeptLeader(val) {
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
     reset() {
674
     reset() {
659
       this.form = {
675
       this.form = {
660
         contractId: null,
676
         contractId: null,
677
+        contractCode: null,
661
         contractNumber: null,
678
         contractNumber: null,
662
         amount: null,
679
         amount: null,
663
         deposit: null,
680
         deposit: null,
721
               this.open = false;
738
               this.open = false;
722
               this.getList();
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
             const params = { taskId: this.taskForm.taskId };
749
             const params = { taskId: this.taskForm.taskId };
725
             getNextFlowNode(params).then(res => {
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
                 complete(this.taskForm).then(response => {
781
                 complete(this.taskForm).then(response => {
730
                   this.$modal.msgSuccess(response.msg);
782
                   this.$modal.msgSuccess(response.msg);
731
                   this.$emit('goBack')
783
                   this.$emit('goBack')
732
                 });
784
                 });
733
-              })
785
+              }
734
             })
786
             })
735
           }
787
           }
736
         }
788
         }

Loading…
İptal
Kaydet