Commit 087df2e6442f8b9648bb33a05ce0222f593ac854

Authored by lichao
2 parents bf4c7bf9 48c41f3c

Merge branch 'dev' of http://61.169.120.202:8888/youxiw20000/trash into dev

trash-admin/src/main/resources/application-dev.yml
... ... @@ -89,7 +89,7 @@ spring:
89 89 # 端口,默认为6379
90 90 port: 6379
91 91 # 密码
92   - password: bsth123
  92 + password:
93 93 # 连接超时时间
94 94 timeout: 10s
95 95 database: 10
... ...
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/GarOrder.java
... ... @@ -194,8 +194,42 @@ public class GarOrder implements Serializable {
194 194  
195 195 @TableField(exist = false)
196 196 private Integer garNowCarCount;
  197 +
  198 +
197 199  
198   - /**
  200 + public String getGarOrderHandlerStatusStr() {
  201 + return garOrderHandlerStatusStr;
  202 + }
  203 +
  204 + public void setGarOrderHandlerStatusStr(String garOrderHandlerStatusStr) {
  205 + this.garOrderHandlerStatusStr = garOrderHandlerStatusStr;
  206 + }
  207 +
  208 + public String getGarCancelFlagStr() {
  209 + return garCancelFlagStr;
  210 + }
  211 +
  212 + public void setGarCancelFlagStr(String garCancelFlagStr) {
  213 + this.garCancelFlagStr = garCancelFlagStr;
  214 + }
  215 +
  216 + public Boolean getNeedFollowCar() {
  217 + return needFollowCar;
  218 + }
  219 +
  220 + public void setNeedFollowCar(Boolean needFollowCar) {
  221 + this.needFollowCar = needFollowCar;
  222 + }
  223 +
  224 + public Integer getGarNowCarCount() {
  225 + return garNowCarCount;
  226 + }
  227 +
  228 + public void setGarNowCarCount(Integer garNowCarCount) {
  229 + this.garNowCarCount = garNowCarCount;
  230 + }
  231 +
  232 + /**
199 233 * 是否有用户的评价,默认值是0,默认没有
200 234 *
201 235 * @author liujun
... ...
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;
... ... @@ -111,6 +114,8 @@ public class GarOrderServiceImpl extends ServiceImpl&lt;GarOrderMapper, GarOrder&gt;
111 114 @Autowired
112 115 private GarOrderAssociationServiceAsync garOrderAssociationServiceAsync;
113 116 @Autowired
  117 + private CarInfoMapper carInfoMapper;
  118 + @Autowired
114 119 private GarOrderCarMapper garOrderCarMapper;
115 120  
116 121 private FastDateFormat fastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd");
... ...
trash-ui/dist.7z 0 → 100644
No preview for this file type
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 });
... ...