<fix>[normal]优化入库请求逻辑代码
This commit is contained in:
parent
22980e9f2a
commit
3a245faa2c
|
|
@ -1,28 +1,44 @@
|
||||||
namespace WcsMain.ApiClient.DataEntity.WmsEntity;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace WcsMain.ApiClient.DataEntity.WmsEntity;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 申请入库
|
/// 申请入库
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplyInRequest
|
public class ApplyInRequest
|
||||||
{
|
{
|
||||||
|
public ApplyInRequest(string? point, string? vehicleNo, string? codeMessage = "", string? remark = "")
|
||||||
|
{
|
||||||
|
Point = point;
|
||||||
|
VehicleNo = vehicleNo;
|
||||||
|
CodeMessage = codeMessage;
|
||||||
|
Remark = remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ApplyInRequest() { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 申请点位
|
/// 申请点位
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonPropertyName("point")]
|
||||||
public string? Point { get; set; }
|
public string? Point { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 载具号
|
/// 载具号
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonPropertyName("vehicleNo")]
|
||||||
public string? VehicleNo { get; set; }
|
public string? VehicleNo { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 条码信息
|
/// 条码信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonPropertyName("codeMessage")]
|
||||||
public string? CodeMessage { get; set; }
|
public string? CodeMessage { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 备注
|
/// 备注
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[JsonPropertyName("remark")]
|
||||||
public string? Remark { get; set; }
|
public string? Remark { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -49,12 +49,7 @@ public class LoginGetData(WmsWebApiPost wmsWebApiPost) : IBaseGetData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 发送 WMS 请求入库 */
|
/* 发送 WMS 请求入库 */
|
||||||
ApplyInRequest applyInRequest = new()
|
ApplyInRequest applyInRequest = new(area, code, msg);
|
||||||
{
|
|
||||||
Point = area,
|
|
||||||
VehicleNo = code,
|
|
||||||
CodeMessage = msg
|
|
||||||
};
|
|
||||||
var postResult = _wmsWebApiPost.HttpPost<ApplyInRequest, WmsResponse>(applyInRequest, CommonData.AppConfig.ApplyEnterApiAddress ?? "");
|
var postResult = _wmsWebApiPost.HttpPost<ApplyInRequest, WmsResponse>(applyInRequest, CommonData.AppConfig.ApplyEnterApiAddress ?? "");
|
||||||
if(!postResult.IsSend || postResult.ResponseEntity == default)
|
if(!postResult.IsSend || postResult.ResponseEntity == default)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user