MES.Service/service/Warehouse/MesInvItemMovesManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
MESApplication/Controllers/Warehouse/MesInvItemMovesController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
MES.Service/service/Warehouse/MesInvItemMovesManager.cs
@@ -287,9 +287,7 @@ if (sumqty > quantity) throw new Exception( "已扫条码数量或本次扫码数量:" + sumqty + " 大于申请数量:" + quantity + ",请核对!"); List<InventoryItem> scanOutShowDb = null; UseTransaction(db => { SaveMesInvItemMovesCDetails(db, query, mesInvItemMoves, @@ -314,7 +312,7 @@ .Where(s => s.Id == mesInvItemStocks.Id) .ExecuteCommand(); scanOutShowDb = ScanOutShowDb(query); var scanOutShowDb = ScanOutShowDb(query); if (CollectionUtil.IsNullOrEmpty(scanOutShowDb)) db.Updateable<MesInvItemMoves>() .SetColumns(s => s.Status == 1) @@ -326,7 +324,7 @@ }); var itemDto = new OutItemDto(); itemDto.SumItem = scanOutShowDb; //itemDto.SumItem = scanOutShowDb; if (TransctionNo == 201) itemDto.Quantity = mesInvItemStocks.Quantity; MESApplication/Controllers/Warehouse/MesInvItemMovesController.cs
@@ -13,6 +13,27 @@ { private readonly MesInvItemMovesManager m = new(); //ScanInBarcode [HttpPost("ScanInBarcode")] public ResponseResult ScanInBarcode(WarehouseQuery query) { try { dynamic resultInfos = new ExpandoObject(); resultInfos.tbBillList = m.ScanInBarcode(query); return new ResponseResult { status = 0, message = "OK", data = resultInfos }; } catch (Exception ex) { return ResponseResult.ResponseError(ex); } } [HttpPost("Audit")] public ResponseResult Audit(WarehouseQuery query) {