From b2be3b6939b4382f9165c78857a072f1aa7b01d0 Mon Sep 17 00:00:00 2001
From: zyf <1071160500@qq.com>
Date: 星期六, 12 四月 2025 12:34:02 +0800
Subject: [PATCH] 更新平板功能,首检页面生成巡检单

---
 MESApplication/Controllers/WomdaaController.cs |   42 ++++++++++++++++++++++++++++++++++++++----
 1 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/MESApplication/Controllers/WomdaaController.cs b/MESApplication/Controllers/WomdaaController.cs
index b2ac255..fda3e60 100644
--- a/MESApplication/Controllers/WomdaaController.cs
+++ b/MESApplication/Controllers/WomdaaController.cs
@@ -1,4 +1,5 @@
 锘縰sing System.Dynamic;
+using MES.Service.Dto.service;
 using MES.Service.Modes;
 using MES.Service.service;
 using MES.Service.util;
@@ -12,14 +13,45 @@
 {
     private readonly WomdaaManager m = new();
 
-    //TestUpdate
-    [HttpPost("TestUpdate")]
-    public ResponseResult TestUpdate([FromBody] Womdaa data)
+    #region 鐢熶骇棰嗘枡
+
+    //GetProductionPickDaa001
+    /// <summary>
+    ///     妯$硦鏌ヨ宸ュ崟鍙峰苟杩斿洖
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost("GetProductionPickDaa001")]
+    public ResponseResult GetProductionPickDaa001(WarehouseQuery query)
     {
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            resultInfos.tbBillList = m.TestUpdate(data);
+            resultInfos.tbBillList = m.GetProductionPickDaa001(query);
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    //GetItemsByDaa001
+    /// <summary>
+    ///     鏍规嵁宸ュ崟鍙疯幏鍙栦唬棰嗙墿鏂欐槑缁�
+    /// </summary>
+    /// <returns></returns>
+    [HttpPost("GetItemsByDaa001")]
+    public ResponseResult GetItemsByDaa001(WarehouseQuery query)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList = m.GetItemsByDaa001(query);
             return new ResponseResult
             {
                 status = 0,
@@ -177,4 +209,6 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+    #endregion
 }
\ No newline at end of file

--
Gitblit v1.9.3