|
@@ -524,6 +524,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
@Transactional
|
|
|
@Override
|
|
|
public AjaxResult doPa(PaForm paForm) {
|
|
|
+ String asnNo = ""; //入库单号
|
|
|
int flowId = paForm.getFlowId();
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
//绑定托盘
|
|
@@ -554,6 +555,10 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
//更新托盘库存到起始库位
|
|
|
invLotLocIdMapper.updateInvLotLocIdToByLotnum(inv.getLotnum(), inv.getSku(), inv.getCustomerId(), inv.getLocationId()
|
|
|
, locationTo.getId());
|
|
|
+ // 入库单号
|
|
|
+ if (flowId == Constant.FLOW_ID_ASN) {
|
|
|
+ asnNo = invLotAtt.getLotatt08();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (locationTo != null) {
|
|
@@ -567,7 +572,7 @@ public class WmsDocAsnHeaderServiceImpl implements IWmsDocAsnHeaderService {
|
|
|
if (result <= 0) {
|
|
|
throw new ServiceException("托盘绑定更新失败");
|
|
|
}
|
|
|
- return AjaxResult.success("操作成功");
|
|
|
+ return AjaxResult.success("操作成功",asnNo);
|
|
|
}
|
|
|
|
|
|
/**
|