From 20dda69cad210c3b40d643e52ba1cbccec24b392 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 14 七月 2025 15:23:32 +0800
Subject: [PATCH] 1.携客云获取送货单默认组织写死 2.采购入库优化

---
 Controllers/QC/IpqcController.cs |  156 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 151 insertions(+), 5 deletions(-)

diff --git a/Controllers/QC/IpqcController.cs b/Controllers/QC/IpqcController.cs
index 5f9fd73..5d5eb0d 100644
--- a/Controllers/QC/IpqcController.cs
+++ b/Controllers/QC/IpqcController.cs
@@ -99,7 +99,7 @@
 
     //鏇存柊妫�楠岄」鐩璇佷俊鎭� 
     [HttpPost("updateIpqcRzxx")]
-    public ResponseResult updateIpqcRzxx(LLJDto ipqcDto)
+    public ResponseResult updateIpqcRzxx(dynamic ipqcDto)
     {
         try
         {
@@ -118,7 +118,9 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-
+    /// <summary>
+    /// 棣栨鍗曟嵁鏌ヨ
+    /// </summary>
     [HttpPost("createByWomdaa")]
     public ResponseResult CreateByWomdaa(dynamic query)
     {
@@ -138,7 +140,9 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-    
+    /// <summary>
+    /// 鑾峰彇琛ㄦ牸閰嶇疆
+    /// </summary>
     [HttpPost("GetTableConfig")]
     public ResponseResult GetTableConfig([FromBody] dynamic query)
     {
@@ -169,7 +173,9 @@
             return ResponseResult.ResponseError(ex);
         }
     }
-
+    /// <summary>
+    /// 淇濆瓨琛ㄦ牸閰嶇疆
+    /// </summary>
     [HttpPost("SaveTableConfig")]
     public ResponseResult SaveTableConfig([FromBody] dynamic query)
     {
@@ -201,6 +207,146 @@
             return ResponseResult.ResponseError(ex);
         }
     }
+    /// <summary>
+    /// 鑾峰彇璁よ瘉淇℃伅鍒楄〃
+    /// </summary>
+    [HttpPost("GetRzxxList")]
+    public ResponseResult GetRzxxList([FromBody] dynamic query)
+    {
+        try
+        {
+            if (query.mxguid == null)
+                throw new ArgumentException("妫�楠岄」鐩瓽UID涓嶈兘涓虹┖");
 
-    
+            var rzxxList = m.GetRzxxList(query.mxguid?.ToString());
+            
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList = rzxxList;
+
+            return new ResponseResult
+            {
+                status = 0,
+                message = "OK",
+                data = resultInfos
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    /// <summary>
+    /// 鏇存柊璁よ瘉淇℃伅_鐢熶骇鏃ユ湡
+    /// </summary>
+    [HttpPost("updateScDate")]
+    public ResponseResult UpdateScDate([FromBody] dynamic query)
+    {
+        try
+        {
+            if (query.mxguid == null)
+                throw new ArgumentException("妫�楠岄」鐩瓽UID涓嶈兘涓虹┖");
+            if (query.scDateValue == null)
+                throw new ArgumentException("鏃ユ湡鍙傛暟涓嶈兘涓虹┖");
+
+            var affectedRows = m.UpdateScDate(
+                query.scDateValue?.ToString(),
+                query.mxguid?.ToString()
+            );
+
+            return new ResponseResult
+            {
+                status = affectedRows > 0 ? 0 : 1,
+                message = affectedRows > 0 ? "鏃ユ湡鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+                data = new { updated = affectedRows }
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+    /// <summary>
+    /// 淇濆瓨璁よ瘉淇℃伅鐩稿叧浣跨敤鏁伴噺
+    /// </summary>
+    [HttpPost("saveIpqcrzxxNum")]
+    public ResponseResult SaveIpqcrzxxNum([FromBody] dynamic query)
+    {
+        try
+        {
+            if (query.guid == null || query.ipqcrzxxNum == null)
+                throw new ArgumentException("鍙傛暟涓嶈兘涓虹┖");
+
+            var affectedRows = m.UpdateRzxxNum(
+                query.ipqcrzxxNum?.ToString(),
+                query.guid?.ToString()
+            );
+
+            return new ResponseResult
+            {
+                status = affectedRows > 0 ? 0 : 1,
+                message = affectedRows > 0 ? "鏁伴噺鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+                data = new { updated = affectedRows }
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+    /// <summary>
+    /// 淇濆瓨鍝佹按娴嬭瘯鏄惁鏈夊紓鍛�
+    /// </summary>
+    [HttpPost("saveIpqCpscs")]
+    public ResponseResult SaveIpqCpscs([FromBody] dynamic query)
+    {
+        try
+        {
+            if (query.guid == null || query.ipqCpscs == null)
+                throw new ArgumentException("鍙傛暟涓嶈兘涓虹┖");
+
+            var affectedRows = m.UpdateCpscs(
+                query.ipqCpscs?.ToString(),
+                query.guid?.ToString()
+            );
+
+            return new ResponseResult
+            {
+                status = affectedRows > 0 ? 0 : 1,
+                message = affectedRows > 0 ? "鏄惁鏈夋棤寮傚懗鏇存柊鎴愬姛" : "鏃犳暟鎹洿鏂�",
+                data = new { updated = affectedRows }
+            };
+        }
+        catch (Exception ex)
+        {
+            return ResponseResult.ResponseError(ex);
+        }
+    }
+
+
+    /// <summary>
+    /// 鐜板満鏀舵枡鑾峰彇鍙�夊伐鍗曚俊鎭�
+    /// </summary>
+    /// <param name="query"></param>
+    /// <returns></returns>
+    [HttpPost("GetIpqcXjDaa")]
+    public ResponseResult GetIpqcXjDaa([FromBody] dynamic query)
+    {
+        try
+        {
+            dynamic resultInfos = new ExpandoObject();
+            resultInfos.tbBillList = m.GetIpqcXjDaa(query);
+            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