南骏 池
2025-05-27 54f23d618095bf49edc77a45ad489a555701b688
Controllers/Warehouse/InventoryController.cs
@@ -1,6 +1,7 @@
using System.Dynamic;
using Microsoft.AspNetCore.Mvc;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.service.@base;
using NewPdaSqlServer.service.Warehouse;
using NewPdaSqlServer.util;
@@ -11,6 +12,8 @@
public class InventoryController : ControllerBase
{
    private readonly InventoryManager m = new();
    private readonly MesPrintMangeer _mCf = new();
    /// <summary>
    ///     扫描库位条码的控制器方法
@@ -128,4 +131,28 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    [HttpPost("printBeginBar")]
    public ResponseResult PrintBeginBar([FromBody] dynamic query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = new ExpandoObject();
            resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(query);
            //var scanResult = m.BarCF(unity);
            resultInfos.tbBillList.cfBarInfo = m.ExecuteBeginBar(query);
            //resultInfos.tbBillList = m.ExecuteBeginBar(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
}