| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO.Outbound; |
| | |
| | | _splitPackageService = splitPackageService; |
| | | _outStockLockInfoService = outStockLockInfoService; |
| | | } |
| | | /// <summary> |
| | | /// è·åæççåºåºç¶æ |
| | | /// </summary> |
| | | [HttpGet("GetPalletOutboundStatus")] |
| | | public async Task<WebResponseContent> GetPalletOutboundStatus(string palletCode) |
| | | { |
| | | return await Service.GetPalletOutboundStatus(palletCode); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åæççéå®ä¿¡æ¯ |
| | | /// </summary> |
| | | [HttpGet("GetPalletLockInfos")] |
| | | [HttpPost("GetPalletLockInfos")] |
| | | public async Task<WebResponseContent> GetPalletLockInfos(string palletCode) |
| | | { |
| | | var lockInfos = await _outStockLockInfoService.GetPalletLockInfos(palletCode); |
| | | return WebResponseContent.Instance.OK(null, lockInfos); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ£é确认 |
| | | /// </summary> |
| | | [HttpPost("ConfirmPicking")] |
| | | public async Task<WebResponseContent> ConfirmPicking([FromBody] PickingConfirmRequest request) |
| | | |
| | | |
| | | [HttpPost("unpicked-list")] |
| | | public async Task<WebResponseContent> GetUnpickedList([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await Service.ConfirmPicking(request); |
| | | var lists= await Service.GetUnpickedList(dto.OrderNo, dto.PalletCode); |
| | | return WebResponseContent.Instance.OK("", lists); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æå
æä½ |
| | | /// </summary> |
| | | [HttpPost("SplitPackage")] |
| | | public async Task<WebResponseContent> SplitPackage([FromBody] SplitPackageRequest request) |
| | | [HttpPost("picked-list")] |
| | | public async Task<WebResponseContent> GetPickedList([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await _splitPackageService.SplitPackage(request); |
| | | var lists = await Service.GetPickedList(dto.OrderNo, dto.PalletCode); |
| | | return WebResponseContent.Instance.OK("", lists); |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// ç´æ¥åºåº |
| | | ///// </summary> |
| | | //[HttpPost("DirectOutbound")] |
| | | //public async Task<WebResponseContent> DirectOutbound([FromBody] DirectOutboundRequest request) |
| | | [HttpPost("confirm-picking")] |
| | | public async Task<WebResponseContent> ConfirmPicking([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await Service.ConfirmPicking(dto.OrderNo, dto.PalletCode, dto.Barcode); |
| | | } |
| | | |
| | | [HttpPost("picking-summary")] |
| | | public async Task<WebResponseContent> GetPickingSummary([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | var data = await Service.GetPickingSummary(dto); |
| | | return WebResponseContent.Instance.OK("", data); |
| | | } |
| | | |
| | | [HttpPost("split-package")] |
| | | public async Task<WebResponseContent> SplitPackage([FromBody] SplitPackageDto dto) |
| | | { |
| | | return await _splitPackageService.SplitPackage(dto); |
| | | |
| | | } |
| | | |
| | | [HttpPost("revert-split-package")] |
| | | public async Task<WebResponseContent> RevertSplitPackage([FromBody] RevertSplitDto dto) |
| | | { |
| | | return await _splitPackageService.RevertSplitPackage(dto.OriginalBarcode); |
| | | |
| | | |
| | | } |
| | | |
| | | [HttpPost("split-package-info")] |
| | | public async Task<WebResponseContent> GetSplitPackageInfo([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await _splitPackageService.GetSplitPackageInfo(dto.OrderNo, dto.PalletCode, dto.Barcode); |
| | | |
| | | } |
| | | |
| | | |
| | | [HttpPost("return-to-stock")] |
| | | public async Task<WebResponseContent> ReturnToStock([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await Service.ReturnRemaining(dto.OrderNo, dto.PalletCode, ""); |
| | | } |
| | | |
| | | //[HttpPost("direct-outbound")] |
| | | //public async Task<WebResponseContent> DirectOutbound([FromBody] DirectOutboundRequest dto) |
| | | //{ |
| | | // 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); |
| | | } |
| | | |
| | | // return await Service.DirectOutbound(dto); |
| | | |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// æ¤éæ£é |
| | | /// </summary> |
| | | [HttpPost("CancelPicking")] |
| | | public async Task<WebResponseContent> CancelPicking([FromBody] CancelPickingRequest request) |
| | | public async Task<WebResponseContent> CancelPicking([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | return await Service.CancelPicking(request); |
| | | return await Service.CancelPicking(dto.OrderNo,dto.PalletCode,dto.Barcode); |
| | | } |
| | | } |
| | | } |