From 1f61b7db7c7df90929cbb7af7aa8756fded45ed3 Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期五, 27 六月 2025 08:21:56 +0800
Subject: [PATCH] 修复程序问题

---
 Pda/View/SoSetting/WorkshopOut.html |   91 ++++++++++++++++++++++++++-------------------
 1 files changed, 53 insertions(+), 38 deletions(-)

diff --git a/Pda/View/SoSetting/WorkshopOut.html b/Pda/View/SoSetting/WorkshopOut.html
index 95e1c08..54eb6c7 100644
--- a/Pda/View/SoSetting/WorkshopOut.html
+++ b/Pda/View/SoSetting/WorkshopOut.html
@@ -109,7 +109,7 @@
             <div id="content1">
                 <div id="zongDiv" class="layout-bill-info" style="height: 285px;">
                     <form class="layui-form" action="">
-                        
+
                         <div id="" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>鎵樼洏鏉$爜锛�</label>
                             <div class="layui-input-block">
@@ -124,24 +124,24 @@
                                     placeholder="璇锋壂鎻忓绠辨潯鐮�" autocomplete="off" class="layui-input">
                             </div>
                         </div>
-                        
+
                         <table class="layout-tbl-input" border="" cellspacing="" cellpadding="">
                             <tr>
                                 <td>
                                     <div id="" class="layui-form-item layout-boxinfo">
                                         <label class="layui-form-label" style=" width: 21%;" lang>鎵规:</label>
-                                        <div class="layui-input-block" style=" width: 79%;margin-left: 21%;" >
+                                        <div class="layui-input-block" style=" width: 79%;margin-left: 21%;">
                                             <input id="LotNo" type="text" disabled placeholder="" autocomplete="off"
                                                 class="layui-input">
                                         </div>
                                     </div>
                                 </td>
                             </tr>
-                            <tr>    
-                                 <td>
+                            <tr>
+                                <td>
                                     <div id="" class="layui-form-item layout-boxinfo">
                                         <label class="layui-form-label" style=" width: 21%;" lang>鐗╂枡鍚嶇О锛�</label>
-                                        <div class="layui-input-block" style=" width: 79%;margin-left: 21%;" >
+                                        <div class="layui-input-block" style=" width: 79%;margin-left: 21%;">
                                             <input id="SkuName" type="text" disabled placeholder="" autocomplete="off"
                                                 class="layui-input">
                                         </div>
@@ -169,17 +169,18 @@
             <div id="content2">
                 <div id="zongDiv2" class="layout-bill-info" style="height: 255px;">
                     <form class="layui-form" id="form2" action="">
-                       <div id="" class="layui-form-item layout-input">
+                        <div id="" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>鐗╂枡缂栫爜锛�</label>
                             <div class="layui-input-block">
-                                <input id="SkuNo" type="text" lay-verify="stock" lang langholder
-                                    placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�" autocomplete="off" class="layui-input">
+                                <input id="SkuNo" type="text" lay-verify="stock" lang langholder placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�"
+                                    autocomplete="off" class="layui-input">
                             </div>
-                        </div><div id="" class="layui-form-item layout-input">
+                        </div>
+                        <div id="" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>鎵规鍙凤細</label>
                             <div class="layui-input-block">
-                                <input id="LotNo2" type="text" lay-verify="stock" lang langholder
-                                    placeholder="璇疯緭鍏ユ壒娆�" autocomplete="off" class="layui-input">
+                                <input id="LotNo2" type="text" lay-verify="stock" lang langholder placeholder="璇疯緭鍏ユ壒娆�"
+                                    autocomplete="off" class="layui-input">
                             </div>
                         </div>
                         <div id="" class="layui-form-item layout-input">
@@ -320,7 +321,7 @@
             initLanguage()
             setLanguage()
 
-             
+
             //鏄惁杩炵画缁勬墭
             isContinue = "0";
 
@@ -388,18 +389,32 @@
 
 
             //绠辩爜鍥炶溅浜嬩欢
-            $("#BoxCode").keydown(function (e) {
-                if (e.keyCode === 13) {
-                    if ($("#BoxCode").val() == "") {
-                        layer.msg('璇峰厛鎵弿绠辩爜', {
-                            icon: 2,
-                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-                        });
-                        return
-                    } 
-                    checkBoxInfo()
+            // $("#BoxCode").keydown(function (e) {
+            //     if (e.keyCode === 13) {
+            //         if ($("#BoxCode").val() == "") {
+            //             layer.msg('璇峰厛鎵弿绠辩爜', {
+            //                 icon: 2,
+            //                 time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+            //             });
+            //             return
+            //         } 
+            //         checkBoxInfo()
+            //     }
+            // });
+
+
+            // 绠辩爜澶卞幓鐒︾偣鏃跺嚭鍙�
+            $("#BoxCode").blur(function () {
+                if ($("#BoxCode").val() == "") {
+                    layer.msg('璇峰厛鎵弿绠辩爜', {
+                        icon: 2,
+                        time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    });
+                    return
                 }
-            });
+                checkBoxInfo()
+            })
+
 
             //绠卞洖杞︿簨浠�
             function checkBoxInfo() {
@@ -407,26 +422,26 @@
                     "BoxNo": $("#BoxCode").val(),
                 }
                 sendData(IP + "/PdaSo/GetWmsBoxInfos", param, 'get', function (res) {
-                    
+
                     if (res.code == 0) { //鎴愬姛
                         $("#SkuName").val(res.data[0].SkuName);
                         $("#LotNo").val(res.data[0].LotNo);
-                        
+
                     } else { //涓嶆垚鍔�
                         layer.msg(res.msg, {
-                                icon: 2,
-                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-                            });
-                         
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        });
+
                     }
                 });
 
-            } 
-            
+            }
+
             //缁戝畾鍒版墭鐩樹簨浠�
             form.on('submit(formBind)', function (data) {
                 if (xianshiyemian == 0) {
-                    
+
                     if ($("#PalletNo").val() == "") {
                         layer.msg('璇锋壂鎻忔墭鐩樻潯鐮�', {
                             icon: 2,
@@ -456,7 +471,7 @@
                                 $("#BoxCode").val("");
                                 $("#SkuName").val("");
                                 $("#LotNo").val("");
-                                 
+
                             });
                         } else { //涓嶆垚鍔�
                             layer.msg(res.msg, {
@@ -490,12 +505,12 @@
                         });
                         return;
                     }
-                     var param = {
+                    var param = {
                         PalletNo: $("#PalletNo2").val(),
                         SkuNo: $("#SkuNo").val(),
                         LotNo: $("#LotNo2").val(),
                         SkuQty: parseFloat($("#SkuQty2").val()), //鐗╂枡鏁伴噺
-                        AreaNo:$("#area").val(),
+                        AreaNo: $("#area").val(),
                         TableType: xianshiyemian,
                     }
                     console.log(param)
@@ -510,7 +525,7 @@
                                 $("#SkuNo").val("");
                                 $("#SkuQty2").val("");
                                 $("#LotNo2").val("");
-                                 
+
                             });
                         } else { //涓嶆垚鍔�
                             layer.msg(res.msg, {
@@ -526,7 +541,7 @@
                 return false; //闃绘琛ㄥ崟璺宠浆銆傚鏋滈渶瑕佽〃鍗曡烦杞紝鍘绘帀杩欐鍗冲彲銆�
             });
 
-            
+
 
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 

--
Gitblit v1.8.0