| | |
| | | using WMS.IBLL.IPdaServer; |
| | | using WMS.Entity.DataEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using Wms.Tools; |
| | | using Microsoft.Extensions.Options; |
| | | |
| | | namespace Wms.Controllers |
| | | { |
| | |
| | | public class PdaCrController : ControllerBase |
| | | { |
| | | private readonly IPdaCrServer _pdaCrSvc; |
| | | |
| | | public PdaCrController(IPdaCrServer pdaCrSvc) |
| | | private readonly ApiUrlConfig _config; //接口交互路径 |
| | | public PdaCrController(IPdaCrServer pdaCrSvc, IOptions<ApiUrlConfig> setting) |
| | | { |
| | | _pdaCrSvc = pdaCrSvc; |
| | | _config = setting.Value; |
| | | } |
| | | |
| | | #region 盘点 |
| | |
| | | { |
| | | try |
| | | { |
| | | var list = _pdaCrSvc.GetStockCheckLogList(model.CrNo, model.CrDetail, model.PalletNo, model.BoxNo); |
| | | var list = _pdaCrSvc.GetStockCheckLogList(model.CrNo, model.CrDetail, model.PalletNo, model.BoxNo,model.isContinue); |
| | | |
| | | return Ok(new { code = 0, msg = "要盘点的箱码信息", data = list }); |
| | | } |
| | |
| | | return Ok(new { code = 1, msg = "未获取到当前操作人信息" }); |
| | | } |
| | | |
| | | _pdaCrSvc.CrSetCheck(model.CrNo, model.CrDetail, model.PalletNo, model.BoxNo, model.BoxNo3, model.Result, model.Qty, int.Parse(userId)); |
| | | _pdaCrSvc.CrSetCheck(model.CrNo, model.CrDetail, model.PalletNo, model.BoxNo, model.BoxNo3, model.Result, model.Qty,model.isContinue, int.Parse(userId)); |
| | | |
| | | return Ok(new { code = 0, msg = "盘点完成", data = "" }); |
| | | } |
| | |
| | | } |
| | | |
| | | var uId = int.Parse(userId); |
| | | _pdaCrSvc.AgvTransport(model.PalletNo, model.AreaNo, model.Ruku, uId); |
| | | _pdaCrSvc.AgvTransport(model.PalletNo, model.AreaNo, model.Ruku, uId, _config.WcsHost + _config.GenAgvSchedulingTask); |
| | | |
| | | return Ok(new { data = "", code = 0, msg = "成功" }); |
| | | } |
| | |
| | | } |
| | | |
| | | var uId = int.Parse(userId); |
| | | _pdaCrSvc.AgvTransport2(model.SoNo,model.PalletNo, model.AreaNo, uId); |
| | | _pdaCrSvc.AgvTransport2(model.SoNo,model.PalletNo, model.AreaNo, uId, _config.WcsHost + _config.GenAgvSchedulingTask); |
| | | |
| | | return Ok(new { data = "", code = 0, msg = "成功" }); |
| | | } |