From fba48d2d676cd9b6d493163aef9d87f6e5090aee Mon Sep 17 00:00:00 2001
From: 如洲 陈 <1278080563@qq.com>
Date: 星期五, 12 九月 2025 19:02:00 +0800
Subject: [PATCH] 出库检和退货检验

---
 MESApplication/Controllers/QC/RKJController.cs |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/MESApplication/Controllers/QC/RKJController.cs b/MESApplication/Controllers/QC/RKJController.cs
index 3aea949..f07fc5d 100644
--- a/MESApplication/Controllers/QC/RKJController.cs
+++ b/MESApplication/Controllers/QC/RKJController.cs
@@ -364,4 +364,53 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+    /// <summary>
+    /// 鎻愪氦鍏ュ簱妫�缁撴灉
+    /// </summary>
+    /// <param name="data">鍖呭惈gid鍜寀serNo鐨凧SON瀵硅薄</param>
+    /// <returns>鎻愪氦缁撴灉</returns>
+    [HttpPost("submitRKJResult")]
+    public ResponseResult submitRKJResult([FromBody] JObject data)
+    {
+        try
+        {
+            var gid = Convert.ToDecimal(data["gid"]?.ToString());
+            var userNo = data["userNo"]?.ToString();
+
+            if (gid <= 0)
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "鍏ュ簱妫�鍗旾D涓嶈兘涓虹┖",
+                    data = null
+                };
+            }
+
+            if (string.IsNullOrEmpty(userNo))
+            {
+                return new ResponseResult
+                {
+                    status = 1,
+                    message = "鎿嶄綔浜轰笉鑳戒负绌�",
+                    data = null
+                };
+            }
+
+            dynamic resultInfos = new ExpandoObject();
+            var result = new RKJService().SubmitRKJResult(gid, userNo);
+            resultInfos.tbBillList = result;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "鎻愪氦鎴愬姛",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3