Commit 042447e1f6315484722ba0079d3ba4fffd5e4765

Authored by 易文鹏
1 parent 30177bfe

成品信息批量回传添加生产类型相同的限制

src/main/java/com/huaheng/api/erp/service/TaskReturnServiceImpl.java
... ... @@ -173,10 +173,10 @@ public class TaskReturnServiceImpl implements TaskReturnService {
173 173 //拆解
174 174 } else {
175 175 //没有子条码的就取重量
176   - if (barCodeDetail.getCode().length() < 1) {
  176 + if (barCodeHeader.getReceiptNote()==-1) {
177 177 count+=barCodeDetail.getWeight().intValue();
178 178 }else{
179   - count+=list.get(i).getTotalLines();
  179 + count+=list.get(i).getReceiptNote();
180 180 }
181 181 fentity.setFstock("CK008");//拆解产物仓
182 182 }
... ...
src/main/resources/templates/barcode/barCodeHeader/barCodeHeader.html
... ... @@ -782,6 +782,10 @@
782 782 $.modal.alertWarning("【MES自建】的单据无需回传");
783 783 return;
784 784 }
  785 + if (rows[i].proType!==rows[0].proType){
  786 + $.modal.alertWarning("【生产类型】要全部相同才能批量回传");
  787 + return;
  788 + }
785 789 ids = ids + rows[i].id + ","
786 790 }
787 791 var data = { "ids": ids.substring(0, ids.length-1) };
... ...