Commit 8d4cf0e5a851d2fa768f2a8cbb5b92332f6bda9b

Authored by mahuandong
1 parent f1031518

修改容器新增时容器enable状态

src/main/java/com/huaheng/pc/receipt/receiptContainerHeader/service/ReceiptContainerHeaderServiceImpl.java
... ... @@ -375,6 +375,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai
375 375 * 自动生成容器编码
376 376 * @return 容器编码
377 377 */
  378 + @Transactional
378 379 public String createContainer(){
379 380 String code = MessageFormat.format("{0}{1}",
380 381 "LS",
... ... @@ -387,6 +388,7 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai
387 388 container.setCreatedBy(ShiroUtils.getLoginName());
388 389 container.setLastUpdated(new Date());
389 390 container.setLastUpdatedBy(ShiroUtils.getLoginName());
  391 + container.setEnable(true);
390 392 container.setStatus("empty");
391 393 if (!containerService.save(container)){
392 394 throw new ServiceException("新增容器失败");
... ...
src/main/resources/templates/receipt/receiving/add.html
... ... @@ -70,7 +70,7 @@
70 70 <div class="form-group">
71 71 <label class="col-sm-3 control-label">定位规则:</label>
72 72 <div class="col-sm-8">
73   - <select id="locatingRule" name="locatingRule" class="form-control" th:with="list=${@FilterConfigDetailService.queryFilterConfigDetail('入库')}">
  73 + <select id="locatingRule" name="locatingRule" class="form-control" th:with="list=${@FilterConfigDetailService.queryFilterConfigDetail('locationRule')}">
74 74 <option value="">请选择</option>
75 75 <option th:each="item : ${list}" th:text="${item['description']}" th:value="${item['code']}"></option>
76 76 </select>
... ...