| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | |
| | | /// <summary> |
| | | /// è·åæççåºåºç¶æ |
| | | /// </summary> |
| | | [HttpGet("GetPalletOutboundStatus")] |
| | | [HttpPost("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); |
| | |
| | | |
| | | |
| | | |
| | | [HttpGet("unpicked-list")] |
| | | public async Task<WebResponseContent> GetUnpickedList(string orderNo, string palletCode) |
| | | [HttpPost("unpicked-list")] |
| | | public async Task<WebResponseContent> GetUnpickedList([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | var lists= await Service.GetUnpickedList(orderNo, palletCode); |
| | | var lists= await Service.GetUnpickedList(dto.OrderNo, dto.PalletCode); |
| | | return WebResponseContent.Instance.OK("", lists); |
| | | } |
| | | |
| | | [HttpGet("picked-list")] |
| | | public async Task<WebResponseContent> GetPickedList(string orderNo, string palletCode) |
| | | [HttpPost("picked-list")] |
| | | public async Task<WebResponseContent> GetPickedList([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | var lists = await Service.GetPickedList(orderNo, palletCode); |
| | | var lists = await Service.GetPickedList(dto.OrderNo, dto.PalletCode); |
| | | return WebResponseContent.Instance.OK("", lists); |
| | | } |
| | | |
| | |
| | | return await Service.ConfirmPicking(dto.OrderNo, dto.PalletCode, dto.Barcode); |
| | | } |
| | | |
| | | [HttpGet("picking-summary")] |
| | | public async Task<WebResponseContent> GetPickingSummary(string orderNo) |
| | | [HttpPost("picking-summary")] |
| | | public async Task<WebResponseContent> GetPickingSummary([FromBody] ConfirmPickingDto dto) |
| | | { |
| | | var data = await Service.GetPickingSummary(orderNo); |
| | | 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(dto); |
| | | |
| | | } |
| | | |
| | | ///// <summary> |
| | |
| | | { |
| | | return await Service.ValidateBarcode(barcode); |
| | | } |
| | | /// <summary> |
| | | /// æå
æä½ |
| | | /// </summary> |
| | | [HttpPost("SplitPackage")] |
| | | public async Task<WebResponseContent> SplitPackage([FromBody] SplitPackageDto request) |
| | | { |
| | | return await _splitPackageService.SplitPackage(request); |
| | | } |
| | | |
| | | |
| | | ///// <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); |
| | | } |
| | | } |
| | | } |