Selaa lähdekoodia

合同相关表

lamphua 1 vuosi sitten
vanhempi
commit
d80a870908
34 muutettua tiedostoa jossa 2548 lisäystä ja 551 poistoa
  1. 104
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPartnerController.java
  2. 98
    0
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSubContractController.java
  3. 7
    106
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java
  4. 4
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java
  5. 36
    22
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java
  6. 39
    25
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java
  7. 51
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcPartner.java
  8. 0
    14
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java
  9. 50
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectContract.java
  10. 197
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java
  11. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcPartnerMapper.java
  12. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectContractMapper.java
  13. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcSubContractMapper.java
  14. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcPartnerService.java
  15. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectContractService.java
  16. 61
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcSubContractService.java
  17. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcPartnerServiceImpl.java
  18. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectContractServiceImpl.java
  19. 93
    0
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcSubContractServiceImpl.java
  20. 2
    42
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml
  21. 16
    11
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml
  22. 16
    11
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml
  23. 58
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPartnerMapper.xml
  24. 57
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectContractMapper.xml
  25. 1
    6
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml
  26. 112
    0
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml
  27. 256
    175
      oa-back/sql/sql.sql
  28. 44
    0
      oa-ui/src/api/oa/contract/subContract.js
  29. 44
    0
      oa-ui/src/api/oa/partner/partner.js
  30. 5
    103
      oa-ui/src/views/oa/contract/index.vue
  31. 32
    18
      oa-ui/src/views/oa/contract/payment.vue
  32. 397
    0
      oa-ui/src/views/oa/contract/subContract.vue
  33. 32
    18
      oa-ui/src/views/oa/contract/work.vue
  34. 245
    0
      oa-ui/src/views/oa/partner/index.vue

+ 104
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPartnerController.java Näytä tiedosto

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.CmcPartner;
20
+import com.ruoyi.oa.service.ICmcPartnerService;
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-18
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/partner")
32
+public class CmcPartnerController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcPartnerService cmcPartnerService;
36
+
37
+    /**
38
+     * 查询cmc合作单位列表
39
+     */
40
+    @PreAuthorize("@ss.hasPermi('oa:partner:list')")
41
+    @GetMapping("/list")
42
+    public TableDataInfo list(CmcPartner cmcPartner)
43
+    {
44
+        startPage();
45
+        List<CmcPartner> list = cmcPartnerService.selectCmcPartnerList(cmcPartner);
46
+        return getDataTable(list);
47
+    }
48
+
49
+    /**
50
+     * 导出cmc合作单位列表
51
+     */
52
+    @PreAuthorize("@ss.hasPermi('oa:partner:export')")
53
+    @Log(title = "cmc合作单位", businessType = BusinessType.EXPORT)
54
+    @PostMapping("/export")
55
+    public void export(HttpServletResponse response, CmcPartner cmcPartner)
56
+    {
57
+        List<CmcPartner> list = cmcPartnerService.selectCmcPartnerList(cmcPartner);
58
+        ExcelUtil<CmcPartner> util = new ExcelUtil<CmcPartner>(CmcPartner.class);
59
+        util.exportExcel(response, list, "cmc合作单位数据");
60
+    }
61
+
62
+    /**
63
+     * 获取cmc合作单位详细信息
64
+     */
65
+    @PreAuthorize("@ss.hasPermi('oa:partner:query')")
66
+    @GetMapping(value = "/{partnerId}")
67
+    public AjaxResult getInfo(@PathVariable("partnerId") String partnerId)
68
+    {
69
+        return success(cmcPartnerService.selectCmcPartnerByPartnerId(partnerId));
70
+    }
71
+
72
+    /**
73
+     * 新增cmc合作单位
74
+     */
75
+    @PreAuthorize("@ss.hasPermi('oa:partner:add')")
76
+    @Log(title = "cmc合作单位", businessType = BusinessType.INSERT)
77
+    @PostMapping
78
+    public AjaxResult add(@RequestBody CmcPartner cmcPartner)
79
+    {
80
+        return toAjax(cmcPartnerService.insertCmcPartner(cmcPartner));
81
+    }
82
+
83
+    /**
84
+     * 修改cmc合作单位
85
+     */
86
+    @PreAuthorize("@ss.hasPermi('oa:partner:edit')")
87
+    @Log(title = "cmc合作单位", businessType = BusinessType.UPDATE)
88
+    @PutMapping
89
+    public AjaxResult edit(@RequestBody CmcPartner cmcPartner)
90
+    {
91
+        return toAjax(cmcPartnerService.updateCmcPartner(cmcPartner));
92
+    }
93
+
94
+    /**
95
+     * 删除cmc合作单位
96
+     */
97
+    @PreAuthorize("@ss.hasPermi('oa:partner:remove')")
98
+    @Log(title = "cmc合作单位", businessType = BusinessType.DELETE)
99
+	@DeleteMapping("/{partnerIds}")
100
+    public AjaxResult remove(@PathVariable String[] partnerIds)
101
+    {
102
+        return toAjax(cmcPartnerService.deleteCmcPartnerByPartnerIds(partnerIds));
103
+    }
104
+}

+ 98
- 0
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSubContractController.java Näytä tiedosto

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.CmcSubContract;
20
+import com.ruoyi.oa.service.ICmcSubContractService;
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-18
29
+ */
30
+@RestController
31
+@RequestMapping("/oa/subContract")
32
+public class CmcSubContractController extends BaseController
33
+{
34
+    @Autowired
35
+    private ICmcSubContractService cmcSubContractService;
36
+
37
+    /**
38
+     * 查询cmc分包合同评审列表
39
+     */
40
+    @GetMapping("/list")
41
+    public TableDataInfo list(CmcSubContract cmcSubContract)
42
+    {
43
+        startPage();
44
+        List<CmcSubContract> list = cmcSubContractService.selectCmcSubContractList(cmcSubContract);
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, CmcSubContract cmcSubContract)
54
+    {
55
+        List<CmcSubContract> list = cmcSubContractService.selectCmcSubContractList(cmcSubContract);
56
+        ExcelUtil<CmcSubContract> util = new ExcelUtil<CmcSubContract>(CmcSubContract.class);
57
+        util.exportExcel(response, list, "cmc分包合同评审数据");
58
+    }
59
+
60
+    /**
61
+     * 获取cmc分包合同评审详细信息
62
+     */
63
+    @GetMapping(value = "/{subContractId}")
64
+    public AjaxResult getInfo(@PathVariable("subContractId") String subContractId)
65
+    {
66
+        return success(cmcSubContractService.selectCmcSubContractBySubContractId(subContractId));
67
+    }
68
+
69
+    /**
70
+     * 新增cmc分包合同评审
71
+     */
72
+    @Log(title = "cmc分包合同评审", businessType = BusinessType.INSERT)
73
+    @PostMapping
74
+    public AjaxResult add(@RequestBody CmcSubContract cmcSubContract)
75
+    {
76
+        return toAjax(cmcSubContractService.insertCmcSubContract(cmcSubContract));
77
+    }
78
+
79
+    /**
80
+     * 修改cmc分包合同评审
81
+     */
82
+    @Log(title = "cmc分包合同评审", businessType = BusinessType.UPDATE)
83
+    @PutMapping
84
+    public AjaxResult edit(@RequestBody CmcSubContract cmcSubContract)
85
+    {
86
+        return toAjax(cmcSubContractService.updateCmcSubContract(cmcSubContract));
87
+    }
88
+
89
+    /**
90
+     * 删除cmc分包合同评审
91
+     */
92
+    @Log(title = "cmc分包合同评审", businessType = BusinessType.DELETE)
93
+	@DeleteMapping("/{subContractIds}")
94
+    public AjaxResult remove(@PathVariable String[] subContractIds)
95
+    {
96
+        return toAjax(cmcSubContractService.deleteCmcSubContractBySubContractIds(subContractIds));
97
+    }
98
+}

+ 7
- 106
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContract.java Näytä tiedosto

12
  * cmc合同评审对象 cmc_contract
12
  * cmc合同评审对象 cmc_contract
13
  *
13
  *
14
  * @author cmc
14
  * @author cmc
15
- * @date 2024-03-15
15
+ * @date 2024-04-18
16
  */
16
  */
17
 public class CmcContract extends BaseEntity
17
 public class CmcContract extends BaseEntity
18
 {
18
 {
25
     @Excel(name = "合同编号")
25
     @Excel(name = "合同编号")
26
     private String contractNumber;
26
     private String contractNumber;
27
 
27
 
28
-    /** 合同名称 */
29
-    @Excel(name = "合同名称")
30
-    private String contractName;
31
-
32
-    /** 甲方单位 */
33
-    @Excel(name = "甲方单位")
34
-    private String partyA;
35
-
36
-    /** 甲方单位联系人 */
37
-    @Excel(name = "甲方单位联系人")
38
-    private String contactPerson;
39
-
40
-    /** 甲方单位联系电话 */
41
-    @Excel(name = "甲方单位联系电话")
42
-    private String telephone;
43
-
44
-    /** 项目类型 */
45
-    @Excel(name = "项目类型")
46
-    private String projectType;
47
-
48
-    /** 项目来源(0院内、1院外) */
49
-    @Excel(name = "项目来源", readConverterExp = "0=院内、1院外")
50
-    private String projectSource;
51
-
52
-    /** 拟承担部门 */
53
-    @Excel(name = "拟承担部门")
54
-    private String undertakingDept;
28
+    /** 项目组 */
29
+    private String[] projectIds;
55
 
30
 
56
     /** 合同金额 */
31
     /** 合同金额 */
57
     @Excel(name = "合同金额")
32
     @Excel(name = "合同金额")
74
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
49
     @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
75
     private Date draftTime;
50
     private Date draftTime;
76
 
51
 
77
-    /** 关联项目 */
78
-    @Excel(name = "关联项目")
79
-    private String projectIds;
80
-
81
     /** 签订日期 */
52
     /** 签订日期 */
82
     @JsonFormat(pattern = "yyyy-MM-dd")
53
     @JsonFormat(pattern = "yyyy-MM-dd")
83
     @Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
54
     @Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
113
     {
84
     {
114
         return contractNumber;
85
         return contractNumber;
115
     }
86
     }
116
-    public void setContractName(String contractName)
117
-    {
118
-        this.contractName = contractName;
119
-    }
120
-
121
-    public String getContractName()
122
-    {
123
-        return contractName;
124
-    }
125
-    public void setPartyA(String partyA)
87
+    public void setProjectIds(String[] projectIds)
126
     {
88
     {
127
-        this.partyA = partyA;
128
-    }
129
-
130
-    public String getPartyA()
131
-    {
132
-        return partyA;
133
-    }
134
-    public void setContactPerson(String contactPerson)
135
-    {
136
-        this.contactPerson = contactPerson;
137
-    }
138
-
139
-    public String getContactPerson()
140
-    {
141
-        return contactPerson;
142
-    }
143
-    public void setTelephone(String telephone)
144
-    {
145
-        this.telephone = telephone;
146
-    }
147
-
148
-    public String getTelephone()
149
-    {
150
-        return telephone;
151
-    }
152
-    public void setProjectType(String projectType)
153
-    {
154
-        this.projectType = projectType;
155
-    }
156
-
157
-    public String getProjectType()
158
-    {
159
-        return projectType;
160
-    }
161
-    public void setProjectSource(String projectSource)
162
-    {
163
-        this.projectSource = projectSource;
89
+        this.projectIds = projectIds;
164
     }
90
     }
165
 
91
 
166
-    public String getProjectSource()
167
-    {
168
-        return projectSource;
169
-    }
170
-    public void setUndertakingDept(String undertakingDept)
92
+    public String[] getProjectIds()
171
     {
93
     {
172
-        this.undertakingDept = undertakingDept;
94
+        return projectIds;
173
     }
95
     }
174
 
96
 
175
-    public String getUndertakingDept()
176
-    {
177
-        return undertakingDept;
178
-    }
179
     public void setAmount(BigDecimal amount)
97
     public void setAmount(BigDecimal amount)
180
     {
98
     {
181
         this.amount = amount;
99
         this.amount = amount;
221
     {
139
     {
222
         return draftTime;
140
         return draftTime;
223
     }
141
     }
224
-    public void setProjectIds(String projectIds)
225
-    {
226
-        this.projectIds = projectIds;
227
-    }
228
-
229
-    public String getProjectIds()
230
-    {
231
-        return projectIds;
232
-    }
233
     public void setSignDate(Date signDate)
142
     public void setSignDate(Date signDate)
234
     {
143
     {
235
         this.signDate = signDate;
144
         this.signDate = signDate;
272
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
181
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
273
                 .append("contractId", getContractId())
182
                 .append("contractId", getContractId())
274
                 .append("contractNumber", getContractNumber())
183
                 .append("contractNumber", getContractNumber())
275
-                .append("contractName", getContractName())
276
-                .append("partyA", getPartyA())
277
-                .append("contactPerson", getContactPerson())
278
-                .append("telephone", getTelephone())
279
-                .append("projectType", getProjectType())
280
-                .append("projectSource", getProjectSource())
281
-                .append("undertakingDept", getUndertakingDept())
282
                 .append("amount", getAmount())
184
                 .append("amount", getAmount())
283
                 .append("deposit", getDeposit())
185
                 .append("deposit", getDeposit())
284
                 .append("contractDocument", getContractDocument())
186
                 .append("contractDocument", getContractDocument())
285
                 .append("drafter", getDrafter())
187
                 .append("drafter", getDrafter())
286
                 .append("draftTime", getDraftTime())
188
                 .append("draftTime", getDraftTime())
287
-                .append("projectIds", getProjectIds())
288
                 .append("remark", getRemark())
189
                 .append("remark", getRemark())
289
                 .append("signDate", getSignDate())
190
                 .append("signDate", getSignDate())
290
                 .append("signRemark", getSignRemark())
191
                 .append("signRemark", getSignRemark())

+ 4
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractComment.java Näytä tiedosto

36
     @Excel(name = "会审意见")
36
     @Excel(name = "会审意见")
37
     private String comment;
37
     private String comment;
38
 
38
 
39
+    /** 会审附件 */
40
+    @Excel(name = "会审附件")
41
+    private String document;
42
+
39
     /** 会审日期 */
43
     /** 会审日期 */
40
     @JsonFormat(pattern = "yyyy-MM-dd")
44
     @JsonFormat(pattern = "yyyy-MM-dd")
41
     @Excel(name = "会审日期", width = 30, dateFormat = "yyyy-MM-dd")
45
     @Excel(name = "会审日期", width = 30, dateFormat = "yyyy-MM-dd")

+ 36
- 22
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractPayment.java Näytä tiedosto

9
 
9
 
10
 /**
10
 /**
11
  * cmc合同回款对象 cmc_contract_payment
11
  * cmc合同回款对象 cmc_contract_payment
12
- * 
12
+ *
13
  * @author cmc
13
  * @author cmc
14
- * @date 2024-03-15
14
+ * @date 2024-04-18
15
  */
15
  */
16
 public class CmcContractPayment extends BaseEntity
16
 public class CmcContractPayment extends BaseEntity
17
 {
17
 {
24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27
     /** 回款条件 */
31
     /** 回款条件 */
28
     @Excel(name = "回款条件")
32
     @Excel(name = "回款条件")
29
     private String paymentCondition;
33
     private String paymentCondition;
41
     @Excel(name = "回款预计时间", width = 30, dateFormat = "yyyy-MM-dd")
45
     @Excel(name = "回款预计时间", width = 30, dateFormat = "yyyy-MM-dd")
42
     private Date paymentTime;
46
     private Date paymentTime;
43
 
47
 
44
-    public void setPaymentId(String paymentId) 
48
+    public void setPaymentId(String paymentId)
45
     {
49
     {
46
         this.paymentId = paymentId;
50
         this.paymentId = paymentId;
47
     }
51
     }
48
 
52
 
49
-    public String getPaymentId() 
53
+    public String getPaymentId()
50
     {
54
     {
51
         return paymentId;
55
         return paymentId;
52
     }
56
     }
53
-    public void setContractId(String contractId) 
57
+    public void setContractId(String contractId)
54
     {
58
     {
55
         this.contractId = contractId;
59
         this.contractId = contractId;
56
     }
60
     }
57
 
61
 
58
-    public String getContractId() 
62
+    public String getContractId()
59
     {
63
     {
60
         return contractId;
64
         return contractId;
61
     }
65
     }
62
-    public void setPaymentCondition(String paymentCondition) 
66
+    public void setSubContractId(String subContractId)
67
+    {
68
+        this.subContractId = subContractId;
69
+    }
70
+
71
+    public String getSubContractId()
72
+    {
73
+        return subContractId;
74
+    }
75
+    public void setPaymentCondition(String paymentCondition)
63
     {
76
     {
64
         this.paymentCondition = paymentCondition;
77
         this.paymentCondition = paymentCondition;
65
     }
78
     }
66
 
79
 
67
-    public String getPaymentCondition() 
80
+    public String getPaymentCondition()
68
     {
81
     {
69
         return paymentCondition;
82
         return paymentCondition;
70
     }
83
     }
71
-    public void setPaymentPercentage(String paymentPercentage) 
84
+    public void setPaymentPercentage(String paymentPercentage)
72
     {
85
     {
73
         this.paymentPercentage = paymentPercentage;
86
         this.paymentPercentage = paymentPercentage;
74
     }
87
     }
75
 
88
 
76
-    public String getPaymentPercentage() 
89
+    public String getPaymentPercentage()
77
     {
90
     {
78
         return paymentPercentage;
91
         return paymentPercentage;
79
     }
92
     }
80
-    public void setPaymentAmount(String paymentAmount) 
93
+    public void setPaymentAmount(String paymentAmount)
81
     {
94
     {
82
         this.paymentAmount = paymentAmount;
95
         this.paymentAmount = paymentAmount;
83
     }
96
     }
84
 
97
 
85
-    public String getPaymentAmount() 
98
+    public String getPaymentAmount()
86
     {
99
     {
87
         return paymentAmount;
100
         return paymentAmount;
88
     }
101
     }
89
-    public void setPaymentTime(Date paymentTime) 
102
+    public void setPaymentTime(Date paymentTime)
90
     {
103
     {
91
         this.paymentTime = paymentTime;
104
         this.paymentTime = paymentTime;
92
     }
105
     }
93
 
106
 
94
-    public Date getPaymentTime() 
107
+    public Date getPaymentTime()
95
     {
108
     {
96
         return paymentTime;
109
         return paymentTime;
97
     }
110
     }
99
     @Override
112
     @Override
100
     public String toString() {
113
     public String toString() {
101
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
102
-            .append("paymentId", getPaymentId())
103
-            .append("contractId", getContractId())
104
-            .append("paymentCondition", getPaymentCondition())
105
-            .append("paymentPercentage", getPaymentPercentage())
106
-            .append("paymentAmount", getPaymentAmount())
107
-            .append("paymentTime", getPaymentTime())
108
-            .append("remark", getRemark())
109
-            .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();
110
     }
124
     }
111
 }
125
 }

+ 39
- 25
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcContractWork.java Näytä tiedosto

9
 
9
 
10
 /**
10
 /**
11
  * cmc合同内容对象 cmc_contract_work
11
  * cmc合同内容对象 cmc_contract_work
12
- * 
12
+ *
13
  * @author cmc
13
  * @author cmc
14
- * @date 2024-03-15
14
+ * @date 2024-04-18
15
  */
15
  */
16
 public class CmcContractWork extends BaseEntity
16
 public class CmcContractWork extends BaseEntity
17
 {
17
 {
24
     @Excel(name = "合同id")
24
     @Excel(name = "合同id")
25
     private String contractId;
25
     private String contractId;
26
 
26
 
27
+    /** 分包合同id */
28
+    @Excel(name = "分包合同id")
29
+    private String subContractId;
30
+
27
     /** 工作内容 */
31
     /** 工作内容 */
28
     @Excel(name = "工作内容")
32
     @Excel(name = "工作内容")
29
     private String content;
33
     private String content;
45
     @Excel(name = "要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
49
     @Excel(name = "要求完成时间", width = 30, dateFormat = "yyyy-MM-dd")
46
     private Date deadline;
50
     private Date deadline;
47
 
51
 
48
-    public void setWorkId(String workId) 
52
+    public void setWorkId(String workId)
49
     {
53
     {
50
         this.workId = workId;
54
         this.workId = workId;
51
     }
55
     }
52
 
56
 
53
-    public String getWorkId() 
57
+    public String getWorkId()
54
     {
58
     {
55
         return workId;
59
         return workId;
56
     }
60
     }
57
-    public void setContractId(String contractId) 
61
+    public void setContractId(String contractId)
58
     {
62
     {
59
         this.contractId = contractId;
63
         this.contractId = contractId;
60
     }
64
     }
61
 
65
 
62
-    public String getContractId() 
66
+    public String getContractId()
63
     {
67
     {
64
         return contractId;
68
         return contractId;
65
     }
69
     }
66
-    public void setContent(String content) 
70
+    public void setSubContractId(String subContractId)
71
+    {
72
+        this.subContractId = subContractId;
73
+    }
74
+
75
+    public String getSubContractId()
76
+    {
77
+        return subContractId;
78
+    }
79
+    public void setContent(String content)
67
     {
80
     {
68
         this.content = content;
81
         this.content = content;
69
     }
82
     }
70
 
83
 
71
-    public String getContent() 
84
+    public String getContent()
72
     {
85
     {
73
         return content;
86
         return content;
74
     }
87
     }
75
-    public void setScale(String scale) 
88
+    public void setScale(String scale)
76
     {
89
     {
77
         this.scale = scale;
90
         this.scale = scale;
78
     }
91
     }
79
 
92
 
80
-    public String getScale() 
93
+    public String getScale()
81
     {
94
     {
82
         return scale;
95
         return scale;
83
     }
96
     }
84
-    public void setUnit(String unit) 
97
+    public void setUnit(String unit)
85
     {
98
     {
86
         this.unit = unit;
99
         this.unit = unit;
87
     }
100
     }
88
 
101
 
89
-    public String getUnit() 
102
+    public String getUnit()
90
     {
103
     {
91
         return unit;
104
         return unit;
92
     }
105
     }
93
-    public void setWorkload(String workload) 
106
+    public void setWorkload(String workload)
94
     {
107
     {
95
         this.workload = workload;
108
         this.workload = workload;
96
     }
109
     }
97
 
110
 
98
-    public String getWorkload() 
111
+    public String getWorkload()
99
     {
112
     {
100
         return workload;
113
         return workload;
101
     }
114
     }
102
-    public void setDeadline(Date deadline) 
115
+    public void setDeadline(Date deadline)
103
     {
116
     {
104
         this.deadline = deadline;
117
         this.deadline = deadline;
105
     }
118
     }
106
 
119
 
107
-    public Date getDeadline() 
120
+    public Date getDeadline()
108
     {
121
     {
109
         return deadline;
122
         return deadline;
110
     }
123
     }
112
     @Override
125
     @Override
113
     public String toString() {
126
     public String toString() {
114
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
127
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
115
-            .append("workId", getWorkId())
116
-            .append("contractId", getContractId())
117
-            .append("content", getContent())
118
-            .append("scale", getScale())
119
-            .append("unit", getUnit())
120
-            .append("workload", getWorkload())
121
-            .append("deadline", getDeadline())
122
-            .append("remark", getRemark())
123
-            .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();
124
     }
138
     }
125
 }
139
 }

+ 51
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcPartner.java Näytä tiedosto

1
+package com.ruoyi.oa.domain;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.ruoyi.common.annotation.Excel;
6
+import com.ruoyi.common.core.domain.BaseEntity;
7
+
8
+/**
9
+ * cmc合作单位对象 cmc_partner
10
+ * 
11
+ * @author cmc
12
+ * @date 2024-04-18
13
+ */
14
+public class CmcPartner extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 合作单位id */
19
+    private String partnerId;
20
+
21
+    /** 单位名称 */
22
+    @Excel(name = "单位名称")
23
+    private String partnerName;
24
+
25
+    public void setPartnerId(String partnerId) 
26
+    {
27
+        this.partnerId = partnerId;
28
+    }
29
+
30
+    public String getPartnerId() 
31
+    {
32
+        return partnerId;
33
+    }
34
+    public void setPartnerName(String partnerName) 
35
+    {
36
+        this.partnerName = partnerName;
37
+    }
38
+
39
+    public String getPartnerName() 
40
+    {
41
+        return partnerName;
42
+    }
43
+
44
+    @Override
45
+    public String toString() {
46
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
47
+            .append("partnerId", getPartnerId())
48
+            .append("partnerName", getPartnerName())
49
+            .toString();
50
+    }
51
+}

+ 0
- 14
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProject.java Näytä tiedosto

55
     @Excel(name = "联系电话")
55
     @Excel(name = "联系电话")
56
     private String telephone;
56
     private String telephone;
57
 
57
 
58
-    /** 合同编码 */
59
-    @Excel(name = "合同编码")
60
-    private String contractId;
61
-
62
     /** 项目类型 */
58
     /** 项目类型 */
63
     @Excel(name = "项目类型")
59
     @Excel(name = "项目类型")
64
     private String projectType;
60
     private String projectType;
206
     {
202
     {
207
         return telephone;
203
         return telephone;
208
     }
204
     }
209
-    public void setContractId(String contractId)
210
-    {
211
-        this.contractId = contractId;
212
-    }
213
-
214
-    public String getContractId()
215
-    {
216
-        return contractId;
217
-    }
218
     public void setProjectType(String projectType)
205
     public void setProjectType(String projectType)
219
     {
206
     {
220
         this.projectType = projectType;
207
         this.projectType = projectType;
381
                 .append("partyA", getPartyA())
368
                 .append("partyA", getPartyA())
382
                 .append("contactPerson", getContactPerson())
369
                 .append("contactPerson", getContactPerson())
383
                 .append("telephone", getTelephone())
370
                 .append("telephone", getTelephone())
384
-                .append("contractId", getContractId())
385
                 .append("projectType", getProjectType())
371
                 .append("projectType", getProjectType())
386
                 .append("projectLevel", getProjectLevel())
372
                 .append("projectLevel", getProjectLevel())
387
                 .append("projectRegistrant", getProjectRegistrant())
373
                 .append("projectRegistrant", getProjectRegistrant())

+ 50
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcProjectContract.java Näytä tiedosto

1
+package com.ruoyi.oa.domain;
2
+
3
+import org.apache.commons.lang3.builder.ToStringBuilder;
4
+import org.apache.commons.lang3.builder.ToStringStyle;
5
+import com.ruoyi.common.annotation.Excel;
6
+import com.ruoyi.common.core.domain.BaseEntity;
7
+
8
+/**
9
+ * cmc项目合同对象 cmc_project_contract
10
+ * 
11
+ * @author cmc
12
+ * @date 2024-04-18
13
+ */
14
+public class CmcProjectContract extends BaseEntity
15
+{
16
+    private static final long serialVersionUID = 1L;
17
+
18
+    /** 项目id */
19
+    private String projectId;
20
+
21
+    /** 合同id */
22
+    private String contractId;
23
+
24
+    public void setProjectId(String projectId) 
25
+    {
26
+        this.projectId = projectId;
27
+    }
28
+
29
+    public String getProjectId() 
30
+    {
31
+        return projectId;
32
+    }
33
+    public void setContractId(String contractId) 
34
+    {
35
+        this.contractId = contractId;
36
+    }
37
+
38
+    public String getContractId() 
39
+    {
40
+        return contractId;
41
+    }
42
+
43
+    @Override
44
+    public String toString() {
45
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
46
+            .append("projectId", getProjectId())
47
+            .append("contractId", getContractId())
48
+            .toString();
49
+    }
50
+}

+ 197
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcSubContract.java Näytä tiedosto

1
+package com.ruoyi.oa.domain;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+import org.apache.commons.lang3.builder.ToStringBuilder;
7
+import org.apache.commons.lang3.builder.ToStringStyle;
8
+import com.ruoyi.common.annotation.Excel;
9
+import com.ruoyi.common.core.domain.BaseEntity;
10
+
11
+/**
12
+ * cmc分包合同评审对象 cmc_sub_contract
13
+ * 
14
+ * @author cmc
15
+ * @date 2024-04-18
16
+ */
17
+public class CmcSubContract extends BaseEntity
18
+{
19
+    private static final long serialVersionUID = 1L;
20
+
21
+    /** 分包合同id(ht2024w002) */
22
+    private String subContractId;
23
+
24
+    /** 主合同id */
25
+    @Excel(name = "主合同id")
26
+    private String contractId;
27
+
28
+    /** 合同名称 */
29
+    @Excel(name = "合同名称")
30
+    private String subContractName;
31
+
32
+    /** 分包合同金额 */
33
+    @Excel(name = "分包合同金额")
34
+    private BigDecimal subAmount;
35
+
36
+    /** 承接单位id */
37
+    @Excel(name = "承接单位id")
38
+    private String partnerId;
39
+
40
+    /** 承接单位联系人 */
41
+    @Excel(name = "承接单位联系人")
42
+    private String contactPerson;
43
+
44
+    /** 拟稿人 */
45
+    @Excel(name = "拟稿人")
46
+    private Long drafter;
47
+
48
+    /** 拟稿日期 */
49
+    @JsonFormat(pattern = "yyyy-MM-dd")
50
+    @Excel(name = "拟稿日期", width = 30, dateFormat = "yyyy-MM-dd")
51
+    private Date draftTime;
52
+
53
+    /** 签订日期 */
54
+    @JsonFormat(pattern = "yyyy-MM-dd")
55
+    @Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
56
+    private Date signDate;
57
+
58
+    /** 签订备注 */
59
+    @Excel(name = "签订备注")
60
+    private String signRemark;
61
+
62
+    /** 签订扫描件 */
63
+    @Excel(name = "签订扫描件")
64
+    private String signScan;
65
+
66
+    /** 评审方式 */
67
+    @Excel(name = "评审方式")
68
+    private String commentType;
69
+
70
+    public void setSubContractId(String subContractId) 
71
+    {
72
+        this.subContractId = subContractId;
73
+    }
74
+
75
+    public String getSubContractId() 
76
+    {
77
+        return subContractId;
78
+    }
79
+    public void setContractId(String contractId) 
80
+    {
81
+        this.contractId = contractId;
82
+    }
83
+
84
+    public String getContractId() 
85
+    {
86
+        return contractId;
87
+    }
88
+    public void setSubContractName(String subContractName) 
89
+    {
90
+        this.subContractName = subContractName;
91
+    }
92
+
93
+    public String getSubContractName() 
94
+    {
95
+        return subContractName;
96
+    }
97
+    public void setSubAmount(BigDecimal subAmount) 
98
+    {
99
+        this.subAmount = subAmount;
100
+    }
101
+
102
+    public BigDecimal getSubAmount() 
103
+    {
104
+        return subAmount;
105
+    }
106
+    public void setPartnerId(String partnerId) 
107
+    {
108
+        this.partnerId = partnerId;
109
+    }
110
+
111
+    public String getPartnerId() 
112
+    {
113
+        return partnerId;
114
+    }
115
+    public void setContactPerson(String contactPerson) 
116
+    {
117
+        this.contactPerson = contactPerson;
118
+    }
119
+
120
+    public String getContactPerson() 
121
+    {
122
+        return contactPerson;
123
+    }
124
+    public void setDrafter(Long drafter) 
125
+    {
126
+        this.drafter = drafter;
127
+    }
128
+
129
+    public Long getDrafter() 
130
+    {
131
+        return drafter;
132
+    }
133
+    public void setDraftTime(Date draftTime) 
134
+    {
135
+        this.draftTime = draftTime;
136
+    }
137
+
138
+    public Date getDraftTime() 
139
+    {
140
+        return draftTime;
141
+    }
142
+    public void setSignDate(Date signDate) 
143
+    {
144
+        this.signDate = signDate;
145
+    }
146
+
147
+    public Date getSignDate() 
148
+    {
149
+        return signDate;
150
+    }
151
+    public void setSignRemark(String signRemark) 
152
+    {
153
+        this.signRemark = signRemark;
154
+    }
155
+
156
+    public String getSignRemark() 
157
+    {
158
+        return signRemark;
159
+    }
160
+    public void setSignScan(String signScan) 
161
+    {
162
+        this.signScan = signScan;
163
+    }
164
+
165
+    public String getSignScan() 
166
+    {
167
+        return signScan;
168
+    }
169
+    public void setCommentType(String commentType) 
170
+    {
171
+        this.commentType = commentType;
172
+    }
173
+
174
+    public String getCommentType() 
175
+    {
176
+        return commentType;
177
+    }
178
+
179
+    @Override
180
+    public String toString() {
181
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
182
+            .append("subContractId", getSubContractId())
183
+            .append("contractId", getContractId())
184
+            .append("subContractName", getSubContractName())
185
+            .append("subAmount", getSubAmount())
186
+            .append("partnerId", getPartnerId())
187
+            .append("contactPerson", getContactPerson())
188
+            .append("drafter", getDrafter())
189
+            .append("draftTime", getDraftTime())
190
+            .append("remark", getRemark())
191
+            .append("signDate", getSignDate())
192
+            .append("signRemark", getSignRemark())
193
+            .append("signScan", getSignScan())
194
+            .append("commentType", getCommentType())
195
+            .toString();
196
+    }
197
+}

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcPartnerMapper.java Näytä tiedosto

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcProjectContractMapper.java Näytä tiedosto

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/mapper/CmcSubContractMapper.java Näytä tiedosto

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcPartnerService.java Näytä tiedosto

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcProjectContractService.java Näytä tiedosto

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

+ 61
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/ICmcSubContractService.java Näytä tiedosto

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

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcPartnerServiceImpl.java Näytä tiedosto

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.CmcPartnerMapper;
7
+import com.ruoyi.oa.domain.CmcPartner;
8
+import com.ruoyi.oa.service.ICmcPartnerService;
9
+
10
+/**
11
+ * cmc合作单位Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-04-18
15
+ */
16
+@Service
17
+public class CmcPartnerServiceImpl implements ICmcPartnerService 
18
+{
19
+    @Autowired
20
+    private CmcPartnerMapper cmcPartnerMapper;
21
+
22
+    /**
23
+     * 查询cmc合作单位
24
+     * 
25
+     * @param partnerId cmc合作单位主键
26
+     * @return cmc合作单位
27
+     */
28
+    @Override
29
+    public CmcPartner selectCmcPartnerByPartnerId(String partnerId)
30
+    {
31
+        return cmcPartnerMapper.selectCmcPartnerByPartnerId(partnerId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc合作单位列表
36
+     * 
37
+     * @param cmcPartner cmc合作单位
38
+     * @return cmc合作单位
39
+     */
40
+    @Override
41
+    public List<CmcPartner> selectCmcPartnerList(CmcPartner cmcPartner)
42
+    {
43
+        return cmcPartnerMapper.selectCmcPartnerList(cmcPartner);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc合作单位
48
+     * 
49
+     * @param cmcPartner cmc合作单位
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcPartner(CmcPartner cmcPartner)
54
+    {
55
+        return cmcPartnerMapper.insertCmcPartner(cmcPartner);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc合作单位
60
+     * 
61
+     * @param cmcPartner cmc合作单位
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcPartner(CmcPartner cmcPartner)
66
+    {
67
+        return cmcPartnerMapper.updateCmcPartner(cmcPartner);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc合作单位
72
+     * 
73
+     * @param partnerIds 需要删除的cmc合作单位主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcPartnerByPartnerIds(String[] partnerIds)
78
+    {
79
+        return cmcPartnerMapper.deleteCmcPartnerByPartnerIds(partnerIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc合作单位信息
84
+     * 
85
+     * @param partnerId cmc合作单位主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcPartnerByPartnerId(String partnerId)
90
+    {
91
+        return cmcPartnerMapper.deleteCmcPartnerByPartnerId(partnerId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcProjectContractServiceImpl.java Näytä tiedosto

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.CmcProjectContractMapper;
7
+import com.ruoyi.oa.domain.CmcProjectContract;
8
+import com.ruoyi.oa.service.ICmcProjectContractService;
9
+
10
+/**
11
+ * cmc项目合同Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-04-18
15
+ */
16
+@Service
17
+public class CmcProjectContractServiceImpl implements ICmcProjectContractService 
18
+{
19
+    @Autowired
20
+    private CmcProjectContractMapper cmcProjectContractMapper;
21
+
22
+    /**
23
+     * 查询cmc项目合同
24
+     * 
25
+     * @param projectId cmc项目合同主键
26
+     * @return cmc项目合同
27
+     */
28
+    @Override
29
+    public CmcProjectContract selectCmcProjectContractByProjectId(String projectId)
30
+    {
31
+        return cmcProjectContractMapper.selectCmcProjectContractByProjectId(projectId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc项目合同列表
36
+     * 
37
+     * @param cmcProjectContract cmc项目合同
38
+     * @return cmc项目合同
39
+     */
40
+    @Override
41
+    public List<CmcProjectContract> selectCmcProjectContractList(CmcProjectContract cmcProjectContract)
42
+    {
43
+        return cmcProjectContractMapper.selectCmcProjectContractList(cmcProjectContract);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc项目合同
48
+     * 
49
+     * @param cmcProjectContract cmc项目合同
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcProjectContract(CmcProjectContract cmcProjectContract)
54
+    {
55
+        return cmcProjectContractMapper.insertCmcProjectContract(cmcProjectContract);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc项目合同
60
+     * 
61
+     * @param cmcProjectContract cmc项目合同
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcProjectContract(CmcProjectContract cmcProjectContract)
66
+    {
67
+        return cmcProjectContractMapper.updateCmcProjectContract(cmcProjectContract);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc项目合同
72
+     * 
73
+     * @param projectIds 需要删除的cmc项目合同主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcProjectContractByProjectIds(String[] projectIds)
78
+    {
79
+        return cmcProjectContractMapper.deleteCmcProjectContractByProjectIds(projectIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc项目合同信息
84
+     * 
85
+     * @param projectId cmc项目合同主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcProjectContractByProjectId(String projectId)
90
+    {
91
+        return cmcProjectContractMapper.deleteCmcProjectContractByProjectId(projectId);
92
+    }
93
+}

+ 93
- 0
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/service/impl/CmcSubContractServiceImpl.java Näytä tiedosto

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.CmcSubContractMapper;
7
+import com.ruoyi.oa.domain.CmcSubContract;
8
+import com.ruoyi.oa.service.ICmcSubContractService;
9
+
10
+/**
11
+ * cmc分包合同评审Service业务层处理
12
+ * 
13
+ * @author cmc
14
+ * @date 2024-04-18
15
+ */
16
+@Service
17
+public class CmcSubContractServiceImpl implements ICmcSubContractService 
18
+{
19
+    @Autowired
20
+    private CmcSubContractMapper cmcSubContractMapper;
21
+
22
+    /**
23
+     * 查询cmc分包合同评审
24
+     * 
25
+     * @param subContractId cmc分包合同评审主键
26
+     * @return cmc分包合同评审
27
+     */
28
+    @Override
29
+    public CmcSubContract selectCmcSubContractBySubContractId(String subContractId)
30
+    {
31
+        return cmcSubContractMapper.selectCmcSubContractBySubContractId(subContractId);
32
+    }
33
+
34
+    /**
35
+     * 查询cmc分包合同评审列表
36
+     * 
37
+     * @param cmcSubContract cmc分包合同评审
38
+     * @return cmc分包合同评审
39
+     */
40
+    @Override
41
+    public List<CmcSubContract> selectCmcSubContractList(CmcSubContract cmcSubContract)
42
+    {
43
+        return cmcSubContractMapper.selectCmcSubContractList(cmcSubContract);
44
+    }
45
+
46
+    /**
47
+     * 新增cmc分包合同评审
48
+     * 
49
+     * @param cmcSubContract cmc分包合同评审
50
+     * @return 结果
51
+     */
52
+    @Override
53
+    public int insertCmcSubContract(CmcSubContract cmcSubContract)
54
+    {
55
+        return cmcSubContractMapper.insertCmcSubContract(cmcSubContract);
56
+    }
57
+
58
+    /**
59
+     * 修改cmc分包合同评审
60
+     * 
61
+     * @param cmcSubContract cmc分包合同评审
62
+     * @return 结果
63
+     */
64
+    @Override
65
+    public int updateCmcSubContract(CmcSubContract cmcSubContract)
66
+    {
67
+        return cmcSubContractMapper.updateCmcSubContract(cmcSubContract);
68
+    }
69
+
70
+    /**
71
+     * 批量删除cmc分包合同评审
72
+     * 
73
+     * @param subContractIds 需要删除的cmc分包合同评审主键
74
+     * @return 结果
75
+     */
76
+    @Override
77
+    public int deleteCmcSubContractBySubContractIds(String[] subContractIds)
78
+    {
79
+        return cmcSubContractMapper.deleteCmcSubContractBySubContractIds(subContractIds);
80
+    }
81
+
82
+    /**
83
+     * 删除cmc分包合同评审信息
84
+     * 
85
+     * @param subContractId cmc分包合同评审主键
86
+     * @return 结果
87
+     */
88
+    @Override
89
+    public int deleteCmcSubContractBySubContractId(String subContractId)
90
+    {
91
+        return cmcSubContractMapper.deleteCmcSubContractBySubContractId(subContractId);
92
+    }
93
+}

+ 2
- 42
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractMapper.xml Näytä tiedosto

7
     <resultMap type="CmcContract" id="CmcContractResult">
7
     <resultMap type="CmcContract" id="CmcContractResult">
8
         <result property="contractId"    column="contract_id"    />
8
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractNumber"    column="contract_number"    />
9
         <result property="contractNumber"    column="contract_number"    />
10
-        <result property="contractName"    column="contract_name"    />
11
-        <result property="partyA"    column="party_a"    />
12
-        <result property="contactPerson"    column="contact_person"    />
13
-        <result property="telephone"    column="telephone"    />
14
-        <result property="projectType"    column="project_type"    />
15
-        <result property="projectSource"    column="project_source"    />
16
-        <result property="undertakingDept"    column="undertaking_dept"    />
17
         <result property="amount"    column="amount"    />
10
         <result property="amount"    column="amount"    />
18
         <result property="deposit"    column="deposit"    />
11
         <result property="deposit"    column="deposit"    />
19
         <result property="contractDocument"    column="contract_document"    />
12
         <result property="contractDocument"    column="contract_document"    />
20
         <result property="drafter"    column="drafter"    />
13
         <result property="drafter"    column="drafter"    />
21
         <result property="draftTime"    column="draft_time"    />
14
         <result property="draftTime"    column="draft_time"    />
22
-        <result property="projectIds"    column="project_ids"    />
23
         <result property="remark"    column="remark"    />
15
         <result property="remark"    column="remark"    />
24
         <result property="signDate"    column="sign_date"    />
16
         <result property="signDate"    column="sign_date"    />
25
         <result property="signRemark"    column="sign_remark"    />
17
         <result property="signRemark"    column="sign_remark"    />
28
     </resultMap>
20
     </resultMap>
29
 
21
 
30
     <sql id="selectCmcContractVo">
22
     <sql id="selectCmcContractVo">
31
-        select contract_id, contract_number, contract_name, party_a, contact_person, telephone, project_type, project_source, undertaking_dept, amount, deposit, contract_document, drafter, draft_time, project_ids, remark, sign_date, sign_remark, sign_scan, comment_type from cmc_contract
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
32
     </sql>
24
     </sql>
33
 
25
 
34
     <select id="selectCmcContractList" parameterType="CmcContract" resultMap="CmcContractResult">
26
     <select id="selectCmcContractList" parameterType="CmcContract" resultMap="CmcContractResult">
35
         <include refid="selectCmcContractVo"/>
27
         <include refid="selectCmcContractVo"/>
36
         <where>
28
         <where>
37
-            <if test="contractNumber != null  and contractNumber != ''"> and contract_number like concat('%', #{contractNumber}, '%')</if>
38
-            <if test="contractName != null  and contractName != ''"> and contract_name like concat('%', #{contractName}, '%')</if>
39
-            <if test="partyA != null  and partyA != ''"> and party_a like concat('%', #{partyA}, '%')</if>
40
-            <if test="contactPerson != null  and contactPerson != ''"> and contact_person like concat('%', #{contactPerson}, '%')</if>
41
-            <if test="telephone != null  and telephone != ''"> and telephone like concat('%', #{telephone}, '%')</if>
42
-            <if test="projectType != null  and projectType != ''"> and project_type like concat('%', #{projectType}, '%')</if>
43
-            <if test="projectSource != null  and projectSource != ''"> and project_source = #{projectSource}</if>
44
-            <if test="undertakingDept != null  and undertakingDept != ''"> and undertaking_dept = #{undertakingDept}</if>
29
+            <if test="contractNumber != null  and contractNumber != ''"> and contract_number = #{contractNumber}</if>
45
             <if test="amount != null "> and amount = #{amount}</if>
30
             <if test="amount != null "> and amount = #{amount}</if>
46
             <if test="deposit != null "> and deposit = #{deposit}</if>
31
             <if test="deposit != null "> and deposit = #{deposit}</if>
47
             <if test="contractDocument != null  and contractDocument != ''"> and contract_document = #{contractDocument}</if>
32
             <if test="contractDocument != null  and contractDocument != ''"> and contract_document = #{contractDocument}</if>
48
             <if test="drafter != null "> and drafter = #{drafter}</if>
33
             <if test="drafter != null "> and drafter = #{drafter}</if>
49
             <if test="draftTime != null "> and draft_time = #{draftTime}</if>
34
             <if test="draftTime != null "> and draft_time = #{draftTime}</if>
50
-            <if test="projectIds != null  and projectIds != ''"> and project_ids = #{projectIds}</if>
51
             <if test="signDate != null "> and sign_date = #{signDate}</if>
35
             <if test="signDate != null "> and sign_date = #{signDate}</if>
52
             <if test="signRemark != null  and signRemark != ''"> and sign_remark = #{signRemark}</if>
36
             <if test="signRemark != null  and signRemark != ''"> and sign_remark = #{signRemark}</if>
53
             <if test="signScan != null  and signScan != ''"> and sign_scan = #{signScan}</if>
37
             <if test="signScan != null  and signScan != ''"> and sign_scan = #{signScan}</if>
65
         <trim prefix="(" suffix=")" suffixOverrides=",">
49
         <trim prefix="(" suffix=")" suffixOverrides=",">
66
             <if test="contractId != null">contract_id,</if>
50
             <if test="contractId != null">contract_id,</if>
67
             <if test="contractNumber != null">contract_number,</if>
51
             <if test="contractNumber != null">contract_number,</if>
68
-            <if test="contractName != null">contract_name,</if>
69
-            <if test="partyA != null">party_a,</if>
70
-            <if test="contactPerson != null">contact_person,</if>
71
-            <if test="telephone != null">telephone,</if>
72
-            <if test="projectType != null">project_type,</if>
73
-            <if test="projectSource != null">project_source,</if>
74
-            <if test="undertakingDept != null">undertaking_dept,</if>
75
             <if test="amount != null">amount,</if>
52
             <if test="amount != null">amount,</if>
76
             <if test="deposit != null">deposit,</if>
53
             <if test="deposit != null">deposit,</if>
77
             <if test="contractDocument != null">contract_document,</if>
54
             <if test="contractDocument != null">contract_document,</if>
78
             <if test="drafter != null">drafter,</if>
55
             <if test="drafter != null">drafter,</if>
79
             <if test="draftTime != null">draft_time,</if>
56
             <if test="draftTime != null">draft_time,</if>
80
-            <if test="projectIds != null">project_ids,</if>
81
             <if test="remark != null">remark,</if>
57
             <if test="remark != null">remark,</if>
82
             <if test="signDate != null">sign_date,</if>
58
             <if test="signDate != null">sign_date,</if>
83
             <if test="signRemark != null">sign_remark,</if>
59
             <if test="signRemark != null">sign_remark,</if>
87
         <trim prefix="values (" suffix=")" suffixOverrides=",">
63
         <trim prefix="values (" suffix=")" suffixOverrides=",">
88
             <if test="contractId != null">#{contractId},</if>
64
             <if test="contractId != null">#{contractId},</if>
89
             <if test="contractNumber != null">#{contractNumber},</if>
65
             <if test="contractNumber != null">#{contractNumber},</if>
90
-            <if test="contractName != null">#{contractName},</if>
91
-            <if test="partyA != null">#{partyA},</if>
92
-            <if test="contactPerson != null">#{contactPerson},</if>
93
-            <if test="telephone != null">#{telephone},</if>
94
-            <if test="projectType != null">#{projectType},</if>
95
-            <if test="projectSource != null">#{projectSource},</if>
96
-            <if test="undertakingDept != null">#{undertakingDept},</if>
97
             <if test="amount != null">#{amount},</if>
66
             <if test="amount != null">#{amount},</if>
98
             <if test="deposit != null">#{deposit},</if>
67
             <if test="deposit != null">#{deposit},</if>
99
             <if test="contractDocument != null">#{contractDocument},</if>
68
             <if test="contractDocument != null">#{contractDocument},</if>
100
             <if test="drafter != null">#{drafter},</if>
69
             <if test="drafter != null">#{drafter},</if>
101
             <if test="draftTime != null">#{draftTime},</if>
70
             <if test="draftTime != null">#{draftTime},</if>
102
-            <if test="projectIds != null">#{projectIds},</if>
103
             <if test="remark != null">#{remark},</if>
71
             <if test="remark != null">#{remark},</if>
104
             <if test="signDate != null">#{signDate},</if>
72
             <if test="signDate != null">#{signDate},</if>
105
             <if test="signRemark != null">#{signRemark},</if>
73
             <if test="signRemark != null">#{signRemark},</if>
112
         update cmc_contract
80
         update cmc_contract
113
         <trim prefix="SET" suffixOverrides=",">
81
         <trim prefix="SET" suffixOverrides=",">
114
             <if test="contractNumber != null">contract_number = #{contractNumber},</if>
82
             <if test="contractNumber != null">contract_number = #{contractNumber},</if>
115
-            <if test="contractName != null">contract_name = #{contractName},</if>
116
-            <if test="partyA != null">party_a = #{partyA},</if>
117
-            <if test="contactPerson != null">contact_person = #{contactPerson},</if>
118
-            <if test="telephone != null">telephone = #{telephone},</if>
119
-            <if test="projectType != null">project_type = #{projectType},</if>
120
-            <if test="projectSource != null">project_source = #{projectSource},</if>
121
-            <if test="undertakingDept != null">undertaking_dept = #{undertakingDept},</if>
122
             <if test="amount != null">amount = #{amount},</if>
83
             <if test="amount != null">amount = #{amount},</if>
123
             <if test="deposit != null">deposit = #{deposit},</if>
84
             <if test="deposit != null">deposit = #{deposit},</if>
124
             <if test="contractDocument != null">contract_document = #{contractDocument},</if>
85
             <if test="contractDocument != null">contract_document = #{contractDocument},</if>
125
             <if test="drafter != null">drafter = #{drafter},</if>
86
             <if test="drafter != null">drafter = #{drafter},</if>
126
             <if test="draftTime != null">draft_time = #{draftTime},</if>
87
             <if test="draftTime != null">draft_time = #{draftTime},</if>
127
-            <if test="projectIds != null">project_ids = #{projectIds},</if>
128
             <if test="remark != null">remark = #{remark},</if>
88
             <if test="remark != null">remark = #{remark},</if>
129
             <if test="signDate != null">sign_date = #{signDate},</if>
89
             <if test="signDate != null">sign_date = #{signDate},</if>
130
             <if test="signRemark != null">sign_remark = #{signRemark},</if>
90
             <if test="signRemark != null">sign_remark = #{signRemark},</if>

+ 16
- 11
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractPaymentMapper.xml Näytä tiedosto

1
 <?xml version="1.0" encoding="UTF-8" ?>
1
 <?xml version="1.0" encoding="UTF-8" ?>
2
 <!DOCTYPE mapper
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
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractPaymentMapper">
5
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractPaymentMapper">
6
-    
6
+
7
     <resultMap type="CmcContractPayment" id="CmcContractPaymentResult">
7
     <resultMap type="CmcContractPayment" id="CmcContractPaymentResult">
8
         <result property="paymentId"    column="payment_id"    />
8
         <result property="paymentId"    column="payment_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10
         <result property="paymentCondition"    column="payment_condition"    />
11
         <result property="paymentCondition"    column="payment_condition"    />
11
         <result property="paymentPercentage"    column="payment_percentage"    />
12
         <result property="paymentPercentage"    column="payment_percentage"    />
12
         <result property="paymentAmount"    column="payment_amount"    />
13
         <result property="paymentAmount"    column="payment_amount"    />
15
     </resultMap>
16
     </resultMap>
16
 
17
 
17
     <sql id="selectCmcContractPaymentVo">
18
     <sql id="selectCmcContractPaymentVo">
18
-        select payment_id, contract_id, payment_condition, payment_percentage, payment_amount, payment_time, remark from cmc_contract_payment
19
+        select payment_id, contract_id, sub_contract_id, payment_condition, payment_percentage, payment_amount, payment_time, remark from cmc_contract_payment
19
     </sql>
20
     </sql>
20
 
21
 
21
     <select id="selectCmcContractPaymentList" parameterType="CmcContractPayment" resultMap="CmcContractPaymentResult">
22
     <select id="selectCmcContractPaymentList" parameterType="CmcContractPayment" resultMap="CmcContractPaymentResult">
22
         <include refid="selectCmcContractPaymentVo"/>
23
         <include refid="selectCmcContractPaymentVo"/>
23
-        <where>  
24
-            <if test="contractId != null  and contractId != ''"> and contract_id like concat('%', #{contractId}, '%')</if>
24
+        <where>
25
+            <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
26
+            <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
25
             <if test="paymentCondition != null  and paymentCondition != ''"> and payment_condition = #{paymentCondition}</if>
27
             <if test="paymentCondition != null  and paymentCondition != ''"> and payment_condition = #{paymentCondition}</if>
26
             <if test="paymentPercentage != null  and paymentPercentage != ''"> and payment_percentage = #{paymentPercentage}</if>
28
             <if test="paymentPercentage != null  and paymentPercentage != ''"> and payment_percentage = #{paymentPercentage}</if>
27
             <if test="paymentAmount != null  and paymentAmount != ''"> and payment_amount = #{paymentAmount}</if>
29
             <if test="paymentAmount != null  and paymentAmount != ''"> and payment_amount = #{paymentAmount}</if>
28
             <if test="paymentTime != null "> and payment_time = #{paymentTime}</if>
30
             <if test="paymentTime != null "> and payment_time = #{paymentTime}</if>
29
         </where>
31
         </where>
30
     </select>
32
     </select>
31
-    
33
+
32
     <select id="selectCmcContractPaymentByPaymentId" parameterType="String" resultMap="CmcContractPaymentResult">
34
     <select id="selectCmcContractPaymentByPaymentId" parameterType="String" resultMap="CmcContractPaymentResult">
33
         <include refid="selectCmcContractPaymentVo"/>
35
         <include refid="selectCmcContractPaymentVo"/>
34
         where payment_id = #{paymentId}
36
         where payment_id = #{paymentId}
35
     </select>
37
     </select>
36
-        
38
+
37
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
39
     <insert id="insertCmcContractPayment" parameterType="CmcContractPayment">
38
         insert into cmc_contract_payment
40
         insert into cmc_contract_payment
39
         <trim prefix="(" suffix=")" suffixOverrides=",">
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
40
             <if test="paymentId != null">payment_id,</if>
42
             <if test="paymentId != null">payment_id,</if>
41
             <if test="contractId != null">contract_id,</if>
43
             <if test="contractId != null">contract_id,</if>
44
+            <if test="subContractId != null">sub_contract_id,</if>
42
             <if test="paymentCondition != null">payment_condition,</if>
45
             <if test="paymentCondition != null">payment_condition,</if>
43
             <if test="paymentPercentage != null">payment_percentage,</if>
46
             <if test="paymentPercentage != null">payment_percentage,</if>
44
             <if test="paymentAmount != null">payment_amount,</if>
47
             <if test="paymentAmount != null">payment_amount,</if>
45
             <if test="paymentTime != null">payment_time,</if>
48
             <if test="paymentTime != null">payment_time,</if>
46
             <if test="remark != null">remark,</if>
49
             <if test="remark != null">remark,</if>
47
-         </trim>
50
+        </trim>
48
         <trim prefix="values (" suffix=")" suffixOverrides=",">
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
49
             <if test="paymentId != null">#{paymentId},</if>
52
             <if test="paymentId != null">#{paymentId},</if>
50
             <if test="contractId != null">#{contractId},</if>
53
             <if test="contractId != null">#{contractId},</if>
54
+            <if test="subContractId != null">#{subContractId},</if>
51
             <if test="paymentCondition != null">#{paymentCondition},</if>
55
             <if test="paymentCondition != null">#{paymentCondition},</if>
52
             <if test="paymentPercentage != null">#{paymentPercentage},</if>
56
             <if test="paymentPercentage != null">#{paymentPercentage},</if>
53
             <if test="paymentAmount != null">#{paymentAmount},</if>
57
             <if test="paymentAmount != null">#{paymentAmount},</if>
54
             <if test="paymentTime != null">#{paymentTime},</if>
58
             <if test="paymentTime != null">#{paymentTime},</if>
55
             <if test="remark != null">#{remark},</if>
59
             <if test="remark != null">#{remark},</if>
56
-         </trim>
60
+        </trim>
57
     </insert>
61
     </insert>
58
 
62
 
59
     <update id="updateCmcContractPayment" parameterType="CmcContractPayment">
63
     <update id="updateCmcContractPayment" parameterType="CmcContractPayment">
60
         update cmc_contract_payment
64
         update cmc_contract_payment
61
         <trim prefix="SET" suffixOverrides=",">
65
         <trim prefix="SET" suffixOverrides=",">
62
             <if test="contractId != null">contract_id = #{contractId},</if>
66
             <if test="contractId != null">contract_id = #{contractId},</if>
67
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
63
             <if test="paymentCondition != null">payment_condition = #{paymentCondition},</if>
68
             <if test="paymentCondition != null">payment_condition = #{paymentCondition},</if>
64
             <if test="paymentPercentage != null">payment_percentage = #{paymentPercentage},</if>
69
             <if test="paymentPercentage != null">payment_percentage = #{paymentPercentage},</if>
65
             <if test="paymentAmount != null">payment_amount = #{paymentAmount},</if>
70
             <if test="paymentAmount != null">payment_amount = #{paymentAmount},</if>
74
     </delete>
79
     </delete>
75
 
80
 
76
     <delete id="deleteCmcContractPaymentByPaymentIds" parameterType="String">
81
     <delete id="deleteCmcContractPaymentByPaymentIds" parameterType="String">
77
-        delete from cmc_contract_payment where payment_id in 
82
+        delete from cmc_contract_payment where payment_id in
78
         <foreach item="paymentId" collection="array" open="(" separator="," close=")">
83
         <foreach item="paymentId" collection="array" open="(" separator="," close=")">
79
             #{paymentId}
84
             #{paymentId}
80
         </foreach>
85
         </foreach>

+ 16
- 11
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcContractWorkMapper.xml Näytä tiedosto

1
 <?xml version="1.0" encoding="UTF-8" ?>
1
 <?xml version="1.0" encoding="UTF-8" ?>
2
 <!DOCTYPE mapper
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
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractWorkMapper">
5
 <mapper namespace="com.ruoyi.oa.mapper.CmcContractWorkMapper">
6
-    
6
+
7
     <resultMap type="CmcContractWork" id="CmcContractWorkResult">
7
     <resultMap type="CmcContractWork" id="CmcContractWorkResult">
8
         <result property="workId"    column="work_id"    />
8
         <result property="workId"    column="work_id"    />
9
         <result property="contractId"    column="contract_id"    />
9
         <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractId"    column="sub_contract_id"    />
10
         <result property="content"    column="content"    />
11
         <result property="content"    column="content"    />
11
         <result property="scale"    column="scale"    />
12
         <result property="scale"    column="scale"    />
12
         <result property="unit"    column="unit"    />
13
         <result property="unit"    column="unit"    />
16
     </resultMap>
17
     </resultMap>
17
 
18
 
18
     <sql id="selectCmcContractWorkVo">
19
     <sql id="selectCmcContractWorkVo">
19
-        select work_id, contract_id, content, scale, unit, workload, deadline, remark from cmc_contract_work
20
+        select work_id, contract_id, sub_contract_id, content, scale, unit, workload, deadline, remark from cmc_contract_work
20
     </sql>
21
     </sql>
21
 
22
 
22
     <select id="selectCmcContractWorkList" parameterType="CmcContractWork" resultMap="CmcContractWorkResult">
23
     <select id="selectCmcContractWorkList" parameterType="CmcContractWork" resultMap="CmcContractWorkResult">
23
         <include refid="selectCmcContractWorkVo"/>
24
         <include refid="selectCmcContractWorkVo"/>
24
-        <where>  
25
-            <if test="contractId != null  and contractId != ''"> and contract_id like concat('%', #{contractId}, '%')</if>
25
+        <where>
26
+            <if test="contractId != null  and contractId != ''"> and contract_id = #{contractId}</if>
27
+            <if test="subContractId != null  and subContractId != ''"> and sub_contract_id = #{subContractId}</if>
26
             <if test="content != null  and content != ''"> and content = #{content}</if>
28
             <if test="content != null  and content != ''"> and content = #{content}</if>
27
             <if test="scale != null  and scale != ''"> and scale = #{scale}</if>
29
             <if test="scale != null  and scale != ''"> and scale = #{scale}</if>
28
             <if test="unit != null  and unit != ''"> and unit = #{unit}</if>
30
             <if test="unit != null  and unit != ''"> and unit = #{unit}</if>
30
             <if test="deadline != null "> and deadline = #{deadline}</if>
32
             <if test="deadline != null "> and deadline = #{deadline}</if>
31
         </where>
33
         </where>
32
     </select>
34
     </select>
33
-    
35
+
34
     <select id="selectCmcContractWorkByWorkId" parameterType="String" resultMap="CmcContractWorkResult">
36
     <select id="selectCmcContractWorkByWorkId" parameterType="String" resultMap="CmcContractWorkResult">
35
         <include refid="selectCmcContractWorkVo"/>
37
         <include refid="selectCmcContractWorkVo"/>
36
         where work_id = #{workId}
38
         where work_id = #{workId}
37
     </select>
39
     </select>
38
-        
40
+
39
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
41
     <insert id="insertCmcContractWork" parameterType="CmcContractWork">
40
         insert into cmc_contract_work
42
         insert into cmc_contract_work
41
         <trim prefix="(" suffix=")" suffixOverrides=",">
43
         <trim prefix="(" suffix=")" suffixOverrides=",">
42
             <if test="workId != null">work_id,</if>
44
             <if test="workId != null">work_id,</if>
43
             <if test="contractId != null">contract_id,</if>
45
             <if test="contractId != null">contract_id,</if>
46
+            <if test="subContractId != null">sub_contract_id,</if>
44
             <if test="content != null">content,</if>
47
             <if test="content != null">content,</if>
45
             <if test="scale != null">scale,</if>
48
             <if test="scale != null">scale,</if>
46
             <if test="unit != null">unit,</if>
49
             <if test="unit != null">unit,</if>
47
             <if test="workload != null">workload,</if>
50
             <if test="workload != null">workload,</if>
48
             <if test="deadline != null">deadline,</if>
51
             <if test="deadline != null">deadline,</if>
49
             <if test="remark != null">remark,</if>
52
             <if test="remark != null">remark,</if>
50
-         </trim>
53
+        </trim>
51
         <trim prefix="values (" suffix=")" suffixOverrides=",">
54
         <trim prefix="values (" suffix=")" suffixOverrides=",">
52
             <if test="workId != null">#{workId},</if>
55
             <if test="workId != null">#{workId},</if>
53
             <if test="contractId != null">#{contractId},</if>
56
             <if test="contractId != null">#{contractId},</if>
57
+            <if test="subContractId != null">#{subContractId},</if>
54
             <if test="content != null">#{content},</if>
58
             <if test="content != null">#{content},</if>
55
             <if test="scale != null">#{scale},</if>
59
             <if test="scale != null">#{scale},</if>
56
             <if test="unit != null">#{unit},</if>
60
             <if test="unit != null">#{unit},</if>
57
             <if test="workload != null">#{workload},</if>
61
             <if test="workload != null">#{workload},</if>
58
             <if test="deadline != null">#{deadline},</if>
62
             <if test="deadline != null">#{deadline},</if>
59
             <if test="remark != null">#{remark},</if>
63
             <if test="remark != null">#{remark},</if>
60
-         </trim>
64
+        </trim>
61
     </insert>
65
     </insert>
62
 
66
 
63
     <update id="updateCmcContractWork" parameterType="CmcContractWork">
67
     <update id="updateCmcContractWork" parameterType="CmcContractWork">
64
         update cmc_contract_work
68
         update cmc_contract_work
65
         <trim prefix="SET" suffixOverrides=",">
69
         <trim prefix="SET" suffixOverrides=",">
66
             <if test="contractId != null">contract_id = #{contractId},</if>
70
             <if test="contractId != null">contract_id = #{contractId},</if>
71
+            <if test="subContractId != null">sub_contract_id = #{subContractId},</if>
67
             <if test="content != null">content = #{content},</if>
72
             <if test="content != null">content = #{content},</if>
68
             <if test="scale != null">scale = #{scale},</if>
73
             <if test="scale != null">scale = #{scale},</if>
69
             <if test="unit != null">unit = #{unit},</if>
74
             <if test="unit != null">unit = #{unit},</if>
79
     </delete>
84
     </delete>
80
 
85
 
81
     <delete id="deleteCmcContractWorkByWorkIds" parameterType="String">
86
     <delete id="deleteCmcContractWorkByWorkIds" parameterType="String">
82
-        delete from cmc_contract_work where work_id in 
87
+        delete from cmc_contract_work where work_id in
83
         <foreach item="workId" collection="array" open="(" separator="," close=")">
88
         <foreach item="workId" collection="array" open="(" separator="," close=")">
84
             #{workId}
89
             #{workId}
85
         </foreach>
90
         </foreach>

+ 58
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcPartnerMapper.xml Näytä tiedosto

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.CmcPartnerMapper">
6
+    
7
+    <resultMap type="CmcPartner" id="CmcPartnerResult">
8
+        <result property="partnerId"    column="partner_id"    />
9
+        <result property="partnerName"    column="partner_name"    />
10
+    </resultMap>
11
+
12
+    <sql id="selectCmcPartnerVo">
13
+        select partner_id, partner_name from cmc_partner
14
+    </sql>
15
+
16
+    <select id="selectCmcPartnerList" parameterType="CmcPartner" resultMap="CmcPartnerResult">
17
+        <include refid="selectCmcPartnerVo"/>
18
+        <where>  
19
+            <if test="partnerName != null  and partnerName != ''"> and partner_name like concat('%', #{partnerName}, '%')</if>
20
+        </where>
21
+    </select>
22
+    
23
+    <select id="selectCmcPartnerByPartnerId" parameterType="String" resultMap="CmcPartnerResult">
24
+        <include refid="selectCmcPartnerVo"/>
25
+        where partner_id = #{partnerId}
26
+    </select>
27
+        
28
+    <insert id="insertCmcPartner" parameterType="CmcPartner">
29
+        insert into cmc_partner
30
+        <trim prefix="(" suffix=")" suffixOverrides=",">
31
+            <if test="partnerId != null">partner_id,</if>
32
+            <if test="partnerName != null">partner_name,</if>
33
+         </trim>
34
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
35
+            <if test="partnerId != null">#{partnerId},</if>
36
+            <if test="partnerName != null">#{partnerName},</if>
37
+         </trim>
38
+    </insert>
39
+
40
+    <update id="updateCmcPartner" parameterType="CmcPartner">
41
+        update cmc_partner
42
+        <trim prefix="SET" suffixOverrides=",">
43
+            <if test="partnerName != null">partner_name = #{partnerName},</if>
44
+        </trim>
45
+        where partner_id = #{partnerId}
46
+    </update>
47
+
48
+    <delete id="deleteCmcPartnerByPartnerId" parameterType="String">
49
+        delete from cmc_partner where partner_id = #{partnerId}
50
+    </delete>
51
+
52
+    <delete id="deleteCmcPartnerByPartnerIds" parameterType="String">
53
+        delete from cmc_partner where partner_id in 
54
+        <foreach item="partnerId" collection="array" open="(" separator="," close=")">
55
+            #{partnerId}
56
+        </foreach>
57
+    </delete>
58
+</mapper>

+ 57
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectContractMapper.xml Näytä tiedosto

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.CmcProjectContractMapper">
6
+    
7
+    <resultMap type="CmcProjectContract" id="CmcProjectContractResult">
8
+        <result property="projectId"    column="project_id"    />
9
+        <result property="contractId"    column="contract_id"    />
10
+    </resultMap>
11
+
12
+    <sql id="selectCmcProjectContractVo">
13
+        select project_id, contract_id from cmc_project_contract
14
+    </sql>
15
+
16
+    <select id="selectCmcProjectContractList" parameterType="CmcProjectContract" resultMap="CmcProjectContractResult">
17
+        <include refid="selectCmcProjectContractVo"/>
18
+        <where>  
19
+        </where>
20
+    </select>
21
+    
22
+    <select id="selectCmcProjectContractByProjectId" parameterType="String" resultMap="CmcProjectContractResult">
23
+        <include refid="selectCmcProjectContractVo"/>
24
+        where project_id = #{projectId}
25
+    </select>
26
+        
27
+    <insert id="insertCmcProjectContract" parameterType="CmcProjectContract">
28
+        insert into cmc_project_contract
29
+        <trim prefix="(" suffix=")" suffixOverrides=",">
30
+            <if test="projectId != null">project_id,</if>
31
+            <if test="contractId != null">contract_id,</if>
32
+         </trim>
33
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
34
+            <if test="projectId != null">#{projectId},</if>
35
+            <if test="contractId != null">#{contractId},</if>
36
+         </trim>
37
+    </insert>
38
+
39
+    <update id="updateCmcProjectContract" parameterType="CmcProjectContract">
40
+        update cmc_project_contract
41
+        <trim prefix="SET" suffixOverrides=",">
42
+            <if test="contractId != null">contract_id = #{contractId},</if>
43
+        </trim>
44
+        where project_id = #{projectId}
45
+    </update>
46
+
47
+    <delete id="deleteCmcProjectContractByProjectId" parameterType="String">
48
+        delete from cmc_project_contract where project_id = #{projectId}
49
+    </delete>
50
+
51
+    <delete id="deleteCmcProjectContractByProjectIds" parameterType="String">
52
+        delete from cmc_project_contract where project_id in 
53
+        <foreach item="projectId" collection="array" open="(" separator="," close=")">
54
+            #{projectId}
55
+        </foreach>
56
+    </delete>
57
+</mapper>

+ 1
- 6
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcProjectMapper.xml Näytä tiedosto

14
         <result property="partyA"    column="party_a"    />
14
         <result property="partyA"    column="party_a"    />
15
         <result property="contactPerson"    column="contact_person"    />
15
         <result property="contactPerson"    column="contact_person"    />
16
         <result property="telephone"    column="telephone"    />
16
         <result property="telephone"    column="telephone"    />
17
-        <result property="contractId"    column="contract_id"    />
18
         <result property="projectType"    column="project_type"    />
17
         <result property="projectType"    column="project_type"    />
19
         <result property="projectLevel"    column="project_level"    />
18
         <result property="projectLevel"    column="project_level"    />
20
         <result property="projectRegistrant"    column="project_registrant"    />
19
         <result property="projectRegistrant"    column="project_registrant"    />
43
     </resultMap>
42
     </resultMap>
44
 
43
 
45
     <sql id="selectCmcProjectVo">
44
     <sql id="selectCmcProjectVo">
46
-        select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a, p.contact_person, p.telephone, p.contract_id, p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.register_time, p.plan_time, p.entry_time, p.exit_time, p.remark, p.budget_id, p.technical_id from cmc_project as p
45
+        select p.project_id, p.project_number, p.project_name, p.project_leader, u.nick_name as leader_nick_name, p.is_finished, p.project_source, p.party_a, p.contact_person, p.telephone, p.project_type, p.project_level, p.project_registrant, u1.nick_name as registrant_nick_name, p.undertaking_dept, p.project_planner, p.site_leader, p.register_time, p.plan_time, p.entry_time, p.exit_time, p.remark, p.budget_id, p.technical_id from cmc_project as p
47
         left join sys_user as u on u.user_id = p.project_leader
46
         left join sys_user as u on u.user_id = p.project_leader
48
         left join sys_user as u1 on u1.user_id = p.project_registrant
47
         left join sys_user as u1 on u1.user_id = p.project_registrant
49
     </sql>
48
     </sql>
59
             <if test="partyA != null  and partyA != ''"> and p.party_a = #{partyA}</if>
58
             <if test="partyA != null  and partyA != ''"> and p.party_a = #{partyA}</if>
60
             <if test="contactPerson != null  and contactPerson != ''"> and p.contact_person = #{contactPerson}</if>
59
             <if test="contactPerson != null  and contactPerson != ''"> and p.contact_person = #{contactPerson}</if>
61
             <if test="telephone != null  and telephone != ''"> and p.telephone = #{telephone}</if>
60
             <if test="telephone != null  and telephone != ''"> and p.telephone = #{telephone}</if>
62
-            <if test="contractId != null  and contractId != ''"> and p.contract_id = #{contractId}</if>
63
             <if test="projectType != null  and projectType != ''"> and p.project_type = #{projectType}</if>
61
             <if test="projectType != null  and projectType != ''"> and p.project_type = #{projectType}</if>
64
             <if test="projectLevel != null  and projectLevel != ''"> and p.project_level = #{projectLevel}</if>
62
             <if test="projectLevel != null  and projectLevel != ''"> and p.project_level = #{projectLevel}</if>
65
             <if test="projectRegistrant != null "> and p.project_registrant = #{projectRegistrant}</if>
63
             <if test="projectRegistrant != null "> and p.project_registrant = #{projectRegistrant}</if>
91
             <if test="partyA != null">party_a,</if>
89
             <if test="partyA != null">party_a,</if>
92
             <if test="contactPerson != null">contact_person,</if>
90
             <if test="contactPerson != null">contact_person,</if>
93
             <if test="telephone != null">telephone,</if>
91
             <if test="telephone != null">telephone,</if>
94
-            <if test="contractId != null">contract_id,</if>
95
             <if test="projectType != null">project_type,</if>
92
             <if test="projectType != null">project_type,</if>
96
             <if test="projectLevel != null">project_level,</if>
93
             <if test="projectLevel != null">project_level,</if>
97
             <if test="projectRegistrant != null">project_registrant,</if>
94
             <if test="projectRegistrant != null">project_registrant,</if>
116
             <if test="partyA != null">#{partyA},</if>
113
             <if test="partyA != null">#{partyA},</if>
117
             <if test="contactPerson != null">#{contactPerson},</if>
114
             <if test="contactPerson != null">#{contactPerson},</if>
118
             <if test="telephone != null">#{telephone},</if>
115
             <if test="telephone != null">#{telephone},</if>
119
-            <if test="contractId != null">#{contractId},</if>
120
             <if test="projectType != null">#{projectType},</if>
116
             <if test="projectType != null">#{projectType},</if>
121
             <if test="projectLevel != null">#{projectLevel},</if>
117
             <if test="projectLevel != null">#{projectLevel},</if>
122
             <if test="projectRegistrant != null">#{projectRegistrant},</if>
118
             <if test="projectRegistrant != null">#{projectRegistrant},</if>
144
             <if test="partyA != null">party_a = #{partyA},</if>
140
             <if test="partyA != null">party_a = #{partyA},</if>
145
             <if test="contactPerson != null">contact_person = #{contactPerson},</if>
141
             <if test="contactPerson != null">contact_person = #{contactPerson},</if>
146
             <if test="telephone != null">telephone = #{telephone},</if>
142
             <if test="telephone != null">telephone = #{telephone},</if>
147
-            <if test="contractId != null">contract_id = #{contractId},</if>
148
             <if test="projectType != null">project_type = #{projectType},</if>
143
             <if test="projectType != null">project_type = #{projectType},</if>
149
             <if test="projectLevel != null">project_level = #{projectLevel},</if>
144
             <if test="projectLevel != null">project_level = #{projectLevel},</if>
150
             <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>
145
             <if test="projectRegistrant != null">project_registrant = #{projectRegistrant},</if>

+ 112
- 0
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcSubContractMapper.xml Näytä tiedosto

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.CmcSubContractMapper">
6
+    
7
+    <resultMap type="CmcSubContract" id="CmcSubContractResult">
8
+        <result property="subContractId"    column="sub_contract_id"    />
9
+        <result property="contractId"    column="contract_id"    />
10
+        <result property="subContractName"    column="sub_contract_name"    />
11
+        <result property="subAmount"    column="sub_amount"    />
12
+        <result property="partnerId"    column="partner_id"    />
13
+        <result property="contactPerson"    column="contact_person"    />
14
+        <result property="drafter"    column="drafter"    />
15
+        <result property="draftTime"    column="draft_time"    />
16
+        <result property="remark"    column="remark"    />
17
+        <result property="signDate"    column="sign_date"    />
18
+        <result property="signRemark"    column="sign_remark"    />
19
+        <result property="signScan"    column="sign_scan"    />
20
+        <result property="commentType"    column="comment_type"    />
21
+    </resultMap>
22
+
23
+    <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
25
+    </sql>
26
+
27
+    <select id="selectCmcSubContractList" parameterType="CmcSubContract" resultMap="CmcSubContractResult">
28
+        <include refid="selectCmcSubContractVo"/>
29
+        <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>
41
+        </where>
42
+    </select>
43
+    
44
+    <select id="selectCmcSubContractBySubContractId" parameterType="String" resultMap="CmcSubContractResult">
45
+        <include refid="selectCmcSubContractVo"/>
46
+        where sub_contract_id = #{subContractId}
47
+    </select>
48
+        
49
+    <insert id="insertCmcSubContract" parameterType="CmcSubContract">
50
+        insert into cmc_sub_contract
51
+        <trim prefix="(" suffix=")" suffixOverrides=",">
52
+            <if test="subContractId != null">sub_contract_id,</if>
53
+            <if test="contractId != null">contract_id,</if>
54
+            <if test="subContractName != null">sub_contract_name,</if>
55
+            <if test="subAmount != null">sub_amount,</if>
56
+            <if test="partnerId != null">partner_id,</if>
57
+            <if test="contactPerson != null">contact_person,</if>
58
+            <if test="drafter != null">drafter,</if>
59
+            <if test="draftTime != null">draft_time,</if>
60
+            <if test="remark != null">remark,</if>
61
+            <if test="signDate != null">sign_date,</if>
62
+            <if test="signRemark != null">sign_remark,</if>
63
+            <if test="signScan != null">sign_scan,</if>
64
+            <if test="commentType != null">comment_type,</if>
65
+         </trim>
66
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
67
+            <if test="subContractId != null">#{subContractId},</if>
68
+            <if test="contractId != null">#{contractId},</if>
69
+            <if test="subContractName != null">#{subContractName},</if>
70
+            <if test="subAmount != null">#{subAmount},</if>
71
+            <if test="partnerId != null">#{partnerId},</if>
72
+            <if test="contactPerson != null">#{contactPerson},</if>
73
+            <if test="drafter != null">#{drafter},</if>
74
+            <if test="draftTime != null">#{draftTime},</if>
75
+            <if test="remark != null">#{remark},</if>
76
+            <if test="signDate != null">#{signDate},</if>
77
+            <if test="signRemark != null">#{signRemark},</if>
78
+            <if test="signScan != null">#{signScan},</if>
79
+            <if test="commentType != null">#{commentType},</if>
80
+         </trim>
81
+    </insert>
82
+
83
+    <update id="updateCmcSubContract" parameterType="CmcSubContract">
84
+        update cmc_sub_contract
85
+        <trim prefix="SET" suffixOverrides=",">
86
+            <if test="contractId != null">contract_id = #{contractId},</if>
87
+            <if test="subContractName != null">sub_contract_name = #{subContractName},</if>
88
+            <if test="subAmount != null">sub_amount = #{subAmount},</if>
89
+            <if test="partnerId != null">partner_id = #{partnerId},</if>
90
+            <if test="contactPerson != null">contact_person = #{contactPerson},</if>
91
+            <if test="drafter != null">drafter = #{drafter},</if>
92
+            <if test="draftTime != null">draft_time = #{draftTime},</if>
93
+            <if test="remark != null">remark = #{remark},</if>
94
+            <if test="signDate != null">sign_date = #{signDate},</if>
95
+            <if test="signRemark != null">sign_remark = #{signRemark},</if>
96
+            <if test="signScan != null">sign_scan = #{signScan},</if>
97
+            <if test="commentType != null">comment_type = #{commentType},</if>
98
+        </trim>
99
+        where sub_contract_id = #{subContractId}
100
+    </update>
101
+
102
+    <delete id="deleteCmcSubContractBySubContractId" parameterType="String">
103
+        delete from cmc_sub_contract where sub_contract_id = #{subContractId}
104
+    </delete>
105
+
106
+    <delete id="deleteCmcSubContractBySubContractIds" parameterType="String">
107
+        delete from cmc_sub_contract where sub_contract_id in 
108
+        <foreach item="subContractId" collection="array" open="(" separator="," close=")">
109
+            #{subContractId}
110
+        </foreach>
111
+    </delete>
112
+</mapper>

+ 256
- 175
oa-back/sql/sql.sql
File diff suppressed because it is too large
Näytä tiedosto


+ 44
- 0
oa-ui/src/api/oa/contract/subContract.js Näytä tiedosto

1
+import request from '@/utils/request'
2
+
3
+// 查询cmc分包合同评审列表
4
+export function listSubContract(query) {
5
+  return request({
6
+    url: '/oa/subContract/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc分包合同评审详细
13
+export function getSubContract(subContractId) {
14
+  return request({
15
+    url: '/oa/subContract/' + subContractId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc分包合同评审
21
+export function addSubContract(data) {
22
+  return request({
23
+    url: '/oa/subContract',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc分包合同评审
30
+export function updateSubContract(data) {
31
+  return request({
32
+    url: '/oa/subContract',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc分包合同评审
39
+export function delSubContract(subContractId) {
40
+  return request({
41
+    url: '/oa/subContract/' + subContractId,
42
+    method: 'delete'
43
+  })
44
+}

+ 44
- 0
oa-ui/src/api/oa/partner/partner.js Näytä tiedosto

1
+import request from '@/utils/request'
2
+
3
+// 查询cmc合作单位列表
4
+export function listPartner(query) {
5
+  return request({
6
+    url: '/oa/partner/list',
7
+    method: 'get',
8
+    params: query
9
+  })
10
+}
11
+
12
+// 查询cmc合作单位详细
13
+export function getPartner(partnerId) {
14
+  return request({
15
+    url: '/oa/partner/' + partnerId,
16
+    method: 'get'
17
+  })
18
+}
19
+
20
+// 新增cmc合作单位
21
+export function addPartner(data) {
22
+  return request({
23
+    url: '/oa/partner',
24
+    method: 'post',
25
+    data: data
26
+  })
27
+}
28
+
29
+// 修改cmc合作单位
30
+export function updatePartner(data) {
31
+  return request({
32
+    url: '/oa/partner',
33
+    method: 'put',
34
+    data: data
35
+  })
36
+}
37
+
38
+// 删除cmc合作单位
39
+export function delPartner(partnerId) {
40
+  return request({
41
+    url: '/oa/partner/' + partnerId,
42
+    method: 'delete'
43
+  })
44
+}

+ 5
- 103
oa-ui/src/views/oa/contract/index.vue Näytä tiedosto

9
           @keyup.enter.native="handleQuery"
9
           @keyup.enter.native="handleQuery"
10
         />
10
         />
11
       </el-form-item>
11
       </el-form-item>
12
-      <el-form-item label="合同名称" prop="contractName">
13
-        <el-input
14
-          v-model="queryParams.contractName"
15
-          placeholder="请输入合同名称"
16
-          clearable
17
-          @keyup.enter.native="handleQuery"
18
-        />
19
-      </el-form-item>
20
-      <el-form-item label="甲方单位" prop="partyA">
21
-        <el-input
22
-          v-model="queryParams.partyA"
23
-          placeholder="请输入甲方单位"
24
-          clearable
25
-          @keyup.enter.native="handleQuery"
26
-        />
27
-      </el-form-item>
28
-      <el-form-item label="甲方单位联系人" prop="contactPerson">
29
-        <el-input
30
-          v-model="queryParams.contactPerson"
31
-          placeholder="请输入甲方单位联系人"
32
-          clearable
33
-          @keyup.enter.native="handleQuery"
34
-        />
35
-      </el-form-item>
36
-      <el-form-item label="甲方单位联系电话" prop="telephone">
37
-        <el-input
38
-          v-model="queryParams.telephone"
39
-          placeholder="请输入甲方单位联系电话"
40
-          clearable
41
-          @keyup.enter.native="handleQuery"
42
-        />
43
-      </el-form-item>
44
-      <el-form-item label="项目来源" prop="projectSource">
45
-        <el-input
46
-          v-model="queryParams.projectSource"
47
-          placeholder="请输入项目来源"
48
-          clearable
49
-          @keyup.enter.native="handleQuery"
50
-        />
51
-      </el-form-item>
52
-      <el-form-item label="拟承担部门" prop="undertakingDept">
53
-        <el-input
54
-          v-model="queryParams.undertakingDept"
55
-          placeholder="请输入拟承担部门"
56
-          clearable
57
-          @keyup.enter.native="handleQuery"
58
-        />
59
-      </el-form-item>
60
       <el-form-item label="合同金额" prop="amount">
12
       <el-form-item label="合同金额" prop="amount">
61
         <el-input
13
         <el-input
62
           v-model="queryParams.amount"
14
           v-model="queryParams.amount"
97
           placeholder="请选择拟稿日期">
49
           placeholder="请选择拟稿日期">
98
         </el-date-picker>
50
         </el-date-picker>
99
       </el-form-item>
51
       </el-form-item>
100
-      <el-form-item label="关联项目" prop="projectIds">
101
-        <el-input
102
-          v-model="queryParams.projectIds"
103
-          placeholder="请输入关联项目"
104
-          clearable
105
-          @keyup.enter.native="handleQuery"
106
-        />
107
-      </el-form-item>
108
       <el-form-item label="签订日期" prop="signDate">
52
       <el-form-item label="签订日期" prop="signDate">
109
         <el-date-picker clearable
53
         <el-date-picker clearable
110
           v-model="queryParams.signDate"
54
           v-model="queryParams.signDate"
185
       <el-table-column type="selection" width="55" align="center" />
129
       <el-table-column type="selection" width="55" align="center" />
186
       <el-table-column label="合同id" align="center" prop="contractId" />
130
       <el-table-column label="合同id" align="center" prop="contractId" />
187
       <el-table-column label="合同编号" align="center" prop="contractNumber" />
131
       <el-table-column label="合同编号" align="center" prop="contractNumber" />
188
-      <el-table-column label="合同名称" align="center" prop="contractName" />
189
-      <el-table-column label="甲方单位" align="center" prop="partyA" />
190
-      <el-table-column label="甲方单位联系人" align="center" prop="contactPerson" />
191
-      <el-table-column label="甲方单位联系电话" align="center" prop="telephone" />
192
-      <el-table-column label="项目类型" align="center" prop="projectType" />
193
-      <el-table-column label="项目来源" align="center" prop="projectSource" />
194
-      <el-table-column label="拟承担部门" align="center" prop="undertakingDept" />
195
       <el-table-column label="合同金额" align="center" prop="amount" />
132
       <el-table-column label="合同金额" align="center" prop="amount" />
196
       <el-table-column label="履约保证金" align="center" prop="deposit" />
133
       <el-table-column label="履约保证金" align="center" prop="deposit" />
197
       <el-table-column label="合同文件" align="center" prop="contractDocument" />
134
       <el-table-column label="合同文件" align="center" prop="contractDocument" />
201
           <span>{{ parseTime(scope.row.draftTime, '{y}-{m}-{d}') }}</span>
138
           <span>{{ parseTime(scope.row.draftTime, '{y}-{m}-{d}') }}</span>
202
         </template>
139
         </template>
203
       </el-table-column>
140
       </el-table-column>
204
-      <el-table-column label="关联项目" align="center" prop="projectIds" />
205
       <el-table-column label="合同备注" align="center" prop="remark" />
141
       <el-table-column label="合同备注" align="center" prop="remark" />
206
       <el-table-column label="签订日期" align="center" prop="signDate" width="180">
142
       <el-table-column label="签订日期" align="center" prop="signDate" width="180">
207
         <template slot-scope="scope">
143
         <template slot-scope="scope">
210
       </el-table-column>
146
       </el-table-column>
211
       <el-table-column label="签订备注" align="center" prop="signRemark" />
147
       <el-table-column label="签订备注" align="center" prop="signRemark" />
212
       <el-table-column label="签订扫描件" align="center" prop="signScan" />
148
       <el-table-column label="签订扫描件" align="center" prop="signScan" />
149
+      <el-table-column label="评审方式" align="center" prop="commentType" />
213
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
150
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
214
         <template slot-scope="scope">
151
         <template slot-scope="scope">
215
           <el-button
152
           <el-button
244
         <el-form-item label="合同编号" prop="contractNumber">
181
         <el-form-item label="合同编号" prop="contractNumber">
245
           <el-input v-model="form.contractNumber" placeholder="请输入合同编号" />
182
           <el-input v-model="form.contractNumber" placeholder="请输入合同编号" />
246
         </el-form-item>
183
         </el-form-item>
247
-        <el-form-item label="合同名称" prop="contractName">
248
-          <el-input v-model="form.contractName" placeholder="请输入合同名称" />
249
-        </el-form-item>
250
-        <el-form-item label="甲方单位" prop="partyA">
251
-          <el-input v-model="form.partyA" placeholder="请输入甲方单位" />
252
-        </el-form-item>
253
-        <el-form-item label="甲方单位联系人" prop="contactPerson">
254
-          <el-input v-model="form.contactPerson" placeholder="请输入甲方单位联系人" />
255
-        </el-form-item>
256
-        <el-form-item label="甲方单位联系电话" prop="telephone">
257
-          <el-input v-model="form.telephone" placeholder="请输入甲方单位联系电话" />
258
-        </el-form-item>
259
-        <el-form-item label="项目来源" prop="projectSource">
260
-          <el-input v-model="form.projectSource" placeholder="请输入项目来源" />
261
-        </el-form-item>
262
-        <el-form-item label="拟承担部门" prop="undertakingDept">
263
-          <el-input v-model="form.undertakingDept" placeholder="请输入拟承担部门" />
264
-        </el-form-item>
265
         <el-form-item label="合同金额" prop="amount">
184
         <el-form-item label="合同金额" prop="amount">
266
           <el-input v-model="form.amount" placeholder="请输入合同金额" />
185
           <el-input v-model="form.amount" placeholder="请输入合同金额" />
267
         </el-form-item>
186
         </el-form-item>
282
             placeholder="请选择拟稿日期">
201
             placeholder="请选择拟稿日期">
283
           </el-date-picker>
202
           </el-date-picker>
284
         </el-form-item>
203
         </el-form-item>
285
-        <el-form-item label="关联项目" prop="projectIds">
286
-          <el-input v-model="form.projectIds" placeholder="请输入关联项目" />
287
-        </el-form-item>
288
         <el-form-item label="合同备注" prop="remark">
204
         <el-form-item label="合同备注" prop="remark">
289
           <el-input v-model="form.remark" placeholder="请输入合同备注" />
205
           <el-input v-model="form.remark" placeholder="请输入合同备注" />
290
         </el-form-item>
206
         </el-form-item>
341
         pageNum: 1,
257
         pageNum: 1,
342
         pageSize: 10,
258
         pageSize: 10,
343
         contractNumber: null,
259
         contractNumber: null,
344
-        contractName: null,
345
-        partyA: null,
346
-        contactPerson: null,
347
-        telephone: null,
348
-        projectType: null,
349
-        projectSource: null,
350
-        undertakingDept: null,
351
         amount: null,
260
         amount: null,
352
         deposit: null,
261
         deposit: null,
353
         contractDocument: null,
262
         contractDocument: null,
354
         drafter: null,
263
         drafter: null,
355
         draftTime: null,
264
         draftTime: null,
356
-        projectIds: null,
357
         signDate: null,
265
         signDate: null,
358
         signRemark: null,
266
         signRemark: null,
359
-        signScan: null
267
+        signScan: null,
268
+        commentType: null
360
       },
269
       },
361
       // 表单参数
270
       // 表单参数
362
       form: {},
271
       form: {},
388
       this.form = {
297
       this.form = {
389
         contractId: null,
298
         contractId: null,
390
         contractNumber: null,
299
         contractNumber: null,
391
-        contractName: null,
392
-        partyA: null,
393
-        contactPerson: null,
394
-        telephone: null,
395
-        projectType: null,
396
-        projectSource: null,
397
-        undertakingDept: null,
398
         amount: null,
300
         amount: null,
399
         deposit: null,
301
         deposit: null,
400
         contractDocument: null,
302
         contractDocument: null,
401
         drafter: null,
303
         drafter: null,
402
         draftTime: null,
304
         draftTime: null,
403
-        projectIds: null,
404
         remark: null,
305
         remark: null,
405
         signDate: null,
306
         signDate: null,
406
         signRemark: null,
307
         signRemark: null,
407
-        signScan: null
308
+        signScan: null,
309
+        commentType: null
408
       };
310
       };
409
       this.resetForm("form");
311
       this.resetForm("form");
410
     },
312
     },

+ 32
- 18
oa-ui/src/views/oa/contract/payment.vue Näytä tiedosto

9
           @keyup.enter.native="handleQuery"
9
           @keyup.enter.native="handleQuery"
10
         />
10
         />
11
       </el-form-item>
11
       </el-form-item>
12
+      <el-form-item label="分包合同id" prop="subContractId">
13
+        <el-input
14
+          v-model="queryParams.subContractId"
15
+          placeholder="请输入分包合同id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
12
       <el-form-item label="回款条件" prop="paymentCondition">
20
       <el-form-item label="回款条件" prop="paymentCondition">
13
         <el-input
21
         <el-input
14
           v-model="queryParams.paymentCondition"
22
           v-model="queryParams.paymentCondition"
55
           icon="el-icon-plus"
63
           icon="el-icon-plus"
56
           size="mini"
64
           size="mini"
57
           @click="handleAdd"
65
           @click="handleAdd"
58
-          v-hasPermi="['oa:contractPayment:add']"
66
+          v-hasPermi="['oa:payment:add']"
59
         >新增</el-button>
67
         >新增</el-button>
60
       </el-col>
68
       </el-col>
61
       <el-col :span="1.5">
69
       <el-col :span="1.5">
66
           size="mini"
74
           size="mini"
67
           :disabled="single"
75
           :disabled="single"
68
           @click="handleUpdate"
76
           @click="handleUpdate"
69
-          v-hasPermi="['oa:contractPayment:edit']"
77
+          v-hasPermi="['oa:payment:edit']"
70
         >修改</el-button>
78
         >修改</el-button>
71
       </el-col>
79
       </el-col>
72
       <el-col :span="1.5">
80
       <el-col :span="1.5">
77
           size="mini"
85
           size="mini"
78
           :disabled="multiple"
86
           :disabled="multiple"
79
           @click="handleDelete"
87
           @click="handleDelete"
80
-          v-hasPermi="['oa:contractPayment:remove']"
88
+          v-hasPermi="['oa:payment:remove']"
81
         >删除</el-button>
89
         >删除</el-button>
82
       </el-col>
90
       </el-col>
83
       <el-col :span="1.5">
91
       <el-col :span="1.5">
87
           icon="el-icon-download"
95
           icon="el-icon-download"
88
           size="mini"
96
           size="mini"
89
           @click="handleExport"
97
           @click="handleExport"
90
-          v-hasPermi="['oa:contractPayment:export']"
98
+          v-hasPermi="['oa:payment:export']"
91
         >导出</el-button>
99
         >导出</el-button>
92
       </el-col>
100
       </el-col>
93
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
101
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
94
     </el-row>
102
     </el-row>
95
 
103
 
96
-    <el-table v-loading="loading" :data="contractPaymentList" @selection-change="handleSelectionChange">
104
+    <el-table v-loading="loading" :data="paymentList" @selection-change="handleSelectionChange">
97
       <el-table-column type="selection" width="55" align="center" />
105
       <el-table-column type="selection" width="55" align="center" />
98
       <el-table-column label="合同回款id" align="center" prop="paymentId" />
106
       <el-table-column label="合同回款id" align="center" prop="paymentId" />
99
       <el-table-column label="合同id" align="center" prop="contractId" />
107
       <el-table-column label="合同id" align="center" prop="contractId" />
108
+      <el-table-column label="分包合同id" align="center" prop="subContractId" />
100
       <el-table-column label="回款条件" align="center" prop="paymentCondition" />
109
       <el-table-column label="回款条件" align="center" prop="paymentCondition" />
101
       <el-table-column label="回款比例" align="center" prop="paymentPercentage" />
110
       <el-table-column label="回款比例" align="center" prop="paymentPercentage" />
102
       <el-table-column label="回款金额" align="center" prop="paymentAmount" />
111
       <el-table-column label="回款金额" align="center" prop="paymentAmount" />
113
             type="text"
122
             type="text"
114
             icon="el-icon-edit"
123
             icon="el-icon-edit"
115
             @click="handleUpdate(scope.row)"
124
             @click="handleUpdate(scope.row)"
116
-            v-hasPermi="['oa:contractPayment:edit']"
125
+            v-hasPermi="['oa:payment:edit']"
117
           >修改</el-button>
126
           >修改</el-button>
118
           <el-button
127
           <el-button
119
             size="mini"
128
             size="mini"
120
             type="text"
129
             type="text"
121
             icon="el-icon-delete"
130
             icon="el-icon-delete"
122
             @click="handleDelete(scope.row)"
131
             @click="handleDelete(scope.row)"
123
-            v-hasPermi="['oa:contractPayment:remove']"
132
+            v-hasPermi="['oa:payment:remove']"
124
           >删除</el-button>
133
           >删除</el-button>
125
         </template>
134
         </template>
126
       </el-table-column>
135
       </el-table-column>
140
         <el-form-item label="合同id" prop="contractId">
149
         <el-form-item label="合同id" prop="contractId">
141
           <el-input v-model="form.contractId" placeholder="请输入合同id" />
150
           <el-input v-model="form.contractId" placeholder="请输入合同id" />
142
         </el-form-item>
151
         </el-form-item>
152
+        <el-form-item label="分包合同id" prop="subContractId">
153
+          <el-input v-model="form.subContractId" placeholder="请输入分包合同id" />
154
+        </el-form-item>
143
         <el-form-item label="回款条件" prop="paymentCondition">
155
         <el-form-item label="回款条件" prop="paymentCondition">
144
           <el-input v-model="form.paymentCondition" placeholder="请输入回款条件" />
156
           <el-input v-model="form.paymentCondition" placeholder="请输入回款条件" />
145
         </el-form-item>
157
         </el-form-item>
170
 </template>
182
 </template>
171
 
183
 
172
 <script>
184
 <script>
173
-import { listContractPayment, getContractPayment, delContractPayment, addContractPayment, updateContractPayment } from "@/api/oa/contract/contractPayment";
185
+import { listPayment, getPayment, delPayment, addPayment, updatePayment } from "@/api/oa/contract/contractPayment";
174
 
186
 
175
 export default {
187
 export default {
176
-  name: "ContractPayment",
188
+  name: "Payment",
177
   data() {
189
   data() {
178
     return {
190
     return {
179
       // 遮罩层
191
       // 遮罩层
189
       // 总条数
201
       // 总条数
190
       total: 0,
202
       total: 0,
191
       // cmc合同回款表格数据
203
       // cmc合同回款表格数据
192
-      contractPaymentList: [],
204
+      paymentList: [],
193
       // 弹出层标题
205
       // 弹出层标题
194
       title: "",
206
       title: "",
195
       // 是否显示弹出层
207
       // 是否显示弹出层
199
         pageNum: 1,
211
         pageNum: 1,
200
         pageSize: 10,
212
         pageSize: 10,
201
         contractId: null,
213
         contractId: null,
214
+        subContractId: null,
202
         paymentCondition: null,
215
         paymentCondition: null,
203
         paymentPercentage: null,
216
         paymentPercentage: null,
204
         paymentAmount: null,
217
         paymentAmount: null,
218
     /** 查询cmc合同回款列表 */
231
     /** 查询cmc合同回款列表 */
219
     getList() {
232
     getList() {
220
       this.loading = true;
233
       this.loading = true;
221
-      listContractPayment(this.queryParams).then(response => {
222
-        this.contractPaymentList = response.rows;
234
+      listPayment(this.queryParams).then(response => {
235
+        this.paymentList = response.rows;
223
         this.total = response.total;
236
         this.total = response.total;
224
         this.loading = false;
237
         this.loading = false;
225
       });
238
       });
234
       this.form = {
247
       this.form = {
235
         paymentId: null,
248
         paymentId: null,
236
         contractId: null,
249
         contractId: null,
250
+        subContractId: null,
237
         paymentCondition: null,
251
         paymentCondition: null,
238
         paymentPercentage: null,
252
         paymentPercentage: null,
239
         paymentAmount: null,
253
         paymentAmount: null,
268
     handleUpdate(row) {
282
     handleUpdate(row) {
269
       this.reset();
283
       this.reset();
270
       const paymentId = row.paymentId || this.ids
284
       const paymentId = row.paymentId || this.ids
271
-      getContractPayment(paymentId).then(response => {
285
+      getPayment(paymentId).then(response => {
272
         this.form = response.data;
286
         this.form = response.data;
273
         this.open = true;
287
         this.open = true;
274
         this.title = "修改cmc合同回款";
288
         this.title = "修改cmc合同回款";
279
       this.$refs["form"].validate(valid => {
293
       this.$refs["form"].validate(valid => {
280
         if (valid) {
294
         if (valid) {
281
           if (this.form.paymentId != null) {
295
           if (this.form.paymentId != null) {
282
-            updateContractPayment(this.form).then(response => {
296
+            updatePayment(this.form).then(response => {
283
               this.$modal.msgSuccess("修改成功");
297
               this.$modal.msgSuccess("修改成功");
284
               this.open = false;
298
               this.open = false;
285
               this.getList();
299
               this.getList();
286
             });
300
             });
287
           } else {
301
           } else {
288
-            addContractPayment(this.form).then(response => {
302
+            addPayment(this.form).then(response => {
289
               this.$modal.msgSuccess("新增成功");
303
               this.$modal.msgSuccess("新增成功");
290
               this.open = false;
304
               this.open = false;
291
               this.getList();
305
               this.getList();
298
     handleDelete(row) {
312
     handleDelete(row) {
299
       const paymentIds = row.paymentId || this.ids;
313
       const paymentIds = row.paymentId || this.ids;
300
       this.$modal.confirm('是否确认删除cmc合同回款编号为"' + paymentIds + '"的数据项?').then(function() {
314
       this.$modal.confirm('是否确认删除cmc合同回款编号为"' + paymentIds + '"的数据项?').then(function() {
301
-        return delContractPayment(paymentIds);
315
+        return delPayment(paymentIds);
302
       }).then(() => {
316
       }).then(() => {
303
         this.getList();
317
         this.getList();
304
         this.$modal.msgSuccess("删除成功");
318
         this.$modal.msgSuccess("删除成功");
306
     },
320
     },
307
     /** 导出按钮操作 */
321
     /** 导出按钮操作 */
308
     handleExport() {
322
     handleExport() {
309
-      this.download('oa/contractPayment/export', {
323
+      this.download('oa/payment/export', {
310
         ...this.queryParams
324
         ...this.queryParams
311
-      }, `contractPayment_${new Date().getTime()}.xlsx`)
325
+      }, `payment_${new Date().getTime()}.xlsx`)
312
     }
326
     }
313
   }
327
   }
314
 };
328
 };

+ 397
- 0
oa-ui/src/views/oa/contract/subContract.vue Näytä tiedosto

1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="主合同id" prop="contractId">
5
+        <el-input
6
+          v-model="queryParams.contractId"
7
+          placeholder="请输入主合同id"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item label="合同名称" prop="subContractName">
13
+        <el-input
14
+          v-model="queryParams.subContractName"
15
+          placeholder="请输入合同名称"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
20
+      <el-form-item label="分包合同金额" prop="subAmount">
21
+        <el-input
22
+          v-model="queryParams.subAmount"
23
+          placeholder="请输入分包合同金额"
24
+          clearable
25
+          @keyup.enter.native="handleQuery"
26
+        />
27
+      </el-form-item>
28
+      <el-form-item label="承接单位id" prop="partnerId">
29
+        <el-input
30
+          v-model="queryParams.partnerId"
31
+          placeholder="请输入承接单位id"
32
+          clearable
33
+          @keyup.enter.native="handleQuery"
34
+        />
35
+      </el-form-item>
36
+      <el-form-item label="承接单位联系人" prop="contactPerson">
37
+        <el-input
38
+          v-model="queryParams.contactPerson"
39
+          placeholder="请输入承接单位联系人"
40
+          clearable
41
+          @keyup.enter.native="handleQuery"
42
+        />
43
+      </el-form-item>
44
+      <el-form-item label="拟稿人" prop="drafter">
45
+        <el-input
46
+          v-model="queryParams.drafter"
47
+          placeholder="请输入拟稿人"
48
+          clearable
49
+          @keyup.enter.native="handleQuery"
50
+        />
51
+      </el-form-item>
52
+      <el-form-item label="拟稿日期" prop="draftTime">
53
+        <el-date-picker clearable
54
+          v-model="queryParams.draftTime"
55
+          type="date"
56
+          value-format="yyyy-MM-dd"
57
+          placeholder="请选择拟稿日期">
58
+        </el-date-picker>
59
+      </el-form-item>
60
+      <el-form-item label="签订日期" prop="signDate">
61
+        <el-date-picker clearable
62
+          v-model="queryParams.signDate"
63
+          type="date"
64
+          value-format="yyyy-MM-dd"
65
+          placeholder="请选择签订日期">
66
+        </el-date-picker>
67
+      </el-form-item>
68
+      <el-form-item label="签订备注" prop="signRemark">
69
+        <el-input
70
+          v-model="queryParams.signRemark"
71
+          placeholder="请输入签订备注"
72
+          clearable
73
+          @keyup.enter.native="handleQuery"
74
+        />
75
+      </el-form-item>
76
+      <el-form-item label="签订扫描件" prop="signScan">
77
+        <el-input
78
+          v-model="queryParams.signScan"
79
+          placeholder="请输入签订扫描件"
80
+          clearable
81
+          @keyup.enter.native="handleQuery"
82
+        />
83
+      </el-form-item>
84
+      <el-form-item>
85
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
86
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
87
+      </el-form-item>
88
+    </el-form>
89
+
90
+    <el-row :gutter="10" class="mb8">
91
+      <el-col :span="1.5">
92
+        <el-button
93
+          type="primary"
94
+          plain
95
+          icon="el-icon-plus"
96
+          size="mini"
97
+          @click="handleAdd"
98
+          v-hasPermi="['oa:subContract:add']"
99
+        >新增</el-button>
100
+      </el-col>
101
+      <el-col :span="1.5">
102
+        <el-button
103
+          type="success"
104
+          plain
105
+          icon="el-icon-edit"
106
+          size="mini"
107
+          :disabled="single"
108
+          @click="handleUpdate"
109
+          v-hasPermi="['oa:subContract:edit']"
110
+        >修改</el-button>
111
+      </el-col>
112
+      <el-col :span="1.5">
113
+        <el-button
114
+          type="danger"
115
+          plain
116
+          icon="el-icon-delete"
117
+          size="mini"
118
+          :disabled="multiple"
119
+          @click="handleDelete"
120
+          v-hasPermi="['oa:subContract:remove']"
121
+        >删除</el-button>
122
+      </el-col>
123
+      <el-col :span="1.5">
124
+        <el-button
125
+          type="warning"
126
+          plain
127
+          icon="el-icon-download"
128
+          size="mini"
129
+          @click="handleExport"
130
+          v-hasPermi="['oa:subContract:export']"
131
+        >导出</el-button>
132
+      </el-col>
133
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
134
+    </el-row>
135
+
136
+    <el-table v-loading="loading" :data="subContractList" @selection-change="handleSelectionChange">
137
+      <el-table-column type="selection" width="55" align="center" />
138
+      <el-table-column label="分包合同id" align="center" prop="subContractId" />
139
+      <el-table-column label="主合同id" align="center" prop="contractId" />
140
+      <el-table-column label="合同名称" align="center" prop="subContractName" />
141
+      <el-table-column label="分包合同金额" align="center" prop="subAmount" />
142
+      <el-table-column label="承接单位id" align="center" prop="partnerId" />
143
+      <el-table-column label="承接单位联系人" align="center" prop="contactPerson" />
144
+      <el-table-column label="拟稿人" align="center" prop="drafter" />
145
+      <el-table-column label="拟稿日期" align="center" prop="draftTime" width="180">
146
+        <template slot-scope="scope">
147
+          <span>{{ parseTime(scope.row.draftTime, '{y}-{m}-{d}') }}</span>
148
+        </template>
149
+      </el-table-column>
150
+      <el-table-column label="合同备注" align="center" prop="remark" />
151
+      <el-table-column label="签订日期" align="center" prop="signDate" width="180">
152
+        <template slot-scope="scope">
153
+          <span>{{ parseTime(scope.row.signDate, '{y}-{m}-{d}') }}</span>
154
+        </template>
155
+      </el-table-column>
156
+      <el-table-column label="签订备注" align="center" prop="signRemark" />
157
+      <el-table-column label="签订扫描件" align="center" prop="signScan" />
158
+      <el-table-column label="评审方式" align="center" prop="commentType" />
159
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
160
+        <template slot-scope="scope">
161
+          <el-button
162
+            size="mini"
163
+            type="text"
164
+            icon="el-icon-edit"
165
+            @click="handleUpdate(scope.row)"
166
+            v-hasPermi="['oa:subContract:edit']"
167
+          >修改</el-button>
168
+          <el-button
169
+            size="mini"
170
+            type="text"
171
+            icon="el-icon-delete"
172
+            @click="handleDelete(scope.row)"
173
+            v-hasPermi="['oa:subContract:remove']"
174
+          >删除</el-button>
175
+        </template>
176
+      </el-table-column>
177
+    </el-table>
178
+    
179
+    <pagination
180
+      v-show="total>0"
181
+      :total="total"
182
+      :page.sync="queryParams.pageNum"
183
+      :limit.sync="queryParams.pageSize"
184
+      @pagination="getList"
185
+    />
186
+
187
+    <!-- 添加或修改cmc分包合同评审对话框 -->
188
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
189
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
190
+        <el-form-item label="主合同id" prop="contractId">
191
+          <el-input v-model="form.contractId" placeholder="请输入主合同id" />
192
+        </el-form-item>
193
+        <el-form-item label="合同名称" prop="subContractName">
194
+          <el-input v-model="form.subContractName" placeholder="请输入合同名称" />
195
+        </el-form-item>
196
+        <el-form-item label="分包合同金额" prop="subAmount">
197
+          <el-input v-model="form.subAmount" placeholder="请输入分包合同金额" />
198
+        </el-form-item>
199
+        <el-form-item label="承接单位id" prop="partnerId">
200
+          <el-input v-model="form.partnerId" placeholder="请输入承接单位id" />
201
+        </el-form-item>
202
+        <el-form-item label="承接单位联系人" prop="contactPerson">
203
+          <el-input v-model="form.contactPerson" placeholder="请输入承接单位联系人" />
204
+        </el-form-item>
205
+        <el-form-item label="拟稿人" prop="drafter">
206
+          <el-input v-model="form.drafter" placeholder="请输入拟稿人" />
207
+        </el-form-item>
208
+        <el-form-item label="拟稿日期" prop="draftTime">
209
+          <el-date-picker clearable
210
+            v-model="form.draftTime"
211
+            type="date"
212
+            value-format="yyyy-MM-dd"
213
+            placeholder="请选择拟稿日期">
214
+          </el-date-picker>
215
+        </el-form-item>
216
+        <el-form-item label="合同备注" prop="remark">
217
+          <el-input v-model="form.remark" placeholder="请输入合同备注" />
218
+        </el-form-item>
219
+        <el-form-item label="签订日期" prop="signDate">
220
+          <el-date-picker clearable
221
+            v-model="form.signDate"
222
+            type="date"
223
+            value-format="yyyy-MM-dd"
224
+            placeholder="请选择签订日期">
225
+          </el-date-picker>
226
+        </el-form-item>
227
+        <el-form-item label="签订备注" prop="signRemark">
228
+          <el-input v-model="form.signRemark" placeholder="请输入签订备注" />
229
+        </el-form-item>
230
+        <el-form-item label="签订扫描件" prop="signScan">
231
+          <el-input v-model="form.signScan" placeholder="请输入签订扫描件" />
232
+        </el-form-item>
233
+      </el-form>
234
+      <div slot="footer" class="dialog-footer">
235
+        <el-button type="primary" @click="submitForm">确 定</el-button>
236
+        <el-button @click="cancel">取 消</el-button>
237
+      </div>
238
+    </el-dialog>
239
+  </div>
240
+</template>
241
+
242
+<script>
243
+import { listSubContract, getSubContract, delSubContract, addSubContract, updateSubContract } from "@/api/oa/contract/subContract";
244
+
245
+export default {
246
+  name: "SubContract",
247
+  data() {
248
+    return {
249
+      // 遮罩层
250
+      loading: true,
251
+      // 选中数组
252
+      ids: [],
253
+      // 非单个禁用
254
+      single: true,
255
+      // 非多个禁用
256
+      multiple: true,
257
+      // 显示搜索条件
258
+      showSearch: true,
259
+      // 总条数
260
+      total: 0,
261
+      // cmc分包合同评审表格数据
262
+      subContractList: [],
263
+      // 弹出层标题
264
+      title: "",
265
+      // 是否显示弹出层
266
+      open: false,
267
+      // 查询参数
268
+      queryParams: {
269
+        pageNum: 1,
270
+        pageSize: 10,
271
+        contractId: null,
272
+        subContractName: null,
273
+        subAmount: null,
274
+        partnerId: null,
275
+        contactPerson: null,
276
+        drafter: null,
277
+        draftTime: null,
278
+        signDate: null,
279
+        signRemark: null,
280
+        signScan: null,
281
+        commentType: null
282
+      },
283
+      // 表单参数
284
+      form: {},
285
+      // 表单校验
286
+      rules: {
287
+      }
288
+    };
289
+  },
290
+  created() {
291
+    this.getList();
292
+  },
293
+  methods: {
294
+    /** 查询cmc分包合同评审列表 */
295
+    getList() {
296
+      this.loading = true;
297
+      listSubContract(this.queryParams).then(response => {
298
+        this.subContractList = response.rows;
299
+        this.total = response.total;
300
+        this.loading = false;
301
+      });
302
+    },
303
+    // 取消按钮
304
+    cancel() {
305
+      this.open = false;
306
+      this.reset();
307
+    },
308
+    // 表单重置
309
+    reset() {
310
+      this.form = {
311
+        subContractId: null,
312
+        contractId: null,
313
+        subContractName: null,
314
+        subAmount: null,
315
+        partnerId: null,
316
+        contactPerson: null,
317
+        drafter: null,
318
+        draftTime: null,
319
+        remark: null,
320
+        signDate: null,
321
+        signRemark: null,
322
+        signScan: null,
323
+        commentType: null
324
+      };
325
+      this.resetForm("form");
326
+    },
327
+    /** 搜索按钮操作 */
328
+    handleQuery() {
329
+      this.queryParams.pageNum = 1;
330
+      this.getList();
331
+    },
332
+    /** 重置按钮操作 */
333
+    resetQuery() {
334
+      this.resetForm("queryForm");
335
+      this.handleQuery();
336
+    },
337
+    // 多选框选中数据
338
+    handleSelectionChange(selection) {
339
+      this.ids = selection.map(item => item.subContractId)
340
+      this.single = selection.length!==1
341
+      this.multiple = !selection.length
342
+    },
343
+    /** 新增按钮操作 */
344
+    handleAdd() {
345
+      this.reset();
346
+      this.open = true;
347
+      this.title = "添加cmc分包合同评审";
348
+    },
349
+    /** 修改按钮操作 */
350
+    handleUpdate(row) {
351
+      this.reset();
352
+      const subContractId = row.subContractId || this.ids
353
+      getSubContract(subContractId).then(response => {
354
+        this.form = response.data;
355
+        this.open = true;
356
+        this.title = "修改cmc分包合同评审";
357
+      });
358
+    },
359
+    /** 提交按钮 */
360
+    submitForm() {
361
+      this.$refs["form"].validate(valid => {
362
+        if (valid) {
363
+          if (this.form.subContractId != null) {
364
+            updateSubContract(this.form).then(response => {
365
+              this.$modal.msgSuccess("修改成功");
366
+              this.open = false;
367
+              this.getList();
368
+            });
369
+          } else {
370
+            addSubContract(this.form).then(response => {
371
+              this.$modal.msgSuccess("新增成功");
372
+              this.open = false;
373
+              this.getList();
374
+            });
375
+          }
376
+        }
377
+      });
378
+    },
379
+    /** 删除按钮操作 */
380
+    handleDelete(row) {
381
+      const subContractIds = row.subContractId || this.ids;
382
+      this.$modal.confirm('是否确认删除cmc分包合同评审编号为"' + subContractIds + '"的数据项?').then(function() {
383
+        return delSubContract(subContractIds);
384
+      }).then(() => {
385
+        this.getList();
386
+        this.$modal.msgSuccess("删除成功");
387
+      }).catch(() => {});
388
+    },
389
+    /** 导出按钮操作 */
390
+    handleExport() {
391
+      this.download('oa/subContract/export', {
392
+        ...this.queryParams
393
+      }, `subContract_${new Date().getTime()}.xlsx`)
394
+    }
395
+  }
396
+};
397
+</script>

+ 32
- 18
oa-ui/src/views/oa/contract/work.vue Näytä tiedosto

9
           @keyup.enter.native="handleQuery"
9
           @keyup.enter.native="handleQuery"
10
         />
10
         />
11
       </el-form-item>
11
       </el-form-item>
12
+      <el-form-item label="分包合同id" prop="subContractId">
13
+        <el-input
14
+          v-model="queryParams.subContractId"
15
+          placeholder="请输入分包合同id"
16
+          clearable
17
+          @keyup.enter.native="handleQuery"
18
+        />
19
+      </el-form-item>
12
       <el-form-item label="等级或比例尺" prop="scale">
20
       <el-form-item label="等级或比例尺" prop="scale">
13
         <el-input
21
         <el-input
14
           v-model="queryParams.scale"
22
           v-model="queryParams.scale"
55
           icon="el-icon-plus"
63
           icon="el-icon-plus"
56
           size="mini"
64
           size="mini"
57
           @click="handleAdd"
65
           @click="handleAdd"
58
-          v-hasPermi="['oa:contractWork:add']"
66
+          v-hasPermi="['oa:work:add']"
59
         >新增</el-button>
67
         >新增</el-button>
60
       </el-col>
68
       </el-col>
61
       <el-col :span="1.5">
69
       <el-col :span="1.5">
66
           size="mini"
74
           size="mini"
67
           :disabled="single"
75
           :disabled="single"
68
           @click="handleUpdate"
76
           @click="handleUpdate"
69
-          v-hasPermi="['oa:contractWork:edit']"
77
+          v-hasPermi="['oa:work:edit']"
70
         >修改</el-button>
78
         >修改</el-button>
71
       </el-col>
79
       </el-col>
72
       <el-col :span="1.5">
80
       <el-col :span="1.5">
77
           size="mini"
85
           size="mini"
78
           :disabled="multiple"
86
           :disabled="multiple"
79
           @click="handleDelete"
87
           @click="handleDelete"
80
-          v-hasPermi="['oa:contractWork:remove']"
88
+          v-hasPermi="['oa:work:remove']"
81
         >删除</el-button>
89
         >删除</el-button>
82
       </el-col>
90
       </el-col>
83
       <el-col :span="1.5">
91
       <el-col :span="1.5">
87
           icon="el-icon-download"
95
           icon="el-icon-download"
88
           size="mini"
96
           size="mini"
89
           @click="handleExport"
97
           @click="handleExport"
90
-          v-hasPermi="['oa:contractWork:export']"
98
+          v-hasPermi="['oa:work:export']"
91
         >导出</el-button>
99
         >导出</el-button>
92
       </el-col>
100
       </el-col>
93
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
101
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
94
     </el-row>
102
     </el-row>
95
 
103
 
96
-    <el-table v-loading="loading" :data="contractWorkList" @selection-change="handleSelectionChange">
104
+    <el-table v-loading="loading" :data="workList" @selection-change="handleSelectionChange">
97
       <el-table-column type="selection" width="55" align="center" />
105
       <el-table-column type="selection" width="55" align="center" />
98
       <el-table-column label="工作内容id" align="center" prop="workId" />
106
       <el-table-column label="工作内容id" align="center" prop="workId" />
99
       <el-table-column label="合同id" align="center" prop="contractId" />
107
       <el-table-column label="合同id" align="center" prop="contractId" />
108
+      <el-table-column label="分包合同id" align="center" prop="subContractId" />
100
       <el-table-column label="工作内容" align="center" prop="content" />
109
       <el-table-column label="工作内容" align="center" prop="content" />
101
       <el-table-column label="等级或比例尺" align="center" prop="scale" />
110
       <el-table-column label="等级或比例尺" align="center" prop="scale" />
102
       <el-table-column label="单位" align="center" prop="unit" />
111
       <el-table-column label="单位" align="center" prop="unit" />
114
             type="text"
123
             type="text"
115
             icon="el-icon-edit"
124
             icon="el-icon-edit"
116
             @click="handleUpdate(scope.row)"
125
             @click="handleUpdate(scope.row)"
117
-            v-hasPermi="['oa:contractWork:edit']"
126
+            v-hasPermi="['oa:work:edit']"
118
           >修改</el-button>
127
           >修改</el-button>
119
           <el-button
128
           <el-button
120
             size="mini"
129
             size="mini"
121
             type="text"
130
             type="text"
122
             icon="el-icon-delete"
131
             icon="el-icon-delete"
123
             @click="handleDelete(scope.row)"
132
             @click="handleDelete(scope.row)"
124
-            v-hasPermi="['oa:contractWork:remove']"
133
+            v-hasPermi="['oa:work:remove']"
125
           >删除</el-button>
134
           >删除</el-button>
126
         </template>
135
         </template>
127
       </el-table-column>
136
       </el-table-column>
141
         <el-form-item label="合同id" prop="contractId">
150
         <el-form-item label="合同id" prop="contractId">
142
           <el-input v-model="form.contractId" placeholder="请输入合同id" />
151
           <el-input v-model="form.contractId" placeholder="请输入合同id" />
143
         </el-form-item>
152
         </el-form-item>
153
+        <el-form-item label="分包合同id" prop="subContractId">
154
+          <el-input v-model="form.subContractId" placeholder="请输入分包合同id" />
155
+        </el-form-item>
144
         <el-form-item label="工作内容">
156
         <el-form-item label="工作内容">
145
           <editor v-model="form.content" :min-height="192"/>
157
           <editor v-model="form.content" :min-height="192"/>
146
         </el-form-item>
158
         </el-form-item>
174
 </template>
186
 </template>
175
 
187
 
176
 <script>
188
 <script>
177
-import { listContractWork, getContractWork, delContractWork, addContractWork, updateContractWork } from "@/api/oa/contract/contractWork";
189
+import { listWork, getWork, delWork, addWork, updateWork } from "@/api/oa/contract/contractWork";
178
 
190
 
179
 export default {
191
 export default {
180
-  name: "ContractWork",
192
+  name: "Work",
181
   data() {
193
   data() {
182
     return {
194
     return {
183
       // 遮罩层
195
       // 遮罩层
193
       // 总条数
205
       // 总条数
194
       total: 0,
206
       total: 0,
195
       // cmc合同内容表格数据
207
       // cmc合同内容表格数据
196
-      contractWorkList: [],
208
+      workList: [],
197
       // 弹出层标题
209
       // 弹出层标题
198
       title: "",
210
       title: "",
199
       // 是否显示弹出层
211
       // 是否显示弹出层
203
         pageNum: 1,
215
         pageNum: 1,
204
         pageSize: 10,
216
         pageSize: 10,
205
         contractId: null,
217
         contractId: null,
218
+        subContractId: null,
206
         content: null,
219
         content: null,
207
         scale: null,
220
         scale: null,
208
         unit: null,
221
         unit: null,
223
     /** 查询cmc合同内容列表 */
236
     /** 查询cmc合同内容列表 */
224
     getList() {
237
     getList() {
225
       this.loading = true;
238
       this.loading = true;
226
-      listContractWork(this.queryParams).then(response => {
227
-        this.contractWorkList = response.rows;
239
+      listWork(this.queryParams).then(response => {
240
+        this.workList = response.rows;
228
         this.total = response.total;
241
         this.total = response.total;
229
         this.loading = false;
242
         this.loading = false;
230
       });
243
       });
239
       this.form = {
252
       this.form = {
240
         workId: null,
253
         workId: null,
241
         contractId: null,
254
         contractId: null,
255
+        subContractId: null,
242
         content: null,
256
         content: null,
243
         scale: null,
257
         scale: null,
244
         unit: null,
258
         unit: null,
274
     handleUpdate(row) {
288
     handleUpdate(row) {
275
       this.reset();
289
       this.reset();
276
       const workId = row.workId || this.ids
290
       const workId = row.workId || this.ids
277
-      getContractWork(workId).then(response => {
291
+      getWork(workId).then(response => {
278
         this.form = response.data;
292
         this.form = response.data;
279
         this.open = true;
293
         this.open = true;
280
         this.title = "修改cmc合同内容";
294
         this.title = "修改cmc合同内容";
285
       this.$refs["form"].validate(valid => {
299
       this.$refs["form"].validate(valid => {
286
         if (valid) {
300
         if (valid) {
287
           if (this.form.workId != null) {
301
           if (this.form.workId != null) {
288
-            updateContractWork(this.form).then(response => {
302
+            updateWork(this.form).then(response => {
289
               this.$modal.msgSuccess("修改成功");
303
               this.$modal.msgSuccess("修改成功");
290
               this.open = false;
304
               this.open = false;
291
               this.getList();
305
               this.getList();
292
             });
306
             });
293
           } else {
307
           } else {
294
-            addContractWork(this.form).then(response => {
308
+            addWork(this.form).then(response => {
295
               this.$modal.msgSuccess("新增成功");
309
               this.$modal.msgSuccess("新增成功");
296
               this.open = false;
310
               this.open = false;
297
               this.getList();
311
               this.getList();
304
     handleDelete(row) {
318
     handleDelete(row) {
305
       const workIds = row.workId || this.ids;
319
       const workIds = row.workId || this.ids;
306
       this.$modal.confirm('是否确认删除cmc合同内容编号为"' + workIds + '"的数据项?').then(function() {
320
       this.$modal.confirm('是否确认删除cmc合同内容编号为"' + workIds + '"的数据项?').then(function() {
307
-        return delContractWork(workIds);
321
+        return delWork(workIds);
308
       }).then(() => {
322
       }).then(() => {
309
         this.getList();
323
         this.getList();
310
         this.$modal.msgSuccess("删除成功");
324
         this.$modal.msgSuccess("删除成功");
312
     },
326
     },
313
     /** 导出按钮操作 */
327
     /** 导出按钮操作 */
314
     handleExport() {
328
     handleExport() {
315
-      this.download('oa/contractWork/export', {
329
+      this.download('oa/work/export', {
316
         ...this.queryParams
330
         ...this.queryParams
317
-      }, `contractWork_${new Date().getTime()}.xlsx`)
331
+      }, `work_${new Date().getTime()}.xlsx`)
318
     }
332
     }
319
   }
333
   }
320
 };
334
 };

+ 245
- 0
oa-ui/src/views/oa/partner/index.vue Näytä tiedosto

1
+<template>
2
+  <div class="app-container">
3
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
4
+      <el-form-item label="单位名称" prop="partnerName">
5
+        <el-input
6
+          v-model="queryParams.partnerName"
7
+          placeholder="请输入单位名称"
8
+          clearable
9
+          @keyup.enter.native="handleQuery"
10
+        />
11
+      </el-form-item>
12
+      <el-form-item>
13
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
14
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
15
+      </el-form-item>
16
+    </el-form>
17
+
18
+    <el-row :gutter="10" class="mb8">
19
+      <el-col :span="1.5">
20
+        <el-button
21
+          type="primary"
22
+          plain
23
+          icon="el-icon-plus"
24
+          size="mini"
25
+          @click="handleAdd"
26
+          v-hasPermi="['oa:partner:add']"
27
+        >新增</el-button>
28
+      </el-col>
29
+      <el-col :span="1.5">
30
+        <el-button
31
+          type="success"
32
+          plain
33
+          icon="el-icon-edit"
34
+          size="mini"
35
+          :disabled="single"
36
+          @click="handleUpdate"
37
+          v-hasPermi="['oa:partner:edit']"
38
+        >修改</el-button>
39
+      </el-col>
40
+      <el-col :span="1.5">
41
+        <el-button
42
+          type="danger"
43
+          plain
44
+          icon="el-icon-delete"
45
+          size="mini"
46
+          :disabled="multiple"
47
+          @click="handleDelete"
48
+          v-hasPermi="['oa:partner:remove']"
49
+        >删除</el-button>
50
+      </el-col>
51
+      <el-col :span="1.5">
52
+        <el-button
53
+          type="warning"
54
+          plain
55
+          icon="el-icon-download"
56
+          size="mini"
57
+          @click="handleExport"
58
+          v-hasPermi="['oa:partner:export']"
59
+        >导出</el-button>
60
+      </el-col>
61
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
62
+    </el-row>
63
+
64
+    <el-table v-loading="loading" :data="partnerList" @selection-change="handleSelectionChange">
65
+      <el-table-column type="selection" width="55" align="center" />
66
+      <el-table-column label="合作单位id" align="center" prop="partnerId" />
67
+      <el-table-column label="单位名称" align="center" prop="partnerName" />
68
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
69
+        <template slot-scope="scope">
70
+          <el-button
71
+            size="mini"
72
+            type="text"
73
+            icon="el-icon-edit"
74
+            @click="handleUpdate(scope.row)"
75
+            v-hasPermi="['oa:partner:edit']"
76
+          >修改</el-button>
77
+          <el-button
78
+            size="mini"
79
+            type="text"
80
+            icon="el-icon-delete"
81
+            @click="handleDelete(scope.row)"
82
+            v-hasPermi="['oa:partner:remove']"
83
+          >删除</el-button>
84
+        </template>
85
+      </el-table-column>
86
+    </el-table>
87
+    
88
+    <pagination
89
+      v-show="total>0"
90
+      :total="total"
91
+      :page.sync="queryParams.pageNum"
92
+      :limit.sync="queryParams.pageSize"
93
+      @pagination="getList"
94
+    />
95
+
96
+    <!-- 添加或修改cmc合作单位对话框 -->
97
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
98
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
99
+        <el-form-item label="单位名称" prop="partnerName">
100
+          <el-input v-model="form.partnerName" placeholder="请输入单位名称" />
101
+        </el-form-item>
102
+      </el-form>
103
+      <div slot="footer" class="dialog-footer">
104
+        <el-button type="primary" @click="submitForm">确 定</el-button>
105
+        <el-button @click="cancel">取 消</el-button>
106
+      </div>
107
+    </el-dialog>
108
+  </div>
109
+</template>
110
+
111
+<script>
112
+import { listPartner, getPartner, delPartner, addPartner, updatePartner } from "@/api/oa/partner/partner";
113
+
114
+export default {
115
+  name: "Partner",
116
+  data() {
117
+    return {
118
+      // 遮罩层
119
+      loading: true,
120
+      // 选中数组
121
+      ids: [],
122
+      // 非单个禁用
123
+      single: true,
124
+      // 非多个禁用
125
+      multiple: true,
126
+      // 显示搜索条件
127
+      showSearch: true,
128
+      // 总条数
129
+      total: 0,
130
+      // cmc合作单位表格数据
131
+      partnerList: [],
132
+      // 弹出层标题
133
+      title: "",
134
+      // 是否显示弹出层
135
+      open: false,
136
+      // 查询参数
137
+      queryParams: {
138
+        pageNum: 1,
139
+        pageSize: 10,
140
+        partnerName: null
141
+      },
142
+      // 表单参数
143
+      form: {},
144
+      // 表单校验
145
+      rules: {
146
+      }
147
+    };
148
+  },
149
+  created() {
150
+    this.getList();
151
+  },
152
+  methods: {
153
+    /** 查询cmc合作单位列表 */
154
+    getList() {
155
+      this.loading = true;
156
+      listPartner(this.queryParams).then(response => {
157
+        this.partnerList = response.rows;
158
+        this.total = response.total;
159
+        this.loading = false;
160
+      });
161
+    },
162
+    // 取消按钮
163
+    cancel() {
164
+      this.open = false;
165
+      this.reset();
166
+    },
167
+    // 表单重置
168
+    reset() {
169
+      this.form = {
170
+        partnerId: null,
171
+        partnerName: null
172
+      };
173
+      this.resetForm("form");
174
+    },
175
+    /** 搜索按钮操作 */
176
+    handleQuery() {
177
+      this.queryParams.pageNum = 1;
178
+      this.getList();
179
+    },
180
+    /** 重置按钮操作 */
181
+    resetQuery() {
182
+      this.resetForm("queryForm");
183
+      this.handleQuery();
184
+    },
185
+    // 多选框选中数据
186
+    handleSelectionChange(selection) {
187
+      this.ids = selection.map(item => item.partnerId)
188
+      this.single = selection.length!==1
189
+      this.multiple = !selection.length
190
+    },
191
+    /** 新增按钮操作 */
192
+    handleAdd() {
193
+      this.reset();
194
+      this.open = true;
195
+      this.title = "添加cmc合作单位";
196
+    },
197
+    /** 修改按钮操作 */
198
+    handleUpdate(row) {
199
+      this.reset();
200
+      const partnerId = row.partnerId || this.ids
201
+      getPartner(partnerId).then(response => {
202
+        this.form = response.data;
203
+        this.open = true;
204
+        this.title = "修改cmc合作单位";
205
+      });
206
+    },
207
+    /** 提交按钮 */
208
+    submitForm() {
209
+      this.$refs["form"].validate(valid => {
210
+        if (valid) {
211
+          if (this.form.partnerId != null) {
212
+            updatePartner(this.form).then(response => {
213
+              this.$modal.msgSuccess("修改成功");
214
+              this.open = false;
215
+              this.getList();
216
+            });
217
+          } else {
218
+            addPartner(this.form).then(response => {
219
+              this.$modal.msgSuccess("新增成功");
220
+              this.open = false;
221
+              this.getList();
222
+            });
223
+          }
224
+        }
225
+      });
226
+    },
227
+    /** 删除按钮操作 */
228
+    handleDelete(row) {
229
+      const partnerIds = row.partnerId || this.ids;
230
+      this.$modal.confirm('是否确认删除cmc合作单位编号为"' + partnerIds + '"的数据项?').then(function() {
231
+        return delPartner(partnerIds);
232
+      }).then(() => {
233
+        this.getList();
234
+        this.$modal.msgSuccess("删除成功");
235
+      }).catch(() => {});
236
+    },
237
+    /** 导出按钮操作 */
238
+    handleExport() {
239
+      this.download('oa/partner/export', {
240
+        ...this.queryParams
241
+      }, `partner_${new Date().getTime()}.xlsx`)
242
+    }
243
+  }
244
+};
245
+</script>

Loading…
Peruuta
Tallenna