Commit 527d82724bf7852565b8341a787a5fa2e3026900
1 parent
646266a0
整盘出删掉临时容器
Showing
6 changed files
with
21 additions
and
15 deletions
src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java
... | ... | @@ -513,7 +513,7 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont |
513 | 513 | Wave wave = waveService.getById(item.getWaveId()); |
514 | 514 | wave.setStatus(999); |
515 | 515 | waveService.updateById(wave); |
516 | - return AjaxResult.error("主单为"+item.getShipmentCode()+"子单id为"+item.getId() + "的单据没有库存,波次失败"); | |
516 | + throw new ServiceException("主单为"+item.getShipmentCode()+"子单id为"+item.getId() + "的单据没有库存,波次失败"); | |
517 | 517 | } |
518 | 518 | if (inventoryList.size() < 1) { |
519 | 519 | num = num + 1; |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/service/TaskHeaderServiceImpl.java
... | ... | @@ -426,7 +426,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
426 | 426 | throw new ServiceException("任务(" + taskId + ")任务已经是完成的!"); |
427 | 427 | } |
428 | 428 | //如果没有库位不能完成 |
429 | - if (StringUtils.isEmpty(task.getToLocation())) { | |
429 | + if (StringUtils.isEmpty(task.getFromLocation())) { | |
430 | 430 | throw new ServiceException("任务" + taskId + "没有库位,执行中止"); |
431 | 431 | } |
432 | 432 | this.completeTask(task); |
... | ... | @@ -1273,13 +1273,11 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
1273 | 1273 | task.setLastUpdated(new Date()); |
1274 | 1274 | taskHeaderService.updateById(task); |
1275 | 1275 | |
1276 | - //如果是临时容器出库完成后删除容器 | |
1277 | - containerService.removeByCode(task.getContainerCode()); | |
1278 | 1276 | |
1279 | 1277 | //将库位状态改为空闲,如果是整出的对应的容器也清空 |
1280 | 1278 | |
1281 | 1279 | LambdaQueryWrapper<Location> lam=Wrappers.lambdaQuery(); |
1282 | - lam.eq(Location::getCode,task.getToLocation()); | |
1280 | + lam.eq(Location::getCode,task.getFromLocation()); | |
1283 | 1281 | Location locationRecord = locationService.getOne(lam); |
1284 | 1282 | if(lam == null){ |
1285 | 1283 | throw new ServiceException("系统没有"+task.getToLocation()+"库位"); |
... | ... |
src/main/resources/static/huaheng/js/common.js
... | ... | @@ -23,8 +23,10 @@ $(function(){ |
23 | 23 | var laydate = layui.laydate; |
24 | 24 | var day1 = new Date(); |
25 | 25 | day1.setTime(day1.getTime()-24*60*60*1000*7); |
26 | + var endDay = new Date(); | |
27 | + endDay.setTime(endDay.getTime()+24*60*60*1000); | |
26 | 28 | laydate.render({ elem: '#startTime', theme: 'molv',value: new Date(day1), isInitValue: true}); |
27 | - laydate.render({ elem: '#endTime', theme: 'molv',value: new Date(), isInitValue: true }); | |
29 | + laydate.render({ elem: '#endTime', theme: 'molv',value: new Date(endDay), isInitValue: true }); | |
28 | 30 | }); |
29 | 31 | } |
30 | 32 | }); |
... | ... |
src/main/resources/templates/shipment/wave/wave.html
... | ... | @@ -229,7 +229,7 @@ |
229 | 229 | return v.id; |
230 | 230 | }).join(',') |
231 | 231 | }; |
232 | - localSubmit(url, "post", "json", data); | |
232 | + $.operate.submit(url, "post", "json", data); | |
233 | 233 | } |
234 | 234 | |
235 | 235 | |
... | ... | @@ -246,7 +246,7 @@ |
246 | 246 | return v.id; |
247 | 247 | }).join(',') |
248 | 248 | }; |
249 | - localSubmit(url, "post", "json", data); | |
249 | + $.operate.submit(url, "post", "json", data); | |
250 | 250 | } |
251 | 251 | </script> |
252 | 252 | </body> |
... | ... |
src/main/resources/templates/task/task/task.html
src/main/resources/templates/task/taskHeader/taskHeader.html
... | ... | @@ -30,9 +30,11 @@ |
30 | 30 | <li> |
31 | 31 | 容器编号:<input type="text" name="containerCode"/> |
32 | 32 | </li> |
33 | - | |
33 | + <li> | |
34 | + 源库位编号:<input type="text" name="fromLocation"/> | |
35 | + </li> | |
34 | 36 | <li> |
35 | - 库位编号:<input type="text" name="toLocation"/> | |
37 | + 目的库位编号:<input type="text" name="toLocation"/> | |
36 | 38 | </li> |
37 | 39 | <li class="time" style="height: 30px"> |
38 | 40 | <label>创建时间: </label> |
... | ... | @@ -170,9 +172,15 @@ |
170 | 172 | } |
171 | 173 | |
172 | 174 | }, |
175 | + { | |
176 | + field : 'fromLocation', | |
177 | + title : '源库位号', | |
178 | + visible:true | |
179 | + }, | |
180 | + | |
173 | 181 | { |
174 | 182 | field : 'toLocation', |
175 | - title : '库位号', | |
183 | + title : '目的库位号', | |
176 | 184 | visible:true |
177 | 185 | }, |
178 | 186 | { |
... | ... | @@ -210,8 +218,7 @@ |
210 | 218 | }, |
211 | 219 | { |
212 | 220 | field : 'userDef1', |
213 | - title : '自定义字段1' , | |
214 | - visible:false | |
221 | + title : '处理' , | |
215 | 222 | }, |
216 | 223 | { |
217 | 224 | field : 'userDef2', |
... | ... |