| | |
| | | using MailKit.Search; |
| | | using Magicodes.ExporterAndImporter.Excel.Utility; |
| | | using MailKit.Search; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | |
| | | } |
| | | |
| | | [HttpPost, Route("PalletOutboundTask"), AllowAnonymous, MethodParamsValidate] |
| | | public async Task<WebResponseContent> PalletOutboundTask(int num, int locationType) |
| | | public async Task<WebResponseContent> PalletOutboundTask(int num, int locationType, string? supplierCode = null) |
| | | { |
| | | return await Service.PalletOutboundTask(num, locationType); |
| | | return await Service.PalletOutboundTask(num, locationType, supplierCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¾åºå宿¶æç´¢ |
| | | /// </summary> |
| | | /// <param name="keyword"></param> |
| | | /// <returns></returns> |
| | | [HttpGet("SearchSupplierCode")] |
| | | public async Task<WebResponseContent> SearchSupplierCode(string keyword) |
| | | { |
| | | return await Service.SearchSupplierCode(keyword); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çæåºåºä»»å¡ |
| | |
| | | { |
| | | return await Service.TaskCancel(taskCancel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// çç¹åºååºåº |
| | | /// </summary> |
| | | /// <param name="stockViews"></param> |
| | | /// <param name="outStation"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("AreaOutbound"), AllowAnonymous] |
| | | public async Task<WebResponseContent> AreaOutbound([FromBody] List<StockViewDTO> stockViews) |
| | | { |
| | | return await Service.AreaOutbound(stockViews); |
| | | } |
| | | |
| | | |
| | | [HttpPost, HttpGet, Route("CrossAreaOutbound"), AllowAnonymous] |
| | | public async Task<WebResponseContent> CrossAreaOutbound([FromBody] List<StockViewDTO> stockViews,int targetLocationType) |
| | | { |
| | | return await Service.CrossAreaOutbound(stockViews,targetLocationType); |
| | | } |
| | | |
| | | [HttpPost("BatchOutboundByExcel")] |
| | | public async Task<WebResponseContent> BatchOutboundByExcel(IFormFile file, string outStation) |
| | | { |
| | | return await Service.BatchOutboundByExcel(file, outStation); |
| | | } |
| | | } |
| | | } |