| | |
| | | { |
| | | return Ok(new HttpReturnModel { Success = "-1", Message = "未获取到当前操作人信息"}); |
| | | } |
| | | //验证出库口 |
| | | if (string.IsNullOrWhiteSpace(outMode)) |
| | | { |
| | | return Ok(new HttpReturnModel { Success = "-1", Message = "请选择出库地址" }); |
| | | } |
| | | |
| | | var house = _exNoticeSvc.GetHouseBySo(soNo); |
| | | if (house != "W01") |
| | | { |
| | | house= _exNoticeSvc.GetHouseByPalletNo(palletNo); |
| | | } |
| | | if (house == "W01") |
| | | { |
| | | //验证出库口 |
| | | if (string.IsNullOrWhiteSpace(outMode)) |
| | | { |
| | | return Ok(new HttpReturnModel { Success = "-1", Message = "请选择出库地址" }); |
| | | } |
| | | //var list = _exNoticeSvc.IssueOutHouseMk(soNo, outMode, int.Parse(userId), _config.WcsHost + _config.IssueComApiUrl, out string str); |
| | | |
| | | return Ok(new HttpReturnModel { Success = "0", Message = "str", Data = "list" }); |
| | | } |
| | | else if (house == "W02") |
| | | { |
| | | var list = _http.IssueOutHouseLk(soNo,soDetailId, outMode,palletNo, int.Parse(userId), _config.WcsHost + _config.IssueComApiUrl, out string str); |
| | | //验证出库口 |
| | | if (string.IsNullOrWhiteSpace(outMode)) |
| | | { |
| | | return Ok(new HttpReturnModel { Success = "-1", Message = "请选择出库地址" }); |
| | | } |
| | | var list = _http.IssueOutHouseLk(soNo, soDetailId, outMode, palletNo, int.Parse(userId), _config.WcsHost + _config.IssueComApiUrl, out string str); |
| | | |
| | | return Ok(new HttpReturnModel { Success = "0", Message = str, Data = list}); |
| | | return Ok(new HttpReturnModel { Success = "0", Message = str, Data = list }); |
| | | } |
| | | else if (house == "W04") |
| | | { |
| | | _http.IssueOutHousePk(soNo, soDetailId, palletNo, int.Parse(userId)); |
| | | return Ok(new HttpReturnModel { Success = "0", Message = "下发成功" }); |
| | | } |
| | | else |
| | | { |