From 6561685f41cc0d0c1554d8ff2e3905e142af2fa0 Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期五, 06 六月 2025 11:02:45 +0800
Subject: [PATCH] Merge branch 'master' into csc

---
 Wms/Wms/Controllers/PdaAsnController.cs |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 54 insertions(+), 3 deletions(-)

diff --git a/Wms/Wms/Controllers/PdaAsnController.cs b/Wms/Wms/Controllers/PdaAsnController.cs
index 9d57717..d8829bc 100644
--- a/Wms/Wms/Controllers/PdaAsnController.cs
+++ b/Wms/Wms/Controllers/PdaAsnController.cs
@@ -8,6 +8,7 @@
 using Model.ModelVm;
 using Model.ModelVm.BllAsnVm;
 using Model.ModelVm.PdaVm;
+using Model.ModelVm.SysVm;
 using Newtonsoft.Json;
 using System;
 using System.Security.Claims;
@@ -323,8 +324,6 @@
 
 
         #endregion
-
-
 
         #region 鍏敤鏂规硶
         /// <summary>
@@ -758,7 +757,6 @@
 
         #endregion
          
-
         #region 骞冲簱鍏ュ簱
         /// <summary>
         /// 骞冲簱纭鍏ュ簱
@@ -876,5 +874,58 @@
 
 
         #endregion
+
+        #region 绾跨紪鏍囩
+        /// <summary>
+        /// 骞冲簱纭鍏ュ簱
+        /// </summary>
+        /// <param name="model">鐗╂枡缂栫爜锛涚墿鏂欏悕绉�</param>
+        /// <returns></returns>
+        [HttpPost]
+        public IActionResult GetSkuInfo(GetMaterialsVm model)
+        {
+            try
+            {
+                var models = _PdaAsnSvc.GetSkuInfo(model);
+
+                return Ok(new { code = 0, msg = "鑾峰彇鐗╂枡淇℃伅鎴愬姛!", data = models });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+
+        /// <summary>
+        /// 鐢熸垚鏂版爣绛� 骞惰繑鍥炴墦鍗版暟鎹�
+        /// </summary>
+        /// <param name="model">鏍囩淇℃伅</param>
+        /// <returns>鎵撳嵃鏁版嵁</returns>
+        [HttpPost]
+        public IActionResult AddLabels(LabelsVm model) 
+        {
+            try
+            {
+                var claimsIdentity = this.User.Identity as ClaimsIdentity;
+                if (claimsIdentity == null)
+                {
+                    throw new Exception("鏈幏鍙栧埌鐢ㄦ埛淇℃伅");
+                }
+                string UserId = claimsIdentity.FindFirst(ClaimTypes.Name)?.Value;
+                if (string.IsNullOrWhiteSpace(UserId))
+                {
+                    throw new Exception("鏈幏鍙栧埌鐢ㄦ埛淇℃伅");
+                }
+                model.userId = int.Parse(UserId);
+                var models = _PdaAsnSvc.AddLabels(model);
+
+                return Ok(new { code = 0, msg = "绠辩爜鐢熸垚鎴愬姛!", data = models });
+            }
+            catch (Exception e)
+            {
+                return Ok(new { code = 1, msg = e.Message });
+            }
+        }
+        #endregion
     }
 }

--
Gitblit v1.8.0