| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | |
| | | _splitPackageService = splitPackageService; |
| | | _outStockLockInfoService = outStockLockInfoService; |
| | | } |
| | | /// <summary> |
| | | /// è·åæççåºåºç¶æ |
| | | /// </summary> |
| | | [HttpPost("GetPalletOutboundStatus")] |
| | | public async Task<WebResponseContent> GetPalletOutboundStatus(string palletCode) |
| | | { |
| | | return await Service.GetPalletOutboundStatus(palletCode); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åæççéå®ä¿¡æ¯ |
| | |
| | | |
| | | |
| | | [HttpPost("return-to-stock")] |
| | | public async Task<WebResponseContent> ReturnToStock( ) |
| | | public async Task<WebResponseContent> ReturnToStock([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | var data= ""; |
| | | return WebResponseContent.Instance.OK("", data); |
| | | return await Service.ReturnRemaining(dto.OrderNo, dto.PalletCode, ""); |
| | | } |
| | | |
| | | [HttpPost("direct-outbound")] |
| | | public async Task<WebResponseContent> DirectOutbound([FromBody] DirectOutboundRequest dto) |
| | | { |
| | | return await Service.DirectOutbound(dto); |
| | | |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// æ£é确认 |
| | | ///// </summary> |
| | | //[HttpPost("ConfirmPicking")] |
| | | //public async Task<WebResponseContent> ConfirmPicking([FromBody] PickingConfirmRequest request) |
| | | //[HttpPost("direct-outbound")] |
| | | //public async Task<WebResponseContent> DirectOutbound([FromBody] DirectOutboundRequest dto) |
| | | //{ |
| | | // return await Service.ConfirmPicking(request); |
| | | //} |
| | | /// <summary> |
| | | /// éªè¯æ¡ç å¹¶è·åç©æä¿¡æ¯ |
| | | /// </summary> |
| | | [HttpGet("ValidateBarcode")] |
| | | public async Task<WebResponseContent> ValidateBarcode(string barcode) |
| | | { |
| | | return await Service.ValidateBarcode(barcode); |
| | | } |
| | | // return await Service.DirectOutbound(dto); |
| | | |
| | | |
| | | ///// <summary> |
| | | ///// ç´æ¥åºåº |
| | | ///// </summary> |
| | | //[HttpPost("DirectOutbound")] |
| | | //public async Task<WebResponseContent> DirectOutbound([FromBody] DirectOutboundRequest request) |
| | | //{ |
| | | // return await Service.DirectOutbound(request); |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// è·åæ£éåå² |
| | | /// </summary> |
| | | [HttpGet("GetPickingHistory")] |
| | | public async Task<WebResponseContent> GetPickingHistory(int orderId) |
| | | { |
| | | var history = await Service.GetPickingHistory(orderId); |
| | | return WebResponseContent.Instance.OK(null, history); |
| | | } |
| | | |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ¤éæ£é |
| | | /// </summary> |
| | |
| | | { |
| | | return await Service.CancelPicking(dto.OrderNo,dto.PalletCode,dto.Barcode); |
| | | } |
| | | |
| | | [HttpPost,HttpGet, Route("GetAvailablePurchaseOrders"),AllowAnonymous] |
| | | public WebResponseContent GetAvailablePurchaseOrders() |
| | | { |
| | | return Service.GetAvailablePurchaseOrders(); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("GetAvailablePickingOrders"),AllowAnonymous] |
| | | public WebResponseContent GetAvailablePickingOrders() |
| | | { |
| | | return Service.GetAvailablePickingOrders(); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("BarcodeValidate"), AllowAnonymous] |
| | | public WebResponseContent BarcodeValidate([FromBody] NoStockOutModel noStockOut) |
| | | { |
| | | return Service.BarcodeValidate(noStockOut); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("DeleteBarcode"), AllowAnonymous] |
| | | public WebResponseContent DeleteBarcode([FromBody] NoStockOutModel noStockOut) |
| | | { |
| | | return Service.DeleteBarcode(noStockOut); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("NoStockOutSubmit"), AllowAnonymous] |
| | | public WebResponseContent NoStockOutSubmit([FromBody] NoStockOutSubmit noStockOutSubmit) |
| | | { |
| | | return Service.NoStockOutSubmit(noStockOutSubmit); |
| | | } |
| | | } |
| | | } |