Commit 420016c1a6dec2bcd2fe1b99a587d3999380975f
Merge remote-tracking branch 'origin/dev' into dev
Showing
16 changed files
with
124 additions
and
35 deletions
trash-ui/src/api/driver_credit.js
| @@ -83,7 +83,7 @@ export default { | @@ -83,7 +83,7 @@ export default { | ||
| 83 | this.getNamesData(); | 83 | this.getNamesData(); |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | - let data = {}; | 86 | + let data = {valid:0}; |
| 87 | driverList(data).then(res=>{ | 87 | driverList(data).then(res=>{ |
| 88 | 88 | ||
| 89 | this.driverList = res.list; | 89 | this.driverList = res.list; |
trash-ui/src/api/truck_credit.js
trash-ui/src/layout/inde3x.vue renamed to trash-ui/src/layout/index4.vue
trash-ui/src/views/activiti/task/bd.css
0 → 100644
| 1 | + .bd_padding{ | ||
| 2 | + | ||
| 3 | + padding:5px; | ||
| 4 | + } | ||
| 5 | + | ||
| 6 | + .bd_right { | ||
| 7 | + border-right: 1px solid black; | ||
| 8 | + height: 100%; | ||
| 9 | + } | ||
| 10 | + | ||
| 11 | + .bd_left { | ||
| 12 | + border-left: 1px solid black; | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | + .bd_top { | ||
| 16 | + border-top: 1px solid black; | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + .bd_bottom { | ||
| 20 | + border-bottom: 1px solid black; | ||
| 21 | + } | ||
| 0 | \ No newline at end of file | 22 | \ No newline at end of file |
trash-ui/src/views/activiti/task/constructsiteInfo.vue
| 1 | <template> | 1 | <template> |
| 2 | <div v-loading="loading"> | 2 | <div v-loading="loading"> |
| 3 | 3 | ||
| 4 | - <el-button @click="printBody">打印</el-button> | 4 | + <el-button @click="printBody" :style="{'display':hide}">打印</el-button> |
| 5 | <div id="printItem"> | 5 | <div id="printItem"> |
| 6 | <el-row style="border: 1px solid black;" type="flex" align="middle" justify="center"> | 6 | <el-row style="border: 1px solid black;" type="flex" align="middle" justify="center"> |
| 7 | <el-col :span="1" class="bd_padding"> | 7 | <el-col :span="1" class="bd_padding"> |
| @@ -156,7 +156,7 @@ | @@ -156,7 +156,7 @@ | ||
| 156 | <el-col :span="1" class="bd_padding bd_right">分管领导意见</el-col> | 156 | <el-col :span="1" class="bd_padding bd_right">分管领导意见</el-col> |
| 157 | <el-col :span="23" > | 157 | <el-col :span="23" > |
| 158 | <el-row class="bd_padding">{{signData.sign3Text}}</el-row> | 158 | <el-row class="bd_padding">{{signData.sign3Text}}</el-row> |
| 159 | - <el-row > | 159 | + <el-row class="bd_padding"> |
| 160 | <label style="float: right;">签字:<img :src="signData.sign3" width="100px" height="40px" v-if="signData.sign3"/>{{signData.sign3Time}}</label> | 160 | <label style="float: right;">签字:<img :src="signData.sign3" width="100px" height="40px" v-if="signData.sign3"/>{{signData.sign3Time}}</label> |
| 161 | </el-row> | 161 | </el-row> |
| 162 | </el-col> | 162 | </el-col> |
| @@ -166,7 +166,7 @@ | @@ -166,7 +166,7 @@ | ||
| 166 | <el-col :span="1" class="bd_right bd_padding">渣土事务中心负责人意见</el-col> | 166 | <el-col :span="1" class="bd_right bd_padding">渣土事务中心负责人意见</el-col> |
| 167 | <el-col :span="23" > | 167 | <el-col :span="23" > |
| 168 | <el-row class="bd_padding">{{signData.sign4Text}}</el-row> | 168 | <el-row class="bd_padding">{{signData.sign4Text}}</el-row> |
| 169 | - <el-row > | 169 | + <el-row class="bd_padding"> |
| 170 | <label style="float: right;">签字:<img :src="signData.sign4" width="100px" height="40px" v-if="signData.sign4"/>{{signData.sign4Time}}</label> | 170 | <label style="float: right;">签字:<img :src="signData.sign4" width="100px" height="40px" v-if="signData.sign4"/>{{signData.sign4Time}}</label> |
| 171 | </el-row> | 171 | </el-row> |
| 172 | </el-col> | 172 | </el-col> |
| @@ -201,6 +201,7 @@ import store from "@/store"; | @@ -201,6 +201,7 @@ import store from "@/store"; | ||
| 201 | }, | 201 | }, |
| 202 | data() { | 202 | data() { |
| 203 | return { | 203 | return { |
| 204 | + hide:'block', | ||
| 204 | sign: store.getters.avatar, //裁剪图片的地址 | 205 | sign: store.getters.avatar, //裁剪图片的地址 |
| 205 | areas: [], | 206 | areas: [], |
| 206 | loading: null, | 207 | loading: null, |
| @@ -290,8 +291,14 @@ import store from "@/store"; | @@ -290,8 +291,14 @@ import store from "@/store"; | ||
| 290 | }, | 291 | }, |
| 291 | methods: { | 292 | methods: { |
| 292 | printBody(){ | 293 | printBody(){ |
| 294 | + | ||
| 295 | + let body = document.body; | ||
| 296 | + | ||
| 293 | document.body.innerHTML = document.getElementById("printItem").innerHTML; | 297 | document.body.innerHTML = document.getElementById("printItem").innerHTML; |
| 298 | + | ||
| 294 | window.print(); | 299 | window.print(); |
| 300 | + | ||
| 301 | + window.location.reload(); | ||
| 295 | }, | 302 | }, |
| 296 | getInfo() { | 303 | getInfo() { |
| 297 | let id; | 304 | let id; |
trash-ui/src/views/activiti/task/index.vue
| @@ -751,7 +751,7 @@ export default { | @@ -751,7 +751,7 @@ export default { | ||
| 751 | 751 | ||
| 752 | if (this.definitionKey == "workflow_constructsite") { | 752 | if (this.definitionKey == "workflow_constructsite") { |
| 753 | if (this.form.status == 1) { | 753 | if (this.form.status == 1) { |
| 754 | - let objId = this.businessKey + "&"; | 754 | + let objId = this.businessKey.split(":")[1]; |
| 755 | let query = { | 755 | let query = { |
| 756 | objectId: objId, | 756 | objectId: objId, |
| 757 | }; | 757 | }; |
trash-ui/src/views/caseOffline/caseOffline/index.vue
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | </el-select> | 7 | </el-select> |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | <el-form-item label="所属区域" prop="place"> | 9 | <el-form-item label="所属区域" prop="place"> |
| 10 | - <el-select v-model="queryParams.place" placeholder="请选择案卷类型" size="small"> | 10 | + <el-select v-model="queryParams.place" placeholder="请选择所属区域" size="small"> |
| 11 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> | 11 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> |
| 12 | </el-select> | 12 | </el-select> |
| 13 | </el-form-item> | 13 | </el-form-item> |
trash-ui/src/views/casefile/violationCaseFile/index.vue
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="105px"> | 3 | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="105px"> |
| 4 | 4 | ||
| 5 | <el-form-item label="所属区域" prop="owningRegion"> | 5 | <el-form-item label="所属区域" prop="owningRegion"> |
| 6 | - <el-select v-model="queryParams.owningRegion" placeholder="请选择违规类型" size="small"> | 6 | + <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" size="small"> |
| 7 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | 7 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> |
| 8 | </el-select> | 8 | </el-select> |
| 9 | 9 |
trash-ui/src/views/casefile/violationWarningInformation/index.vue
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | </el-select> | 9 | </el-select> |
| 10 | </el-form-item> | 10 | </el-form-item> |
| 11 | <el-form-item label="所属区域" prop="owningRegion"> | 11 | <el-form-item label="所属区域" prop="owningRegion"> |
| 12 | - <el-select v-model="queryParams.owningRegion" placeholder="请选择违规类型" clearable size="small"> | 12 | + <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" clearable size="small"> |
| 13 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | 13 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> |
| 14 | </el-select> | 14 | </el-select> |
| 15 | </el-form-item> | 15 | </el-form-item> |
trash-ui/src/views/h5/caseOffline/index.vue
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | </el-select> | 7 | </el-select> |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | <el-form-item label="所属区域" prop="place"> | 9 | <el-form-item label="所属区域" prop="place"> |
| 10 | - <el-select v-model="queryParams.place" placeholder="请选择案卷类型" size="small"> | 10 | + <el-select v-model="queryParams.place" placeholder="请选择所属区域" size="small"> |
| 11 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> | 11 | <el-option v-for="item in areas" :label="item.name" :value="item.code" /> |
| 12 | </el-select> | 12 | </el-select> |
| 13 | </el-form-item> | 13 | </el-form-item> |
trash-ui/src/views/h5/truckActivate/index.vue
| @@ -54,22 +54,15 @@ | @@ -54,22 +54,15 @@ | ||
| 54 | 54 | ||
| 55 | </el-row> | 55 | </el-row> |
| 56 | 56 | ||
| 57 | - <el-card class="box-card" v-for="item in truckActivateList" style="margin-bottom: 10px;"> | 57 | + <el-card class="box-card" v-for="item in truckActivateList" style="margin-bottom: 10px;padding: 10px;"> |
| 58 | 58 | ||
| 59 | <el-row class="card_row"> | 59 | <el-row class="card_row"> |
| 60 | - <el-col :span="12" class="card_grid"> | 60 | + <el-col :span="24" class="card_grid"> |
| 61 | <div class="card_title" style="font-weight: bold;">{{item.licensePlate}}</div> | 61 | <div class="card_title" style="font-weight: bold;">{{item.licensePlate}}</div> |
| 62 | </el-col> | 62 | </el-col> |
| 63 | - <el-col :span="12" class="card_grid" > | ||
| 64 | - <span v-if="item.activateTime!=null" style="float:right;margin-top:20px;">已激活</span> | ||
| 65 | - <el-button v-if="item.activateTime==null" | ||
| 66 | - style="float:right;" | ||
| 67 | - @click="handleUpdate(item)" | ||
| 68 | - >手动激活</el-button> | ||
| 69 | - </el-col> | ||
| 70 | </el-row> | 63 | </el-row> |
| 71 | 64 | ||
| 72 | - <el-row class="card_row" style="margin-top: 5px;"> | 65 | + <el-row class="card_row" style="margin-top: 20px;"> |
| 73 | <el-col :span="24"> | 66 | <el-col :span="24"> |
| 74 | <div>{{item.company}}</div> | 67 | <div>{{item.company}}</div> |
| 75 | </el-col> | 68 | </el-col> |
| @@ -80,6 +73,14 @@ | @@ -80,6 +73,14 @@ | ||
| 80 | <div>{{item.construction}}</div> | 73 | <div>{{item.construction}}</div> |
| 81 | </el-col> | 74 | </el-col> |
| 82 | </el-row> | 75 | </el-row> |
| 76 | + | ||
| 77 | + <el-row class="card_row" style="margin-top: 20px;"> | ||
| 78 | + <el-col :span="24" class="card_grid" > | ||
| 79 | + <span v-if="" style="margin-top:20px;">{{item.activateTime!=null ? '激活时间:' + item.activateTime : "未激活"}}</span> | ||
| 80 | + </el-col> | ||
| 81 | + </el-row> | ||
| 82 | + | ||
| 83 | + | ||
| 83 | </el-card> | 84 | </el-card> |
| 84 | 85 | ||
| 85 | <h5Page | 86 | <h5Page |
| @@ -126,4 +127,4 @@ | @@ -126,4 +127,4 @@ | ||
| 126 | .el-select-dropdown__item{ | 127 | .el-select-dropdown__item{ |
| 127 | width:300px; | 128 | width:300px; |
| 128 | } | 129 | } |
| 129 | -</style> | ||
| 130 | \ No newline at end of file | 130 | \ No newline at end of file |
| 131 | +</style> |
trash-ui/src/views/h5/violationCaseFile/index.vue
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> | 3 | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> |
| 4 | 4 | ||
| 5 | <el-form-item label="所属区域" prop="owningRegion"> | 5 | <el-form-item label="所属区域" prop="owningRegion"> |
| 6 | - <el-select v-model="queryParams.owningRegion" placeholder="请选择违规类型" size="small"> | 6 | + <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" size="small"> |
| 7 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | 7 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> |
| 8 | </el-select> | 8 | </el-select> |
| 9 | 9 |
trash-ui/src/views/h5/violationWarningInformation/index.vue
| @@ -9,7 +9,7 @@ | @@ -9,7 +9,7 @@ | ||
| 9 | </el-select> | 9 | </el-select> |
| 10 | </el-form-item> | 10 | </el-form-item> |
| 11 | <el-form-item label="所属区域" prop="owningRegion"> | 11 | <el-form-item label="所属区域" prop="owningRegion"> |
| 12 | - <el-select v-model="queryParams.owningRegion" placeholder="请选择违规类型" clearable size="small"> | 12 | + <el-select v-model="queryParams.owningRegion" placeholder="请选择所属区域" clearable size="small"> |
| 13 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | 13 | <el-option v-for="item in areas" :label="item.name" :value="item.name" /> |
| 14 | </el-select> | 14 | </el-select> |
| 15 | </el-form-item> | 15 | </el-form-item> |
trash-workFlow/src/main/java/com/trash/business/controller/SupervisionThreestepController.java
| @@ -129,7 +129,7 @@ public class SupervisionThreestepController extends BaseController | @@ -129,7 +129,7 @@ public class SupervisionThreestepController extends BaseController | ||
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | for(String out:outside){ | 131 | for(String out:outside){ |
| 132 | - if(out.equals(m.get("place"))){ | 132 | + if(out.equals(m.get("eplace"))){ |
| 133 | if(m.get("status").equals("开工")){ | 133 | if(m.get("status").equals("开工")){ |
| 134 | m.put("estatus", "开工"); | 134 | m.put("estatus", "开工"); |
| 135 | m.put("eselfCheckTime", m.get("selfCheckTime")); | 135 | m.put("eselfCheckTime", m.get("selfCheckTime")); |
trash-workFlow/src/main/java/com/trash/business/service/impl/ConstructionSignServiceImpl.java
| @@ -68,6 +68,10 @@ public class ConstructionSignServiceImpl implements IConstructionSignService | @@ -68,6 +68,10 @@ public class ConstructionSignServiceImpl implements IConstructionSignService | ||
| 68 | 68 | ||
| 69 | String sign = SecurityUtils.getLoginUser().getUser().getAvatar(); | 69 | String sign = SecurityUtils.getLoginUser().getUser().getAvatar(); |
| 70 | 70 | ||
| 71 | + if(sign.contains("null")){ | ||
| 72 | + sign = null; | ||
| 73 | + } | ||
| 74 | + | ||
| 71 | if (constructionSign.getIdx() == 0) { | 75 | if (constructionSign.getIdx() == 0) { |
| 72 | constructionSign.setSign1(sign); | 76 | constructionSign.setSign1(sign); |
| 73 | constructionSign.setSign1Time(DateUtils.getNowDate()); | 77 | constructionSign.setSign1Time(DateUtils.getNowDate()); |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| @@ -611,37 +611,92 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | @@ -611,37 +611,92 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer | ||
| 611 | 611 | ||
| 612 | JSONObject area = (JSONObject)object; | 612 | JSONObject area = (JSONObject)object; |
| 613 | 613 | ||
| 614 | - if(outside[i].equals(area.getString("name"))){ | ||
| 615 | - outside[i] = area.getString("code"); | ||
| 616 | - } | ||
| 617 | - | 614 | +// if(outside[i].equals(area.getString("name"))){ |
| 615 | +// outside[i] = area.getString("code"); | ||
| 616 | +// } | ||
| 618 | } | 617 | } |
| 619 | - | ||
| 620 | } | 618 | } |
| 621 | 619 | ||
| 622 | 620 | ||
| 623 | 621 | ||
| 624 | if(supervisionThreestep.getStatus() == 1 && supervisionThreestep.getType() == 0){ | 622 | if(supervisionThreestep.getStatus() == 1 && supervisionThreestep.getType() == 0){ |
| 623 | + | ||
| 624 | + JSONObject earthList = RemoteServerUtils.getEarthSitesInfo( supervisionThreestep.getEarthsitesId()); | ||
| 625 | + | ||
| 626 | + String eplace = null; | ||
| 627 | + | ||
| 628 | + if(earthList != null && earthList.size() > 0){ | ||
| 629 | + eplace = ((JSONObject)earthList).getString("areaName"); | ||
| 630 | + } | ||
| 631 | + | ||
| 632 | + | ||
| 625 | for(String out:outside){ | 633 | for(String out:outside){ |
| 626 | - if(out.equals(supervisionThreestep.getPlace())){ | ||
| 627 | - | ||
| 628 | - | 634 | + if(out.equals(eplace)){ |
| 629 | supervisionThreestep.setId(null); | 635 | supervisionThreestep.setId(null); |
| 636 | + | ||
| 637 | + SupervisionThreestep sp = new SupervisionThreestep(); | ||
| 630 | String name = supervisionThreestep.getName(); | 638 | String name = supervisionThreestep.getName(); |
| 631 | String objId = supervisionThreestep.getObjectId(); | 639 | String objId = supervisionThreestep.getObjectId(); |
| 632 | String eName = supervisionThreestep.getEarthsitesName(); | 640 | String eName = supervisionThreestep.getEarthsitesName(); |
| 633 | String eId = supervisionThreestep.getEarthsitesId(); | 641 | String eId = supervisionThreestep.getEarthsitesId(); |
| 634 | - supervisionThreestep.setCompanys(null); | ||
| 635 | - supervisionThreestep.setCompanyTrucks(null); | ||
| 636 | - supervisionThreestep.setType(1L); | 642 | + |
| 643 | + String start, end; | ||
| 644 | + | ||
| 645 | + Date date = new Date(); | ||
| 646 | + | ||
| 647 | + if (new Date().getHours() < 8) { | ||
| 648 | + end = yearFomat.format(date); | ||
| 649 | + date.setDate(date.getDate() - 1); | ||
| 650 | + start = yearFomat.format(date); | ||
| 651 | + } else { | ||
| 652 | + start = yearFomat.format(date); | ||
| 653 | + date.setDate(date.getDate() + 1); | ||
| 654 | + end = yearFomat.format(date); | ||
| 655 | + } | ||
| 656 | + | ||
| 657 | + end += " 4:00:00"; | ||
| 658 | + start += " 8:00:00"; | ||
| 659 | + | ||
| 660 | + try { | ||
| 661 | + sp.setWorkStartTime(yearFomat.parse(start)); | ||
| 662 | + sp.setWorkEndTime(yearFomat.parse(end)); | ||
| 663 | + } catch (Exception e) { | ||
| 664 | + // TODO Auto-generated catch block | ||
| 665 | + e.printStackTrace(); | ||
| 666 | + } | ||
| 667 | + | ||
| 668 | + sp.setEarthsitesId(objId); | ||
| 669 | + sp.setEarthsitesName(name); | ||
| 670 | + sp.setName(eName); | ||
| 671 | + sp.setObjectId(eId); | ||
| 672 | + sp.setType(1L); | ||
| 673 | + | ||
| 674 | + SupervisionThreestep todayData = supervisionThreestepMapper.selectTodayData(sp); | ||
| 675 | + | ||
| 676 | + if(todayData != null){ | ||
| 677 | + return j; | ||
| 678 | + } | ||
| 637 | 679 | ||
| 638 | supervisionThreestep.setEarthsitesId(objId); | 680 | supervisionThreestep.setEarthsitesId(objId); |
| 639 | supervisionThreestep.setEarthsitesName(name); | 681 | supervisionThreestep.setEarthsitesName(name); |
| 640 | supervisionThreestep.setName(eName); | 682 | supervisionThreestep.setName(eName); |
| 641 | supervisionThreestep.setObjectId(eId); | 683 | supervisionThreestep.setObjectId(eId); |
| 642 | - supervisionThreestep.setCheckTime(new Date()); | 684 | + |
| 685 | + | ||
| 686 | + supervisionThreestep.setCompanys(null); | ||
| 687 | + supervisionThreestep.setCompanyTrucks(null); | ||
| 688 | + supervisionThreestep.setType(1L); | ||
| 689 | + supervisionThreestep.setPlace(eplace); | ||
| 690 | + | ||
| 691 | + | ||
| 692 | + | ||
| 643 | 693 | ||
| 644 | supervisionThreestepMapper.insertSupervisionThreestep(supervisionThreestep); | 694 | supervisionThreestepMapper.insertSupervisionThreestep(supervisionThreestep); |
| 695 | + | ||
| 696 | + supervisionThreestep.setCheckTime(new Date()); | ||
| 697 | + | ||
| 698 | + supervisionThreestepMapper.updateSupervisionThreestep(supervisionThreestep); | ||
| 699 | + | ||
| 645 | 700 | ||
| 646 | return j; | 701 | return j; |
| 647 | } | 702 | } |