From a04ee7ab3b4cb4e4bb73cda632233f043e7422f9 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期五, 16 五月 2025 08:31:31 +0800
Subject: [PATCH] 1.条码拆分实现无线打印拆分条码.

---
 Controllers/Warehouse/MesBarCFController.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Controllers/Warehouse/MesBarCFController.cs b/Controllers/Warehouse/MesBarCFController.cs
index adfe372..33abddd 100644
--- a/Controllers/Warehouse/MesBarCFController.cs
+++ b/Controllers/Warehouse/MesBarCFController.cs
@@ -1,9 +1,12 @@
 锘縰sing System.Dynamic;
+using Masuit.Tools.Win32.AntiVirus;
 using Microsoft.AspNetCore.Mvc;
 using NewPdaSqlServer.Dto.service;
 using NewPdaSqlServer.entity;
+using NewPdaSqlServer.service.@base;
 using NewPdaSqlServer.service.Warehouse;
 using NewPdaSqlServer.util;
+using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
 
 namespace NewPdaSqlServer.Controllers.Warehouse;
 
@@ -12,6 +15,8 @@
 public class MesBarCFController : ControllerBase
 {
     private readonly MesBarCFManager m = new();
+
+    private readonly MesPrintMangeer _mCf = new();
 
     /// <summary>
     ///     鑾峰彇鏉$爜淇℃伅鍜岀墿鏂欎俊鎭�
@@ -48,11 +53,14 @@
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = m.BarCF(unity);
+            resultInfos.tbBillList = new ExpandoObject();
+            resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(unity);
+            var scanResult = m.BarCF(unity);
+            resultInfos.tbBillList.cfBarInfo = _mCf.getCfInfo(scanResult);
             return new ResponseResult
             {
                 status = 0,
-                message = resultInfos.tbBillList,
+                message = "OK",
                 data = resultInfos
             };
         }

--
Gitblit v1.9.3