From ca872bff1c1acfaf1a3106fe583a024c3865a38c Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期一, 19 二月 2024 16:36:55 +0800
Subject: [PATCH] 托盘绑定无标签绑定托盘参数赋值错误

---
 Pda/View/AsnSetting/productEnterQuantity.html |  949 +++++++++++++++++++++++++++++------------------------------
 1 files changed, 464 insertions(+), 485 deletions(-)

diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html
index 771b746..3f7a994 100644
--- a/Pda/View/AsnSetting/productEnterQuantity.html
+++ b/Pda/View/AsnSetting/productEnterQuantity.html
@@ -2,26 +2,26 @@
 <html>
 
 <head>
-	<meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" />
-	<meta charset="UTF-8" />
-	<!-- <meta name="viewport" content="width=device-width, initial-scale=0.665, minimum-scale=0.5, maximum-scale=1, user-scalable=no" /> -->
-	<!-- <meta name="viewport" content="width=device-width, initial-scale=0.665" /> -->
-	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
-	<title>Boxline PDA</title>
+    <meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" />
+    <meta charset="UTF-8" />
+    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.665, minimum-scale=0.5, maximum-scale=1, user-scalable=no" /> -->
+    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.665" /> -->
+    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
+    <title>Boxline PDA</title>
 
-	<link rel="stylesheet" href="/layui/css/layui.css" />
-	<link rel="stylesheet" href="/css/style.css" />
-	<script src="/js/adaptive.js"></script>
-	<link rel="stylesheet" href="/css/my.css" />
-	<style type="text/css">
-		td {
-			word-break: break-all;
-			word-wrap: break-word;
-		}
+    <link rel="stylesheet" href="/layui/css/layui.css" />
+    <link rel="stylesheet" href="/css/style.css" />
+    <script src="/js/adaptive.js"></script>
+    <link rel="stylesheet" href="/css/my.css" />
+    <style type="text/css">
+        td {
+            word-break: break-all;
+            word-wrap: break-word;
+        }
 
-		.layui-form-switch {
-			margin-top: 0;
-		}
+        .layui-form-switch {
+            margin-top: 0;
+        }
 
         /* 鏍囩鏍峰紡 */
         .tableyang-this a {
@@ -40,12 +40,13 @@
             border: 1px solid #ccc;
             transition: all 0.3s ease;
         }
-        
+
         .tableyang-this a.hover {
             color: #5298ff;
             background-color: #eff2ff;
             border: 1px solid #5298ff;
         }
+
         /* 鍐呭灞呬腑 */
         .tableyang-tab {
             display: flex;
@@ -54,9 +55,11 @@
             flex-direction: column;
             height: 90vh;
         }
+
         /* 蹇呯敤鏍峰紡 */
-        .tableyang-2,.tableyang-3 {
-            display: none; 
+        .tableyang-2,
+        .tableyang-3 {
+            display: none;
         }
 
         ul {
@@ -70,43 +73,40 @@
             padding: 10px;
             margin-bottom: 5px;
         }
-
-       
-
-	</style>
-	<link rel="stylesheet" href="/css/adapter.css" />
+    </style>
+    <link rel="stylesheet" href="/css/adapter.css" />
     <script src="../../js/jquery.js"></script>
     <script src="../../js/jquery-3.5.1.min.js"></script>
 </head>
 
 <body>
-	<div id="" class="main-content">
-        
-		<div id="" class="layout-title">
-			<table border="" cellspacing="" cellpadding="">
-				<tr>
-					<td class="img-back"><a href="../index.html"><img src="/assets/back.jpg"></a></td>
-					<td class="title-text" lang>鎵樼洏缁戝畾</td>
-					<td class="title-menu-icon"><img id="menuImg" src="/assets/menu.jpg"></td>
-				</tr>
-			</table>
-		</div>
-        
-		<div id="" class="layout-sub-content">
-			<div id="menuList" class="menu">
-				<ul class="" style="text-align: center;">
-					<li><a href="../index.html" lang>涓婚〉</a></li>
-					<!-- <li><a href="productEnterConfirm.html">鍏ュ簱淇℃伅纭</a></li> -->
-					<li><a href="../login.html" lang>閲嶆柊鐧诲綍</a></li>
-				</ul>
-			</div>
+    <div id="" class="main-content">
+
+        <div id="" class="layout-title">
+            <table border="" cellspacing="" cellpadding="">
+                <tr>
+                    <td class="img-back"><a href="../index.html"><img src="/assets/back.jpg"></a></td>
+                    <td class="title-text" lang>鎵樼洏缁戝畾</td>
+                    <td class="title-menu-icon"><img id="menuImg" src="/assets/menu.jpg"></td>
+                </tr>
+            </table>
+        </div>
+
+        <div id="" class="layout-sub-content">
+            <div id="menuList" class="menu">
+                <ul class="" style="text-align: center;">
+                    <li><a href="../index.html" lang>涓婚〉</a></li>
+                    <!-- <li><a href="productEnterConfirm.html">鍏ュ簱淇℃伅纭</a></li> -->
+                    <li><a href="../login.html" lang>閲嶆柊鐧诲綍</a></li>
+                </ul>
+            </div>
 
             <ul>
                 <li id="option1">鏍囩</li>
                 <li id="option2">鏁伴噺</li>
-                
+
             </ul>
-            
+
             <br />
             <!-- 鏈夌爜 -->
             <div id="content1">
@@ -130,19 +130,19 @@
                                 <img src="/assets/down_arraw.png">
                             </div>
                         </div>
-    
+
                         <div id="" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>鎵樼洏鏉$爜锛�</label>
                             <div class="layui-input-block">
-                                <input id="STOCKCODE" type="text" lay-verify="stock" lang langholder placeholder="璇锋壂鎻忔墭鐩樻潯鐮�"
-                                    autocomplete="off" class="layui-input">
+                                <input id="STOCKCODE" type="text" lay-verify="stock" lang langholder
+                                    placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" autocomplete="off" class="layui-input">
                             </div>
                         </div>
                         <div id="BOX" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>澶栫鏉$爜锛�</label>
                             <div class="layui-input-block">
-                                <input id="BOXCODE" type="text" lay-verify="required" lang langholder placeholder="璇锋壂鎻忓绠辨潯鐮�"
-                                    autocomplete="off" class="layui-input">
+                                <input id="BOXCODE" type="text" lay-verify="required" lang langholder
+                                    placeholder="璇锋壂鎻忓绠辨潯鐮�" autocomplete="off" class="layui-input">
                             </div>
                         </div>
                         <div id="" class="layui-form-item layout-input">
@@ -155,11 +155,11 @@
                         <div id="BOX2" class="layui-form-item layout-input" style="display: none;">
                             <label class="layui-form-label" lang>灏剧鏉$爜锛�</label>
                             <div class="layui-input-block">
-                                <input id="BOXCODE2" type="text" lang langholder placeholder="璇锋壂鎻忓绠辨潯鐮�" autocomplete="off"
-                                    class="layui-input">
+                                <input id="BOXCODE2" type="text" lang langholder placeholder="璇锋壂鎻忓绠辨潯鐮�"
+                                    autocomplete="off" class="layui-input">
                             </div>
                         </div>
-    
+
                         <table class="layout-tbl-input" border="" cellspacing="" cellpadding="">
                             <tr>
                                 <td>
@@ -180,7 +180,7 @@
                                         </div>
                                     </div>
                                 </td>
-    
+
                             </tr>
                             <tr>
                                 <td>
@@ -202,9 +202,9 @@
                                     </div>
                                 </td>
                             </tr>
-    
+
                         </table>
-    
+
                         <table class="layout-tbl-submit" border="" cellspacing="" cellpadding="">
                             <tr>
                                 <td style="width: 23%;"></td>
@@ -213,7 +213,7 @@
                                         lay-filter="formBind">缁戝畾鍒版墭鐩�</button>
                                 </td>
                                 <td style="width: 33%;"></td>
-    
+
                             </tr>
                         </table>
                     </form>
@@ -224,7 +224,7 @@
                 <div id="" class="cut-line">
                     <img src="/assets/fengexian.png">
                 </div>
-    
+
                 <div class="layout-tbl-paging" id="">
                     <table id="tableBoxList" class="tbl-box-list" border="" cellspacing="" cellpadding="">
                         <tr>
@@ -247,17 +247,17 @@
                         </tr>
                     </table>
                     <!-- 鍒嗛〉 -->
-					<table id="tableBoxPages" class="tbl-box-pages" border="" cellspacing="" cellpadding="">
-						<tr style="display: ;">
-							<td class="page-prev">涓婁竴椤�</td>
-							<td class="page-num page-num-select">1</td>
-							<td class="page-num">2</td>
-							<td class="page-num">3</td>
-							<td class="page-num">4</td>
-							<td class="page-num">5</td>
-							<td class="page-next">涓嬩竴椤�</td>
-						</tr>
-					</table>
+                    <table id="tableBoxPages" class="tbl-box-pages" border="" cellspacing="" cellpadding="">
+                        <tr style="display: ;">
+                            <td class="page-prev">涓婁竴椤�</td>
+                            <td class="page-num page-num-select">1</td>
+                            <td class="page-num">2</td>
+                            <td class="page-num">3</td>
+                            <td class="page-num">4</td>
+                            <td class="page-num">5</td>
+                            <td class="page-next">涓嬩竴椤�</td>
+                        </tr>
+                    </table>
                 </div>
 
             </div>
@@ -287,8 +287,8 @@
                         <div id="" class="layui-form-item layout-input">
                             <label class="layui-form-label" lang>鎵樼洏鏉$爜锛�</label>
                             <div class="layui-input-block">
-                                <input id="STOCKCODE1" type="text" lay-verify="stock" lang langholder placeholder="璇锋壂鎻忔墭鐩樻潯鐮�"
-                                    autocomplete="off" class="layui-input">
+                                <input id="STOCKCODE1" type="text" lay-verify="stock" lang langholder
+                                    placeholder="璇锋壂鎻忔墭鐩樻潯鐮�" autocomplete="off" class="layui-input">
                             </div>
                         </div>
 
@@ -299,7 +299,7 @@
                                     autocomplete="off" class="layui-input">
                             </div>
                         </div>
-                       
+
                         <table class="layout-tbl-input" border="" cellspacing="" cellpadding="">
                             <tr>
                                 <td>
@@ -311,7 +311,7 @@
                                         </div>
                                     </div>
                                 </td>
-                                <td></td> 
+                                <td></td>
                             </tr>
                             <tr>
                                 <td>
@@ -347,7 +347,7 @@
                                         lay-filter="formBind">缁戝畾鍒版墭鐩�</button>
                                 </td>
                                 <td style="width: 33%;"></td>
-            
+
                             </tr>
                         </table>
 
@@ -359,7 +359,7 @@
                 <div id="" class="cut-line">
                     <img src="/assets/fengexian.png">
                 </div>
-    
+
                 <div class="layout-tbl-paging" id="">
                     <table id="tableBoxList1" class="tbl-box-list" border="" cellspacing="" cellpadding="">
                         <tr>
@@ -382,41 +382,41 @@
                         </tr>
                     </table>
                     <!-- 鍒嗛〉 -->
-					<table id="tableBoxPages1" class="tbl-box-pages" border="" cellspacing="" cellpadding="">
-						<tr style="display: ;">
-							<td class="page-prev">涓婁竴椤�</td>
-							<td class="page-num page-num-select">1</td>
-							<td class="page-num">2</td>
-							<td class="page-num">3</td>
-							<td class="page-num">4</td>
-							<td class="page-num">5</td>
-							<td class="page-next">涓嬩竴椤�</td>
-						</tr>
-					</table>
+                    <table id="tableBoxPages1" class="tbl-box-pages" border="" cellspacing="" cellpadding="">
+                        <tr style="display: ;">
+                            <td class="page-prev">涓婁竴椤�</td>
+                            <td class="page-num page-num-select">1</td>
+                            <td class="page-num">2</td>
+                            <td class="page-num">3</td>
+                            <td class="page-num">4</td>
+                            <td class="page-num">5</td>
+                            <td class="page-next">涓嬩竴椤�</td>
+                        </tr>
+                    </table>
                 </div>
 
             </div>
 
-		</div>
-	</div>
-	<script src="/js/jquery-3.5.1.min.js"></script>
-	<script src="/layui/layui.js"></script>
-	<script src="/js/public.js"></script>
-	<script src="/js/language.js"></script>
-	<script src="/js/jquery.cookie.js"></script>
-	<script>
-		layui.use(['form', 'jquery'], function () {
-			var form = layui.form
+        </div>
+    </div>
+    <script src="/js/jquery-3.5.1.min.js"></script>
+    <script src="/layui/layui.js"></script>
+    <script src="/js/public.js"></script>
+    <script src="/js/language.js"></script>
+    <script src="/js/jquery.cookie.js"></script>
+    <script>
+        layui.use(['form', 'jquery'], function () {
+            var form = layui.form
 
             /* 鏍囩鍒囨崲浠g爜 */
-            
+
             var xianshiyemian = 0;
-            
+
             $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //閫変腑鍚庨鑹�
             $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
             $('#content2').hide();
-            $(document).ready(function() {
-                $('#option1').click(function() {
+            $(document).ready(function () {
+                $('#option1').click(function () {
                     // qingkong();
                     xianshiyemian = 0;
                     $('#content1').show();
@@ -426,7 +426,7 @@
                     $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //榛樿棰滆壊
                 });
 
-                $('#option2').click(function() {
+                $('#option2').click(function () {
                     // qingkong();
                     xianshiyemian = 1;
                     $('#content1').hide();
@@ -434,12 +434,12 @@
 
                     $('#content2').show();
                     $('#option2').attr("style", "background-color: aqua;width: 45.77%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
-                    
+
                 });
             });
 
             //娓呮鏂囨湰妗嗕腑鏁版嵁
-			// function clear() {	
+            // function clear() {	
             //     if (xianshiyemian == "0")
             //     {
             //         $("#BOXCODE").val("");
@@ -460,32 +460,32 @@
             //         $("#ImportFactQuantity").val("");
             //         $("#BoxQty").val("");
             //     }
-				
-			// }
-            
+
+            // }
+
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 
-			initLanguage()
-			setLanguage()
+            initLanguage()
+            setLanguage()
 
-			//褰撳墠鍒嗛〉
-			var curPageIndex = 1;
-			//鏄惁杩炵画缁勬墭
-			isContinue = "0";
+            //褰撳墠鍒嗛〉
+            var curPageIndex = 1;
+            //鏄惁杩炵画缁勬墭
+            isContinue = "0";
 
-			// 鎵樼洏鐮佹枃鏈敼鍙樻椂瑙﹀彂
-			$("#STOCKCODE").on('input', function () {
+            // 鎵樼洏鐮佹枃鏈敼鍙樻椂瑙﹀彂
+            $("#STOCKCODE").on('input', function () {
 
-				if ($("#STOCKCODE").val() == "" || $("#STOCKCODE").val().length < 8) {
-					return
-				}
-				if ($("#STOCKCODE").val().length >= 8) {
-					$("#STOCKCODE").val($("#STOCKCODE").val().substr(-8))
-				}
-				checkPalletStat()
-			})
+                if ($("#STOCKCODE").val() == "" || $("#STOCKCODE").val().length < 8) {
+                    return
+                }
+                if ($("#STOCKCODE").val().length >= 8) {
+                    $("#STOCKCODE").val($("#STOCKCODE").val().substr(-8))
+                }
+                checkPalletStat()
+            })
             // 鎵樼洏鐮佹枃鏈敼鍙樻椂瑙﹀彂-鏁伴噺
-			$("#STOCKCODE1").on('input', function () {
+            $("#STOCKCODE1").on('input', function () {
 
                 if ($("#STOCKCODE1").val() == "" || $("#STOCKCODE1").val().length < 8) {
                     return
@@ -496,35 +496,34 @@
                 checkPalletStat()
             })
 
-			//绠辩爜鍥炶溅浜嬩欢
-			$("#BOXCODE").keydown(function (e) {
-				if (e.keyCode === 13) {
-					if ($("#BOXCODE").val() == "") {
+            //绠辩爜鍥炶溅浜嬩欢
+            $("#BOXCODE").keydown(function (e) {
+                if (e.keyCode === 13) {
+                    if ($("#BOXCODE").val() == "") {
                         layer.msg('璇峰厛鎵弿绠辩爜', {
-							icon: 2,
-							time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-						});
-						return
-					}
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        });
+                        return
+                    }
 
-					// if ($("#STOCKCODE").val() == "") {
-					// 	layer.msg('璇峰厛鎵弿鎵樼洏鐮�', {
-					// 		icon: 2,
-					// 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-					// 	});
-					// 	$("#BOXCODE").val("");
-					// 	$("#STOCKCODE").focus();
-					// 	return;
-					// }
-					checkBoxInfo()
-				}
-			});
+                    // if ($("#STOCKCODE").val() == "") {
+                    // 	layer.msg('璇峰厛鎵弿鎵樼洏鐮�', {
+                    // 		icon: 2,
+                    // 		time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    // 	});
+                    // 	$("#BOXCODE").val("");
+                    // 	$("#STOCKCODE").focus();
+                    // 	return;
+                    // }
+                    checkBoxInfo()
+                }
+            });
 
             /* 鍏ュ簱鍗曟嵁涓嬫媺妗� */
-			//鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠�
-			$("#selectDiv").click(function () {
-                if (xianshiyemian == 0)
-                {
+            //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠�
+            $("#selectDiv").click(function () {
+                if (xianshiyemian == 0) {
                     var input = $('select[id="bar"]').next().find('.layui-select-title input')
                     var val = input.val()
                     //鍏堟洿鏂颁竴涓嬪叆搴撳崟
@@ -533,11 +532,10 @@
                         $('select[id="bar"]').next().find('.layui-select-title input').val(val)
                     })
                 }
-			})
+            })
             //鐐瑰嚮鍏ュ簱鍗曟嵁涓嬫媺妗嗕簨浠�
-			$("#selectDiv1").click(function () {
-                if (xianshiyemian == 1)
-                {
+            $("#selectDiv1").click(function () {
+                if (xianshiyemian == 1) {
                     var input = $('select[id="bar1"]').next().find('.layui-select-title input')
                     var val = input.val()
                     //鍏堟洿鏂颁竴涓嬪叆搴撳崟
@@ -546,16 +544,15 @@
                         $('select[id="bar1"]').next().find('.layui-select-title input').val(val)
                     })
                 }
-			})
+            })
 
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 
 
-            /* 缁戝畾鍏ュ簱鍗曚俊鎭� */ 
+            /* 缁戝畾鍏ュ簱鍗曚俊鎭� */
 
-			function updateBillList(callback) {
-                if (xianshiyemian == 0)
-                {
+            function updateBillList(callback) {
+                if (xianshiyemian == 0) {
                     var input = $('select[id="bar"]').next().find('.layui-select-title input')
                     var val = input.val()
                     $("#bar").empty()
@@ -590,8 +587,7 @@
                         }
                     });
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     var input = $('select[id="bar1"]').next().find('.layui-select-title input')
                     var val = input.val()
                     $("#bar1").empty()
@@ -626,54 +622,53 @@
                         }
                     });
                 }
-				
-			}
-           
+
+            }
+
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 
-			//鐐瑰嚮鐗╂枡涓嬫媺妗嗕簨浠�
-			$("#goodDiv").click(function () {
-				if ($("#bar").val() == null || $("#bar").val() == "" || $("#bar").val() == undefined) {
-					layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", {
-						icon: 2,
-						time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-					}, function () { });
-				}
-			})
+            //鐐瑰嚮鐗╂枡涓嬫媺妗嗕簨浠�
+            $("#goodDiv").click(function () {
+                if ($("#bar").val() == null || $("#bar").val() == "" || $("#bar").val() == undefined) {
+                    layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", {
+                        icon: 2,
+                        time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    }, function () { });
+                }
+            })
             //鐐瑰嚮鐗╂枡涓嬫媺妗嗕簨浠�-鏁伴噺
-			$("#goodDiv1").click(function () {
-				if ($("#bar1").val() == null || $("#bar1").val() == "" || $("#bar1").val() == undefined) {
-					layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", {
-						icon: 2,
-						time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-					}, function () { });
-				}
-			})
-			//閫変腑鍏ュ簱鍗曚簨浠�
-			form.on('select(getbar)', function (data) {
-				updateGoodList()
-				setOrderGoods();
-			});
+            $("#goodDiv1").click(function () {
+                if ($("#bar1").val() == null || $("#bar1").val() == "" || $("#bar1").val() == undefined) {
+                    layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗�", {
+                        icon: 2,
+                        time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                    }, function () { });
+                }
+            })
+            //閫変腑鍏ュ簱鍗曚簨浠�
+            form.on('select(getbar)', function (data) {
+                updateGoodList()
+                setOrderGoods();
+            });
             //閫変腑鍏ュ簱鍗曚簨浠�-鏁伴噺
-			form.on('select(getbar1)', function (data) {
-				updateGoodList()
-				setOrderGoods();
-			});
-           
-			//閫変腑鐗╂枡浜嬩欢
-			form.on('select(goodSelect)', function (data) {
-				setOrderGoods();
-			});
-           //閫変腑鐗╂枡浜嬩欢-鏁伴噺
-			form.on('select(goodSelect1)', function (data) {
-				setOrderGoods();
-			});
+            form.on('select(getbar1)', function (data) {
+                updateGoodList()
+                setOrderGoods();
+            });
 
-			//缁戝畾鍒版墭鐩樹簨浠�
-			form.on('submit(formBind)', function (data) {
-                if(xianshiyemian == 0)
-                {
-				    console.log($("#goodSelect").val());
+            //閫変腑鐗╂枡浜嬩欢
+            form.on('select(goodSelect)', function (data) {
+                setOrderGoods();
+            });
+            //閫変腑鐗╂枡浜嬩欢-鏁伴噺
+            form.on('select(goodSelect1)', function (data) {
+                setOrderGoods();
+            });
+
+            //缁戝畾鍒版墭鐩樹簨浠�
+            form.on('submit(formBind)', function (data) {
+                if (xianshiyemian == 0) {
+                    console.log($("#goodSelect").val());
                     if ($("#bar").val() == "") {
                         layer.msg('璇烽�夋嫨鍏ュ簱鍗�', {
                             icon: 2,
@@ -703,40 +698,39 @@
                         return;
                     }
                     var param = {
-					AsnNo: $("#bar").val(),
-					PalletNo: $("#STOCKCODE").val(),
-					AsnDetailId: parseInt($("#goodSelect").val()),
-                    LotNo:$("#goodSelect").find("option:selected").text(),
-					BoxNo: $("#BOXCODE").val(),
-					IsContinue: isContinue,
-					TailBoxNo: $("#BOXCODE2").val(),
-					Origin:"PDA"
-				}
-                //缁勭洏
-				sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
-					if (res.code == 0) { //鎴愬姛 
-						layer.msg(res.msg, {
-							icon: 1,
-							time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-						}, function () {
-							setOrderGoods();
-							refreshTable();
-							$("#BOXCODE").val("");
-							$("#BOXCODE2").val("");
-							$("#QTY").val("");
-						});
-					} else { //涓嶆垚鍔�
-						layer.msg(res.msg, {
-							icon: 2,
-							time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-						}, function () {
-							//鍥炶皟
-						});
-					}
-				});
+                        AsnNo: $("#bar").val(),
+                        PalletNo: $("#STOCKCODE").val(),
+                        AsnDetailId: parseInt($("#goodSelect").val()),
+                        LotNo: $("#goodSelect").find("option:selected").text(),
+                        BoxNo: $("#BOXCODE").val(),
+                        IsContinue: isContinue,
+                        TailBoxNo: $("#BOXCODE2").val(),
+                        Origin: "PDA"
+                    }
+                    //缁勭洏
+                    sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
+                        if (res.code == 0) { //鎴愬姛 
+                            layer.msg(res.msg, {
+                                icon: 1,
+                                time: 1000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            }, function () {
+                                setOrderGoods();
+                                refreshTable();
+                                $("#BOXCODE").val("");
+                                $("#BOXCODE2").val("");
+                                $("#QTY").val("");
+                            });
+                        } else { //涓嶆垚鍔�
+                            layer.msg(res.msg, {
+                                icon: 2,
+                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            }, function () {
+                                //鍥炶皟
+                            });
+                        }
+                    });
                 }
-                else if(xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     if ($("#bar1").val() == "") {
                         layer.msg('璇烽�夋嫨鍏ュ簱鍗�', {
                             icon: 2,
@@ -761,11 +755,12 @@
                     var param = {
                         AsnNo: $("#bar1").val(), //鍑哄簱鍗曟嵁
                         PalletNo: $("#STOCKCODE1").val(), //鎵樼洏鏉$爜
-                        AsnDetailId: parseInt($("#goodSelect1").val()), //鐗╂枡鎵规
+                        AsnDetailId: parseInt($("#goodSelect1").val()), //鍏ュ簱鍗曟槑缁咺D
+                        LotNo: $("#goodSelect1").find("option:selected").text(),  //鐗╂枡鎵规
                         SkuQty: parseInt($("#SkuQty").val()), //鐗╂枡鏁伴噺
-                        Origin:"PDA"
+                        Origin: "PDA"
                     }
-                    
+
                     console.log(param)
                     //缁勭洏
                     sendData(IP + "/PdaAsn/BindPallet", param, 'post', function (res) {
@@ -789,15 +784,14 @@
                         }
                     });
                 }
-				
-				return false; //闃绘琛ㄥ崟璺宠浆銆傚鏋滈渶瑕佽〃鍗曡烦杞紝鍘绘帀杩欐鍗冲彲銆�
-			});
+
+                return false; //闃绘琛ㄥ崟璺宠浆銆傚鏋滈渶瑕佽〃鍗曡烦杞紝鍘绘帀杩欐鍗冲彲銆�
+            });
 
 
-			// 鏍规嵁鍏ュ簱鏄庣粏ID 鑾峰彇璇︾粏淇℃伅
-			function setOrderGoods() {
-                if (xianshiyemian == 0)
-                {
+            // 鏍规嵁鍏ュ簱鏄庣粏ID 鑾峰彇璇︾粏淇℃伅
+            function setOrderGoods() {
+                if (xianshiyemian == 0) {
                     $("#ImportQuantity").val("");
                     $("#Standard").val("");
                     $("#ImportFactQuantity").val("");
@@ -815,10 +809,9 @@
                         }
                     });
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     $("#ImportQuantity1").val("");
-				    $("#Standard1").val("");
+                    $("#Standard1").val("");
                     $("#ImportFactQuantity1").val("");
 
                     var param = {
@@ -834,15 +827,14 @@
                         }
                     });
                 }
-				
-			}
-          
-			var asnDetails = "";
 
-			/* 缁戝畾鍏ュ簱鍗曠墿鏂欏強鎵规 */ 
-			function updateGoodList(skuNo) {
-                if (xianshiyemian == 0)
-                {
+            }
+
+            var asnDetails = "";
+
+            /* 缁戝畾鍏ュ簱鍗曠墿鏂欏強鎵规 */
+            function updateGoodList(skuNo) {
+                if (xianshiyemian == 0) {
                     console.log("aaaa");
                     var input = $('select[id="goodSelect"]').next().find('.layui-select-title input')
                     var val = input.val()
@@ -858,40 +850,40 @@
                         if (res.code == 0) { //鎴愬姛
                             asnDetails = res.data;
                             for (var i = 0; i < res.data.length; i++) {
-                                if(skuNo!='' && skuNo==res.data[i].SkuNo){
-                                    if(res.data[i].LotNo=='' || res.data[i].LotNo == null){
+                                if (skuNo != '' && skuNo == res.data[i].SkuNo) {
+                                    if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
                                         $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
-                                        .SkuName +
-                                        '</option>');
-                                    }else{
-                                        $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
-                                        .SkuName + "-" + res.data[i].LotNo +
-                                        '</option>');
-                                    }                                    
-                                }else{
-                                    if (i == 0) {
-                                        if(res.data[i].LotNo=='' || res.data[i].LotNo == null){
-                                            $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
                                             .SkuName +
                                             '</option>');
-                                        }else{
-                                            $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
-                                            .SkuName + "-" + res.data[i].LotNo +
-                                            '</option>');
-                                        }
-                                        
                                     } else {
-                                        if(res.data[i].LotNo=='' || res.data[i].LotNo == null){
-                                            $("#goodSelect").append('<option value =' + res.data[i].Id + '>' + res.data[i]
-                                            .SkuName +
-                                            '</option>');
-                                        }else{
-                                            $("#goodSelect").append('<option value =' + res.data[i].Id + '>' + res.data[i]
+                                        $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
                                             .SkuName + "-" + res.data[i].LotNo +
                                             '</option>');
-                                        }                                         
-                                     }
-                                }							
+                                    }
+                                } else {
+                                    if (i == 0) {
+                                        if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
+                                            $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
+                                                .SkuName +
+                                                '</option>');
+                                        } else {
+                                            $("#goodSelect").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
+                                                .SkuName + "-" + res.data[i].LotNo +
+                                                '</option>');
+                                        }
+
+                                    } else {
+                                        if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
+                                            $("#goodSelect").append('<option value =' + res.data[i].Id + '>' + res.data[i]
+                                                .SkuName +
+                                                '</option>');
+                                        } else {
+                                            $("#goodSelect").append('<option value =' + res.data[i].Id + '>' + res.data[i]
+                                                .SkuName + "-" + res.data[i].LotNo +
+                                                '</option>');
+                                        }
+                                    }
+                                }
                             }
                             form.render('select');
 
@@ -905,8 +897,7 @@
                         }
                     });
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     console.log("bbbb");
                     var input = $('select[id="goodSelect1"]').next().find('.layui-select-title input')
                     var val = input.val()
@@ -922,7 +913,7 @@
                         if (res.code == 0) { //鎴愬姛
                             asnDetails = res.data;
                             for (var i = 0; i < res.data.length; i++) {
-                                if(skuNo!='' && skuNo==res.data[i].SkuNo){
+                                if (skuNo != '' && skuNo == res.data[i].SkuNo) {
                                     if (i == 0) {
                                         $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
                                             .SkuName);
@@ -930,21 +921,20 @@
                                         $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i]
                                             .SkuName);
                                     }
-                                    if (res.data[i].LotNo != null)
-                                    {
+                                    if (res.data[i].LotNo != null) {
                                         $("#goodSelect1").append("-" + res.data[i].LotNo +
                                             '</option>');
-                                    }      
-                                }else {
-                                    if(res.data[i].LotNo=='' || res.data[i].LotNo == null){
+                                    }
+                                } else {
+                                    if (res.data[i].LotNo == '' || res.data[i].LotNo == null) {
                                         $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
-                                        .SkuName +
-                                        '</option>');
-                                    }else{
+                                            .SkuName +
+                                            '</option>');
+                                    } else {
                                         $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
-                                        .SkuName + "-" + res.data[i].LotNo +
-                                        '</option>');
-                                    }   
+                                            .SkuName + "-" + res.data[i].LotNo +
+                                            '</option>');
+                                    }
                                 }
 
                             }
@@ -960,13 +950,12 @@
                         }
                     });
                 }
-				
-			}
-           
-			// 娓叉煋绠辩爜淇℃伅
-			function refreshTable() {
-                if (xianshiyemian == 0)
-                {
+
+            }
+
+            // 娓叉煋绠辩爜淇℃伅
+            function refreshTable() {
+                if (xianshiyemian == 0) {
                     //鍏堟竻绌轰竴涓嬬瀛愬垪琛�
                     let trs = $("#tableBoxList tr")
                     let len = trs.length
@@ -1046,8 +1035,7 @@
                         }
                     });
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     //鍏堟竻绌轰竴涓嬬瀛愬垪琛�
                     let trs = $("#tableBoxList1 tr")
                     let len = trs.length
@@ -1120,8 +1108,8 @@
                                 arrTrs[i] = tr
                             }
 
-                        //璁剧疆鍒嗛〉
-                        setPages(1, list.length)
+                            //璁剧疆鍒嗛〉
+                            setPages(1, list.length)
 
                         } else { //涓嶆垚鍔�
                             layer.msg("鏃犳暟鎹�", {
@@ -1133,13 +1121,12 @@
                         }
                     });
                 }
-				
-			}
 
-			// 鍒ゆ柇鎵樼洏鐮佹槸鍚﹀彲鐢�
-			function checkPalletStat() {
-                if (xianshiyemian == 0)
-                {
+            }
+
+            // 鍒ゆ柇鎵樼洏鐮佹槸鍚﹀彲鐢�
+            function checkPalletStat() {
+                if (xianshiyemian == 0) {
                     var param = {
                         "PalletNo": $("#STOCKCODE").val()
                     }
@@ -1158,8 +1145,7 @@
                         }
                     });
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     var param = {
                         "PalletNo": $("#STOCKCODE1").val()
                     }
@@ -1178,342 +1164,335 @@
                         }
                     });
                 }
-				
-			}
-          
 
-			function checkBoxInfo() {
-				var param = {
-					"BoxNo": $("#BOXCODE").val(),
-				}
-				sendData(IP + "/PdaAsn/GetBindBoxInfos", param, 'post', function (res) {
-					if (res.code == 0) { //鎴愬姛
-						var bl = false;
-						if (res.data.length == 0) {
-							layer.msg("鏈煡璇㈠埌姝ょ鐗╂枡淇℃伅锛岃鏍稿疄!", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							});
-							return;
-						}
-						if(res.data[0].ASNNo!='' && res.data[0].ASNNo!=null){
-							$("#bar").empty()
-							$("#bar").append('<option value =>' + '</option>');
-							form.render('select');
+            }
 
-							$("#bar").append('<option value =' + res.data[0].ASNNo + ' selected>' + res.data[0].ASNNo +'</option>');
 
-							updateGoodList(res.data[0].SkuNo)
-							setOrderGoods();
-						}else{
-							if(asnDetails==''){
-								layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗曟嵁!", {
-									icon: 2,
-									time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-								});
-								return;
-							}
-						}
-						asnDetails.forEach(element => {
-							console.log(element);
+            function checkBoxInfo() {
+                var param = {
+                    "BoxNo": $("#BOXCODE").val(),
+                }
+                sendData(IP + "/PdaAsn/GetBindBoxInfos", param, 'post', function (res) {
+                    if (res.code == 0) { //鎴愬姛
+                        var bl = false;
+                        if (res.data.length == 0) {
+                            layer.msg("鏈煡璇㈠埌姝ょ鐗╂枡淇℃伅锛岃鏍稿疄!", {
+                                icon: 2,
+                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            });
+                            return;
+                        }
+                        if (res.data[0].ASNNo != '' && res.data[0].ASNNo != null) {
+                            $("#bar").empty()
+                            $("#bar").append('<option value =>' + '</option>');
+                            form.render('select');
 
-							if (element.SkuNo == res.data[0].SkuNo && element.LotNo == res.data[0].LotNo) {
-								var sel = 'dd[lay-value=' + element.id + ']';
-								$('#goodSelect').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this');
-								bl = true;
-							}
-						});
-						if (!bl) {
-							layer.msg("姝ょ鐗╂枡涓嶇鍚堣鍏ュ簱鍗曪紝璇锋牳瀹�!", {
-								icon: 2,
-								time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-							});
-						} else {
-							$("#BoxQty").val(res.data[0].Qty);
-						}
+                            $("#bar").append('<option value =' + res.data[0].ASNNo + ' selected>' + res.data[0].ASNNo + '</option>');
 
-					} else { //涓嶆垚鍔�
-						layer.msg(res.msg, {
-							icon: 2,
-							time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
-						});
-					}
-				});
+                            updateGoodList(res.data[0].SkuNo)
+                            setOrderGoods();
+                        } else {
+                            if (asnDetails == '') {
+                                layer.msg("璇峰厛閫夋嫨鍏ュ簱鍗曟嵁!", {
+                                    icon: 2,
+                                    time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                                });
+                                return;
+                            }
+                        }
+                        asnDetails.forEach(element => {
+                            console.log(element);
 
-			}
+                            if (element.SkuNo == res.data[0].SkuNo && element.LotNo == res.data[0].LotNo) {
+                                var sel = 'dd[lay-value=' + element.id + ']';
+                                $('#goodSelect').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this');
+                                bl = true;
+                            }
+                        });
+                        if (!bl) {
+                            layer.msg("姝ょ鐗╂枡涓嶇鍚堣鍏ュ簱鍗曪紝璇锋牳瀹�!", {
+                                icon: 2,
+                                time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                            });
+                        } else {
+                            $("#BoxQty").val(res.data[0].Qty);
+                        }
+
+                    } else { //涓嶆垚鍔�
+                        layer.msg(res.msg, {
+                            icon: 2,
+                            time: 2000 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
+                        });
+                    }
+                });
+
+            }
 
 
             /* 鍒嗛〉 */
             //璁剧疆鍒嗛〉
-            function setPages(pageIndex, boxNum){
+            function setPages(pageIndex, boxNum) {
 
-                if (xianshiyemian == 0)
-                {
-                    if(boxNum <= 0){
+                if (xianshiyemian == 0) {
+                    if (boxNum <= 0) {
                         //鍒楄〃涓虹┖锛岄殣钘忓垎椤甸〉鐮�
                         $("#tableBoxPages").hide()
                         return
                     }
-                    
+
                     let pageNum = Math.floor(boxNum / 10);
-                    if(boxNum % 10 > 0){
+                    if (boxNum % 10 > 0) {
                         pageNum += 1;
                     }
                     //console.log("pageNum is " + pageNum)
-                    
+
                     $("#tableBoxPages").find("tr").remove()
                     let table = $("#tableBoxPages")
                     $("<tr></tr>").appendTo("#tableBoxPages")
-                    
+
                     // let newTr = table.append("<tr></tr>")
                     // newTr.append("<td class='page-prev'>涓婁竴椤�</td>")
                     $("<td id='prevPage' class='page-prev'>涓婁竴椤�</td>").appendTo("#tableBoxPages tr")
-                    $("#tableBoxPages tr").eq(0).find("td[id^='prevPage']").click(function(){
+                    $("#tableBoxPages tr").eq(0).find("td[id^='prevPage']").click(function () {
                         onClickPrevPage()
                     })
-                    for(i=1; i < pageNum + 1; i++){
+                    for (i = 1; i < pageNum + 1; i++) {
                         // newTr.append("<td class='page-num'>"+ i +"</td>")
-                        $("<td class='page-num'>"+ i +"</td>").appendTo("#tableBoxPages tr")
+                        $("<td class='page-num'>" + i + "</td>").appendTo("#tableBoxPages tr")
                     }
                     // newTr.append("<td class='page-next'>涓嬩竴椤�</td>")
                     $("<td id='nextPage' class='page-next'>涓嬩竴椤�</td>").appendTo("#tableBoxPages tr")
-                    $("#tableBoxPages tr").eq(0).find("td[id^='nextPage']").click(function(){
+                    $("#tableBoxPages tr").eq(0).find("td[id^='nextPage']").click(function () {
                         onClickNextPage()
                     })
                     // pages.show()
                     $("#tableBoxPages").show()
-                    
+
                     setCurPage(1)
                 }
-                else if (xianshiyemian == 1)
-                {
-                    if(boxNum <= 0){
+                else if (xianshiyemian == 1) {
+                    if (boxNum <= 0) {
                         //鍒楄〃涓虹┖锛岄殣钘忓垎椤甸〉鐮�
                         $("#tableBoxPages1").hide()
                         return
                     }
-                    
+
                     let pageNum = Math.floor(boxNum / 10);
-                    if(boxNum % 10 > 0){
+                    if (boxNum % 10 > 0) {
                         pageNum += 1;
                     }
                     //console.log("pageNum is " + pageNum)
-                    
+
                     $("#tableBoxPages1").find("tr").remove()
                     let table = $("#tableBoxPages1")
                     $("<tr></tr>").appendTo("#tableBoxPages1")
-                    
+
                     // let newTr = table.append("<tr></tr>")
                     // newTr.append("<td class='page-prev'>涓婁竴椤�</td>")
                     $("<td id='prevPage' class='page-prev'>涓婁竴椤�</td>").appendTo("#tableBoxPages1 tr")
-                    $("#tableBoxPages1 tr").eq(0).find("td[id^='prevPage']").click(function(){
+                    $("#tableBoxPages1 tr").eq(0).find("td[id^='prevPage']").click(function () {
                         onClickPrevPage()
                     })
-                    for(i=1; i < pageNum + 1; i++){
+                    for (i = 1; i < pageNum + 1; i++) {
                         // newTr.append("<td class='page-num'>"+ i +"</td>")
-                        $("<td class='page-num'>"+ i +"</td>").appendTo("#tableBoxPages1 tr")
+                        $("<td class='page-num'>" + i + "</td>").appendTo("#tableBoxPages1 tr")
                     }
                     // newTr.append("<td class='page-next'>涓嬩竴椤�</td>")
                     $("<td id='nextPage' class='page-next'>涓嬩竴椤�</td>").appendTo("#tableBoxPages1 tr")
-                    $("#tableBoxPages1 tr").eq(0).find("td[id^='nextPage']").click(function(){
+                    $("#tableBoxPages1 tr").eq(0).find("td[id^='nextPage']").click(function () {
                         onClickNextPage()
                     })
                     // pages.show()
                     $("#tableBoxPages1").show()
-                    
+
                     setCurPage(1)
                 }
-                
+
             }
-            
+
             //璁剧疆褰撳墠鍒嗛〉
-            function setCurPage(pageIndex){
-                if (xianshiyemian == 0)
-                {
+            function setCurPage(pageIndex) {
+                if (xianshiyemian == 0) {
                     let totalTrNum = $("#tableBoxList tr").length
-                    if(totalTrNum <= 2 ){
+                    if (totalTrNum <= 2) {
                         //console.log("tableBoxList 涓虹┖ totalTrNum: " + totalTrNum)
                         //curPageIndex = 1
                         return
                     }
-                    
+
                     let pageNum = getBoxPageNum()
-                    if(pageIndex > pageNum){
+                    if (pageIndex > pageNum) {
                         //console.log("璁剧疆鐨勯〉鐮佽秴鍑洪〉鏁�, pageIndex : " + pageIndex)
                         //curPageIndex = 1
                         return
                     }
-                    
+
                     let startIndex = (pageIndex - 1) * 10 + 1
                     let n = totalTrNum - startIndex
                     let endIndex = 0
-                    if(n > 9){
+                    if (n > 9) {
                         endIndex = startIndex + 9
-                    }else{
+                    } else {
                         endIndex = startIndex + n
                     }
-                    
+
                     let trs = $("#tableBoxList tr")
                     //console.log("琛屾暟 "+trs.length)
                     let d = 0
-                    for(let i = 2; i < trs.length; i++){
+                    for (let i = 2; i < trs.length; i++) {
                         //console.log("琛岀储寮� " + trs.eq(i).attr('index'))
                         let t = trs.eq(i)
                         d = t.attr('index')
-                        if(d >= startIndex && d <= endIndex){
+                        if (d >= startIndex && d <= endIndex) {
                             //console.log("闇�瑕佹樉绀�")
                             //鏄剧ず琛�
                             t.show()
-                        }else{
+                        } else {
                             //闅愯棌琛�
                             t.hide()
                         }
                     }
-                    
+
                     curPageIndex = pageIndex
-                    
+
                     let ptr = $("#tableBoxPages tr")
-                    for(let i = 1; i < pageNum+1; i++){
+                    for (let i = 1; i < pageNum + 1; i++) {
                         ptr.eq(0).find("td").eq(i).removeClass("page-num-select")
-                        if(i == curPageIndex){
+                        if (i == curPageIndex) {
                             ptr.eq(0).find("td").eq(i).addClass("page-num-select")
                         }
                     }
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     let totalTrNum = $("#tableBoxList1 tr").length
-                    if(totalTrNum <= 2 ){
+                    if (totalTrNum <= 2) {
                         return
                     }
-                    
+
                     let pageNum = getBoxPageNum()
-                    if(pageIndex > pageNum){
+                    if (pageIndex > pageNum) {
                         //console.log("璁剧疆鐨勯〉鐮佽秴鍑洪〉鏁�, pageIndex : " + pageIndex)
                         //curPageIndex = 1
                         return
                     }
-                    
+
                     let startIndex = (pageIndex - 1) * 10 + 1
                     let n = totalTrNum - startIndex
                     let endIndex = 0
-                    if(n > 9){
+                    if (n > 9) {
                         endIndex = startIndex + 9
-                    }else{
+                    } else {
                         endIndex = startIndex + n
                     }
-                    
+
                     let trs = $("#tableBoxList1 tr")
                     //console.log("琛屾暟 "+trs.length)
                     let d = 0
-                    for(let i = 2; i < trs.length; i++){
+                    for (let i = 2; i < trs.length; i++) {
                         //console.log("琛岀储寮� " + trs.eq(i).attr('index'))
                         let t = trs.eq(i)
                         d = t.attr('index')
-                        if(d >= startIndex && d <= endIndex){
+                        if (d >= startIndex && d <= endIndex) {
                             //console.log("闇�瑕佹樉绀�")
                             //鏄剧ず琛�
                             t.show()
-                        }else{
+                        } else {
                             //闅愯棌琛�
                             t.hide()
                         }
                     }
-                    
+
                     curPageIndex = pageIndex
-                    
+
                     let ptr = $("#tableBoxPages1 tr")
-                    for(let i = 1; i < pageNum+1; i++){
+                    for (let i = 1; i < pageNum + 1; i++) {
                         ptr.eq(0).find("td").eq(i).removeClass("page-num-select")
-                        if(i == curPageIndex){
+                        if (i == curPageIndex) {
                             ptr.eq(0).find("td").eq(i).addClass("page-num-select")
                         }
                     }
                 }
-                
+
             }
 
-            function getBoxPageNum()
-            {
-                if (xianshiyemian == 0)
-                {
+            function getBoxPageNum() {
+                if (xianshiyemian == 0) {
                     let num = $("#tableBoxList tr").length
-                    if(num <= 2 ){
+                    if (num <= 2) {
                         return 0
                     }
-                    
+
                     let pageNum = Math.floor(num / 10);
-                    if(num % 10 > 0){
+                    if (num % 10 > 0) {
                         pageNum += 1;
                     }
-                    
+
                     return pageNum
                 }
-                else if (xianshiyemian == 1)
-                {
+                else if (xianshiyemian == 1) {
                     let num = $("#tableBoxList1 tr").length
-                    if(num <= 2 ){
+                    if (num <= 2) {
                         return 0
                     }
-                    
+
                     let pageNum = Math.floor(num / 10);
-                    if(num % 10 > 0){
+                    if (num % 10 > 0) {
                         pageNum += 1;
                     }
-                    
+
                     return pageNum
                 }
-                
+
             }
 
-            function onClickPrevPage(){
+            function onClickPrevPage() {
                 //console.log("涓婁竴椤垫寜閽鐐瑰嚮")
-                if(curPageIndex == 1){
+                if (curPageIndex == 1) {
                     return
                 }
                 setCurPage(curPageIndex - 1)
             }
 
-            function onClickNextPage(){
+            function onClickNextPage() {
                 //console.log("涓嬩竴椤垫寜閽鐐瑰嚮")
                 let n = getBoxPageNum()
-                if(curPageIndex == n){
+                if (curPageIndex == n) {
                     return
                 }
                 setCurPage(curPageIndex + 1)
             }
-          
+
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 
-			form.on('switch(IsLianXu)', function (obj) {
-				if (obj.elem.checked) {
-					$('#BOX2').attr("style", "display:block")
-					$('#zongDiv').attr("style", "height: 285px;")
-					isContinue = "1";
-				} else {
-					$('#BOX2').attr("style", "display:none")
-					$('#zongDiv').attr("style", "height: 255px;")
-					isContinue = "0";
-				}
-				$('#BOXCODE2').val("");
-			});
+            form.on('switch(IsLianXu)', function (obj) {
+                if (obj.elem.checked) {
+                    $('#BOX2').attr("style", "display:block")
+                    $('#zongDiv').attr("style", "height: 285px;")
+                    isContinue = "1";
+                } else {
+                    $('#BOX2').attr("style", "display:none")
+                    $('#zongDiv').attr("style", "height: 255px;")
+                    isContinue = "0";
+                }
+                $('#BOXCODE2').val("");
+            });
 
-			$("#menuImg").click(function (e) {
-				//console.log("menuImg")
-				e.stopPropagation()
+            $("#menuImg").click(function (e) {
+                //console.log("menuImg")
+                e.stopPropagation()
 
-				if ($("#menuList").is(":hidden")) {
-					$("#menuList").show()
-				} else {
-					$("#menuList").hide()
-				}
-			})
-			$('body').click(function () {
-				// //console.log("body")
-				$("#menuList").hide()
-			})
-		})
-	</script>
+                if ($("#menuList").is(":hidden")) {
+                    $("#menuList").show()
+                } else {
+                    $("#menuList").hide()
+                }
+            })
+            $('body').click(function () {
+                // //console.log("body")
+                $("#menuList").hide()
+            })
+        })
+    </script>
 </body>
 
 </html>
\ No newline at end of file

--
Gitblit v1.8.0