Commit 780c131f21d57aaed29d691335b1a1095515c203
1 parent
6d4662af
m
Showing
12 changed files
with
76 additions
and
37 deletions
trash-admin/src/main/resources/application.yml
trash-quartz/src/main/java/com/trash/quartz/task/DriverTask.java
| ... | ... | @@ -126,7 +126,11 @@ public class DriverTask |
| 126 | 126 | List<SupervisionThreestep> cs = SpringUtils.getBean(SupervisionThreestepMapper.class).selectTodayDataList(param); |
| 127 | 127 | |
| 128 | 128 | for(SupervisionThreestep c:cs){ |
| 129 | - SpringUtils.getBean(ISupervisionThreestepService.class).checkDataToActiveTruck(c,TOKEN); | |
| 129 | + try { | |
| 130 | + SpringUtils.getBean(ISupervisionThreestepService.class).checkDataToActiveTruck(c,TOKEN); | |
| 131 | + } catch (Exception e) { | |
| 132 | + // TODO: handle exception | |
| 133 | + } | |
| 130 | 134 | } |
| 131 | 135 | |
| 132 | 136 | } | ... | ... |
trash-ui/src/api/construction_credit.js
| ... | ... | @@ -18,8 +18,13 @@ import { |
| 18 | 18 | updateConstructionsites |
| 19 | 19 | } from "@/api/dict"; |
| 20 | 20 | |
| 21 | +import h5Page from '@/views/h5/Pagination'; | |
| 22 | + | |
| 21 | 23 | export default { |
| 22 | - name: "ConstructionCredit", | |
| 24 | + name: "ConstructionCredit", | |
| 25 | + components: { | |
| 26 | + h5Page | |
| 27 | + }, | |
| 23 | 28 | data() { |
| 24 | 29 | return { |
| 25 | 30 | // 遮罩层 |
| ... | ... | @@ -288,4 +293,4 @@ import { |
| 288 | 293 | }) |
| 289 | 294 | } |
| 290 | 295 | } |
| 291 | - }; | |
| 292 | 296 | \ No newline at end of file |
| 297 | + }; | ... | ... |
trash-ui/src/api/dayWorkReport.js
| 1 | + | |
| 2 | +import h5Page from '@/views/h5/Pagination'; | |
| 3 | + | |
| 4 | + | |
| 1 | 5 | import { |
| 2 | 6 | dayWorkList, |
| 3 | 7 | exportDayWorkList, |
| ... | ... | @@ -21,6 +25,9 @@ import { |
| 21 | 25 | |
| 22 | 26 | export default { |
| 23 | 27 | name: "dayWorkReport", |
| 28 | + components: { | |
| 29 | + h5Page | |
| 30 | + }, | |
| 24 | 31 | data() { |
| 25 | 32 | return { |
| 26 | 33 | // 遮罩层 |
| ... | ... | @@ -96,7 +103,7 @@ export default { |
| 96 | 103 | }, |
| 97 | 104 | created() { |
| 98 | 105 | this.getList(0); |
| 99 | - | |
| 106 | + | |
| 100 | 107 | getArea().then(res=>{ |
| 101 | 108 | this.areas = res.result; |
| 102 | 109 | }); |
| ... | ... | @@ -180,7 +187,8 @@ export default { |
| 180 | 187 | if (this.queryParams.his == 1) { |
| 181 | 188 | exportDayWorkHistoryList(data).then(res => { |
| 182 | 189 | |
| 183 | - this.loading = false; | |
| 190 | + this.loading.close(); | |
| 191 | + | |
| 184 | 192 | |
| 185 | 193 | this.queryParams.page = page; |
| 186 | 194 | this.queryParams.pageSize = size; |
| ... | ... | @@ -191,7 +199,8 @@ export default { |
| 191 | 199 | } else { |
| 192 | 200 | exportDayWorkList(data).then(res => { |
| 193 | 201 | |
| 194 | - this.loading = false; | |
| 202 | + this.loading.close(); | |
| 203 | + | |
| 195 | 204 | debugger; |
| 196 | 205 | console.log(page); |
| 197 | 206 | this.queryParams.page = page; |
| ... | ... | @@ -211,23 +220,29 @@ export default { |
| 211 | 220 | /** 查询开工报表列表 */ |
| 212 | 221 | getList(tabIdx) { |
| 213 | 222 | |
| 214 | - this.loading = true; | |
| 215 | - | |
| 223 | + this.loading = this.$loading({ | |
| 224 | + lock: true, | |
| 225 | + text: 'Loading', | |
| 226 | + spinner: 'el-icon-loading', | |
| 227 | + background: 'rgba(255, 255, 255, 0.7)' | |
| 228 | + }); | |
| 216 | 229 | // let query = this.queryParams; |
| 217 | 230 | |
| 218 | 231 | if (tabIdx == 1) { |
| 232 | + this.queryParams.pageNum = 1; | |
| 219 | 233 | this.resetQuery(); |
| 220 | 234 | this.queryParams.his = tabIdx; |
| 221 | 235 | } else if (tabIdx == 0) { |
| 236 | + this.queryParams.pageNum = 1; | |
| 222 | 237 | this.resetQuery(); |
| 223 | 238 | this.queryParams.his = tabIdx; |
| 224 | 239 | } |
| 225 | 240 | |
| 226 | 241 | dayWorkList(this.queryParams).then(response => { |
| 242 | + this.threestepList = response.rows; | |
| 227 | 243 | |
| 228 | - this.threestepList = response.rows; | |
| 244 | + this.loading.close(); | |
| 229 | 245 | |
| 230 | - this.loading = false; | |
| 231 | 246 | this.dayWorkCount = response.msg; |
| 232 | 247 | this.total = response.total; |
| 233 | 248 | }); |
| ... | ... | @@ -287,9 +302,7 @@ export default { |
| 287 | 302 | this.queryParams.earthsitesName = null; |
| 288 | 303 | this.queryParams.name = null; |
| 289 | 304 | |
| 290 | - | |
| 291 | 305 | this.resetForm("queryForm"); |
| 292 | - this.handleQuery(); | |
| 293 | 306 | }, |
| 294 | 307 | // 多选框选中数据 |
| 295 | 308 | handleSelectionChange(selection) { | ... | ... |
trash-ui/src/api/driver_credit.js
| ... | ... | @@ -8,7 +8,7 @@ import { |
| 8 | 8 | getNames, |
| 9 | 9 | historyCredit |
| 10 | 10 | } from "@/api/business/driver"; |
| 11 | - | |
| 11 | +import h5Page from '@/views/h5/Pagination'; | |
| 12 | 12 | import { |
| 13 | 13 | companyList, |
| 14 | 14 | driverList |
| ... | ... | @@ -16,6 +16,9 @@ import { |
| 16 | 16 | |
| 17 | 17 | export default { |
| 18 | 18 | name: "ConstructionCredit", |
| 19 | + components: { | |
| 20 | + h5Page | |
| 21 | + }, | |
| 19 | 22 | data() { |
| 20 | 23 | return { |
| 21 | 24 | // 遮罩层 |
| ... | ... | @@ -233,4 +236,4 @@ export default { |
| 233 | 236 | }) |
| 234 | 237 | } |
| 235 | 238 | } |
| 236 | -}; | |
| 237 | 239 | \ No newline at end of file |
| 240 | +}; | ... | ... |
trash-ui/src/api/earthsites_credit.js
| ... | ... | @@ -16,11 +16,14 @@ import { |
| 16 | 16 | earthsitesList, |
| 17 | 17 | updateEarthsites |
| 18 | 18 | } from "@/api/dict"; |
| 19 | - | |
| 19 | +import h5Page from '@/views/h5/Pagination'; | |
| 20 | 20 | import requestRemote from '@/utils/requestRemote' |
| 21 | 21 | |
| 22 | 22 | export default { |
| 23 | 23 | name: "EarthSitesCredit", |
| 24 | + components: { | |
| 25 | + h5Page | |
| 26 | + }, | |
| 24 | 27 | data() { |
| 25 | 28 | return { |
| 26 | 29 | // 遮罩层 |
| ... | ... | @@ -256,4 +259,4 @@ export default { |
| 256 | 259 | }) |
| 257 | 260 | } |
| 258 | 261 | } |
| 259 | -}; | |
| 260 | 262 | \ No newline at end of file |
| 263 | +}; | ... | ... |
trash-ui/src/api/three_step.js
| ... | ... | @@ -39,7 +39,7 @@ |
| 39 | 39 | components: { |
| 40 | 40 | threestepInfo, |
| 41 | 41 | h5Info, |
| 42 | - | |
| 42 | + | |
| 43 | 43 | h5Page |
| 44 | 44 | }, |
| 45 | 45 | data() { |
| ... | ... | @@ -196,8 +196,8 @@ |
| 196 | 196 | let arr = window.location.search.split("&"); |
| 197 | 197 | this.queryParams.pageStatus = arr[0].split("=")[1]; |
| 198 | 198 | } |
| 199 | - | |
| 200 | - | |
| 199 | + | |
| 200 | + | |
| 201 | 201 | getArea().then(res => { |
| 202 | 202 | this.areas = res.result; |
| 203 | 203 | for(let i =0;i< this.threestepList.length;i++){ |
| ... | ... | @@ -348,7 +348,6 @@ |
| 348 | 348 | |
| 349 | 349 | getConstructionTruck(item.id).then(res=>{ |
| 350 | 350 | for(let i in res.result){ |
| 351 | - debugger; | |
| 352 | 351 | this.companyList.push({id:res.result[i].companyId , name: res.result[i].companyName}); |
| 353 | 352 | for(let j in res.result[i].vehicleList){ |
| 354 | 353 | this.truckList.push({id:res.result[i].vehicleList[j].id,licenseplateNo:res.result[i].vehicleList[j].licenseplateNo,companyName:res.result[i].companyName}); |
| ... | ... | @@ -669,7 +668,6 @@ |
| 669 | 668 | }, |
| 670 | 669 | /** 修改按钮操作 */ |
| 671 | 670 | handleUpdate(row,idx) { |
| 672 | - debugger; | |
| 673 | 671 | this.reset(); |
| 674 | 672 | this.businessKey = row.id +""; |
| 675 | 673 | if(idx == 0){ | ... | ... |
trash-ui/src/api/truck_credit.js
trash-ui/src/layout/index333.vue renamed to trash-ui/src/layout/inde3x.vue
trash-ui/src/views/business/dayWorkReport/index.vue
| ... | ... | @@ -69,7 +69,7 @@ |
| 69 | 69 | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| 70 | 70 | </el-row> |
| 71 | 71 | |
| 72 | - <el-table v-loading="loading" :data="threestepList" @selection-change="handleSelectionChange"> | |
| 72 | + <el-table :data="threestepList" @selection-change="handleSelectionChange"> | |
| 73 | 73 | <el-table-column label="序号" align="center" type="index" /> |
| 74 | 74 | <el-table-column label="日期" align="center" prop="createTime" /> |
| 75 | 75 | <el-table-column label="工地名称" align="center" prop="name" /> | ... | ... |
trash-ui/src/views/h5/dayWorkReport/index.vue
| 1 | 1 | <template> |
| 2 | - <div class="app-container"> | |
| 2 | + <div class="app-container" > | |
| 3 | 3 | <el-row :gutter="10" class="mb8"> |
| 4 | 4 | <el-col :span="1.5"> |
| 5 | 5 | <el-button :class="{'el-button':true, 'el-button--primary':this.queryParams.pageStatus==0}" size="mini" |
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | |
| 29 | 29 | <el-form-item label="消纳场区属" prop="subReason"> |
| 30 | 30 | <el-select v-model="queryParams.subReason" placeholder="工地所属区域 " size="small"> |
| 31 | - <el-option v-for="item in areas" :label="item.name" :value="item.code" /> | |
| 31 | + <el-option v-for="item in areas" :label="item.name" :value="item.name" /> | |
| 32 | 32 | </el-select> |
| 33 | 33 | </el-form-item> |
| 34 | 34 | <el-form-item label="开始时间" prop="workStartTime" v-if="this.queryParams.his==1"> |
| ... | ... | @@ -108,6 +108,9 @@ |
| 108 | 108 | .el-select-dropdown__item{ |
| 109 | 109 | width:300px; |
| 110 | 110 | } |
| 111 | + .card_title{ | |
| 112 | + word-break: break-all; | |
| 113 | + } | |
| 111 | 114 | </style> |
| 112 | 115 | |
| 113 | 116 | <script src="../../../api/dayWorkReport.js" /> | ... | ... |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| ... | ... | @@ -210,21 +210,22 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 210 | 210 | // TODO Auto-generated catch block |
| 211 | 211 | e.printStackTrace(); |
| 212 | 212 | } |
| 213 | - } | |
| 214 | - if(supervisionThreestep.getHis().equals("1")){ | |
| 215 | - try { | |
| 216 | - supervisionThreestep.setWorkStartTime(dateTime.parse("2000-01-01 00:00:00")); | |
| 217 | - supervisionThreestep.setWorkEndTime(dateTime.parse("2100-01-01 00:00:00")); | |
| 218 | - } catch (ParseException e) { | |
| 219 | - // TODO Auto-generated catch block | |
| 220 | - e.printStackTrace(); | |
| 213 | + if(supervisionThreestep.getHis().equals("1")){ | |
| 214 | + try { | |
| 215 | + supervisionThreestep.setWorkStartTime(dateTime.parse("2000-01-01 00:00:00")); | |
| 216 | + supervisionThreestep.setWorkEndTime(dateTime.parse("2100-01-01 00:00:00")); | |
| 217 | + } catch (ParseException e) { | |
| 218 | + // TODO Auto-generated catch block | |
| 219 | + e.printStackTrace(); | |
| 220 | + } | |
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | - | |
| 225 | 224 | |
| 226 | 225 | List<SupervisionThreestep> allList = supervisionThreestepMapper.selectDayWorkList(supervisionThreestep); |
| 226 | + | |
| 227 | 227 | |
| 228 | + long start = new Date().getTime(); | |
| 228 | 229 | |
| 229 | 230 | List<SupervisionThreestep> constructions = new ArrayList<>(); |
| 230 | 231 | List<SupervisionThreestep> earthsites = new ArrayList<>(); |
| ... | ... | @@ -235,7 +236,6 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 235 | 236 | if(yearFomat.format(s.getSelfCheckTime()).equals(yearFomat.format(new Date()))){ |
| 236 | 237 | continue; |
| 237 | 238 | } |
| 238 | - | |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | if(s.getType() == 0){ |
| ... | ... | @@ -316,6 +316,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 316 | 316 | } |
| 317 | 317 | list.add(map); |
| 318 | 318 | } |
| 319 | + | |
| 319 | 320 | |
| 320 | 321 | List newList = new ArrayList<>(); |
| 321 | 322 | |
| ... | ... | @@ -337,6 +338,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 337 | 338 | continue; |
| 338 | 339 | |
| 339 | 340 | JSONObject con = RemoteServerUtils.getConstructionInfo(e.getEarthsitesId()); |
| 341 | + | |
| 340 | 342 | |
| 341 | 343 | map.put("id", e.getId() + ""); |
| 342 | 344 | map.put("createTime", yearFomat.format(e.getCreateTime())); |
| ... | ... | @@ -360,6 +362,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 360 | 362 | list.addAll(newList); |
| 361 | 363 | } |
| 362 | 364 | |
| 365 | + | |
| 363 | 366 | |
| 364 | 367 | List FilterList = new ArrayList<>(); |
| 365 | 368 | |
| ... | ... | @@ -403,7 +406,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 403 | 406 | FilterList.add(map); |
| 404 | 407 | |
| 405 | 408 | } |
| 406 | - | |
| 409 | + | |
| 407 | 410 | return FilterList; |
| 408 | 411 | } |
| 409 | 412 | |
| ... | ... | @@ -636,6 +639,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 636 | 639 | supervisionThreestep.setEarthsitesName(name); |
| 637 | 640 | supervisionThreestep.setName(eName); |
| 638 | 641 | supervisionThreestep.setObjectId(eId); |
| 642 | + supervisionThreestep.setCheckTime(new Date()); | |
| 639 | 643 | |
| 640 | 644 | supervisionThreestepMapper.insertSupervisionThreestep(supervisionThreestep); |
| 641 | 645 | |
| ... | ... | @@ -671,7 +675,7 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 671 | 675 | |
| 672 | 676 | List<TruckActivate> taList = truckActivateService.selectTruckActivateList(truckActivate); |
| 673 | 677 | |
| 674 | - if(taList.get(0).getActivateTime() == null){ | |
| 678 | + if(taList.size() == 0 || taList.get(0).getActivateTime() == null){ | |
| 675 | 679 | unActiveTruck += truckId + ","; |
| 676 | 680 | } |
| 677 | 681 | } |
| ... | ... | @@ -683,7 +687,9 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 683 | 687 | |
| 684 | 688 | Map<String,Object> params = new HashedMap<>(); |
| 685 | 689 | |
| 686 | - params.put("vehicleIds", unActiveTruck.split(",")); | |
| 690 | + truckArray = unActiveTruck.split(","); | |
| 691 | + | |
| 692 | + params.put("vehicleIds", truckArray); | |
| 687 | 693 | params.put("page", 1); |
| 688 | 694 | params.put("size", 9999); |
| 689 | 695 | JSONArray array = null; | ... | ... |