using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Rhea.Common; using Tiger.Model; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Tiger.IBusiness; namespace Tiger.Api.Controllers.WMS { public partial class WMSController : ControllerBase { /// /// GetTransaction(ApiAction(Data:UserId)) /// 根据ApiAction的id返回一个客供物料入库事务 /// /// /// [HttpPost] [Route("api/[controller]/ERP/GetSecondarySupplyInfoToDDL")] public IActionResult ERP_GetSecondarySupplyInfoToDDL([FromBody] ApiAction action) { ApiAction response = new(); try { response = response.GetResponse(DI.Resolve().GetSecondarySupplyInfoToDDL(action?.Data)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } [HttpPost] [Route("api/[controller]/[action]")] public async Task GetMaterialReqDetail(ReqInputParameter iParams) { ApiAction response = new(); try { response = response.GetResponse(DI.Resolve().GetMaterialReqDetail(iParams)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } /// /// 领料单过账到T100 /// /// /// [HttpPost] [Route("api/[controller]/[action]")] public async Task MaterialReqToErp(MReqPostParam action) { ApiAction response = new(); try { response = response.GetResponse(DI.Resolve().MaterialReqToErp(action)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } /// /// T100的送检单审核后推送到WMS /// /// /// [HttpPost] [Route("api/[controller]/[action]")] public IActionResult GetIqcAsync(List action) { ApiAction response = new(); try { response = response.GetResponse(DI.Resolve().GetQcReq(action)); } catch (System.Exception ex) { response = response.GetResponse().CatchExceptionWithLog(ex); } return Ok(response); } } }