| | |
| | | Logger.Interface.Info($"U9C登录token: {input.token}"); |
| | | } |
| | | } |
| | | //List<CreateRcvBySrcASNParam> param = new() { |
| | | // new() { |
| | | // aSNToRcvTransDTOs = new(){ |
| | | // new(){ |
| | | // TransQty=new() { |
| | | // m_amount1= input.CurRevQty, |
| | | // m_uOM1 = new() { |
| | | // UOMMain = "1002212260110007", |
| | | // UOMMain_SKey=new(){ |
| | | // ID="1002212260110007", |
| | | // }, |
| | | // UOMSub_SKey = new(){ |
| | | // ID="1002212260110007", |
| | | // } |
| | | // }, |
| | | // }, |
| | | // ASNLineKey=input.ASNLineKey, |
| | | // } |
| | | // } |
| | | // } |
| | | //}; |
| | | var response = await HttpHelper.PostAsync(CreateRcvBySrcASNUrl, JsonConvert.SerializeObject(input.CreateRcvBySrcASNParam), new Dictionary<string, string>() { { "token", input.token } }); |
| | | List<CreateRcvBySrcASNParam> param = new(); |
| | | param.Add(input.CreateRcvBySrcASNParam); |
| | | var response = await HttpHelper.PostAsync(CreateRcvBySrcASNUrl, JsonConvert.SerializeObject(param), new Dictionary<string, string>() { { "token", input.token } }); |
| | | var result = JsonConvert.DeserializeObject<U9CResult2>(response.Message); |
| | | if (result != null) |
| | | { |
| | | if (result.Success && result.Data[0].IsSucess) |
| | | { |
| | | action.Data = result.Data; |
| | | Logger.Interface.Info($"新增收货单-来源ASN单接口提交Json: {JsonConvert.SerializeObject(input.CreateRcvBySrcASNParam)},返回Json: {response.Message}"); |
| | | Logger.Interface.Info($"新增收货单-来源ASN单接口提交Json: {JsonConvert.SerializeObject(param)},返回Json: {response.Message}"); |
| | | } |
| | | else |
| | | { |