Commit ca15ec7c17ecb957910859611f904b64abfb61ef

Authored by youxiw2000
1 parent cf23db8b

1

trash-garbage/src/main/java/com/trash/garbage/controller/GarCarController.java
... ... @@ -51,11 +51,9 @@ public class GarCarController {
51 51 @Autowired
52 52 private GarCarServer garCarServer;
53 53  
54   -
55 54 public GarCarController(CarInfoServiceImpl carInfoServiceImpl) {
56 55 this.carInfoServiceImpl = carInfoServiceImpl;
57 56 }
58   -
59 57 @PostMapping("/list/group/by/carType")
60 58 public TableDataInfo listGroupByCarTypePost(GarCarInfoVo carInfo) throws ParseException{
61 59 return listGroupByCarType(carInfo);
... ... @@ -65,8 +63,6 @@ public class GarCarController {
65 63  
66 64 List<GarCarInfoVo> list = garCarServer.requestGarCarInfoVo(carInfo.getCompanyId());
67 65  
68   -
69   -
70 66 // saveOrUpdateCarInfoAndDriver(list);
71 67  
72 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 64 private String carId;
65 65 /**车辆容积*/
66 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 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 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 13 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
14 14 import com.github.pagehelper.PageHelper;
15 15 import com.github.pagehelper.PageInfo;
  16 +import com.trash.carInfo.domain.CarInfo;
16 17 import com.trash.carInfo.domain.vo.CarInfoVo;
  18 +import com.trash.carInfo.mapper.CarInfoMapper;
  19 +import com.trash.carInfo.service.impl.CarInfoServiceImpl;
17 20 import com.trash.common.core.redis.RedisCache;
18 21 import com.trash.common.utils.RemoteServerUtils;
19 22 import com.trash.common.utils.SecurityUtils;
... ... @@ -106,6 +109,9 @@ public class GarOrderServiceImpl extends ServiceImpl&lt;GarOrderMapper, GarOrder&gt;
106 109 private GarAreaServer garAreaServer;
107 110 @Autowired
108 111 private GarOrderAssociationServiceAsync garOrderAssociationServiceAsync;
  112 +
  113 + @Autowired
  114 + private CarInfoMapper carInfoMapper;
109 115  
110 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 222 this.companyList = [];
223 223 this.truckList = [];
224 224  
  225 + let checkedList = [];
225 226  
226 227 constructionById(item.objectId).then(res => {
227 228 for(let i in this.remoteCompanys){
... ... @@ -233,7 +234,6 @@ export default {
233 234 if(this.remoteCompanys[i].dishonestState != 0){
234 235 credit ="(失信)";
235 236 }
236   -
237 237 this.companyList.push({
238 238 id: res.result.transportCompanyId,
239 239 name: res.result.transportCompany + credit,
... ... @@ -241,12 +241,8 @@ export default {
241 241 });
242 242 break;
243 243 }
244   -
245 244 }
246 245  
247   -
248   -
249   -
250 246 let param = {
251 247 companyID:res.result.transportCompanyId,
252 248 auditStatus:1,
... ... @@ -267,7 +263,6 @@ export default {
267 263 continue;
268 264 }
269 265  
270   -
271 266 for(let i in this.remoteCompanys){
272 267 if(this.remoteCompanys[i].id == unit.companyId){
273 268 if(this.remoteCompanys[i].auditStatus != 1){
... ... @@ -305,9 +300,9 @@ export default {
305 300 let taList = response.rows;
306 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 306 let count = 0;
312 307 for(let j in taList){
313 308 if(taList[j].objectId == list[i].id){
... ...
trash-ui/src/views/gar/order/index.vue
... ... @@ -160,7 +160,6 @@
160 160 </el-form-item>
161 161 </el-col>
162 162 </el-row>
163   -
164 163 <div v-for="(carItem,index) in form.orderCarStatistics" :key="index">
165 164 <el-row :gutter="20">
166 165 <el-col :span="12">
... ... @@ -305,6 +304,10 @@
305 304 <script>
306 305 import { delOrder, exportOrder, getOrder, listOrder } from "@/api/gar/order";
307 306  
  307 +import {
  308 + truckList,
  309 +} from "@/api/dict";
  310 +
308 311 export default {
309 312 name: "Order",
310 313 data() {
... ... @@ -329,6 +332,7 @@ export default {
329 332 open: false,
330 333 // 是否显示弹出层
331 334 openEvaluate: false,
  335 + tList:[],
332 336 // 查询参数
333 337 queryParams: {
334 338 pageNum: 1,
... ... @@ -361,7 +365,7 @@ export default {
361 365 form: {},
362 366 // 表单校验
363 367 rules: {
364   - }
  368 + },
365 369 };
366 370 },
367 371 created() {
... ... @@ -543,6 +547,15 @@ export default {
543 547 // 开始处理
544 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 560 handleUpdate(row) {
548 561 this.reset();
... ... @@ -559,6 +572,22 @@ export default {
559 572 this.combnationImagePath(this.form.putOnImages);
560 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 591 this.open = true;
563 592 this.title = "清运派单详情";
564 593 });
... ...