Commit 4d2d9b4d0b622f91ded1738255b849f90a70befb
1 parent
fb3969ba
1111
Showing
3 changed files
with
12 additions
and
27 deletions
trash-garbage/src/main/java/com/trash/garbage/service/impl/GarOrderServiceImpl.java
| ... | ... | @@ -437,13 +437,13 @@ public class GarOrderServiceImpl extends ServiceImpl<GarOrderMapper, GarOrder> |
| 437 | 437 | // 处置场所 |
| 438 | 438 | else if (user.getGarUserType().equals(GlobalStatus.GarUserStatusEnum.DISPOSAL_SITE_USER.getDescription())) { |
| 439 | 439 | PageHelper.startPage(pageNo, pageSize); |
| 440 | - if (GlobalStatus.GarOrderStatus.ACTIVE_ORDER.getValue().equals(type) | |
| 441 | - || GlobalStatus.GarOrderStatus.SUCCESS_ORDER.getValue().equals(type)) { | |
| 440 | +// if (GlobalStatus.GarOrderStatus.ACTIVE_ORDER.getValue().equals(type) | |
| 441 | +// || GlobalStatus.GarOrderStatus.SUCCESS_ORDER.getValue().equals(type)) { | |
| 442 | 442 | List<GarOrderDisposalVo> orderList = baseMapper.queryDisposalOrderListByTelWithType(user.getGarUserTel(), type, GlobalStatus.GarOrderStatus.CANCEL_FLAG_NO.getValue()); |
| 443 | 443 | // orderList.forEach(GarOrderDisposalVo::adjustCarCount); |
| 444 | 444 | PageInfo<GarOrderDisposalVo> pageInfo = new PageInfo<GarOrderDisposalVo>(orderList, pageSize); |
| 445 | 445 | return pageInfo; |
| 446 | - } | |
| 446 | +// } | |
| 447 | 447 | } |
| 448 | 448 | return null; |
| 449 | 449 | } | ... | ... |
trash-garbage/src/main/java/com/trash/garbage/service/impl/GarUserServiceImpl.java
| ... | ... | @@ -185,6 +185,8 @@ public class GarUserServiceImpl extends ServiceImpl<GarUserMapper, GarUser> |
| 185 | 185 | nUser = new GarUser(); |
| 186 | 186 | nUser.setGarUserTel(loginDto.getTel()); |
| 187 | 187 | nUser.setGarUserDelFlag(GlobalStatus.DEL_FLAG_NO); |
| 188 | + | |
| 189 | + this.save(nUser); | |
| 188 | 190 | |
| 189 | 191 | if(loginDto.getSignin() == 1){ |
| 190 | 192 | nUser.setGarUserName(loginDto.getNickname()); |
| ... | ... | @@ -262,12 +264,12 @@ public class GarUserServiceImpl extends ServiceImpl<GarUserMapper, GarUser> |
| 262 | 264 | vo.getRuleVos().add(ruleVo); |
| 263 | 265 | |
| 264 | 266 | } |
| 265 | - for (LoginVo.RuleVo r : vo.getRuleVos()){ | |
| 266 | - //排除驾驶员、企业负责人、处理场所 | |
| 267 | - if(r.getUserType().equals(GlobalStatus.GarUserStatusEnum.DISPOSAL_SITE_USER.getDescription()) || r.getUserType().equals(GlobalStatus.GarUserStatusEnum.DRIVER_USER.getDescription()) || r.getUserType().equals(GlobalStatus.GarUserStatusEnum.RESPONSIBLE_USER.getDescription())){ | |
| 267 | +// for (LoginVo.RuleVo r : vo.getRuleVos()){ | |
| 268 | +// //排除驾驶员、企业负责人、处理场所 | |
| 269 | +// if(r.getUserType().equals(GlobalStatus.GarUserStatusEnum.DISPOSAL_SITE_USER.getDescription()) || r.getUserType().equals(GlobalStatus.GarUserStatusEnum.DRIVER_USER.getDescription()) || r.getUserType().equals(GlobalStatus.GarUserStatusEnum.RESPONSIBLE_USER.getDescription())){ | |
| 268 | 270 | vo.setTestUser(true); |
| 269 | - } | |
| 270 | - } | |
| 271 | +// } | |
| 272 | +// } | |
| 271 | 273 | |
| 272 | 274 | |
| 273 | 275 | this.saveOrUpdate(nUser); | ... | ... |
trash-ui/src/views/gar/order/index.vue
| ... | ... | @@ -191,7 +191,7 @@ |
| 191 | 191 | </el-col> |
| 192 | 192 | </el-row> |
| 193 | 193 | |
| 194 | - <el-row :gutter="20" v-if="form.currentImages"> | |
| 194 | + <el-row :gutter="20" v-if="form.currentImages && form.currentImages.length > 0"> | |
| 195 | 195 | <el-col :span="24"> |
| 196 | 196 | <el-form-item label="现场图片" prop="currentImages"> |
| 197 | 197 | <el-image style="width: 100px; height: 100px" :src="form.currentImages[0]" |
| ... | ... | @@ -285,7 +285,7 @@ |
| 285 | 285 | |
| 286 | 286 | <el-row :gutter="20" v-if="form.panoramas && form.panoramas.length > 0"> |
| 287 | 287 | <el-col :span="24"> |
| 288 | - <el-form-item label="现场图片" prop="putOnImages"> | |
| 288 | + <el-form-item label="现场图片" prop="panoramas"> | |
| 289 | 289 | <el-image style="width: 100px; height: 100px" :src="form.panoramas[0]" :preview-src-list="form.panoramas"> |
| 290 | 290 | </el-image> |
| 291 | 291 | </el-form-item> |
| ... | ... | @@ -417,7 +417,6 @@ export default { |
| 417 | 417 | this.loading = true; |
| 418 | 418 | listOrder(this.queryParams).then(response => { |
| 419 | 419 | this.orderList = response.data.list; |
| 420 | - console.log(response.data.list) | |
| 421 | 420 | this.total = response.data.total; |
| 422 | 421 | |
| 423 | 422 | // 自动加载所有订单的未发车信息 |
| ... | ... | @@ -572,22 +571,6 @@ export default { |
| 572 | 571 | this.combnationImagePath(this.form.putOnImages); |
| 573 | 572 | this.combnationImagePath(this.form.panoramas); |
| 574 | 573 | |
| 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 | - | |
| 591 | 574 | this.open = true; |
| 592 | 575 | this.title = "清运派单详情"; |
| 593 | 576 | }); | ... | ... |