Bladeren bron

新增合作单位、业主单位修改

lamphua 7 maanden geleden
bovenliggende
commit
53950fc221

+ 5
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPartnerController.java Bestand weergeven

@@ -4,6 +4,7 @@ import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5 5
 
6 6
 import com.ruoyi.common.utils.SnowFlake;
7
+import com.ruoyi.oa.domain.CmcPartyA;
7 8
 import org.springframework.beans.factory.annotation.Autowired;
8 9
 import org.springframework.web.bind.annotation.GetMapping;
9 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -74,7 +75,10 @@ public class CmcPartnerController extends BaseController
74 75
     @PostMapping
75 76
     public AjaxResult add(@RequestBody CmcPartner cmcPartner)
76 77
     {
77
-        cmcPartner.setPartnerId(String.valueOf(cmcPartnerService.selectCmcPartnerList(new CmcPartner()).size() + 1));
78
+        if (cmcPartnerService.selectCmcPartnerList(new CmcPartner()).size() + 1 < 1000)
79
+            cmcPartner.setPartnerId("0" + (cmcPartnerService.selectCmcPartnerList(new CmcPartner()).size() + 1));
80
+        else
81
+            cmcPartner.setPartnerId(String.valueOf(cmcPartnerService.selectCmcPartnerList(new CmcPartner()).size() + 1));
78 82
         return toAjax(cmcPartnerService.insertCmcPartner(cmcPartner));
79 83
     }
80 84
 

+ 4
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPartyAController.java Bestand weergeven

@@ -74,7 +74,10 @@ public class CmcPartyAController extends BaseController
74 74
     @PostMapping
75 75
     public AjaxResult add(@RequestBody CmcPartyA cmcPartyA)
76 76
     {
77
-        cmcPartyA.setPartyAId(String.valueOf(cmcPartyAService.selectCmcPartyAList(new CmcPartyA()).size() + 1));
77
+        if (cmcPartyAService.selectCmcPartyAList(new CmcPartyA()).size() + 1 < 1000)
78
+            cmcPartyA.setPartyAId("0" + (cmcPartyAService.selectCmcPartyAList(new CmcPartyA()).size() + 1));
79
+        else
80
+            cmcPartyA.setPartyAId(String.valueOf(cmcPartyAService.selectCmcPartyAList(new CmcPartyA()).size() + 1));
78 81
         return toAjax(cmcPartyAService.insertCmcPartyA(cmcPartyA));
79 82
     }
80 83
 

+ 6
- 2
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTechnicalPlanController.java Bestand weergeven

@@ -103,11 +103,15 @@ public class CmcTechnicalPlanController extends BaseController
103 103
             cmcTechnicalPlan.setTechnicalDesigner(getLoginUser().getUserId());
104 104
             cmcTechnicalPlan.setTechnicalUploadTime(new Date());
105 105
         }
106
-        if ((cmcTechnicalPlan.getModifyDocument() != null || cmcTechnicalPlan.getTechnicalComment() != null) && cmcTechnicalPlan.getManageComment() == null) {
106
+        if ((cmcTechnicalPlan.getModifyDocument() != null || cmcTechnicalPlan.getTechnicalComment() != null) && cmcTechnicalPlan.getTechDeptComment() == null) {
107 107
             cmcTechnicalPlan.setTechnicalAuditor(getLoginUser().getUserId());
108 108
             cmcTechnicalPlan.setTechApprovalTime(new Date());
109 109
         }
110
-        if (cmcTechnicalPlan.getManageComment() != null) {
110
+        if ((cmcTechnicalPlan.getReviseDocument() != null || cmcTechnicalPlan.getTechDeptComment() != null) && cmcTechnicalPlan.getManageComment() == null) {
111
+            cmcTechnicalPlan.setTechDeptLeader(getLoginUser().getUserId());
112
+            cmcTechnicalPlan.setTechDeptTime(new Date());
113
+        }
114
+        if (cmcTechnicalPlan.getManageComment() != null || cmcTechnicalPlan.getFinalDocument() != null) {
111 115
             cmcTechnicalPlan.setManagerUserId(getLoginUser().getUserId());
112 116
             cmcTechnicalPlan.setManageApprovalTime(new Date());
113 117
         }

+ 4
- 4
oa-ui/src/views/flowable/form/projectProcess/manageReview.vue Bestand weergeven

@@ -1,8 +1,8 @@
1 1
 <!--
2 2
  * @Author: ysh
3 3
  * @Date: 2024-04-08 13:56:14
4
- * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-09-12 16:12:36
4
+ * @LastEditors: wrh
5
+ * @LastEditTime: 2024-09-12 16:18:28
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -12,12 +12,12 @@
12 12
         <el-row>
13 13
           <el-checkbox v-model="safe" disabled>安全交底</el-checkbox>
14 14
           <el-link class="ml20 mr20" type="primary" @click="openSafe = true">安全交底记录表</el-link>
15
-          <el-button plain type="warning" size="mini" @click="handleUrge('1')" v-if="!safe">发送企业微信消息催促相关人员</el-button>
15
+          <el-button plain type="warning" size="mini" @click="handleUrge('1')" v-if="!safe">发送企业微信消息提醒相关人员</el-button>
16 16
         </el-row>
17 17
         <el-row>
18 18
           <el-checkbox v-model="tech" disabled>技术交底</el-checkbox>
19 19
           <el-link class="ml20 mr20" type="primary" @click="openTech = true">技术交底记录表</el-link>
20
-          <el-button plain type="warning" size="mini" @click="handleUrge('2')" v-if="!tech">发送企业微信消息催促相关人员</el-button>
20
+          <el-button plain type="warning" size="mini" @click="handleUrge('2')" v-if="!tech">发送企业微信消息提醒相关人员</el-button>
21 21
         </el-row>
22 22
         <el-row>
23 23
           <el-checkbox v-model="plan" disabled>技术方案</el-checkbox>

Laden…
Annuleren
Opslaan