| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Common.TaskEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO.Inbound; |
| | |
| | | /// </summary> |
| | | /// <param name="orderAddDTO"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("AddInboundOrders"), AllowAnonymous] |
| | | [HttpPost,HttpGet, Route("AddInboundOrders"), AllowAnonymous] |
| | | public WebResponseContent AddInboundOrders([FromBody] HouseInbound orderAddDTO) |
| | | { |
| | | return Service.AddInboundOrders(orderAddDTO); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("MaterielGroup")] |
| | | public WebResponseContent MaterielGroup([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.MaterielGroup(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 盘点完成入库 |
| | | /// </summary> |
| | | /// <param name="name"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("InventoryIn"), AllowAnonymous] |
| | | [HttpPost,HttpGet, Route("InventoryIn"), AllowAnonymous] |
| | | public WebResponseContent InventoryIn([FromBody] string name) |
| | | { |
| | | return Service.InventoryIn(name); |
| | | } |
| | | /// <summary> |
| | | /// 入库单据取消 |
| | | /// SMOM推送入库单据取消 |
| | | /// </summary> |
| | | /// <param name="houseCancelIn"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("CancelIn"), AllowAnonymous] |
| | | [HttpPost,HttpGet, Route("CancelIn"), AllowAnonymous] |
| | | public WebResponseContent CancelIn([FromBody] HouseCancelIn houseCancelIn) |
| | | { |
| | | return Service.CancelIn(houseCancelIn); |
| | | } |
| | | |
| | | [HttpGet, HttpPost, Route("Save"), AllowAnonymous] |
| | | public WebResponseContent Save([FromBody] AddInboundOrderModel addInboundOrder) |
| | | { |
| | | return Service.Save(addInboundOrder); |
| | | } |
| | | |
| | | [HttpGet, HttpPost, Route("FeedbackInboundCanceERP"), AllowAnonymous] |
| | | public WebResponseContent FeedbackInboundCanceERP([FromBody] int[] keys) |
| | | { |
| | | return Service.FeedbackInboundCanceERP(keys); |
| | | } |
| | | |
| | | [HttpGet, HttpPost, Route("ReceiveReturnOrder"), AllowAnonymous] |
| | | public WebResponseContent ReceiveReturnOrder([FromBody] List<HouseReturnOrder> houseReturnOrder) |
| | | { |
| | | return Service.ReceiveReturnOrder(houseReturnOrder); |
| | | } |
| | | |
| | | [HttpGet, HttpPost, Route("GetMaterielCode"), AllowAnonymous] |
| | | public WebResponseContent GetMaterielCode(int warehouseId) |
| | | { |
| | | return Service.GetMaterielCode(warehouseId); |
| | | } |
| | | |
| | | [HttpGet, HttpPost, Route("GetMaterielName"), AllowAnonymous] |
| | | public WebResponseContent GetMaterielName(int warehouseId, string materielCode) |
| | | { |
| | | return Service.GetMaterielName(warehouseId,materielCode); |
| | | } |
| | | } |
| | | } |