| | |
| | | private readonly ITaskServer _taskSvc;//任务Svc |
| | | private readonly IBllTaskSyncServer _taskSyncSvc;//任务同步Svc |
| | | private readonly IWaveMageServer _waveSvc;//任务同步Svc |
| | | private readonly IHttpServer _http;//任务同步Svc |
| | | private readonly IHttpServer _http; |
| | | public DownApiController(IOptions<ApiUrlConfig> setting, IExportNoticeServer exNoticeSvc, IPalletBindServer asnPalletBindSvc, IStockCheckServer crCheckSvc, ITaskServer taskSvc, IBllTaskSyncServer taskSyncSvc, IWaveMageServer waveSvc,IHttpServer http) |
| | | { |
| | | _config = setting.Value; |
| | |
| | | var house = _exNoticeSvc.GetHouseBySo(soNo); |
| | | if (house == "W01") |
| | | { |
| | | var list = _exNoticeSvc.IssueOutHouseMk(soNo, outMode, int.Parse(userId), _config.WcsHost + _config.IssueComApiUrl, out string str); |
| | | |
| | | return Ok(new { code = 0, msg = "str" }); |
| | | } |
| | |
| | | } |
| | | break; |
| | | case "3"://移库完成任务、优化储位 |
| | | if (model.TaskType == "3") //0:入库 1:出库 2:移库 |
| | | if (model.TaskType == "2") //0:入库 1:出库 2:移库 |
| | | { |
| | | //填写移库完成代码 |
| | | _http.MoveSuccess(model.TaskNo, 0); |
| | | return Ok(new WcsModel { StatusCode = 0, Msg = "移库完成" }); |
| | | } |
| | | break; |
| | | default: |