From 35347311da9ca47ac614603ebf4c3ccab8cf26a2 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期三, 16 七月 2025 13:42:59 +0800
Subject: [PATCH] OQC

---
 MESApplication/Controllers/QC/RKJController.cs |   96 ++++++++++++++++++++++++++++++++++--------------
 1 files changed, 68 insertions(+), 28 deletions(-)

diff --git a/MESApplication/Controllers/QC/RKJController.cs b/MESApplication/Controllers/QC/RKJController.cs
index 435d970..df0351e 100644
--- a/MESApplication/Controllers/QC/RKJController.cs
+++ b/MESApplication/Controllers/QC/RKJController.cs
@@ -59,40 +59,40 @@
     }
 
 
-  /*  //getDaa001
-    [HttpPost("getDaa001")]
-    public ResponseResult getDaa001([FromBody] JObject data)
-    {
-        var lineNo = data["lineNo"].ToString();
-        try
-        {
-            dynamic resultInfos = new ExpandoObject();
-            var tbBillList =
-                new RKJService().GetDaa001s(lineNo);
-            resultInfos.tbBillList = tbBillList;
-            return new ResponseResult
-            {
-                status = 0,
-                message = "OK",
-                data = resultInfos
-            };
-        }
-        catch (Exception ex)
-        {
-            return ResponseResult.ResponseError(ex);
-        }
-    }
-*/
+    /*  //getDaa001
+      [HttpPost("getDaa001")]
+      public ResponseResult getDaa001([FromBody] JObject data)
+      {
+          var lineNo = data["lineNo"].ToString();
+          try
+          {
+              dynamic resultInfos = new ExpandoObject();
+              var tbBillList =
+                  new RKJService().GetDaa001s(lineNo);
+              resultInfos.tbBillList = tbBillList;
+              return new ResponseResult
+              {
+                  status = 0,
+                  message = "OK",
+                  data = resultInfos
+              };
+          }
+          catch (Exception ex)
+          {
+              return ResponseResult.ResponseError(ex);
+          }
+      }
+  */
     [HttpPost("setJYItem")]
     public ResponseResult setJYItem([FromBody] JObject data)
     {
-        var itemNo = data["itemNo"].ToString();
+        var itemId = Convert.ToDecimal(data["itemId"].ToString());
         var quantity = Convert.ToDecimal(data["quantity"].ToString());
         try
         {
             dynamic resultInfos = new ExpandoObject();
             var tbBillList =
-                new RKJService().SetItems(itemNo, quantity);
+                new RKJService().SetItems(itemId, quantity);
             resultInfos.tbBillList = tbBillList;
             return new ResponseResult
             {
@@ -135,14 +135,32 @@
         try
         {
             dynamic resultInfos = new ExpandoObject();
-            var tbBillList =
-                new RKJService().getPage(queryObj);
+            var tbBillList = new RKJService().getPage(queryObj);
             resultInfos.tbBillList = tbBillList;
             return new ResponseResult
             {
                 status = 0,
                 message = "OK",
                 data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    [HttpPost("getSearchPage")]
+    public ResponseResult getSearchPage([FromBody] XJPageResult queryObj)
+    {
+        try
+        {
+            var tbBillList = new RKJService().getSearchPage(queryObj);
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = tbBillList // 杩欓噷鐩存帴鎶� PageResult<QsItemOqcReq> 鏀捐繘鍘伙紝閲岄潰鍖呭惈 tbBillList
             };
         }
         catch (Exception ex)
@@ -364,4 +382,26 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+
+    [HttpPost("RKJQaSubmit")]
+    public ResponseResult RKJQaSubmit([FromBody] QsItem item)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            var tbBillList = new RKJService();
+            var detail021 = tbBillList.RKJQaSubmit(item);
+            resultInfos.tbBillList = detail021;
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3