Commit a3187b66aad35f935f2c68cc2c2b6fb87a4f1416
1 parent
d9493d3f
m
Showing
5 changed files
with
46 additions
and
9 deletions
trash-ui/src/views/activiti/task/constructsiteInfo.vue
| @@ -139,6 +139,9 @@ | @@ -139,6 +139,9 @@ | ||
| 139 | <el-row class="bd_padding"> | 139 | <el-row class="bd_padding"> |
| 140 | <label style="float: right;">勘察人:{{infoData.surveyor}}</label> | 140 | <label style="float: right;">勘察人:{{infoData.surveyor}}</label> |
| 141 | </el-row> | 141 | </el-row> |
| 142 | + <el-row > | ||
| 143 | + <label style="float: right;" v-if="signData && signData.sign1">签字:<img :src="signData.sign1" width="100px" height="40px" />{{signData.sign1Time}}</label> | ||
| 144 | + </el-row> | ||
| 142 | </el-col> | 145 | </el-col> |
| 143 | </el-col> | 146 | </el-col> |
| 144 | </el-row> | 147 | </el-row> |
| @@ -148,7 +151,7 @@ | @@ -148,7 +151,7 @@ | ||
| 148 | <el-col :span="23" > | 151 | <el-col :span="23" > |
| 149 | <el-row class="bd_padding">{{signData.sign2Text}}</el-row> | 152 | <el-row class="bd_padding">{{signData.sign2Text}}</el-row> |
| 150 | <el-row > | 153 | <el-row > |
| 151 | - <label style="float: right;">签字:<img :src="signData.sign2" width="100px" height="40px" v-if="signData && signData.sign2"/>{{signData.sign2Time}}</label> | 154 | + <label style="float: right;" v-if="signData && signData.sign2">签字:<img :src="signData.sign2" width="100px" height="40px" />{{signData.sign2Time}}</label> |
| 152 | </el-row> | 155 | </el-row> |
| 153 | </el-col> | 156 | </el-col> |
| 154 | </el-row> | 157 | </el-row> |
| @@ -158,7 +161,7 @@ | @@ -158,7 +161,7 @@ | ||
| 158 | <el-col :span="23" > | 161 | <el-col :span="23" > |
| 159 | <el-row class="bd_padding">{{signData.sign3Text}}</el-row> | 162 | <el-row class="bd_padding">{{signData.sign3Text}}</el-row> |
| 160 | <el-row class="bd_padding"> | 163 | <el-row class="bd_padding"> |
| 161 | - <label style="float: right;">签字:<img :src="signData.sign3" width="100px" height="40px" v-if="signData && signData.sign3"/>{{signData.sign3Time}}</label> | 164 | + <label style="float: right;" v-if="signData && signData.sign3">签字:<img :src="signData.sign3" width="100px" height="40px" />{{signData.sign3Time}}</label> |
| 162 | </el-row> | 165 | </el-row> |
| 163 | </el-col> | 166 | </el-col> |
| 164 | </el-row> | 167 | </el-row> |
| @@ -168,7 +171,7 @@ | @@ -168,7 +171,7 @@ | ||
| 168 | <el-col :span="23" > | 171 | <el-col :span="23" > |
| 169 | <el-row class="bd_padding">{{signData.sign4Text}}</el-row> | 172 | <el-row class="bd_padding">{{signData.sign4Text}}</el-row> |
| 170 | <el-row class="bd_padding"> | 173 | <el-row class="bd_padding"> |
| 171 | - <label style="float: right;">签字:<img :src="signData.sign4" width="100px" height="40px" v-if="signData && signData.sign4"/>{{signData.sign4Time}}</label> | 174 | + <label style="float: right;" v-if="signData && signData.sign4">签字:<img :src="signData.sign4" width="100px" height="40px" />{{signData.sign4Time}}</label> |
| 172 | </el-row> | 175 | </el-row> |
| 173 | </el-col> | 176 | </el-col> |
| 174 | </el-row> | 177 | </el-row> |
trash-ui/src/views/activiti/task/earthsitesInfo.vue
| @@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
| 36 | <el-col :span="6" class="bd_right bd_padding">工程类型</el-col> | 36 | <el-col :span="6" class="bd_right bd_padding">工程类型</el-col> |
| 37 | <el-col :span="6" class="bd_padding">{{infoData.projectType}}</el-col> | 37 | <el-col :span="6" class="bd_padding">{{infoData.projectType}}</el-col> |
| 38 | <el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col> | 38 | <el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col> |
| 39 | - <el-col :span="6" class="bd_padding">{{infoData.workAreaName}}</el-col> | 39 | + <el-col :span="6" class="bd_padding">{{infoData.workAreaCodeName}}</el-col> |
| 40 | </el-row> | 40 | </el-row> |
| 41 | <el-row class="bd_bottom"> | 41 | <el-row class="bd_bottom"> |
| 42 | <el-col :span="6" class="bd_right bd_padding">线路名称</el-col> | 42 | <el-col :span="6" class="bd_right bd_padding">线路名称</el-col> |
| @@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
| 78 | <el-col :span="6" class="bd_right bd_padding">其他情形</el-col> | 78 | <el-col :span="6" class="bd_right bd_padding">其他情形</el-col> |
| 79 | <el-col :span="6" class="bd_padding">{{infoData.otherSituations}}</el-col> | 79 | <el-col :span="6" class="bd_padding">{{infoData.otherSituations}}</el-col> |
| 80 | <el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col> | 80 | <el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col> |
| 81 | - <el-col :span="6" class="bd_padding">{{infoData.filledByName}}</el-col> | 81 | + <el-col :span="6" class="bd_padding">{{infoData.filledBy}}</el-col> |
| 82 | </el-row> | 82 | </el-row> |
| 83 | <el-row > | 83 | <el-row > |
| 84 | <el-col :span="6" class="bd_right bd_padding">申请意见</el-col> | 84 | <el-col :span="6" class="bd_right bd_padding">申请意见</el-col> |
trash-ui/src/views/h5/task/earthsitesInfo.vue
| @@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
| 36 | <el-col :span="6" class="bd_right bd_padding">工程类型</el-col> | 36 | <el-col :span="6" class="bd_right bd_padding">工程类型</el-col> |
| 37 | <el-col :span="6" class="bd_padding">{{infoData.projectType}}</el-col> | 37 | <el-col :span="6" class="bd_padding">{{infoData.projectType}}</el-col> |
| 38 | <el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col> | 38 | <el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col> |
| 39 | - <el-col :span="6" class="bd_padding">{{infoData.workAreaName}}</el-col> | 39 | + <el-col :span="6" class="bd_padding">{{infoData.workAreaCodeName}}</el-col> |
| 40 | </el-row> | 40 | </el-row> |
| 41 | <el-row class="bd_bottom"> | 41 | <el-row class="bd_bottom"> |
| 42 | <el-col :span="6" class="bd_right bd_padding">线路名称</el-col> | 42 | <el-col :span="6" class="bd_right bd_padding">线路名称</el-col> |
| @@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
| 78 | <el-col :span="6" class="bd_right bd_padding">其他情形</el-col> | 78 | <el-col :span="6" class="bd_right bd_padding">其他情形</el-col> |
| 79 | <el-col :span="6" class="bd_padding">{{infoData.otherSituations}}</el-col> | 79 | <el-col :span="6" class="bd_padding">{{infoData.otherSituations}}</el-col> |
| 80 | <el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col> | 80 | <el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col> |
| 81 | - <el-col :span="6" class="bd_padding">{{infoData.filledByName}}</el-col> | 81 | + <el-col :span="6" class="bd_padding">{{infoData.filledBy}}</el-col> |
| 82 | </el-row> | 82 | </el-row> |
| 83 | <el-row > | 83 | <el-row > |
| 84 | <el-col :span="6" class="bd_right bd_padding">申请意见</el-col> | 84 | <el-col :span="6" class="bd_right bd_padding">申请意见</el-col> |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| @@ -184,7 +184,6 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -184,7 +184,6 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 184 | @SuppressWarnings("unchecked") | 184 | @SuppressWarnings("unchecked") |
| 185 | @Override | 185 | @Override |
| 186 | public List<Map<String,String>> selectDayWorkList(SupervisionThreestep supervisionThreestep) { | 186 | public List<Map<String,String>> selectDayWorkList(SupervisionThreestep supervisionThreestep) { |
| 187 | - | ||
| 188 | if (supervisionThreestep.getWorkStartTime() == null) { | 187 | if (supervisionThreestep.getWorkStartTime() == null) { |
| 189 | String start, end; | 188 | String start, end; |
| 190 | 189 | ||
| @@ -229,9 +228,25 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -229,9 +228,25 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 229 | 228 | ||
| 230 | List<SupervisionThreestep> constructions = new ArrayList<>(); | 229 | List<SupervisionThreestep> constructions = new ArrayList<>(); |
| 231 | List<SupervisionThreestep> earthsites = new ArrayList<>(); | 230 | List<SupervisionThreestep> earthsites = new ArrayList<>(); |
| 231 | + JSONArray areas = RemoteServerUtils.getAreas(); | ||
| 232 | 232 | ||
| 233 | for(SupervisionThreestep s: allList){ | 233 | for(SupervisionThreestep s: allList){ |
| 234 | 234 | ||
| 235 | + | ||
| 236 | + if (s.getType() == 1) { | ||
| 237 | + for(Object object:areas){ | ||
| 238 | + | ||
| 239 | + JSONObject area = (JSONObject)object; | ||
| 240 | + | ||
| 241 | + if(s.getPlace().equals(area.getString("code"))){ | ||
| 242 | + s.setPlace(area.getString("name")); | ||
| 243 | + } | ||
| 244 | + } | ||
| 245 | + | ||
| 246 | + | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + | ||
| 235 | if(supervisionThreestep.getHis().equals("1")){ | 250 | if(supervisionThreestep.getHis().equals("1")){ |
| 236 | if(yearFomat.format(s.getSelfCheckTime()).equals(yearFomat.format(new Date()))){ | 251 | if(yearFomat.format(s.getSelfCheckTime()).equals(yearFomat.format(new Date()))){ |
| 237 | continue; | 252 | continue; |
trash-workFlow/src/main/java/com/trash/workflow/service/impl/WorkflowServiceImpl.java
| 1 | package com.trash.workflow.service.impl; | 1 | package com.trash.workflow.service.impl; |
| 2 | 2 | ||
| 3 | import java.text.SimpleDateFormat; | 3 | import java.text.SimpleDateFormat; |
| 4 | +import java.util.Date; | ||
| 4 | import java.util.List; | 5 | import java.util.List; |
| 5 | import java.util.Map; | 6 | import java.util.Map; |
| 6 | import java.util.concurrent.TimeUnit; | 7 | import java.util.concurrent.TimeUnit; |
| @@ -34,7 +35,9 @@ import org.springframework.transaction.annotation.Transactional; | @@ -34,7 +35,9 @@ import org.springframework.transaction.annotation.Transactional; | ||
| 34 | 35 | ||
| 35 | import com.alibaba.fastjson.JSONArray; | 36 | import com.alibaba.fastjson.JSONArray; |
| 36 | import com.alibaba.fastjson.JSONObject; | 37 | import com.alibaba.fastjson.JSONObject; |
| 38 | +import com.trash.business.domain.ConstructionSign; | ||
| 37 | import com.trash.business.domain.SupervisionThreestep; | 39 | import com.trash.business.domain.SupervisionThreestep; |
| 40 | +import com.trash.business.service.IConstructionSignService; | ||
| 38 | import com.trash.business.service.ISupervisionThreestepService; | 41 | import com.trash.business.service.ISupervisionThreestepService; |
| 39 | import com.trash.caseOffline.domain.CaseOffline; | 42 | import com.trash.caseOffline.domain.CaseOffline; |
| 40 | import com.trash.casefile.domain.ViolationCaseFile; | 43 | import com.trash.casefile.domain.ViolationCaseFile; |
| @@ -68,6 +71,9 @@ public class WorkflowServiceImpl implements IWorkflowService { | @@ -68,6 +71,9 @@ public class WorkflowServiceImpl implements IWorkflowService { | ||
| 68 | 71 | ||
| 69 | @Autowired | 72 | @Autowired |
| 70 | private TaskRuntime taskRuntime; | 73 | private TaskRuntime taskRuntime; |
| 74 | + | ||
| 75 | + @Autowired | ||
| 76 | + IConstructionSignService signService; | ||
| 71 | 77 | ||
| 72 | 78 | ||
| 73 | @Autowired | 79 | @Autowired |
| @@ -118,6 +124,20 @@ public class WorkflowServiceImpl implements IWorkflowService { | @@ -118,6 +124,20 @@ public class WorkflowServiceImpl implements IWorkflowService { | ||
| 118 | if (flowType.equals("workflow_earthsites")) { | 124 | if (flowType.equals("workflow_earthsites")) { |
| 119 | PorcThreeStepTask(processInstance, areaCode); | 125 | PorcThreeStepTask(processInstance, areaCode); |
| 120 | } | 126 | } |
| 127 | + | ||
| 128 | + if(flowType.equals("workflow_constructsite")){ | ||
| 129 | + | ||
| 130 | + ConstructionSign constructionSign = new ConstructionSign(); | ||
| 131 | + | ||
| 132 | + constructionSign.setObjectId(map.get("id").toString()); | ||
| 133 | + if(!SecurityUtils.getLoginUser().getUser().getAvatar().contains("null")){ | ||
| 134 | + constructionSign.setSign1(SecurityUtils.getLoginUser().getUser().getAvatar()); | ||
| 135 | + constructionSign.setSign1Time(new Date()); | ||
| 136 | + } | ||
| 137 | + | ||
| 138 | + signService.insertConstructionSign(constructionSign); | ||
| 139 | + | ||
| 140 | + } | ||
| 121 | 141 | ||
| 122 | Workflow workflow = new Workflow(); | 142 | Workflow workflow = new Workflow(); |
| 123 | workflow.setId(businessKey); | 143 | workflow.setId(businessKey); |
| @@ -201,7 +221,6 @@ public class WorkflowServiceImpl implements IWorkflowService { | @@ -201,7 +221,6 @@ public class WorkflowServiceImpl implements IWorkflowService { | ||
| 201 | 221 | ||
| 202 | PorcThreeStepTask(processInstance, supervision.getPlace()); | 222 | PorcThreeStepTask(processInstance, supervision.getPlace()); |
| 203 | 223 | ||
| 204 | - | ||
| 205 | Workflow workflow = new Workflow(); | 224 | Workflow workflow = new Workflow(); |
| 206 | workflow.setId("workflow_threestep:" + supervision.getId()); | 225 | workflow.setId("workflow_threestep:" + supervision.getId()); |
| 207 | workflow.setTitle("报工自查-合同编号:" + supervision.getContract()); | 226 | workflow.setTitle("报工自查-合同编号:" + supervision.getContract()); |