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