Commit ca15ec7c17ecb957910859611f904b64abfb61ef
1 parent
cf23db8b
1
Showing
5 changed files
with
55 additions
and
16 deletions
trash-garbage/src/main/java/com/trash/garbage/controller/GarCarController.java
| @@ -51,11 +51,9 @@ public class GarCarController { | @@ -51,11 +51,9 @@ public class GarCarController { | ||
| 51 | @Autowired | 51 | @Autowired |
| 52 | private GarCarServer garCarServer; | 52 | private GarCarServer garCarServer; |
| 53 | 53 | ||
| 54 | - | ||
| 55 | public GarCarController(CarInfoServiceImpl carInfoServiceImpl) { | 54 | public GarCarController(CarInfoServiceImpl carInfoServiceImpl) { |
| 56 | this.carInfoServiceImpl = carInfoServiceImpl; | 55 | this.carInfoServiceImpl = carInfoServiceImpl; |
| 57 | } | 56 | } |
| 58 | - | ||
| 59 | @PostMapping("/list/group/by/carType") | 57 | @PostMapping("/list/group/by/carType") |
| 60 | public TableDataInfo listGroupByCarTypePost(GarCarInfoVo carInfo) throws ParseException{ | 58 | public TableDataInfo listGroupByCarTypePost(GarCarInfoVo carInfo) throws ParseException{ |
| 61 | return listGroupByCarType(carInfo); | 59 | return listGroupByCarType(carInfo); |
| @@ -65,8 +63,6 @@ public class GarCarController { | @@ -65,8 +63,6 @@ public class GarCarController { | ||
| 65 | 63 | ||
| 66 | List<GarCarInfoVo> list = garCarServer.requestGarCarInfoVo(carInfo.getCompanyId()); | 64 | List<GarCarInfoVo> list = garCarServer.requestGarCarInfoVo(carInfo.getCompanyId()); |
| 67 | 65 | ||
| 68 | - | ||
| 69 | - | ||
| 70 | // saveOrUpdateCarInfoAndDriver(list); | 66 | // saveOrUpdateCarInfoAndDriver(list); |
| 71 | 67 | ||
| 72 | TableDataInfo data = getDataTable(list); | 68 | TableDataInfo data = getDataTable(list); |
trash-garbage/src/main/java/com/trash/garbage/pojo/domain/GarOrderCar.java
| @@ -64,6 +64,11 @@ public class GarOrderCar implements Serializable { | @@ -64,6 +64,11 @@ public class GarOrderCar implements Serializable { | ||
| 64 | private String carId; | 64 | private String carId; |
| 65 | /**车辆容积*/ | 65 | /**车辆容积*/ |
| 66 | private String containerVolume; | 66 | private String containerVolume; |
| 67 | + | ||
| 68 | + | ||
| 69 | + @TableField(exist = false) | ||
| 70 | + private String plateNo; | ||
| 71 | + | ||
| 67 | 72 | ||
| 68 | /** | 73 | /** |
| 69 | * | 74 | * |
| @@ -75,7 +80,15 @@ public class GarOrderCar implements Serializable { | @@ -75,7 +80,15 @@ public class GarOrderCar implements Serializable { | ||
| 75 | 80 | ||
| 76 | 81 | ||
| 77 | 82 | ||
| 78 | - public String getGarId() { | 83 | + public String getPlateNo() { |
| 84 | + return plateNo; | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | + public void setPlateNo(String plateNo) { | ||
| 88 | + this.plateNo = plateNo; | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + public String getGarId() { | ||
| 79 | return garId; | 92 | return garId; |
| 80 | } | 93 | } |
| 81 | 94 |
trash-garbage/src/main/java/com/trash/garbage/service/impl/GarOrderServiceImpl.java
| @@ -13,7 +13,10 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | @@ -13,7 +13,10 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | ||
| 13 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 13 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| 14 | import com.github.pagehelper.PageHelper; | 14 | import com.github.pagehelper.PageHelper; |
| 15 | import com.github.pagehelper.PageInfo; | 15 | import com.github.pagehelper.PageInfo; |
| 16 | +import com.trash.carInfo.domain.CarInfo; | ||
| 16 | import com.trash.carInfo.domain.vo.CarInfoVo; | 17 | import com.trash.carInfo.domain.vo.CarInfoVo; |
| 18 | +import com.trash.carInfo.mapper.CarInfoMapper; | ||
| 19 | +import com.trash.carInfo.service.impl.CarInfoServiceImpl; | ||
| 17 | import com.trash.common.core.redis.RedisCache; | 20 | import com.trash.common.core.redis.RedisCache; |
| 18 | import com.trash.common.utils.RemoteServerUtils; | 21 | import com.trash.common.utils.RemoteServerUtils; |
| 19 | import com.trash.common.utils.SecurityUtils; | 22 | import com.trash.common.utils.SecurityUtils; |
| @@ -106,6 +109,9 @@ public class GarOrderServiceImpl extends ServiceImpl<GarOrderMapper, GarOrder> | @@ -106,6 +109,9 @@ public class GarOrderServiceImpl extends ServiceImpl<GarOrderMapper, GarOrder> | ||
| 106 | private GarAreaServer garAreaServer; | 109 | private GarAreaServer garAreaServer; |
| 107 | @Autowired | 110 | @Autowired |
| 108 | private GarOrderAssociationServiceAsync garOrderAssociationServiceAsync; | 111 | private GarOrderAssociationServiceAsync garOrderAssociationServiceAsync; |
| 112 | + | ||
| 113 | + @Autowired | ||
| 114 | + private CarInfoMapper carInfoMapper; | ||
| 109 | 115 | ||
| 110 | private FastDateFormat fastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd"); | 116 | private FastDateFormat fastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd"); |
| 111 | 117 |
trash-ui/src/api/truck_active.js
| @@ -222,6 +222,7 @@ export default { | @@ -222,6 +222,7 @@ export default { | ||
| 222 | this.companyList = []; | 222 | this.companyList = []; |
| 223 | this.truckList = []; | 223 | this.truckList = []; |
| 224 | 224 | ||
| 225 | + let checkedList = []; | ||
| 225 | 226 | ||
| 226 | constructionById(item.objectId).then(res => { | 227 | constructionById(item.objectId).then(res => { |
| 227 | for(let i in this.remoteCompanys){ | 228 | for(let i in this.remoteCompanys){ |
| @@ -233,7 +234,6 @@ export default { | @@ -233,7 +234,6 @@ export default { | ||
| 233 | if(this.remoteCompanys[i].dishonestState != 0){ | 234 | if(this.remoteCompanys[i].dishonestState != 0){ |
| 234 | credit ="(失信)"; | 235 | credit ="(失信)"; |
| 235 | } | 236 | } |
| 236 | - | ||
| 237 | this.companyList.push({ | 237 | this.companyList.push({ |
| 238 | id: res.result.transportCompanyId, | 238 | id: res.result.transportCompanyId, |
| 239 | name: res.result.transportCompany + credit, | 239 | name: res.result.transportCompany + credit, |
| @@ -241,12 +241,8 @@ export default { | @@ -241,12 +241,8 @@ export default { | ||
| 241 | }); | 241 | }); |
| 242 | break; | 242 | break; |
| 243 | } | 243 | } |
| 244 | - | ||
| 245 | } | 244 | } |
| 246 | 245 | ||
| 247 | - | ||
| 248 | - | ||
| 249 | - | ||
| 250 | let param = { | 246 | let param = { |
| 251 | companyID:res.result.transportCompanyId, | 247 | companyID:res.result.transportCompanyId, |
| 252 | auditStatus:1, | 248 | auditStatus:1, |
| @@ -267,7 +263,6 @@ export default { | @@ -267,7 +263,6 @@ export default { | ||
| 267 | continue; | 263 | continue; |
| 268 | } | 264 | } |
| 269 | 265 | ||
| 270 | - | ||
| 271 | for(let i in this.remoteCompanys){ | 266 | for(let i in this.remoteCompanys){ |
| 272 | if(this.remoteCompanys[i].id == unit.companyId){ | 267 | if(this.remoteCompanys[i].id == unit.companyId){ |
| 273 | if(this.remoteCompanys[i].auditStatus != 1){ | 268 | if(this.remoteCompanys[i].auditStatus != 1){ |
| @@ -305,9 +300,9 @@ export default { | @@ -305,9 +300,9 @@ export default { | ||
| 305 | let taList = response.rows; | 300 | let taList = response.rows; |
| 306 | for(let i = 0;i< list.length;i++){ | 301 | for(let i = 0;i< list.length;i++){ |
| 307 | //过滤勾选车辆 | 302 | //过滤勾选车辆 |
| 308 | - // if(vids.indexOf(list[i].id) == -1){ | ||
| 309 | - // continue; | ||
| 310 | - // } | 303 | + if(vids.indexOf(list[i].id) == -1){ |
| 304 | + continue; | ||
| 305 | + } | ||
| 311 | let count = 0; | 306 | let count = 0; |
| 312 | for(let j in taList){ | 307 | for(let j in taList){ |
| 313 | if(taList[j].objectId == list[i].id){ | 308 | if(taList[j].objectId == list[i].id){ |
trash-ui/src/views/gar/order/index.vue
| @@ -160,7 +160,6 @@ | @@ -160,7 +160,6 @@ | ||
| 160 | </el-form-item> | 160 | </el-form-item> |
| 161 | </el-col> | 161 | </el-col> |
| 162 | </el-row> | 162 | </el-row> |
| 163 | - | ||
| 164 | <div v-for="(carItem,index) in form.orderCarStatistics" :key="index"> | 163 | <div v-for="(carItem,index) in form.orderCarStatistics" :key="index"> |
| 165 | <el-row :gutter="20"> | 164 | <el-row :gutter="20"> |
| 166 | <el-col :span="12"> | 165 | <el-col :span="12"> |
| @@ -305,6 +304,10 @@ | @@ -305,6 +304,10 @@ | ||
| 305 | <script> | 304 | <script> |
| 306 | import { delOrder, exportOrder, getOrder, listOrder } from "@/api/gar/order"; | 305 | import { delOrder, exportOrder, getOrder, listOrder } from "@/api/gar/order"; |
| 307 | 306 | ||
| 307 | +import { | ||
| 308 | + truckList, | ||
| 309 | +} from "@/api/dict"; | ||
| 310 | + | ||
| 308 | export default { | 311 | export default { |
| 309 | name: "Order", | 312 | name: "Order", |
| 310 | data() { | 313 | data() { |
| @@ -329,6 +332,7 @@ export default { | @@ -329,6 +332,7 @@ export default { | ||
| 329 | open: false, | 332 | open: false, |
| 330 | // 是否显示弹出层 | 333 | // 是否显示弹出层 |
| 331 | openEvaluate: false, | 334 | openEvaluate: false, |
| 335 | + tList:[], | ||
| 332 | // 查询参数 | 336 | // 查询参数 |
| 333 | queryParams: { | 337 | queryParams: { |
| 334 | pageNum: 1, | 338 | pageNum: 1, |
| @@ -361,7 +365,7 @@ export default { | @@ -361,7 +365,7 @@ export default { | ||
| 361 | form: {}, | 365 | form: {}, |
| 362 | // 表单校验 | 366 | // 表单校验 |
| 363 | rules: { | 367 | rules: { |
| 364 | - } | 368 | + }, |
| 365 | }; | 369 | }; |
| 366 | }, | 370 | }, |
| 367 | created() { | 371 | created() { |
| @@ -543,6 +547,15 @@ export default { | @@ -543,6 +547,15 @@ export default { | ||
| 543 | // 开始处理 | 547 | // 开始处理 |
| 544 | processBatch(); | 548 | processBatch(); |
| 545 | }, | 549 | }, |
| 550 | + checkId(id){ | ||
| 551 | + return true; | ||
| 552 | + for(let i in this.form.garCarInfoList){ | ||
| 553 | + if(this.form.garCarInfoList[i].carId == id){ | ||
| 554 | + return true; | ||
| 555 | + } | ||
| 556 | + } | ||
| 557 | + return false; | ||
| 558 | + }, | ||
| 546 | /** 修改按钮操作 */ | 559 | /** 修改按钮操作 */ |
| 547 | handleUpdate(row) { | 560 | handleUpdate(row) { |
| 548 | this.reset(); | 561 | this.reset(); |
| @@ -559,6 +572,22 @@ export default { | @@ -559,6 +572,22 @@ export default { | ||
| 559 | this.combnationImagePath(this.form.putOnImages); | 572 | this.combnationImagePath(this.form.putOnImages); |
| 560 | this.combnationImagePath(this.form.panoramas); | 573 | this.combnationImagePath(this.form.panoramas); |
| 561 | 574 | ||
| 575 | + let param = { | ||
| 576 | + auditStatus:1, | ||
| 577 | + valid:0, | ||
| 578 | + page:1, | ||
| 579 | + size:1000, | ||
| 580 | + tag:"1", | ||
| 581 | + companyID : row.garOrderCompanyId, | ||
| 582 | + }; | ||
| 583 | + | ||
| 584 | + | ||
| 585 | + | ||
| 586 | + truckList(param).then(tres=>{ | ||
| 587 | + this.tList = tres.result.list; | ||
| 588 | + }); | ||
| 589 | + | ||
| 590 | + | ||
| 562 | this.open = true; | 591 | this.open = true; |
| 563 | this.title = "清运派单详情"; | 592 | this.title = "清运派单详情"; |
| 564 | }); | 593 | }); |