From 9441a216b632f9fb8f549a8278fc337367a08a4e Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期三, 06 八月 2025 09:02:13 +0800 Subject: [PATCH] 1.调拨出库优化 2.其他出库优化调整 --- Controllers/Warehouse/TransferOutController.cs | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/Controllers/Warehouse/TransferOutController.cs b/Controllers/Warehouse/TransferOutController.cs index 314ce0f..dacb59c 100644 --- a/Controllers/Warehouse/TransferOutController.cs +++ b/Controllers/Warehouse/TransferOutController.cs @@ -1,6 +1,7 @@ 锘縰sing System.Dynamic; using Microsoft.AspNetCore.Mvc; using NewPdaSqlServer.Dto.service; +using NewPdaSqlServer.service.@base; using NewPdaSqlServer.service.Warehouse; using NewPdaSqlServer.util; @@ -14,6 +15,8 @@ public class TransferOutController : ControllerBase { private readonly TransferOutManager _manager = new(); + + private readonly MesPrintMangeer _mCf = new(); #region 鍩虹CRUD @@ -197,9 +200,16 @@ try { dynamic resultInfos = new ExpandoObject(); - var (form, items) = _manager.ScanMoveBarcode(query); - resultInfos.form = form; - resultInfos.items = items; + resultInfos.tbBillList = _manager.ScanMoveBarcode(query); + if (resultInfos.tbBillList.result == "2") + { + return new ResponseResult + { + status = Convert.ToInt32(resultInfos.tbBillList.result), + message = resultInfos.tbBillList.strMsg, + data = resultInfos + }; + } return new ResponseResult { status = 0, @@ -236,14 +246,16 @@ /// </remarks> /// <response code="200">鍒嗗壊鎴愬姛</response> /// <response code="400">鍒嗗壊澶辫触锛岃繑鍥炲叿浣撻敊璇俊鎭�</response> - [HttpPost("SplitBarcode")] - public ResponseResult SplitBarcode([FromBody] WarehouseQuery query) + [HttpPost("ScanCodeCF")] + public ResponseResult ScanCodeCF(WarehouseQuery query) { try { dynamic resultInfos = new ExpandoObject(); - var message = _manager.SplitBarcode(query); - resultInfos.tbBillList = message; + resultInfos.tbBillList = new ExpandoObject(); + resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(query); + var scanResult = _manager.ScanCodeCF(query); + resultInfos.tbBillList.cfBarInfo = _mCf.getCfInfo(scanResult); return new ResponseResult { status = 0, -- Gitblit v1.9.3