Browse Source

移库袋贴重复检验

master
常熟吴彦祖 2 weeks ago
parent
commit
2cfb4510c3
  1. 11
      src/main/java/com/heai/modules/app/service/impl/WareHouseServiceImpl.java
  2. 27
      src/main/resources/static/js/pda/changeLocation2.js

11
src/main/java/com/heai/modules/app/service/impl/WareHouseServiceImpl.java

@ -52,6 +52,17 @@ public class WareHouseServiceImpl implements WareHouseService {
@Override
@Transactional
public void saveChangeLocationId(List<ChangeLocationData> inList){
// 袋贴重复扫描校验,写单之前拦截 - rqrq
Set<String> printLabelIdSet = new HashSet<String>();
for (int i = 0; i < inList.size(); i++) {
String printLabelId = inList.get(i).getPrintLabelId();
if (printLabelId == null || "".equals(printLabelId.trim())) {
continue;
}
if (!printLabelIdSet.add(printLabelId.trim())) {
throw new RuntimeException("袋贴有重复扫描 请退出功能重新进入操作");
}
}
String site=inList.get(0).getSite();
//查询 新的库位在不在新的仓库里面
List<LocationData> checkLocation=wareHouseDao.checkLocation(inList.get(0).getSite(),inList.get(0).getNewWareHouseId(),inList.get(0).getNewLocationId());

27
src/main/resources/static/js/pda/changeLocation2.js

@ -16,14 +16,31 @@ var inventoryData = null;
var tableList = new Array();
// 重新进入页面时清空本次扫描数据 - rqrq
function resetChangeLocationPage() {
tableList = [];
partNoData = null;
inventoryData = null;
wareHouseId = '';
$("#partNo_search").val("");
$("#wareHouse").val("");
$("#newLocation").val("");
$("#printQty").val("");
$("#qtyIssue").val("");
$("#qtyIssueKG").val("");
$("#issue_table").html("");
$("#issue_modal").modal("hide");
$("#partNo_search").focus();
}
//页面初始化
$(function(){
$("#titleName").text('移库');
resetChangeLocationPage();
});
$("#titleName").text('移库');
$("#partNo_search").focus();
window.addEventListener("pageshow", function () {
resetChangeLocationPage();
});

Loading…
Cancel
Save