From 770f02888443c1be46549f164abfd3be78a3dbd3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 25 十一月 2025 09:42:22 +0800
Subject: [PATCH] 1.标准版更新(20251125)

---
 Controllers/Warehouse/TransferOutController.cs |   63 +++++++++++++++++++++++++------
 1 files changed, 50 insertions(+), 13 deletions(-)

diff --git a/Controllers/Warehouse/TransferOutController.cs b/Controllers/Warehouse/TransferOutController.cs
index 314ce0f..fdd53dd 100644
--- a/Controllers/Warehouse/TransferOutController.cs
+++ b/Controllers/Warehouse/TransferOutController.cs
@@ -1,8 +1,10 @@
-锘縰sing System.Dynamic;
-using Microsoft.AspNetCore.Mvc;
+锘縰sing Microsoft.AspNetCore.Mvc;
 using NewPdaSqlServer.Dto.service;
+using NewPdaSqlServer.service.@base;
 using NewPdaSqlServer.service.Warehouse;
 using NewPdaSqlServer.util;
+using System.Dynamic;
+using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
 
 namespace NewPdaSqlServer.Controllers.Warehouse;
 
@@ -11,9 +13,11 @@
 /// </summary>
 [Route("api/[controller]")]
 [ApiController]
-public class TransferOutController : ControllerBase
+public class TransferOutController : BaseController
 {
     private readonly TransferOutManager _manager = new();
+
+    private readonly MesPrintMangeer _mCf = new();
 
     #region 鍩虹CRUD
 
@@ -106,12 +110,12 @@
     /// <response code="200">鎴愬姛鑾峰彇璋冩嫧鍑哄簱鍗曞彿鍒楄〃</response>
     /// <response code="400">鑾峰彇澶辫触</response>
     [HttpPost("GetTransferOutNoList")]
-    public ResponseResult GetTransferOutNoList()
+    public ResponseResult GetTransferOutNoList(WarehouseQuery query)
     {
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = _manager.GetTransferOutNoList();
+            resultInfos.tbBillList = _manager.GetTransferOutNoList(query,RequestInfo);
             return new ResponseResult
             {
                 status = 0,
@@ -152,7 +156,7 @@
         {
             dynamic resultInfos = new ExpandoObject();
             resultInfos.tbBillList =
-                _manager.GetTransferOutDetailListByBillNo(query);
+                _manager.GetTransferOutDetailListByBillNo(query,RequestInfo);
             return new ResponseResult
             {
                 status = 0,
@@ -165,6 +169,30 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+
+    [HttpPost("GetTransferInDetailListByBillNo")]
+    public ResponseResult GetTransferInDetailListByBillNo(
+    [FromBody] WarehouseQuery query)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList =
+                _manager.GetTransferInDetailListByBillNo(query);
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
 
     /// <summary>
     ///     鎵弿鏉$爜杩涜璋冩嫧鍑哄簱澶勭悊
@@ -197,9 +225,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 +271,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