From b532ba8806996246ab7a0896bf34b884c47dee7e Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期二, 14 四月 2026 14:06:25 +0800
Subject: [PATCH] 试生产版本

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToAPP/InboundBoxingAction.cs |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToAPP/InboundBoxingAction.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToAPP/InboundBoxingAction.cs"
index 8b6d52a..d030bab 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToAPP/InboundBoxingAction.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/ToAPP/InboundBoxingAction.cs"
@@ -2,6 +2,7 @@
 using Newtonsoft.Json;
 using System;
 using System.Collections.Generic;
+using System.Linq;
 using System.Text;
 using WIDESEA.Common;
 using WIDESEA.Core.Enums;
@@ -53,6 +54,9 @@
                 //鐢熶骇鏃ユ湡
                 string ProductDate = saveModel.MainData["ProductDate"].ToString();
 
+                // 鏍囧噯鍊�
+                string Standard_value = saveModel.MainData["Standard_value"].ToString();
+
                 if (string.IsNullOrEmpty(madeUnit) || string.IsNullOrEmpty(materielId) || string.IsNullOrEmpty(materielType) || string.IsNullOrEmpty(NewOrOld))
                     throw new Exception($"鍘傚/杞/鍨嬪彿/妫�淇被鍨嬮兘涓嶈兘涓虹┖");
 
@@ -93,9 +97,9 @@
                     throw new Exception($"鎵樼洏鐮�:銆恵rfid}銆戝凡缁忓瓨鍦ㄤ簬绌烘墭鐩樺簱瀛樹腑,璐т綅鍙�:{conInfoEmpty.location_id}");
 
                 //鏌ユ壘璇ユ墭鐩樻槸鍚︿箣鍓嶅叆杩囧簱锛岀粍鐩樿繘搴撶殑鎵樼洏涔嬪墠蹇呴』宸茬粡鍏ヨ繃搴撶殑
-                Dt_container_head_hty head_Hty = Dt_container_head_htyRepository.Instance.FindFirst(x => x.containerhead_barcode == rfid);
-                if (head_Hty == null)
-                    throw new Exception($"鎵樼洏鐮�:銆恵rfid}銆戣鎵樼洏鏃犲叆搴撹褰曪紝鏃犳硶缁勭洏锛岃鍏堝皢鍏剁┖鎵樼洏鐘舵�佸叆搴擄紝鍦ㄥ懠鍙┖鎵樼洏鍑哄簱杩涜缁勭洏鍏ュ簱");
+                Dt_EmptyPallet dt_EmptyPallet = Dt_EmptyPalletRepository.Instance.Find(x => x.EmptyPallet_name == rfid).FirstOrDefault();
+                if (dt_EmptyPallet == null)
+                    throw new Exception($"鎵樼洏鐮�:銆恵rfid}銆�,鍦ㄦ墭鐩樼鐞嗕腑锛屾棤璇ユ墭鐩橈紝璇峰厛娣诲姞鎵樼洏淇℃伅");
 
             
                 //鍒ゆ柇杞存壙鏈夋晥鏈熸槸鍚﹁秴杩�2骞�
@@ -152,9 +156,13 @@
                     info.mesInfo_createType = "mes";
                     info.mesInfo_qrCode = qrCode;
                     info.mesInfo_createDate = DateTime.Now;
+                    info.mesInfo_bak_3 = Standard_value; // 浠ュ悗鏍囧噯鍊间粠杩欓噷鑾峰彇 鑲栦郊鏂板
 
                     Dt_mes_goods_infoRepository.Instance.Add(info, true);
 
+
+
+
                     //鑾峰彇绌鸿揣浣�
                     Dt_locationinfo emptyLocation = CommonFunction.GetEmptyLocationAction();
                     //鑾峰彇浠诲姟

--
Gitblit v1.9.3