Browse Source

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

lamphua 9 months ago
parent
commit
53950fc221

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

4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
 
5
 
6
 import com.ruoyi.common.utils.SnowFlake;
6
 import com.ruoyi.common.utils.SnowFlake;
7
+import com.ruoyi.oa.domain.CmcPartyA;
7
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.PostMapping;
10
 import org.springframework.web.bind.annotation.PostMapping;
74
     @PostMapping
75
     @PostMapping
75
     public AjaxResult add(@RequestBody CmcPartner cmcPartner)
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
         return toAjax(cmcPartnerService.insertCmcPartner(cmcPartner));
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 View File

74
     @PostMapping
74
     @PostMapping
75
     public AjaxResult add(@RequestBody CmcPartyA cmcPartyA)
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
         return toAjax(cmcPartyAService.insertCmcPartyA(cmcPartyA));
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 View File

103
             cmcTechnicalPlan.setTechnicalDesigner(getLoginUser().getUserId());
103
             cmcTechnicalPlan.setTechnicalDesigner(getLoginUser().getUserId());
104
             cmcTechnicalPlan.setTechnicalUploadTime(new Date());
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
             cmcTechnicalPlan.setTechnicalAuditor(getLoginUser().getUserId());
107
             cmcTechnicalPlan.setTechnicalAuditor(getLoginUser().getUserId());
108
             cmcTechnicalPlan.setTechApprovalTime(new Date());
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
             cmcTechnicalPlan.setManagerUserId(getLoginUser().getUserId());
115
             cmcTechnicalPlan.setManagerUserId(getLoginUser().getUserId());
112
             cmcTechnicalPlan.setManageApprovalTime(new Date());
116
             cmcTechnicalPlan.setManageApprovalTime(new Date());
113
         }
117
         }

+ 4
- 4
oa-ui/src/views/flowable/form/projectProcess/manageReview.vue View File

1
 <!--
1
 <!--
2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-04-08 13:56:14
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
 <template>
7
 <template>
8
   <div class="app-container">
8
   <div class="app-container">
12
         <el-row>
12
         <el-row>
13
           <el-checkbox v-model="safe" disabled>安全交底</el-checkbox>
13
           <el-checkbox v-model="safe" disabled>安全交底</el-checkbox>
14
           <el-link class="ml20 mr20" type="primary" @click="openSafe = true">安全交底记录表</el-link>
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
         </el-row>
16
         </el-row>
17
         <el-row>
17
         <el-row>
18
           <el-checkbox v-model="tech" disabled>技术交底</el-checkbox>
18
           <el-checkbox v-model="tech" disabled>技术交底</el-checkbox>
19
           <el-link class="ml20 mr20" type="primary" @click="openTech = true">技术交底记录表</el-link>
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
         </el-row>
21
         </el-row>
22
         <el-row>
22
         <el-row>
23
           <el-checkbox v-model="plan" disabled>技术方案</el-checkbox>
23
           <el-checkbox v-model="plan" disabled>技术方案</el-checkbox>

Loading…
Cancel
Save