From fa7bc52240a52b1d0ab1b8a1746243fe56fdd043 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 11 九月 2025 15:06:58 +0800
Subject: [PATCH] 委外领料:1.显示当前组织2.添加工单查询列表3.添加库位列表4.(待发物料)和(物料总清单)更改为(待扫物料)和(已扫物料)5.查询列表与带出明细改为存储过程

---
 Controllers/Wom/WomdaaController.cs |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/Controllers/Wom/WomdaaController.cs b/Controllers/Wom/WomdaaController.cs
index 809832b..f5dee1c 100644
--- a/Controllers/Wom/WomdaaController.cs
+++ b/Controllers/Wom/WomdaaController.cs
@@ -1,5 +1,6 @@
 锘縰sing System.Dynamic;
 using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.Filters;
 using NewPdaSqlServer.Dto.service;
 using NewPdaSqlServer.entity;
 using NewPdaSqlServer.service.@base;
@@ -10,7 +11,7 @@
 
 [ApiController]
 [Route("api/[controller]")]
-public class WomdaaController : ControllerBase
+public class WomdaaController : BaseController
 {
     private readonly WomdaaManager m = new();
     private readonly MesPrintMangeer _mCf = new();
@@ -28,7 +29,7 @@
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = m.GetProductionPickDaa001(query);
+            resultInfos.tbBillList = m.GetProductionPickDaa001(query, RequestInfo);
             return new ResponseResult
             {
                 status = 0,
@@ -50,10 +51,13 @@
     [HttpPost("GetItemsByDaa001")]
     public ResponseResult GetItemsByDaa001(WarehouseQuery query)
     {
+        // 浠� HttpContext.Items 鑾峰彇 orgId
+        var orgId = HttpContext.Request.Headers["OrgId"].ToString();
+
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = m.GetItemsByDaa001(query);
+            resultInfos.tbBillList = m.GetItemsByDaa001(query, RequestInfo);
             return new ResponseResult
             {
                 status = 0,
@@ -108,6 +112,31 @@
             resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(query);
             var scanResult = m.ScanCodeCF(query);
             resultInfos.tbBillList.cfBarInfo = _mCf.getCfInfo(scanResult);
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+
+    /// <summary>
+    ///     鐢熶骇棰嗘枡鐐瑰嚮鐗╂枡鏄庣粏鑾峰彇鐩稿叧鏉$爜淇℃伅
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost("GetBarKwByItem")]
+    public ResponseResult GetBarKwByItem(dynamic unity)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList = m.GetBarKwByItem(unity);
             return new ResponseResult
             {
                 status = 0,
@@ -518,7 +547,7 @@
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = m.GetXcslDaa(query);
+            resultInfos.tbBillList = m.GetXcslDaa(query, RequestInfo);
             return new ResponseResult
             {
                 status = 0,

--
Gitblit v1.9.3