Browse Source

合同表单

lamphua 1 year ago
parent
commit
3ef213448c
40 changed files with 1833 additions and 217 deletions
  1. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java
  2. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractMeetingController.java
  3. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java
  4. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java
  5. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectContractController.java
  6. 12
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java
  7. 19
    23
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java
  8. 153
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java
  9. 25
    25
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java
  10. 28
    28
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java
  11. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectContract.java
  12. 12
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java
  13. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractCommentMapper.java
  14. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractMeetingMapper.java
  15. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractPaymentMapper.java
  16. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractWorkMapper.java
  17. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectContractMapper.java
  18. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractCommentService.java
  19. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractMeetingService.java
  20. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractPaymentService.java
  21. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractWorkService.java
  22. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectContractService.java
  23. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractCommentServiceImpl.java
  24. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractMeetingServiceImpl.java
  25. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractPaymentServiceImpl.java
  26. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractWorkServiceImpl.java
  27. 1
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectContractServiceImpl.java
  28. 1
    1
      oa-back/ruoyi-system/src/main/resources/mapper/flowable/FlowDeployMapper.xml
  29. 9
    4
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml
  30. 20
    12
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml
  31. 93
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml
  32. 9
    9
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml
  33. 9
    9
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml
  34. 21
    13
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml
  35. 79
    72
      oa-back/sql/sql.sql
  36. 44
    0
      oa-ui/src/api/oa/contract/projectContract.js
  37. 2
    4
      oa-ui/src/views/flowable/form/carForm.vue
  38. 314
    0
      oa-ui/src/views/flowable/form/contractForm.vue
  39. 254
    0
      oa-ui/src/views/flowable/form/subContract.vue
  40. 11
    4
      oa-ui/src/views/flowable/task/todo/detail/index.vue

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractCommentController.java View File

@@ -0,0 +1,98 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcContractComment;
20
+import com.ruoyi.oa.service.ICmcContractCommentService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc合同意见Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-04-19
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/contractComment")
32
+public class CmcContractCommentController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcContractCommentService cmcContractCommentService;
36
+
37
+    /**
38
+     * 查询cmc合同意见列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcContractComment cmcContractComment)
42
+    {
43
+        startPage();
44
+        List<CmcContractComment> list = cmcContractCommentService.selectCmcContractCommentList(cmcContractComment);
45
+        return getDataTable(list);
46
+    }
47
+
48
+    /**
49
+     * 导出cmc合同意见列表
50
+     */
51
+    @Log(title = "cmc合同意见", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, CmcContractComment cmcContractComment)
54
+    {
55
+        List<CmcContractComment> list = cmcContractCommentService.selectCmcContractCommentList(cmcContractComment);
56
+        ExcelUtil<CmcContractComment> util = new ExcelUtil<CmcContractComment>(CmcContractComment.class);
57
+        util.exportExcel(response, list, "cmc合同意见数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc合同意见详细信息
62
+     */
63
+    @GetMapping(value = "/{commentId}")
64
+    public AjaxResult getInfo(@PathVariable("commentId") String commentId)
65
+    {
66
+        return success(cmcContractCommentService.selectCmcContractCommentByCommentId(commentId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc合同意见
71
+     */
72
+    @Log(title = "cmc合同意见", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcContractComment cmcContractComment)
75
+    {
76
+        return toAjax(cmcContractCommentService.insertCmcContractComment(cmcContractComment));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc合同意见
81
+     */
82
+    @Log(title = "cmc合同意见", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcContractComment cmcContractComment)
85
+    {
86
+        return toAjax(cmcContractCommentService.updateCmcContractComment(cmcContractComment));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc合同意见
91
+     */
92
+    @Log(title = "cmc合同意见", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{commentIds}")
94
+    public AjaxResult remove(@PathVariable String[] commentIds)
95
+    {
96
+        return toAjax(cmcContractCommentService.deleteCmcContractCommentByCommentIds(commentIds));
97
+    }
98
+}

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractMeetingController.java View File

@@ -0,0 +1,98 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcContractMeeting;
20
+import com.ruoyi.oa.service.ICmcContractMeetingService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc合同会审Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-04-19
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/contractMeeting")
32
+public class CmcContractMeetingController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcContractMeetingService cmcContractMeetingService;
36
+
37
+    /**
38
+     * 查询cmc合同会审列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcContractMeeting cmcContractMeeting)
42
+    {
43
+        startPage();
44
+        List<CmcContractMeeting> list = cmcContractMeetingService.selectCmcContractMeetingList(cmcContractMeeting);
45
+        return getDataTable(list);
46
+    }
47
+
48
+    /**
49
+     * 导出cmc合同会审列表
50
+     */
51
+    @Log(title = "cmc合同会审", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, CmcContractMeeting cmcContractMeeting)
54
+    {
55
+        List<CmcContractMeeting> list = cmcContractMeetingService.selectCmcContractMeetingList(cmcContractMeeting);
56
+        ExcelUtil<CmcContractMeeting> util = new ExcelUtil<CmcContractMeeting>(CmcContractMeeting.class);
57
+        util.exportExcel(response, list, "cmc合同会审数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc合同会审详细信息
62
+     */
63
+    @GetMapping(value = "/{meetingId}")
64
+    public AjaxResult getInfo(@PathVariable("meetingId") String meetingId)
65
+    {
66
+        return success(cmcContractMeetingService.selectCmcContractMeetingByMeetingId(meetingId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc合同会审
71
+     */
72
+    @Log(title = "cmc合同会审", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcContractMeeting cmcContractMeeting)
75
+    {
76
+        return toAjax(cmcContractMeetingService.insertCmcContractMeeting(cmcContractMeeting));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc合同会审
81
+     */
82
+    @Log(title = "cmc合同会审", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcContractMeeting cmcContractMeeting)
85
+    {
86
+        return toAjax(cmcContractMeetingService.updateCmcContractMeeting(cmcContractMeeting));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc合同会审
91
+     */
92
+    @Log(title = "cmc合同会审", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{meetingIds}")
94
+    public AjaxResult remove(@PathVariable String[] meetingIds)
95
+    {
96
+        return toAjax(cmcContractMeetingService.deleteCmcContractMeetingByMeetingIds(meetingIds));
97
+    }
98
+}

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractPaymentController.java View File

@@ -0,0 +1,98 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcContractPayment;
20
+import com.ruoyi.oa.service.ICmcContractPaymentService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc合同回款Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-04-19
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/contractPayment")
32
+public class CmcContractPaymentController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcContractPaymentService cmcContractPaymentService;
36
+
37
+    /**
38
+     * 查询cmc合同回款列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcContractPayment cmcContractPayment)
42
+    {
43
+        startPage();
44
+        List<CmcContractPayment> list = cmcContractPaymentService.selectCmcContractPaymentList(cmcContractPayment);
45
+        return getDataTable(list);
46
+    }
47
+
48
+    /**
49
+     * 导出cmc合同回款列表
50
+     */
51
+    @Log(title = "cmc合同回款", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, CmcContractPayment cmcContractPayment)
54
+    {
55
+        List<CmcContractPayment> list = cmcContractPaymentService.selectCmcContractPaymentList(cmcContractPayment);
56
+        ExcelUtil<CmcContractPayment> util = new ExcelUtil<CmcContractPayment>(CmcContractPayment.class);
57
+        util.exportExcel(response, list, "cmc合同回款数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc合同回款详细信息
62
+     */
63
+    @GetMapping(value = "/{paymentId}")
64
+    public AjaxResult getInfo(@PathVariable("paymentId") String paymentId)
65
+    {
66
+        return success(cmcContractPaymentService.selectCmcContractPaymentByPaymentId(paymentId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc合同回款
71
+     */
72
+    @Log(title = "cmc合同回款", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcContractPayment cmcContractPayment)
75
+    {
76
+        return toAjax(cmcContractPaymentService.insertCmcContractPayment(cmcContractPayment));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc合同回款
81
+     */
82
+    @Log(title = "cmc合同回款", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcContractPayment cmcContractPayment)
85
+    {
86
+        return toAjax(cmcContractPaymentService.updateCmcContractPayment(cmcContractPayment));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc合同回款
91
+     */
92
+    @Log(title = "cmc合同回款", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{paymentIds}")
94
+    public AjaxResult remove(@PathVariable String[] paymentIds)
95
+    {
96
+        return toAjax(cmcContractPaymentService.deleteCmcContractPaymentByPaymentIds(paymentIds));
97
+    }
98
+}

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractWorkController.java View File

@@ -0,0 +1,98 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcContractWork;
20
+import com.ruoyi.oa.service.ICmcContractWorkService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc合同内容Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-04-19
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/contractWork")
32
+public class CmcContractWorkController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcContractWorkService cmcContractWorkService;
36
+
37
+    /**
38
+     * 查询cmc合同内容列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcContractWork cmcContractWork)
42
+    {
43
+        startPage();
44
+        List<CmcContractWork> list = cmcContractWorkService.selectCmcContractWorkList(cmcContractWork);
45
+        return getDataTable(list);
46
+    }
47
+
48
+    /**
49
+     * 导出cmc合同内容列表
50
+     */
51
+    @Log(title = "cmc合同内容", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, CmcContractWork cmcContractWork)
54
+    {
55
+        List<CmcContractWork> list = cmcContractWorkService.selectCmcContractWorkList(cmcContractWork);
56
+        ExcelUtil<CmcContractWork> util = new ExcelUtil<CmcContractWork>(CmcContractWork.class);
57
+        util.exportExcel(response, list, "cmc合同内容数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc合同内容详细信息
62
+     */
63
+    @GetMapping(value = "/{workId}")
64
+    public AjaxResult getInfo(@PathVariable("workId") String workId)
65
+    {
66
+        return success(cmcContractWorkService.selectCmcContractWorkByWorkId(workId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc合同内容
71
+     */
72
+    @Log(title = "cmc合同内容", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcContractWork cmcContractWork)
75
+    {
76
+        return toAjax(cmcContractWorkService.insertCmcContractWork(cmcContractWork));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc合同内容
81
+     */
82
+    @Log(title = "cmc合同内容", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcContractWork cmcContractWork)
85
+    {
86
+        return toAjax(cmcContractWorkService.updateCmcContractWork(cmcContractWork));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc合同内容
91
+     */
92
+    @Log(title = "cmc合同内容", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{workIds}")
94
+    public AjaxResult remove(@PathVariable String[] workIds)
95
+    {
96
+        return toAjax(cmcContractWorkService.deleteCmcContractWorkByWorkIds(workIds));
97
+    }
98
+}

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectContractController.java View File

@@ -0,0 +1,98 @@
1
+package com.ruoyi.web.controller.oa;
2
+
3
+import java.util.List;
4
+import javax.servlet.http.HttpServletResponse;
5
+import org.springframework.security.access.prepost.PreAuthorize;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.web.bind.annotation.GetMapping;
8
+import org.springframework.web.bind.annotation.PostMapping;
9
+import org.springframework.web.bind.annotation.PutMapping;
10
+import org.springframework.web.bind.annotation.DeleteMapping;
11
+import org.springframework.web.bind.annotation.PathVariable;
12
+import org.springframework.web.bind.annotation.RequestBody;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RestController;
15
+import com.ruoyi.common.annotation.Log;
16
+import com.ruoyi.common.core.controller.BaseController;
17
+import com.ruoyi.common.core.domain.AjaxResult;
18
+import com.ruoyi.common.enums.BusinessType;
19
+import com.ruoyi.oa.domain.CmcProjectContract;
20
+import com.ruoyi.oa.service.ICmcProjectContractService;
21
+import com.ruoyi.common.utils.poi.ExcelUtil;
22
+import com.ruoyi.common.core.page.TableDataInfo;
23
+
24
+/**
25
+ * cmc项目合同Controller
26
+ * 
27
+ * @author cmc
28
+ * @date 2024-04-19
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/projectContract")
32
+public class CmcProjectContractController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcProjectContractService cmcProjectContractService;
36
+
37
+    /**
38
+     * 查询cmc项目合同列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcProjectContract cmcProjectContract)
42
+    {
43
+        startPage();
44
+        List<CmcProjectContract> list = cmcProjectContractService.selectCmcProjectContractList(cmcProjectContract);
45
+        return getDataTable(list);
46
+    }
47
+
48
+    /**
49
+     * 导出cmc项目合同列表
50
+     */
51
+    @Log(title = "cmc项目合同", businessType = BusinessType.EXPORT)
52
+    @PostMapping("/export")
53
+    public void export(HttpServletResponse response, CmcProjectContract cmcProjectContract)
54
+    {
55
+        List<CmcProjectContract> list = cmcProjectContractService.selectCmcProjectContractList(cmcProjectContract);
56
+        ExcelUtil<CmcProjectContract> util = new ExcelUtil<CmcProjectContract>(CmcProjectContract.class);
57
+        util.exportExcel(response, list, "cmc项目合同数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc项目合同详细信息
62
+     */
63
+    @GetMapping(value = "/{projectId}")
64
+    public AjaxResult getInfo(@PathVariable("projectId") String projectId)
65
+    {
66
+        return success(cmcProjectContractService.selectCmcProjectContractByProjectId(projectId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc项目合同
71
+     */
72
+    @Log(title = "cmc项目合同", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcProjectContract cmcProjectContract)
75
+    {
76
+        return toAjax(cmcProjectContractService.insertCmcProjectContract(cmcProjectContract));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc项目合同
81
+     */
82
+    @Log(title = "cmc项目合同", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcProjectContract cmcProjectContract)
85
+    {
86
+        return toAjax(cmcProjectContractService.updateCmcProjectContract(cmcProjectContract));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc项目合同
91
+     */
92
+    @Log(title = "cmc项目合同", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{projectIds}")
94
+    public AjaxResult remove(@PathVariable String[] projectIds)
95
+    {
96
+        return toAjax(cmcProjectContractService.deleteCmcProjectContractByProjectIds(projectIds));
97
+    }
98
+}

+ 12
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java View File

@@ -3,6 +3,7 @@ package com.ruoyi.oa.domain;
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
6 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 8
 import org.apache.commons.lang3.builder.ToStringStyle;
8 9
 import com.ruoyi.common.annotation.Excel;
@@ -44,6 +45,8 @@ public class CmcContract extends BaseEntity
44 45
     @Excel(name = "拟稿人")
45 46
     private Long drafter;
46 47
 
48
+    private SysUser draftUser;
49
+
47 50
     /** 拟稿日期 */
48 51
     @JsonFormat(pattern = "yyyy-MM-dd")
49 52
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
@@ -130,6 +133,15 @@ public class CmcContract extends BaseEntity
130 133
     {
131 134
         return drafter;
132 135
     }
136
+    public void setDraftUser(SysUser draftUser)
137
+    {
138
+        this.draftUser = draftUser;
139
+    }
140
+
141
+    public SysUser getDraftUser()
142
+    {
143
+        return draftUser;
144
+    }
133 145
     public void setDraftTime(Date draftTime)
134 146
     {
135 147
         this.draftTime = draftTime;

+ 19
- 23
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java View File

@@ -45,72 +45,68 @@ public class CmcContractComment extends BaseEntity
45 45
     @Excel(name = "会审日期", width = 30, dateFormat = "yyyy-MM-dd")
46 46
     private Date commentTime;
47 47
 
48
-    /** 是否签名 */
49
-    @Excel(name = "是否签名")
50
-    private String isSign;
51
-
52
-    public void setCommentId(String commentId) 
48
+    public void setCommentId(String commentId)
53 49
     {
54 50
         this.commentId = commentId;
55 51
     }
56 52
 
57
-    public String getCommentId() 
53
+    public String getCommentId()
58 54
     {
59 55
         return commentId;
60 56
     }
61
-    public void setContractId(String contractId) 
57
+    public void setContractId(String contractId)
62 58
     {
63 59
         this.contractId = contractId;
64 60
     }
65 61
 
66
-    public String getContractId() 
62
+    public String getContractId()
67 63
     {
68 64
         return contractId;
69 65
     }
70
-    public void setDeptId(Long deptId) 
66
+    public void setDeptId(Long deptId)
71 67
     {
72 68
         this.deptId = deptId;
73 69
     }
74 70
 
75
-    public Long getDeptId() 
71
+    public Long getDeptId()
76 72
     {
77 73
         return deptId;
78 74
     }
79
-    public void setUserId(Long userId) 
75
+    public void setUserId(Long userId)
80 76
     {
81 77
         this.userId = userId;
82 78
     }
83 79
 
84
-    public Long getUserId() 
80
+    public Long getUserId()
85 81
     {
86 82
         return userId;
87 83
     }
88
-    public void setComment(String comment) 
84
+    public void setComment(String comment)
89 85
     {
90 86
         this.comment = comment;
91 87
     }
92 88
 
93
-    public String getComment() 
89
+    public String getComment()
94 90
     {
95 91
         return comment;
96 92
     }
97
-    public void setCommentTime(Date commentTime) 
93
+    public void setDocument(String document)
98 94
     {
99
-        this.commentTime = commentTime;
95
+        this.document = document;
100 96
     }
101 97
 
102
-    public Date getCommentTime() 
98
+    public String getDocument()
103 99
     {
104
-        return commentTime;
100
+        return document;
105 101
     }
106
-    public void setIsSign(String isSign) 
102
+    public void setCommentTime(Date commentTime)
107 103
     {
108
-        this.isSign = isSign;
104
+        this.commentTime = commentTime;
109 105
     }
110 106
 
111
-    public String getIsSign() 
107
+    public Date getCommentTime()
112 108
     {
113
-        return isSign;
109
+        return commentTime;
114 110
     }
115 111
 
116 112
     @Override
@@ -121,8 +117,8 @@ public class CmcContractComment extends BaseEntity
121 117
             .append("deptId", getDeptId())
122 118
             .append("userId", getUserId())
123 119
             .append("comment", getComment())
120
+            .append("document", getDocument())
124 121
             .append("commentTime", getCommentTime())
125
-            .append("isSign", getIsSign())
126 122
             .toString();
127 123
     }
128 124
 }

+ 153
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractMeeting.java View File

@@ -0,0 +1,153 @@
1
+package com.ruoyi.oa.domain;
2
+
3
+import java.util.Date;
4
+import com.fasterxml.jackson.annotation.JsonFormat;
5
+import org.apache.commons.lang3.builder.ToStringBuilder;
6
+import org.apache.commons.lang3.builder.ToStringStyle;
7
+import com.ruoyi.common.annotation.Excel;
8
+import com.ruoyi.common.core.domain.BaseEntity;
9
+
10
+/**
11
+ * cmc合同会审对象 cmc_contract_meeting
12
+ *
13
+ * @author cmc
14
+ * @date 2024-04-19
15
+ */
16
+public class CmcContractMeeting extends BaseEntity
17
+{
18
+    private static final long serialVersionUID = 1L;
19
+
20
+    /** 合同会审id */
21
+    private String meetingId;
22
+
23
+    /** 合同id */
24
+    @Excel(name = "合同id")
25
+    private String contractId;
26
+
27
+    /** 评审时间 */
28
+    @JsonFormat(pattern = "yyyy-MM-dd")
29
+    @Excel(name = "评审时间", width = 30, dateFormat = "yyyy-MM-dd")
30
+    private Date meetingTime;
31
+
32
+    /** 评审主持人 */
33
+    @Excel(name = "评审主持人")
34
+    private Long hostId;
35
+
36
+    /** 评审地点 */
37
+    @Excel(name = "评审地点")
38
+    private String place;
39
+
40
+    /** 参与评审人 */
41
+    @Excel(name = "参与评审人")
42
+    private String users;
43
+
44
+    /** 评审结论 */
45
+    @Excel(name = "评审结论")
46
+    private String conclusion;
47
+
48
+    /** 评审意见表 */
49
+    @Excel(name = "评审意见表")
50
+    private String document;
51
+
52
+    /** 总结时间 */
53
+    @JsonFormat(pattern = "yyyy-MM-dd")
54
+    @Excel(name = "总结时间", width = 30, dateFormat = "yyyy-MM-dd")
55
+    private Date commentTime;
56
+
57
+    public void setMeetingId(String meetingId)
58
+    {
59
+        this.meetingId = meetingId;
60
+    }
61
+
62
+    public String getMeetingId()
63
+    {
64
+        return meetingId;
65
+    }
66
+    public void setContractId(String contractId)
67
+    {
68
+        this.contractId = contractId;
69
+    }
70
+
71
+    public String getContractId()
72
+    {
73
+        return contractId;
74
+    }
75
+    public void setMeetingTime(Date meetingTime)
76
+    {
77
+        this.meetingTime = meetingTime;
78
+    }
79
+
80
+    public Date getMeetingTime()
81
+    {
82
+        return meetingTime;
83
+    }
84
+    public void setHostId(Long hostId)
85
+    {
86
+        this.hostId = hostId;
87
+    }
88
+
89
+    public Long getHostId()
90
+    {
91
+        return hostId;
92
+    }
93
+    public void setPlace(String place)
94
+    {
95
+        this.place = place;
96
+    }
97
+
98
+    public String getPlace()
99
+    {
100
+        return place;
101
+    }
102
+    public void setUsers(String users)
103
+    {
104
+        this.users = users;
105
+    }
106
+
107
+    public String getUsers()
108
+    {
109
+        return users;
110
+    }
111
+    public void setConclusion(String conclusion)
112
+    {
113
+        this.conclusion = conclusion;
114
+    }
115
+
116
+    public String getConclusion()
117
+    {
118
+        return conclusion;
119
+    }
120
+    public void setDocument(String document)
121
+    {
122
+        this.document = document;
123
+    }
124
+
125
+    public String getDocument()
126
+    {
127
+        return document;
128
+    }
129
+    public void setCommentTime(Date commentTime)
130
+    {
131
+        this.commentTime = commentTime;
132
+    }
133
+
134
+    public Date getCommentTime()
135
+    {
136
+        return commentTime;
137
+    }
138
+
139
+    @Override
140
+    public String toString() {
141
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
142
+                .append("meetingId", getMeetingId())
143
+                .append("contractId", getContractId())
144
+                .append("meetingTime", getMeetingTime())
145
+                .append("hostId", getHostId())
146
+                .append("place", getPlace())
147
+                .append("users", getUsers())
148
+                .append("conclusion", getConclusion())
149
+                .append("document", getDocument())
150
+                .append("commentTime", getCommentTime())
151
+                .toString();
152
+    }
153
+}

+ 25
- 25
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java View File

@@ -9,9 +9,9 @@ import com.ruoyi.common.core.domain.BaseEntity;
9 9
 
10 10
 /**
11 11
  * cmc合同回款对象 cmc_contract_payment
12
- *
12
+ * 
13 13
  * @author cmc
14
- * @date 2024-04-18
14
+ * @date 2024-04-19
15 15
  */
16 16
 public class CmcContractPayment extends BaseEntity
17 17
 {
@@ -45,66 +45,66 @@ public class CmcContractPayment extends BaseEntity
45 45
     @Excel(name = "回款预计时间", width = 30, dateFormat = "yyyy-MM-dd")
46 46
     private Date paymentTime;
47 47
 
48
-    public void setPaymentId(String paymentId)
48
+    public void setPaymentId(String paymentId) 
49 49
     {
50 50
         this.paymentId = paymentId;
51 51
     }
52 52
 
53
-    public String getPaymentId()
53
+    public String getPaymentId() 
54 54
     {
55 55
         return paymentId;
56 56
     }
57
-    public void setContractId(String contractId)
57
+    public void setContractId(String contractId) 
58 58
     {
59 59
         this.contractId = contractId;
60 60
     }
61 61
 
62
-    public String getContractId()
62
+    public String getContractId() 
63 63
     {
64 64
         return contractId;
65 65
     }
66
-    public void setSubContractId(String subContractId)
66
+    public void setSubContractId(String subContractId) 
67 67
     {
68 68
         this.subContractId = subContractId;
69 69
     }
70 70
 
71
-    public String getSubContractId()
71
+    public String getSubContractId() 
72 72
     {
73 73
         return subContractId;
74 74
     }
75
-    public void setPaymentCondition(String paymentCondition)
75
+    public void setPaymentCondition(String paymentCondition) 
76 76
     {
77 77
         this.paymentCondition = paymentCondition;
78 78
     }
79 79
 
80
-    public String getPaymentCondition()
80
+    public String getPaymentCondition() 
81 81
     {
82 82
         return paymentCondition;
83 83
     }
84
-    public void setPaymentPercentage(String paymentPercentage)
84
+    public void setPaymentPercentage(String paymentPercentage) 
85 85
     {
86 86
         this.paymentPercentage = paymentPercentage;
87 87
     }
88 88
 
89
-    public String getPaymentPercentage()
89
+    public String getPaymentPercentage() 
90 90
     {
91 91
         return paymentPercentage;
92 92
     }
93
-    public void setPaymentAmount(String paymentAmount)
93
+    public void setPaymentAmount(String paymentAmount) 
94 94
     {
95 95
         this.paymentAmount = paymentAmount;
96 96
     }
97 97
 
98
-    public String getPaymentAmount()
98
+    public String getPaymentAmount() 
99 99
     {
100 100
         return paymentAmount;
101 101
     }
102
-    public void setPaymentTime(Date paymentTime)
102
+    public void setPaymentTime(Date paymentTime) 
103 103
     {
104 104
         this.paymentTime = paymentTime;
105 105
     }
106 106
 
107
-    public Date getPaymentTime()
107
+    public Date getPaymentTime() 
108 108
     {
109 109
         return paymentTime;
110 110
     }
@@ -112,14 +112,14 @@ public class CmcContractPayment extends BaseEntity
112 112
     @Override
113 113
     public String toString() {
114 114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115
-                .append("paymentId", getPaymentId())
116
-                .append("contractId", getContractId())
117
-                .append("subContractId", getSubContractId())
118
-                .append("paymentCondition", getPaymentCondition())
119
-                .append("paymentPercentage", getPaymentPercentage())
120
-                .append("paymentAmount", getPaymentAmount())
121
-                .append("paymentTime", getPaymentTime())
122
-                .append("remark", getRemark())
123
-                .toString();
115
+            .append("paymentId", getPaymentId())
116
+            .append("contractId", getContractId())
117
+            .append("subContractId", getSubContractId())
118
+            .append("paymentCondition", getPaymentCondition())
119
+            .append("paymentPercentage", getPaymentPercentage())
120
+            .append("paymentAmount", getPaymentAmount())
121
+            .append("paymentTime", getPaymentTime())
122
+            .append("remark", getRemark())
123
+            .toString();
124 124
     }
125 125
 }

+ 28
- 28
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java View File

@@ -9,9 +9,9 @@ import com.ruoyi.common.core.domain.BaseEntity;
9 9
 
10 10
 /**
11 11
  * cmc合同内容对象 cmc_contract_work
12
- *
12
+ * 
13 13
  * @author cmc
14
- * @date 2024-04-18
14
+ * @date 2024-04-19
15 15
  */
16 16
 public class CmcContractWork extends BaseEntity
17 17
 {
@@ -49,75 +49,75 @@ public class CmcContractWork extends BaseEntity
49 49
     @Excel(name = "要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
50 50
     private Date deadline;
51 51
 
52
-    public void setWorkId(String workId)
52
+    public void setWorkId(String workId) 
53 53
     {
54 54
         this.workId = workId;
55 55
     }
56 56
 
57
-    public String getWorkId()
57
+    public String getWorkId() 
58 58
     {
59 59
         return workId;
60 60
     }
61
-    public void setContractId(String contractId)
61
+    public void setContractId(String contractId) 
62 62
     {
63 63
         this.contractId = contractId;
64 64
     }
65 65
 
66
-    public String getContractId()
66
+    public String getContractId() 
67 67
     {
68 68
         return contractId;
69 69
     }
70
-    public void setSubContractId(String subContractId)
70
+    public void setSubContractId(String subContractId) 
71 71
     {
72 72
         this.subContractId = subContractId;
73 73
     }
74 74
 
75
-    public String getSubContractId()
75
+    public String getSubContractId() 
76 76
     {
77 77
         return subContractId;
78 78
     }
79
-    public void setContent(String content)
79
+    public void setContent(String content) 
80 80
     {
81 81
         this.content = content;
82 82
     }
83 83
 
84
-    public String getContent()
84
+    public String getContent() 
85 85
     {
86 86
         return content;
87 87
     }
88
-    public void setScale(String scale)
88
+    public void setScale(String scale) 
89 89
     {
90 90
         this.scale = scale;
91 91
     }
92 92
 
93
-    public String getScale()
93
+    public String getScale() 
94 94
     {
95 95
         return scale;
96 96
     }
97
-    public void setUnit(String unit)
97
+    public void setUnit(String unit) 
98 98
     {
99 99
         this.unit = unit;
100 100
     }
101 101
 
102
-    public String getUnit()
102
+    public String getUnit() 
103 103
     {
104 104
         return unit;
105 105
     }
106
-    public void setWorkload(String workload)
106
+    public void setWorkload(String workload) 
107 107
     {
108 108
         this.workload = workload;
109 109
     }
110 110
 
111
-    public String getWorkload()
111
+    public String getWorkload() 
112 112
     {
113 113
         return workload;
114 114
     }
115
-    public void setDeadline(Date deadline)
115
+    public void setDeadline(Date deadline) 
116 116
     {
117 117
         this.deadline = deadline;
118 118
     }
119 119
 
120
-    public Date getDeadline()
120
+    public Date getDeadline() 
121 121
     {
122 122
         return deadline;
123 123
     }
@@ -125,15 +125,15 @@ public class CmcContractWork extends BaseEntity
125 125
     @Override
126 126
     public String toString() {
127 127
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
128
-                .append("workId", getWorkId())
129
-                .append("contractId", getContractId())
130
-                .append("subContractId", getSubContractId())
131
-                .append("content", getContent())
132
-                .append("scale", getScale())
133
-                .append("unit", getUnit())
134
-                .append("workload", getWorkload())
135
-                .append("deadline", getDeadline())
136
-                .append("remark", getRemark())
137
-                .toString();
128
+            .append("workId", getWorkId())
129
+            .append("contractId", getContractId())
130
+            .append("subContractId", getSubContractId())
131
+            .append("content", getContent())
132
+            .append("scale", getScale())
133
+            .append("unit", getUnit())
134
+            .append("workload", getWorkload())
135
+            .append("deadline", getDeadline())
136
+            .append("remark", getRemark())
137
+            .toString();
138 138
     }
139 139
 }

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectContract.java View File

@@ -9,7 +9,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
9 9
  * cmc项目合同对象 cmc_project_contract
10 10
  * 
11 11
  * @author cmc
12
- * @date 2024-04-18
12
+ * @date 2024-04-19
13 13
  */
14 14
 public class CmcProjectContract extends BaseEntity
15 15
 {

+ 12
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java View File

@@ -3,6 +3,7 @@ package com.ruoyi.oa.domain;
3 3
 import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
6 7
 import org.apache.commons.lang3.builder.ToStringBuilder;
7 8
 import org.apache.commons.lang3.builder.ToStringStyle;
8 9
 import com.ruoyi.common.annotation.Excel;
@@ -45,6 +46,8 @@ public class CmcSubContract extends BaseEntity
45 46
     @Excel(name = "拟稿人")
46 47
     private Long drafter;
47 48
 
49
+    private SysUser draftUser;
50
+
48 51
     /** 拟稿日期 */
49 52
     @JsonFormat(pattern = "yyyy-MM-dd")
50 53
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
@@ -130,6 +133,15 @@ public class CmcSubContract extends BaseEntity
130 133
     {
131 134
         return drafter;
132 135
     }
136
+    public void setDraftUser(SysUser draftUser)
137
+    {
138
+        this.draftUser = draftUser;
139
+    }
140
+
141
+    public SysUser getDraftUser()
142
+    {
143
+        return draftUser;
144
+    }
133 145
     public void setDraftTime(Date draftTime) 
134 146
     {
135 147
         this.draftTime = draftTime;

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractCommentMapper.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractComment;
7 7
  * cmc合同意见Mapper接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface CmcContractCommentMapper 
13 13
 {

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractMeetingMapper.java View File

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.mapper;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcContractMeeting;
5
+
6
+/**
7
+ * cmc合同会审Mapper接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-04-19
11
+ */
12
+public interface CmcContractMeetingMapper 
13
+{
14
+    /**
15
+     * 查询cmc合同会审
16
+     * 
17
+     * @param meetingId cmc合同会审主键
18
+     * @return cmc合同会审
19
+     */
20
+    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
21
+
22
+    /**
23
+     * 查询cmc合同会审列表
24
+     * 
25
+     * @param cmcContractMeeting cmc合同会审
26
+     * @return cmc合同会审集合
27
+     */
28
+    public List<CmcContractMeeting> selectCmcContractMeetingList(CmcContractMeeting cmcContractMeeting);
29
+
30
+    /**
31
+     * 新增cmc合同会审
32
+     * 
33
+     * @param cmcContractMeeting cmc合同会审
34
+     * @return 结果
35
+     */
36
+    public int insertCmcContractMeeting(CmcContractMeeting cmcContractMeeting);
37
+
38
+    /**
39
+     * 修改cmc合同会审
40
+     * 
41
+     * @param cmcContractMeeting cmc合同会审
42
+     * @return 结果
43
+     */
44
+    public int updateCmcContractMeeting(CmcContractMeeting cmcContractMeeting);
45
+
46
+    /**
47
+     * 删除cmc合同会审
48
+     * 
49
+     * @param meetingId cmc合同会审主键
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcContractMeetingByMeetingId(String meetingId);
53
+
54
+    /**
55
+     * 批量删除cmc合同会审
56
+     * 
57
+     * @param meetingIds 需要删除的数据主键集合
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds);
61
+}

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractPaymentMapper.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractPayment;
7 7
  * cmc合同回款Mapper接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface CmcContractPaymentMapper 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcContractWorkMapper.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractWork;
7 7
  * cmc合同内容Mapper接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface CmcContractWorkMapper 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectContractMapper.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcProjectContract;
7 7
  * cmc项目合同Mapper接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-04-18
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface CmcProjectContractMapper 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractCommentService.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractComment;
7 7
  * cmc合同意见Service接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface ICmcContractCommentService 
13 13
 {

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractMeetingService.java View File

@@ -0,0 +1,61 @@
1
+package com.ruoyi.oa.service;
2
+
3
+import java.util.List;
4
+import com.ruoyi.oa.domain.CmcContractMeeting;
5
+
6
+/**
7
+ * cmc合同会审Service接口
8
+ * 
9
+ * @author cmc
10
+ * @date 2024-04-19
11
+ */
12
+public interface ICmcContractMeetingService 
13
+{
14
+    /**
15
+     * 查询cmc合同会审
16
+     * 
17
+     * @param meetingId cmc合同会审主键
18
+     * @return cmc合同会审
19
+     */
20
+    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId);
21
+
22
+    /**
23
+     * 查询cmc合同会审列表
24
+     * 
25
+     * @param cmcContractMeeting cmc合同会审
26
+     * @return cmc合同会审集合
27
+     */
28
+    public List<CmcContractMeeting> selectCmcContractMeetingList(CmcContractMeeting cmcContractMeeting);
29
+
30
+    /**
31
+     * 新增cmc合同会审
32
+     * 
33
+     * @param cmcContractMeeting cmc合同会审
34
+     * @return 结果
35
+     */
36
+    public int insertCmcContractMeeting(CmcContractMeeting cmcContractMeeting);
37
+
38
+    /**
39
+     * 修改cmc合同会审
40
+     * 
41
+     * @param cmcContractMeeting cmc合同会审
42
+     * @return 结果
43
+     */
44
+    public int updateCmcContractMeeting(CmcContractMeeting cmcContractMeeting);
45
+
46
+    /**
47
+     * 批量删除cmc合同会审
48
+     * 
49
+     * @param meetingIds 需要删除的cmc合同会审主键集合
50
+     * @return 结果
51
+     */
52
+    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds);
53
+
54
+    /**
55
+     * 删除cmc合同会审信息
56
+     * 
57
+     * @param meetingId cmc合同会审主键
58
+     * @return 结果
59
+     */
60
+    public int deleteCmcContractMeetingByMeetingId(String meetingId);
61
+}

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractPaymentService.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractPayment;
7 7
  * cmc合同回款Service接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface ICmcContractPaymentService 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcContractWorkService.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcContractWork;
7 7
  * cmc合同内容Service接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-03-15
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface ICmcContractWorkService 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectContractService.java View File

@@ -7,7 +7,7 @@ import com.ruoyi.oa.domain.CmcProjectContract;
7 7
  * cmc项目合同Service接口
8 8
  * 
9 9
  * @author cmc
10
- * @date 2024-04-18
10
+ * @date 2024-04-19
11 11
  */
12 12
 public interface ICmcProjectContractService 
13 13
 {

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractCommentServiceImpl.java View File

@@ -11,7 +11,7 @@ import com.ruoyi.oa.service.ICmcContractCommentService;
11 11
  * cmc合同意见Service业务层处理
12 12
  * 
13 13
  * @author cmc
14
- * @date 2024-03-15
14
+ * @date 2024-04-19
15 15
  */
16 16
 @Service
17 17
 public class CmcContractCommentServiceImpl implements ICmcContractCommentService 

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractMeetingServiceImpl.java View File

@@ -0,0 +1,93 @@
1
+package com.ruoyi.oa.service.impl;
2
+
3
+import java.util.List;
4
+import org.springframework.beans.factory.annotation.Autowired;
5
+import org.springframework.stereotype.Service;
6
+import com.ruoyi.oa.mapper.CmcContractMeetingMapper;
7
+import com.ruoyi.oa.domain.CmcContractMeeting;
8
+import com.ruoyi.oa.service.ICmcContractMeetingService;
9
+
10
+/**
11
+ * cmc合同会审Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-04-19
15
+ */
16
+@Service
17
+public class CmcContractMeetingServiceImpl implements ICmcContractMeetingService 
18
+{
19
+    @Autowired
20
+    private CmcContractMeetingMapper cmcContractMeetingMapper;
21
+
22
+    /**
23
+     * 查询cmc合同会审
24
+     * 
25
+     * @param meetingId cmc合同会审主键
26
+     * @return cmc合同会审
27
+     */
28
+    @Override
29
+    public CmcContractMeeting selectCmcContractMeetingByMeetingId(String meetingId)
30
+    {
31
+        return cmcContractMeetingMapper.selectCmcContractMeetingByMeetingId(meetingId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc合同会审列表
36
+     * 
37
+     * @param cmcContractMeeting cmc合同会审
38
+     * @return cmc合同会审
39
+     */
40
+    @Override
41
+    public List<CmcContractMeeting> selectCmcContractMeetingList(CmcContractMeeting cmcContractMeeting)
42
+    {
43
+        return cmcContractMeetingMapper.selectCmcContractMeetingList(cmcContractMeeting);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc合同会审
48
+     * 
49
+     * @param cmcContractMeeting cmc合同会审
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcContractMeeting(CmcContractMeeting cmcContractMeeting)
54
+    {
55
+        return cmcContractMeetingMapper.insertCmcContractMeeting(cmcContractMeeting);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc合同会审
60
+     * 
61
+     * @param cmcContractMeeting cmc合同会审
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcContractMeeting(CmcContractMeeting cmcContractMeeting)
66
+    {
67
+        return cmcContractMeetingMapper.updateCmcContractMeeting(cmcContractMeeting);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc合同会审
72
+     * 
73
+     * @param meetingIds 需要删除的cmc合同会审主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcContractMeetingByMeetingIds(String[] meetingIds)
78
+    {
79
+        return cmcContractMeetingMapper.deleteCmcContractMeetingByMeetingIds(meetingIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc合同会审信息
84
+     * 
85
+     * @param meetingId cmc合同会审主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcContractMeetingByMeetingId(String meetingId)
90
+    {
91
+        return cmcContractMeetingMapper.deleteCmcContractMeetingByMeetingId(meetingId);
92
+    }
93
+}

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractPaymentServiceImpl.java View File

@@ -11,7 +11,7 @@ import com.ruoyi.oa.service.ICmcContractPaymentService;
11 11
  * cmc合同回款Service业务层处理
12 12
  * 
13 13
  * @author cmc
14
- * @date 2024-03-15
14
+ * @date 2024-04-19
15 15
  */
16 16
 @Service
17 17
 public class CmcContractPaymentServiceImpl implements ICmcContractPaymentService 

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcContractWorkServiceImpl.java View File

@@ -11,7 +11,7 @@ import com.ruoyi.oa.service.ICmcContractWorkService;
11 11
  * cmc合同内容Service业务层处理
12 12
  * 
13 13
  * @author cmc
14
- * @date 2024-03-15
14
+ * @date 2024-04-19
15 15
  */
16 16
 @Service
17 17
 public class CmcContractWorkServiceImpl implements ICmcContractWorkService 

+ 1
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectContractServiceImpl.java View File

@@ -11,7 +11,7 @@ import com.ruoyi.oa.service.ICmcProjectContractService;
11 11
  * cmc项目合同Service业务层处理
12 12
  * 
13 13
  * @author cmc
14
- * @date 2024-04-18
14
+ * @date 2024-04-19
15 15
  */
16 16
 @Service
17 17
 public class CmcProjectContractServiceImpl implements ICmcProjectContractService 

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/flowable/FlowDeployMapper.xml View File

@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
24 24
                and rd.name_ like concat('%', #{name}, '%')
25 25
             </if>
26 26
         </where>
27
-        order by rd.deploy_time_ desc
27
+        order by rd.id_ asc
28 28
     </select>
29 29
 
30 30
 

+ 9
- 4
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractCommentMapper.xml View File

@@ -10,29 +10,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
10 10
         <result property="deptId"    column="dept_id"    />
11 11
         <result property="userId"    column="user_id"    />
12 12
         <result property="comment"    column="comment"    />
13
+        <result property="document"    column="document"    />
13 14
         <result property="commentTime"    column="comment_time"    />
14 15
     </resultMap>
15 16
 
16 17
     <sql id="selectCmcContractCommentVo">
17
-        select comment_id, contract_id, dept_id, user_id, comment, comment_time from cmc_contract_comment
18
+        select comment_id, contract_id, dept_id, user_id, comment, document, comment_time from cmc_contract_comment
18 19
     </sql>
19 20
 
20 21
     <select id="selectCmcContractCommentList" parameterType="CmcContractComment" resultMap="CmcContractCommentResult">
21 22
         <include refid="selectCmcContractCommentVo"/>
22
-        <where>  
23
+        <where>
23 24
             <if test="contractId != null  and contractId != ''"> and contract_id like concat('%', #{contractId}, '%')</if>
24 25
             <if test="deptId != null "> and dept_id = #{deptId}</if>
25 26
             <if test="userId != null "> and user_id = #{userId}</if>
26 27
             <if test="comment != null  and comment != ''"> and comment = #{comment}</if>
28
+            <if test="document != null  and document != ''"> and document = #{document}</if>
27 29
             <if test="commentTime != null "> and comment_time = #{commentTime}</if>
28 30
         </where>
29 31
     </select>
30
-    
32
+
31 33
     <select id="selectCmcContractCommentByCommentId" parameterType="String" resultMap="CmcContractCommentResult">
32 34
         <include refid="selectCmcContractCommentVo"/>
33 35
         where comment_id = #{commentId}
34 36
     </select>
35
-        
37
+
36 38
     <insert id="insertCmcContractComment" parameterType="CmcContractComment">
37 39
         insert into cmc_contract_comment
38 40
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -41,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
41 43
             <if test="deptId != null">dept_id,</if>
42 44
             <if test="userId != null">user_id,</if>
43 45
             <if test="comment != null">comment,</if>
46
+            <if test="document != null">document,</if>
44 47
             <if test="commentTime != null">comment_time,</if>
45 48
          </trim>
46 49
         <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -49,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 52
             <if test="deptId != null">#{deptId},</if>
50 53
             <if test="userId != null">#{userId},</if>
51 54
             <if test="comment != null">#{comment},</if>
55
+            <if test="document != null">#{document},</if>
52 56
             <if test="commentTime != null">#{commentTime},</if>
53 57
          </trim>
54 58
     </insert>
@@ -60,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
60 64
             <if test="deptId != null">dept_id = #{deptId},</if>
61 65
             <if test="userId != null">user_id = #{userId},</if>
62 66
             <if test="comment != null">comment = #{comment},</if>
67
+            <if test="document != null">document = #{document},</if>
63 68
             <if test="commentTime != null">comment_time = #{commentTime},</if>
64 69
         </trim>
65 70
         where comment_id = #{commentId}

+ 20
- 12
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml View File

@@ -17,31 +17,39 @@
17 17
         <result property="signRemark"    column="sign_remark"    />
18 18
         <result property="signScan"    column="sign_scan"    />
19 19
         <result property="commentType"    column="comment_type"    />
20
+        <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
21
+    </resultMap>
22
+
23
+    <resultMap type="SysUser" id="DraftUserResult">
24
+        <result property="userId"    column="user_id"    />
25
+        <result property="nickName"    column="draft_nick_name"    />
20 26
     </resultMap>
21 27
 
22 28
     <sql id="selectCmcContractVo">
23
-        select contract_id, contract_number, amount, deposit, contract_document, drafter, draft_time, remark, sign_date, sign_remark, sign_scan, comment_type from cmc_contract
29
+        select c.contract_id, c.contract_number, 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,
30
+               c.sign_scan, c.comment_type from cmc_contract
31
+        left join sys_user as u on u.user_id = ca.drafter
24 32
     </sql>
25 33
 
26 34
     <select id="selectCmcContractList" parameterType="CmcContract" resultMap="CmcContractResult">
27 35
         <include refid="selectCmcContractVo"/>
28 36
         <where>
29
-            <if test="contractNumber != null  and contractNumber != ''"> and contract_number = #{contractNumber}</if>
30
-            <if test="amount != null "> and amount = #{amount}</if>
31
-            <if test="deposit != null "> and deposit = #{deposit}</if>
32
-            <if test="contractDocument != null  and contractDocument != ''"> and contract_document = #{contractDocument}</if>
33
-            <if test="drafter != null "> and drafter = #{drafter}</if>
34
-            <if test="draftTime != null "> and draft_time = #{draftTime}</if>
35
-            <if test="signDate != null "> and sign_date = #{signDate}</if>
36
-            <if test="signRemark != null  and signRemark != ''"> and sign_remark = #{signRemark}</if>
37
-            <if test="signScan != null  and signScan != ''"> and sign_scan = #{signScan}</if>
38
-            <if test="commentType != null  and commentType != ''"> and comment_type = #{commentType}</if>
37
+            <if test="contractNumber != null  and contractNumber != ''"> and c.contract_number = #{contractNumber}</if>
38
+            <if test="amount != null "> and c.amount = #{amount}</if>
39
+            <if test="deposit != null "> and c.deposit = #{deposit}</if>
40
+            <if test="contractDocument != null  and contractDocument != ''"> and c.contract_document = #{contractDocument}</if>
41
+            <if test="drafter != null "> and c.drafter = #{drafter}</if>
42
+            <if test="draftTime != null "> and c.draft_time = #{draftTime}</if>
43
+            <if test="signDate != null "> and c.sign_date = #{signDate}</if>
44
+            <if test="signRemark != null  and signRemark != ''"> and c.sign_remark = #{signRemark}</if>
45
+            <if test="signScan != null  and signScan != ''"> and c.sign_scan = #{signScan}</if>
46
+            <if test="commentType != null  and commentType != ''"> and c.comment_type = #{commentType}</if>
39 47
         </where>
40 48
     </select>
41 49
 
42 50
     <select id="selectCmcContractByContractId" parameterType="String" resultMap="CmcContractResult">
43 51
         <include refid="selectCmcContractVo"/>
44
-        where contract_id = #{contractId}
52
+        where c.contract_id = #{contractId}
45 53
     </select>
46 54
 
47 55
     <insert id="insertCmcContract" parameterType="CmcContract">

+ 93
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMeetingMapper.xml View File

@@ -0,0 +1,93 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper
3
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
+<mapper namespace="com.ruoyi.oa.mapper.CmcContractMeetingMapper">
6
+
7
+    <resultMap type="CmcContractMeeting" id="CmcContractMeetingResult">
8
+        <result property="meetingId"    column="meeting_id"    />
9
+        <result property="contractId"    column="contract_id"    />
10
+        <result property="meetingTime"    column="meeting_time"    />
11
+        <result property="hostId"    column="host_id"    />
12
+        <result property="place"    column="place"    />
13
+        <result property="users"    column="users"    />
14
+        <result property="conclusion"    column="conclusion"    />
15
+        <result property="document"    column="document"    />
16
+        <result property="commentTime"    column="comment_time"    />
17
+    </resultMap>
18
+
19
+    <sql id="selectCmcContractMeetingVo">
20
+        select meeting_id, contract_id, meeting_time, host_id, place, users, conclusion, document, comment_time from cmc_contract_meeting
21
+    </sql>
22
+
23
+    <select id="selectCmcContractMeetingList" parameterType="CmcContractMeeting" resultMap="CmcContractMeetingResult">
24
+        <include refid="selectCmcContractMeetingVo"/>
25
+        <where>
26
+            <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
27
+            <if test="meetingTime != null "> and meeting_time = #{meetingTime}</if>
28
+            <if test="hostId != null "> and host_id = #{hostId}</if>
29
+            <if test="place != null  and place != ''"> and place = #{place}</if>
30
+            <if test="users != null  and users != ''"> and users = #{users}</if>
31
+            <if test="conclusion != null  and conclusion != ''"> and conclusion = #{conclusion}</if>
32
+            <if test="document != null  and document != ''"> and document = #{document}</if>
33
+            <if test="commentTime != null "> and comment_time = #{commentTime}</if>
34
+        </where>
35
+    </select>
36
+
37
+    <select id="selectCmcContractMeetingByMeetingId" parameterType="String" resultMap="CmcContractMeetingResult">
38
+        <include refid="selectCmcContractMeetingVo"/>
39
+        where meeting_id = #{meetingId}
40
+    </select>
41
+
42
+    <insert id="insertCmcContractMeeting" parameterType="CmcContractMeeting">
43
+        insert into cmc_contract_meeting
44
+        <trim prefix="(" suffix=")" suffixOverrides=",">
45
+            <if test="meetingId != null">meeting_id,</if>
46
+            <if test="contractId != null">contract_id,</if>
47
+            <if test="meetingTime != null">meeting_time,</if>
48
+            <if test="hostId != null">host_id,</if>
49
+            <if test="place != null">place,</if>
50
+            <if test="users != null">users,</if>
51
+            <if test="conclusion != null">conclusion,</if>
52
+            <if test="document != null">document,</if>
53
+            <if test="commentTime != null">comment_time,</if>
54
+        </trim>
55
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
56
+            <if test="meetingId != null">#{meetingId},</if>
57
+            <if test="contractId != null">#{contractId},</if>
58
+            <if test="meetingTime != null">#{meetingTime},</if>
59
+            <if test="hostId != null">#{hostId},</if>
60
+            <if test="place != null">#{place},</if>
61
+            <if test="users != null">#{users},</if>
62
+            <if test="conclusion != null">#{conclusion},</if>
63
+            <if test="document != null">#{document},</if>
64
+            <if test="commentTime != null">#{commentTime},</if>
65
+        </trim>
66
+    </insert>
67
+
68
+    <update id="updateCmcContractMeeting" parameterType="CmcContractMeeting">
69
+        update cmc_contract_meeting
70
+        <trim prefix="SET" suffixOverrides=",">
71
+            <if test="contractId != null">contract_id = #{contractId},</if>
72
+            <if test="meetingTime != null">meeting_time = #{meetingTime},</if>
73
+            <if test="hostId != null">host_id = #{hostId},</if>
74
+            <if test="place != null">place = #{place},</if>
75
+            <if test="users != null">users = #{users},</if>
76
+            <if test="conclusion != null">conclusion = #{conclusion},</if>
77
+            <if test="document != null">document = #{document},</if>
78
+            <if test="commentTime != null">comment_time = #{commentTime},</if>
79
+        </trim>
80
+        where meeting_id = #{meetingId}
81
+    </update>
82
+
83
+    <delete id="deleteCmcContractMeetingByMeetingId" parameterType="String">
84
+        delete from cmc_contract_meeting where meeting_id = #{meetingId}
85
+    </delete>
86
+
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
+        </foreach>
92
+    </delete>
93
+</mapper>

+ 9
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml View File

@@ -1,9 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8" ?>
2 2
 <!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 5
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractPaymentMapper">
6
-
6
+    
7 7
     <resultMap type="CmcContractPayment" id="CmcContractPaymentResult">
8 8
         <result property="paymentId"    column="payment_id"    />
9 9
         <result property="contractId"    column="contract_id"    />
@@ -21,7 +21,7 @@
21 21
 
22 22
     <select id="selectCmcContractPaymentList" parameterType="CmcContractPayment" resultMap="CmcContractPaymentResult">
23 23
         <include refid="selectCmcContractPaymentVo"/>
24
-        <where>
24
+        <where>  
25 25
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
26 26
             <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
27 27
             <if test="paymentCondition != null  and paymentCondition != ''"> and payment_condition = #{paymentCondition}</if>
@@ -30,12 +30,12 @@
30 30
             <if test="paymentTime != null "> and payment_time = #{paymentTime}</if>
31 31
         </where>
32 32
     </select>
33
-
33
+    
34 34
     <select id="selectCmcContractPaymentByPaymentId" parameterType="String" resultMap="CmcContractPaymentResult">
35 35
         <include refid="selectCmcContractPaymentVo"/>
36 36
         where payment_id = #{paymentId}
37 37
     </select>
38
-
38
+        
39 39
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
40 40
         insert into cmc_contract_payment
41 41
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -47,7 +47,7 @@
47 47
             <if test="paymentAmount != null">payment_amount,</if>
48 48
             <if test="paymentTime != null">payment_time,</if>
49 49
             <if test="remark != null">remark,</if>
50
-        </trim>
50
+         </trim>
51 51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
52 52
             <if test="paymentId != null">#{paymentId},</if>
53 53
             <if test="contractId != null">#{contractId},</if>
@@ -57,7 +57,7 @@
57 57
             <if test="paymentAmount != null">#{paymentAmount},</if>
58 58
             <if test="paymentTime != null">#{paymentTime},</if>
59 59
             <if test="remark != null">#{remark},</if>
60
-        </trim>
60
+         </trim>
61 61
     </insert>
62 62
 
63 63
     <update id="updateCmcContractPayment" parameterType="CmcContractPayment">
@@ -79,7 +79,7 @@
79 79
     </delete>
80 80
 
81 81
     <delete id="deleteCmcContractPaymentByPaymentIds" parameterType="String">
82
-        delete from cmc_contract_payment where payment_id in
82
+        delete from cmc_contract_payment where payment_id in 
83 83
         <foreach item="paymentId" collection="array" open="(" separator="," close=")">
84 84
             #{paymentId}
85 85
         </foreach>

+ 9
- 9
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml View File

@@ -1,9 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8" ?>
2 2
 <!DOCTYPE mapper
3
-        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 5
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractWorkMapper">
6
-
6
+    
7 7
     <resultMap type="CmcContractWork" id="CmcContractWorkResult">
8 8
         <result property="workId"    column="work_id"    />
9 9
         <result property="contractId"    column="contract_id"    />
@@ -22,7 +22,7 @@
22 22
 
23 23
     <select id="selectCmcContractWorkList" parameterType="CmcContractWork" resultMap="CmcContractWorkResult">
24 24
         <include refid="selectCmcContractWorkVo"/>
25
-        <where>
25
+        <where>  
26 26
             <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
27 27
             <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
28 28
             <if test="content != null  and content != ''"> and content = #{content}</if>
@@ -32,12 +32,12 @@
32 32
             <if test="deadline != null "> and deadline = #{deadline}</if>
33 33
         </where>
34 34
     </select>
35
-
35
+    
36 36
     <select id="selectCmcContractWorkByWorkId" parameterType="String" resultMap="CmcContractWorkResult">
37 37
         <include refid="selectCmcContractWorkVo"/>
38 38
         where work_id = #{workId}
39 39
     </select>
40
-
40
+        
41 41
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
42 42
         insert into cmc_contract_work
43 43
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -50,7 +50,7 @@
50 50
             <if test="workload != null">workload,</if>
51 51
             <if test="deadline != null">deadline,</if>
52 52
             <if test="remark != null">remark,</if>
53
-        </trim>
53
+         </trim>
54 54
         <trim prefix="values (" suffix=")" suffixOverrides=",">
55 55
             <if test="workId != null">#{workId},</if>
56 56
             <if test="contractId != null">#{contractId},</if>
@@ -61,7 +61,7 @@
61 61
             <if test="workload != null">#{workload},</if>
62 62
             <if test="deadline != null">#{deadline},</if>
63 63
             <if test="remark != null">#{remark},</if>
64
-        </trim>
64
+         </trim>
65 65
     </insert>
66 66
 
67 67
     <update id="updateCmcContractWork" parameterType="CmcContractWork">
@@ -84,7 +84,7 @@
84 84
     </delete>
85 85
 
86 86
     <delete id="deleteCmcContractWorkByWorkIds" parameterType="String">
87
-        delete from cmc_contract_work where work_id in
87
+        delete from cmc_contract_work where work_id in 
88 88
         <foreach item="workId" collection="array" open="(" separator="," close=")">
89 89
             #{workId}
90 90
         </foreach>

+ 21
- 13
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml View File

@@ -18,32 +18,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
18 18
         <result property="signRemark"    column="sign_remark"    />
19 19
         <result property="signScan"    column="sign_scan"    />
20 20
         <result property="commentType"    column="comment_type"    />
21
+        <association property="draftUser"    javaType="SysUser"         resultMap="DraftUserResult" />
22
+    </resultMap>
23
+
24
+    <resultMap type="SysUser" id="DraftUserResult">
25
+        <result property="userId"    column="user_id"    />
26
+        <result property="nickName"    column="draft_nick_name"    />
21 27
     </resultMap>
22 28
 
23 29
     <sql id="selectCmcSubContractVo">
24
-        select sub_contract_id, contract_id, sub_contract_name, sub_amount, partner_id, contact_person, drafter, draft_time, remark, sign_date, sign_remark, sign_scan, comment_type from cmc_sub_contract
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,
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
25 33
     </sql>
26 34
 
27 35
     <select id="selectCmcSubContractList" parameterType="CmcSubContract" resultMap="CmcSubContractResult">
28 36
         <include refid="selectCmcSubContractVo"/>
29 37
         <where>  
30
-            <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
31
-            <if test="subContractName != null  and subContractName != ''"> and sub_contract_name like concat('%', #{subContractName}, '%')</if>
32
-            <if test="subAmount != null "> and sub_amount = #{subAmount}</if>
33
-            <if test="partnerId != null  and partnerId != ''"> and partner_id = #{partnerId}</if>
34
-            <if test="contactPerson != null  and contactPerson != ''"> and contact_person = #{contactPerson}</if>
35
-            <if test="drafter != null "> and drafter = #{drafter}</if>
36
-            <if test="draftTime != null "> and draft_time = #{draftTime}</if>
37
-            <if test="signDate != null "> and sign_date = #{signDate}</if>
38
-            <if test="signRemark != null  and signRemark != ''"> and sign_remark = #{signRemark}</if>
39
-            <if test="signScan != null  and signScan != ''"> and sign_scan = #{signScan}</if>
40
-            <if test="commentType != null  and commentType != ''"> and comment_type = #{commentType}</if>
38
+            <if test="contractId != null  and contractId != ''"> and sc.contract_id = #{contractId}</if>
39
+            <if test="subContractName != null  and subContractName != ''"> and sc.sub_contract_name like concat('%', sc.#{subContractName}, sc.'%')</if>
40
+            <if test="subAmount != null "> and sc.sub_amount = #{subAmount}</if>
41
+            <if test="partnerId != null  and partnerId != ''"> and sc.partner_id = #{partnerId}</if>
42
+            <if test="contactPerson != null  and contactPerson != ''"> and sc.contact_person = #{contactPerson}</if>
43
+            <if test="drafter != null "> and sc.drafter = #{drafter}</if>
44
+            <if test="draftTime != null "> and sc.draft_time = #{draftTime}</if>
45
+            <if test="signDate != null "> and sc.sign_date = #{signDate}</if>
46
+            <if test="signRemark != null  and signRemark != ''"> and sc.sign_remark = #{signRemark}</if>
47
+            <if test="signScan != null  and signScan != ''"> and sc.sign_scan = #{signScan}</if>
48
+            <if test="commentType != null  and commentType != ''"> and sc.comment_type = #{commentType}</if>
41 49
         </where>
42 50
     </select>
43 51
     
44 52
     <select id="selectCmcSubContractBySubContractId" parameterType="String" resultMap="CmcSubContractResult">
45 53
         <include refid="selectCmcSubContractVo"/>
46
-        where sub_contract_id = #{subContractId}
54
+        where sc.sub_contract_id = #{subContractId}
47 55
     </select>
48 56
         
49 57
     <insert id="insertCmcSubContract" parameterType="CmcSubContract">

+ 79
- 72
oa-back/sql/sql.sql
File diff suppressed because it is too large
View File


+ 44
- 0
oa-ui/src/api/oa/contract/projectContract.js View File

@@ -0,0 +1,44 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询cmc项目合同列表
4
+export function listProjectContract(query) {
5
+  return request({
6
+    url: '/oa/projectContract/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc项目合同详细
13
+export function getProjectContract(projectId) {
14
+  return request({
15
+    url: '/oa/projectContract/' + projectId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc项目合同
21
+export function addProjectContract(data) {
22
+  return request({
23
+    url: '/oa/projectContract',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc项目合同
30
+export function updateProjectContract(data) {
31
+  return request({
32
+    url: '/oa/projectContract',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc项目合同
39
+export function delProjectContract(projectId) {
40
+  return request({
41
+    url: '/oa/projectContract/' + projectId,
42
+    method: 'delete'
43
+  })
44
+}

+ 2
- 4
oa-ui/src/views/flowable/form/carForm.vue View File

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-29 11:44:28
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2024-04-16 09:58:53
5
+ * @LastEditTime: 2024-04-19 17:39:20
6 6
 -->
7 7
 
8 8
 <template>
@@ -236,9 +236,7 @@ import { listProject, getProject } from "@/api/oa/project/project";
236 236
 import { listCar, getCar } from "@/api/oa/car/car";
237 237
 import { listCarApproval, getCarApproval, updateCarApproval, addCarApproval, modifyCarApproval } from '@/api/oa/car/carApproval'
238 238
 import { listDriver } from "@/api/system/post";
239
-import {
240
-  complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm,
241
-} from "@/api/flowable/todo";
239
+import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
242 240
 import { getUsersDeptLeader, getUsersManageLeader } from '@/api/system/post.js'
243 241
 import flow from '@/views/flowable/task/todo/detail/flow'
244 242
 import { flowXmlAndNode } from "@/api/flowable/definition";

+ 314
- 0
oa-ui/src/views/flowable/form/contractForm.vue View File

@@ -0,0 +1,314 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-row :gutter="20">
4
+      <el-col :span="18" :xs="24">
5
+        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
6
+          <el-form-item label="合同编号" prop="contractNumber">
7
+            <el-input v-model="form.contractNumber" placeholder="请输入合同编号" />
8
+          </el-form-item>
9
+          <el-form-item label="合同金额" prop="amount">
10
+            <el-input v-model="form.amount" placeholder="请输入合同金额" />
11
+          </el-form-item>
12
+          <el-form-item label="履约保证金" prop="deposit">
13
+            <el-input v-model="form.deposit" placeholder="请输入履约保证金" />
14
+          </el-form-item>
15
+          <el-form-item label="合同文件" prop="contractDocument">
16
+            <el-input v-model="form.contractDocument" placeholder="请输入合同文件" />
17
+          </el-form-item>
18
+          <el-row>
19
+            <el-col :span="6" :xs="24" :offset="12">
20
+              <el-form-item label="拟稿人:" label-width="120px">
21
+                <span class="auditor"> {{ form.draftUser ? form.draftUser.nickName : drafter }} </span>
22
+              </el-form-item>
23
+            </el-col>
24
+            <el-col :span="6">
25
+              <el-form-item label="日期:" label-width="120px">
26
+                <span> {{ form.draftTime ? form.draftTime : draftTime }} </span>
27
+              </el-form-item>
28
+            </el-col>
29
+          </el-row>
30
+          <el-form-item label="合同备注" prop="remark">
31
+            <el-input v-model="form.remark" placeholder="请输入合同备注" />
32
+          </el-form-item>
33
+          <el-form-item label="签订日期" prop="signDate">
34
+            <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期">
35
+            </el-date-picker>
36
+          </el-form-item>
37
+          <el-form-item label="签订备注" prop="signRemark">
38
+            <el-input v-model="form.signRemark" placeholder="请输入签订备注" />
39
+          </el-form-item>
40
+          <el-form-item label="签订扫描件" prop="signScan">
41
+            <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
42
+          </el-form-item>
43
+        </el-form>
44
+        <div slot="footer" class="dialog-footer">
45
+          <el-button type="primary" @click="submitForm">确 定</el-button>
46
+          <el-button @click="cancel">取 消</el-button>
47
+        </div>
48
+      </el-col>
49
+      <el-col :span="6" :xs="24">
50
+        <el-card>
51
+          <h2 style="text-align: center;">流程进度</h2>
52
+          <div>
53
+            <flow :flowData="flowData" />
54
+          </div>
55
+        </el-card>
56
+      </el-col>
57
+    </el-row>
58
+  </div>
59
+</template>
60
+
61
+<script>
62
+import { parseTime } from "@/utils/ruoyi";
63
+import { listContract, getContract, delContract, addContract, updateContract } from "@/api/oa/contract/contract";
64
+import { getContractWork } from "@/api/oa/contract/contractWork";
65
+import { complete, rejectTask, returnList, returnTask, getNextFlowNode, delegate, flowTaskForm, } from "@/api/flowable/todo";
66
+import { listProject, getProject } from "@/api/oa/project/project";
67
+import { getUsersDeptLeader, getUsersManageLeader } from '@/api/system/post.js'
68
+import flow from '@/views/flowable/task/todo/detail/flow'
69
+import { flowXmlAndNode } from "@/api/flowable/definition";
70
+export default {
71
+  components: {
72
+    flow
73
+  },
74
+  props: {
75
+    taskName: {
76
+      type: String,
77
+      required: true
78
+    },
79
+    taskForm: {
80
+      type: Object,
81
+      required: true
82
+    }
83
+  },
84
+  name: "Contract",
85
+  data() {
86
+    return {
87
+      drafter: '',
88
+      draftTime: undefined,
89
+      // 遮罩层
90
+      loading: true,
91
+      // 选中数组
92
+      ids: [],
93
+      // 非单个禁用
94
+      single: true,
95
+      // 非多个禁用
96
+      multiple: true,
97
+      // 显示搜索条件
98
+      showSearch: true,
99
+      // 总条数
100
+      total: 0,
101
+      // cmc合同评审表格数据
102
+      contractList: [],
103
+      // 弹出层标题
104
+      title: "",
105
+      // 是否显示弹出层
106
+      open: false,
107
+      // 查询参数
108
+      queryParams: {
109
+        pageNum: 1,
110
+        pageSize: 10,
111
+        contractNumber: null,
112
+        amount: null,
113
+        deposit: null,
114
+        contractDocument: null,
115
+        drafter: null,
116
+        draftTime: null,
117
+        signDate: null,
118
+        signRemark: null,
119
+        signScan: null,
120
+        commentType: null
121
+      },
122
+      // 表单参数
123
+      form: {},
124
+      // 表单校验
125
+      rules: {
126
+      },
127
+      workList: [],
128
+      projectList: [],
129
+      chooseProject: {},
130
+      isSelect: false,
131
+      formTotal: 0,
132
+      flowData: {},
133
+    };
134
+  },
135
+  created() {
136
+    if (this.taskName == '合同拟稿') {
137
+      this.drafter = this.$store.getters.name;
138
+      this.draftTime = parseTime(new Date(), '{y}-{m}-{d}')
139
+    }
140
+    this.getList();
141
+    flowXmlAndNode({ procInsId: this.taskForm.procInsId, deployId: this.taskForm.deployId }).then(res => {
142
+      this.flowData = res.data;
143
+    })
144
+  },
145
+  mounted() {
146
+    this.initForm();
147
+  },
148
+  methods: {
149
+    initForm() {
150
+      getContractWork(this.taskForm.formId).then(res => {
151
+        this.workList = res.data;
152
+      });
153
+      getContract(this.taskForm.formId).then(res => {
154
+        if (this.isEmptyObject(res.data)) {
155
+          this.formTotal = 0;
156
+          this.form.drafter = this.$store.getters.userId;
157
+        }
158
+        else {
159
+          this.formTotal = 1;
160
+          this.form = res.data;
161
+        }
162
+      })
163
+    },
164
+    /** 查询cmc合同评审列表 */
165
+    getList() {
166
+      this.loading = true;
167
+      listContract(this.queryParams).then(response => {
168
+        this.contractList = response.rows;
169
+        this.total = response.total;
170
+        this.loading = false;
171
+      });
172
+    },
173
+    // 查询项目列表
174
+    getProjectList() {
175
+      this.loading = true
176
+      listProject({
177
+        pageNum: 1,
178
+        pageSize: 99999999
179
+      }).then(response => {
180
+        this.projectList = response.rows;
181
+      })
182
+    },
183
+    // 选择项目
184
+    handleSelectProject(val) {
185
+      if (val != "" && val != undefined && val != null) {
186
+        getProject(val).then(res => {
187
+          this.chooseProject = res.data;
188
+          this.isSelect = true
189
+        })
190
+      } else {
191
+        this.isSelect = false
192
+      }
193
+    },
194
+    // 取消按钮
195
+    cancel() {
196
+      this.open = false;
197
+      this.reset();
198
+    },
199
+    isEmptyObject(obj) {
200
+      for (var key in obj) {
201
+        if (obj.hasOwnProperty(key)) {
202
+          return false;
203
+        }
204
+      }
205
+      return true;
206
+    },
207
+    // 表单重置
208
+    reset() {
209
+      this.form = {
210
+        contractId: null,
211
+        contractNumber: null,
212
+        amount: null,
213
+        deposit: null,
214
+        contractDocument: null,
215
+        drafter: null,
216
+        draftTime: null,
217
+        remark: null,
218
+        signDate: null,
219
+        signRemark: null,
220
+        signScan: null,
221
+        commentType: null
222
+      };
223
+      this.resetForm("form");
224
+    },
225
+    /** 搜索按钮操作 */
226
+    handleQuery() {
227
+      this.queryParams.pageNum = 1;
228
+      this.getList();
229
+    },
230
+    /** 重置按钮操作 */
231
+    resetQuery() {
232
+      this.resetForm("queryForm");
233
+      this.handleQuery();
234
+    },
235
+    // 多选框选中数据
236
+    handleSelectionChange(selection) {
237
+      this.ids = selection.map(item => item.contractId)
238
+      this.single = selection.length !== 1
239
+      this.multiple = !selection.length
240
+    },
241
+    /** 新增按钮操作 */
242
+    handleAdd() {
243
+      this.reset();
244
+      this.open = true;
245
+      this.title = "添加cmc合同评审";
246
+    },
247
+    /** 修改按钮操作 */
248
+    handleUpdate(row) {
249
+      this.reset();
250
+      const contractId = row.contractId || this.ids
251
+      getContract(contractId).then(response => {
252
+        this.form = response.data;
253
+        this.open = true;
254
+        this.title = "修改cmc合同评审";
255
+      });
256
+    },
257
+    /** 提交按钮 */
258
+    submitForm() {
259
+      this.$refs["form"].validate(valid => {
260
+        if (valid) {
261
+          if (this.formTotal != 0) {
262
+            updateContract(this.form).then(response => {
263
+              this.$modal.msgSuccess("修改成功");
264
+              this.open = false;
265
+              this.getList();
266
+            });
267
+          } else {
268
+            this.form.contractId = this.taskForm.formId;
269
+            addContract(this.form).then(response => {
270
+              this.$modal.msgSuccess("新增成功");
271
+              this.open = false;
272
+              this.getList();
273
+            });
274
+            const params = { taskId: this.taskForm.taskId };
275
+            getNextFlowNode(params).then(res => {
276
+              getUsersDeptLeader({ userId: this.$store.getters.userId }).then(res => {
277
+                let userId = res.data.userId;
278
+                this.$set(this.taskForm.variables, "approval", userId);
279
+                complete(this.taskForm).then(response => {
280
+                  this.$modal.msgSuccess(response.msg);
281
+                  this.$emit('goBack')
282
+                });
283
+              })
284
+            })
285
+          }
286
+        }
287
+      });
288
+    },
289
+    /** 删除按钮操作 */
290
+    handleDelete(row) {
291
+      const contractIds = row.contractId || this.ids;
292
+      this.$modal.confirm('是否确认删除cmc合同评审编号为"' + contractIds + '"的数据项?').then(function () {
293
+        return delContract(contractIds);
294
+      }).then(() => {
295
+        this.getList();
296
+        this.$modal.msgSuccess("删除成功");
297
+      }).catch(() => { });
298
+    },
299
+    /** 导出按钮操作 */
300
+    handleExport() {
301
+      this.download('oa/contract/export', {
302
+        ...this.queryParams
303
+      }, `contract_${new Date().getTime()}.xlsx`)
304
+    }
305
+  }
306
+};
307
+</script>
308
+
309
+<style>
310
+.auditor {
311
+  font-family: '华文行楷';
312
+  font-size: 20px;
313
+}
314
+</style>

+ 254
- 0
oa-ui/src/views/flowable/form/subContract.vue View File

@@ -0,0 +1,254 @@
1
+<template>
2
+  <div class="app-container">
3
+    <el-row :gutter="20">
4
+      <el-col :span="18" :xs="24">
5
+        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
6
+          <el-form-item label="主合同id" prop="contractId">
7
+            <el-input v-model="form.contractId" placeholder="请输入主合同id" />
8
+          </el-form-item>
9
+          <el-form-item label="合同名称" prop="subContractName">
10
+            <el-input v-model="form.subContractName" placeholder="请输入合同名称" />
11
+          </el-form-item>
12
+          <el-form-item label="分包合同金额" prop="subAmount">
13
+            <el-input v-model="form.subAmount" placeholder="请输入分包合同金额" />
14
+          </el-form-item>
15
+          <el-form-item label="承接单位id" prop="partnerId">
16
+            <el-input v-model="form.partnerId" placeholder="请输入承接单位id" />
17
+          </el-form-item>
18
+          <el-form-item label="承接单位联系人" prop="contactPerson">
19
+            <el-input v-model="form.contactPerson" placeholder="请输入承接单位联系人" />
20
+          </el-form-item>
21
+          <el-row>
22
+            <el-col :span="6" :xs="24" :offset="12">
23
+              <el-form-item label="拟稿人:" label-width="120px">
24
+                <span class="auditor"> {{ form.draftUser ? form.draftUser.nickName : drafter }} </span>
25
+              </el-form-item>
26
+            </el-col>
27
+            <el-col :span="6">
28
+              <el-form-item label="日期:" label-width="120px">
29
+                <span> {{ form.draftTime ? form.draftTime : draftTime }} </span>
30
+              </el-form-item>
31
+            </el-col>
32
+          </el-row>
33
+          <el-form-item label="合同备注" prop="remark">
34
+            <el-input v-model="form.remark" placeholder="请输入合同备注" />
35
+          </el-form-item>
36
+          <el-form-item label="签订日期" prop="signDate">
37
+            <el-date-picker clearable v-model="form.signDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择签订日期">
38
+            </el-date-picker>
39
+          </el-form-item>
40
+          <el-form-item label="签订备注" prop="signRemark">
41
+            <el-input v-model="form.signRemark" placeholder="请输入签订备注" />
42
+          </el-form-item>
43
+          <el-form-item label="签订扫描件" prop="signScan">
44
+            <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
45
+          </el-form-item>
46
+        </el-form>
47
+        <div slot="footer" class="dialog-footer">
48
+          <el-button type="primary" @click="submitForm">确 定</el-button>
49
+          <el-button @click="cancel">取 消</el-button>
50
+        </div>
51
+      </el-col>
52
+      <el-col :span="6" :xs="24">
53
+        <el-card>
54
+          <h2 style="text-align: center;">流程进度</h2>
55
+          <div>
56
+            <flow :flowData="flowData" />
57
+          </div>
58
+        </el-card>
59
+      </el-col>
60
+    </el-row>
61
+  </div>
62
+</template>
63
+
64
+<script>
65
+import { parseTime } from "@/utils/ruoyi";
66
+import { listSubContract, getSubContract, delSubContract, addSubContract, updateSubContract } from "@/api/oa/contract/subContract";
67
+import flow from '@/views/flowable/task/todo/detail/flow'
68
+import { flowXmlAndNode } from "@/api/flowable/definition";
69
+export default {
70
+  components: {
71
+    flow
72
+  },
73
+  props: {
74
+    taskName: {
75
+      type: String,
76
+      required: true
77
+    },
78
+    taskForm: {
79
+      type: Object,
80
+      required: true
81
+    }
82
+  },
83
+  name: "SubContract",
84
+  data() {
85
+    return {
86
+      drafter:'',
87
+      draftTime: undefined,
88
+      // 遮罩层
89
+      loading: true,
90
+      // 选中数组
91
+      ids: [],
92
+      // 非单个禁用
93
+      single: true,
94
+      // 非多个禁用
95
+      multiple: true,
96
+      // 显示搜索条件
97
+      showSearch: true,
98
+      // 总条数
99
+      total: 0,
100
+      // cmc分包合同评审表格数据
101
+      subContractList: [],
102
+      // 弹出层标题
103
+      title: "",
104
+      // 是否显示弹出层
105
+      open: false,
106
+      // 查询参数
107
+      queryParams: {
108
+        pageNum: 1,
109
+        pageSize: 10,
110
+        contractId: null,
111
+        subContractName: null,
112
+        subAmount: null,
113
+        partnerId: null,
114
+        contactPerson: null,
115
+        drafter: null,
116
+        draftTime: null,
117
+        signDate: null,
118
+        signRemark: null,
119
+        signScan: null,
120
+        commentType: null
121
+      },
122
+      // 表单参数
123
+      form: {},
124
+      // 表单校验
125
+      rules: {
126
+      },
127
+      chooseProject: {},
128
+      isSelect: false,
129
+      formTotal: 0,
130
+      flowData: {},
131
+    };
132
+  },
133
+  created() {
134
+    if (this.taskName == '合同拟稿') {
135
+      this.drafter = this.$store.getters.name;
136
+      this.draftTime = parseTime(new Date(), '{y}-{m}-{d}')
137
+    }
138
+    this.getList();
139
+    flowXmlAndNode({ procInsId: this.taskForm.procInsId, deployId: this.taskForm.deployId }).then(res => {
140
+      this.flowData = res.data;
141
+    })
142
+  },
143
+  methods: {
144
+    /** 查询cmc分包合同评审列表 */
145
+    getList() {
146
+      this.loading = true;
147
+      listSubContract(this.queryParams).then(response => {
148
+        this.subContractList = response.rows;
149
+        this.total = response.total;
150
+        this.loading = false;
151
+      });
152
+    },
153
+    // 取消按钮
154
+    cancel() {
155
+      this.open = false;
156
+      this.reset();
157
+    },
158
+    // 表单重置
159
+    reset() {
160
+      this.form = {
161
+        subContractId: null,
162
+        contractId: null,
163
+        subContractName: null,
164
+        subAmount: null,
165
+        partnerId: null,
166
+        contactPerson: null,
167
+        drafter: null,
168
+        draftTime: null,
169
+        remark: null,
170
+        signDate: null,
171
+        signRemark: null,
172
+        signScan: null,
173
+        commentType: null
174
+      };
175
+      this.resetForm("form");
176
+    },
177
+    /** 搜索按钮操作 */
178
+    handleQuery() {
179
+      this.queryParams.pageNum = 1;
180
+      this.getList();
181
+    },
182
+    /** 重置按钮操作 */
183
+    resetQuery() {
184
+      this.resetForm("queryForm");
185
+      this.handleQuery();
186
+    },
187
+    // 多选框选中数据
188
+    handleSelectionChange(selection) {
189
+      this.ids = selection.map(item => item.subContractId)
190
+      this.single = selection.length !== 1
191
+      this.multiple = !selection.length
192
+    },
193
+    /** 新增按钮操作 */
194
+    handleAdd() {
195
+      this.reset();
196
+      this.open = true;
197
+      this.title = "添加cmc分包合同评审";
198
+    },
199
+    /** 修改按钮操作 */
200
+    handleUpdate(row) {
201
+      this.reset();
202
+      const subContractId = row.subContractId || this.ids
203
+      getSubContract(subContractId).then(response => {
204
+        this.form = response.data;
205
+        this.open = true;
206
+        this.title = "修改cmc分包合同评审";
207
+      });
208
+    },
209
+    /** 提交按钮 */
210
+    submitForm() {
211
+      this.$refs["form"].validate(valid => {
212
+        if (valid) {
213
+          if (this.form.subContractId != null) {
214
+            updateSubContract(this.form).then(response => {
215
+              this.$modal.msgSuccess("修改成功");
216
+              this.open = false;
217
+              this.getList();
218
+            });
219
+          } else {
220
+            addSubContract(this.form).then(response => {
221
+              this.$modal.msgSuccess("新增成功");
222
+              this.open = false;
223
+              this.getList();
224
+            });
225
+          }
226
+        }
227
+      });
228
+    },
229
+    /** 删除按钮操作 */
230
+    handleDelete(row) {
231
+      const subContractIds = row.subContractId || this.ids;
232
+      this.$modal.confirm('是否确认删除cmc分包合同评审编号为"' + subContractIds + '"的数据项?').then(function () {
233
+        return delSubContract(subContractIds);
234
+      }).then(() => {
235
+        this.getList();
236
+        this.$modal.msgSuccess("删除成功");
237
+      }).catch(() => { });
238
+    },
239
+    /** 导出按钮操作 */
240
+    handleExport() {
241
+      this.download('oa/subContract/export', {
242
+        ...this.queryParams
243
+      }, `subContract_${new Date().getTime()}.xlsx`)
244
+    }
245
+  }
246
+};
247
+</script>
248
+
249
+<style>
250
+.auditor {
251
+  font-family: '华文行楷';
252
+  font-size: 20px;
253
+}
254
+</style>

+ 11
- 4
oa-ui/src/views/flowable/task/todo/detail/index.vue View File

@@ -24,8 +24,6 @@
24 24
             @goBack="goBack"></zh-table>
25 25
           <car-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '用车审批'"
26 26
             @goBack="goBack"></car-form>
27
-          <car-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '用车审批(工会)'"
28
-            @goBack="goBack"></car-form>
29 27
           <device-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '设备审批'"
30 28
             @goBack="goBack"></device-form>
31 29
           <project-process :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '项目流转'"
@@ -38,6 +36,10 @@
38 36
             @goBack="goBack"></safe-form>
39 37
           <technical-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '技术交底'"
40 38
             @goBack="goBack"></technical-form>
39
+          <contract-form :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '承接合同评审'"
40
+            @goBack="goBack"></contract-form>
41
+          <sub-contract :taskName="taskName" :taskForm="taskForm" v-else-if="taskForm.procDefName == '分包合同评审'"
42
+            @goBack="goBack"></sub-contract>
41 43
           <el-row type="flex" justify="center">
42 44
             <!-- <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
43 45
               @click="handleComplete">审批
@@ -191,6 +193,8 @@ import safeForm from '@/views/flowable/form/safeForm.vue';
191 193
 import technicalForm from '@/views/flowable/form/technicalForm.vue';
192 194
 import budgetIndex from '@/views/flowable/form/budget/budget.vue';
193 195
 import businessReview from '@/views/flowable/form/projectProcess/businessReview.vue';
196
+import contractForm from '@/views/flowable/form/contractForm.vue';
197
+import subContract from '@/views/flowable/form/subContract.vue';
194 198
 
195 199
 export default {
196 200
   name: "Record",
@@ -213,7 +217,9 @@ export default {
213 217
     safeForm,
214 218
     technicalForm,
215 219
     budgetIndex,
216
-    businessReview
220
+    businessReview,
221
+    contractForm,
222
+    subContract
217 223
   },
218 224
   props: {},
219 225
   data() {
@@ -527,7 +533,8 @@ export default {
527 533
     // 是否显示审批通过
528 534
     isShowApprove() {
529 535
       if (this.taskName == '员工填报' || this.taskForm.procDefName == '用车审批' || this.taskForm.procDefName == '设备审批' || this.taskForm.procDefName == '项目流转'
530
-        || this.taskForm.procDefName == '项目预算' || this.taskForm.procDefName == '借款审批' || this.taskForm.procDefName == '安全交底' || this.taskForm.procDefName == '技术交底') {
536
+        || this.taskForm.procDefName == '项目预算' || this.taskForm.procDefName == '借款审批' || this.taskForm.procDefName == '安全交底' || this.taskForm.procDefName == '技术交底'
537
+        || this.taskForm.procDefName == '承接合同评审'|| this.taskForm.procDefName == '分包合同评审') {
531 538
         return false
532 539
       } else {
533 540
         return true

Loading…
Cancel
Save