From 257e141d4b8e7f29c5324f9d733ef3df31843c6a Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期五, 15 三月 2024 11:23:32 +0800
Subject: [PATCH] 入库问题修改

---
 Pda/View/AsnSetting/productEnterQuantity.html |  222 +++++++++++++++++++++++++++---------------------------
 1 files changed, 111 insertions(+), 111 deletions(-)

diff --git a/Pda/View/AsnSetting/productEnterQuantity.html b/Pda/View/AsnSetting/productEnterQuantity.html
index cb06baa..c8ec00d 100644
--- a/Pda/View/AsnSetting/productEnterQuantity.html
+++ b/Pda/View/AsnSetting/productEnterQuantity.html
@@ -105,7 +105,7 @@
                 <li id="option1">鏍囩</li>
                 <li id="option2">鏁伴噺</li>
             </ul> -->
-            
+
             <button id="option1" class="layout-btn" type="button">鏍囩</button>
             <button id="option2" class="layout-btn" type="button">鏁伴噺</button>
             <br /><br />
@@ -250,7 +250,7 @@
                     </table>
                     <!-- 鍒嗛〉 -->
                     <table id="tableBoxPages" class="tbl-box-pages" border="" cellspacing="" cellpadding="">
-                        <tr >
+                        <tr>
                             <td class="page-prev">涓婁竴椤�</td>
                             <td class="page-num page-num-select">1</td>
                             <td class="page-num">2</td>
@@ -352,11 +352,12 @@
                         <div id="demodiv" class="layui-form-item layout-input" style="height: auto;">
                             <label class="layui-form-label">瀵勫瓨澶囨敞锛�</label>
                             <div class="layui-input-inline" style="width: 365px;height: auto;">
-                                <textarea placeholder="璇疯緭鍏ュ唴瀹�" id="NoticeDemo" name="NoticeDemo" class="layui-textarea" ></textarea>
+                                <textarea placeholder="璇疯緭鍏ュ唴瀹�" id="NoticeDemo" name="NoticeDemo"
+                                    class="layui-textarea"></textarea>
                             </div>
                             <br>
                         </div>
-                        
+
                         <table class="layout-tbl-submit" border="" cellspacing="" cellpadding="">
                             <tr>
                                 <td style="width: 23%;"></td>
@@ -377,7 +378,7 @@
                 <div id="demodiv1">
                     <br><br><br><br><br><br><br>
                 </div>
-                
+
 
                 <div id="" class="cut-line">
                     <img src="/assets/fengexian.png">
@@ -455,8 +456,8 @@
                     xianshiyemian = 1;
                     $('#content1').hide();
                     $('#option1').attr("style", "background-color: #999;width: 50%;float: left;text-align: center;"); //榛樿棰滆壊
-                    
-                   
+
+
                     $('#content2').show();
                     $('#option2').attr("style", "background-color: red;width: 50%;float: right;text-align: center;"); //閫変腑鍚庨鑹�
 
@@ -824,21 +825,19 @@
                 synData(IP + "/PdaAsn/GetArrivalNotice", param, 'post', function (res) {
                     console.log(res)
                     if (res.code == 0 && res.data != null) { //鎴愬姛
-                        
+
                         //鍒ゆ柇榛樿閫変腑鏄惁涓哄瘎瀛樼墿鏂�
-                        if(res.data[0].Type == "7")
-                        {
+                        if (res.data[0].Type == "7") {
                             $("textarea[name='NoticeDemo']").val(res.data[0].Demo); //澶囨敞
                             $('#demodiv').show();
                             $('#demodiv1').show();
                         }
-                        else
-                        {
+                        else {
                             $('#demodiv').hide();
                             $('#demodiv1').hide();
                         }
                     }
-                    else{
+                    else {
                         $('#demodiv').hide();
                         $('#demodiv1').hide();
                     }
@@ -881,7 +880,7 @@
                             $("#Standard1").val(res.data.Standard);
                             $("#ImportFactQuantity1").val(res.data.FactQty + "");
                         }
-                        else{}
+                        else { }
                     });
                 }
 
@@ -971,7 +970,7 @@
                             asnDetails = res.data;
                             for (var i = 0; i < res.data.length; i++) {
                                 if (skuNo != '' && skuNo == res.data[i].SkuNo) {
-                                   
+
                                     if (i == 0) {
                                         $("#goodSelect1").append('<option value =' + res.data[i].Id + ' selected>' + res.data[i]
                                             .SkuName);
@@ -1005,7 +1004,7 @@
                                 $('#goodSelect1').siblings("div.layui-form-select").find('dl').find(sel).addClass('layui-this')
                             }
                         } else {
-                           
+
                         }
                     });
                 }
@@ -1142,6 +1141,7 @@
                                         yes: function () {
 
                                             var param = {
+                                                Id: parseInt(Id),
                                                 PalletNo: res.data[0].PalletNo,
                                             };
                                             console.log(Id)
@@ -1293,99 +1293,99 @@
             /* 鍒嗛〉 */
             //璁剧疆鍒嗛〉
             function setPages(pageIndex, boxNum) {
-				if (boxNum <= 0) {
-					//鍒楄〃涓虹┖锛岄殣钘忓垎椤甸〉鐮�
-					$("#tableBoxPages").hide()
-					return
-				}
+                if (boxNum <= 0) {
+                    //鍒楄〃涓虹┖锛岄殣钘忓垎椤甸〉鐮�
+                    $("#tableBoxPages").hide()
+                    return
+                }
 
-				let pageNum = Math.floor(boxNum / 10);
-				if (boxNum % 10 > 0) {
-					pageNum += 1;
-				}
-				//console.log("pageNum is " + pageNum)
+                let pageNum = Math.floor(boxNum / 10);
+                if (boxNum % 10 > 0) {
+                    pageNum += 1;
+                }
+                //console.log("pageNum is " + pageNum)
 
-				$("#tableBoxPages").find("tr").remove()
-				let table = $("#tableBoxPages")
-				$("<tr></tr>").appendTo("#tableBoxPages")
+                $("#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 () {
-					onClickPrevPage()
-				})
-				for (i = 1; i < pageNum + 1; i++) {
-					// newTr.append("<td class='page-num'>"+ i +"</td>")
-					$("<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 () {
-					onClickNextPage()
-				})
-				// pages.show()
-				$("#tableBoxPages").show()
+                // 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 () {
+                    onClickPrevPage()
+                })
+                for (i = 1; i < pageNum + 1; i++) {
+                    // newTr.append("<td class='page-num'>"+ i +"</td>")
+                    $("<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 () {
+                    onClickNextPage()
+                })
+                // pages.show()
+                $("#tableBoxPages").show()
 
-				setCurPage(1)
-			}
+                setCurPage(1)
+            }
 
-			//璁剧疆褰撳墠鍒嗛〉
-			function setCurPage(pageIndex) {
-				let totalTrNum = $("#tableBoxList tr").length
-				if (totalTrNum <= 2) {
-					//console.log("tableBoxList 涓虹┖ totalTrNum: " + totalTrNum)
-					//curPageIndex = 1
-					return
-				}
+            //璁剧疆褰撳墠鍒嗛〉
+            function setCurPage(pageIndex) {
+                let totalTrNum = $("#tableBoxList tr").length
+                if (totalTrNum <= 2) {
+                    //console.log("tableBoxList 涓虹┖ totalTrNum: " + totalTrNum)
+                    //curPageIndex = 1
+                    return
+                }
 
-				let pageNum = getBoxPageNum()
-				if (pageIndex > pageNum) {
-					//console.log("璁剧疆鐨勯〉鐮佽秴鍑洪〉鏁�, pageIndex : " + pageIndex)
-					//curPageIndex = 1
-					return
-				}
+                let pageNum = getBoxPageNum()
+                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) {
-					endIndex = startIndex + 9
-				} else {
-					endIndex = startIndex + n
-				}
-				//console.log("startIndex is "+startIndex)
-				//console.log("endIndex is "+endIndex)
-				//startIndex =2
-				//endIndex = 2
-				let trs = $("#tableBoxList tr")
-				//console.log("琛屾暟 "+trs.length)
-				let d = 0
-				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) {
-						//console.log("闇�瑕佹樉绀�")
-						//鏄剧ず琛�
-						t.show()
-					} else {
-						//闅愯棌琛�
-						t.hide()
-					}
-				}
+                let startIndex = (pageIndex - 1) * 10 + 1
+                let n = totalTrNum - startIndex
+                let endIndex = 0
+                if (n > 9) {
+                    endIndex = startIndex + 9
+                } else {
+                    endIndex = startIndex + n
+                }
+                //console.log("startIndex is "+startIndex)
+                //console.log("endIndex is "+endIndex)
+                //startIndex =2
+                //endIndex = 2
+                let trs = $("#tableBoxList tr")
+                //console.log("琛屾暟 "+trs.length)
+                let d = 0
+                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) {
+                        //console.log("闇�瑕佹樉绀�")
+                        //鏄剧ず琛�
+                        t.show()
+                    } else {
+                        //闅愯棌琛�
+                        t.hide()
+                    }
+                }
 
-				curPageIndex = pageIndex
+                curPageIndex = pageIndex
 
-				let ptr = $("#tableBoxPages tr")
-				for (let i = 1; i < pageNum + 1; i++) {
-					ptr.eq(0).find("td").eq(i).removeClass("page-num-select")
-					if (i == curPageIndex) {
-						ptr.eq(0).find("td").eq(i).addClass("page-num-select")
-					}
-				}
-				//console.log("totalTrNum is " + totalTrNum)
-			}
+                let ptr = $("#tableBoxPages tr")
+                for (let i = 1; i < pageNum + 1; i++) {
+                    ptr.eq(0).find("td").eq(i).removeClass("page-num-select")
+                    if (i == curPageIndex) {
+                        ptr.eq(0).find("td").eq(i).addClass("page-num-select")
+                    }
+                }
+                //console.log("totalTrNum is " + totalTrNum)
+            }
 
             function onClickPrevPage() {
                 //console.log("涓婁竴椤垫寜閽鐐瑰嚮")
@@ -1398,24 +1398,24 @@
             function onClickNextPage() {
                 //console.log("涓嬩竴椤垫寜閽鐐瑰嚮")
                 let n = getBoxPageNum()
-                if (curPageIndex == n-1) {
+                if (curPageIndex == n - 1) {
                     return
                 }
                 setCurPage(curPageIndex + 1)
             }
             function getBoxPageNum() {
-				let num = $("#tableBoxList tr").length
-				if (num <= 2) {
-					return 0
-				}
+                let num = $("#tableBoxList tr").length
+                if (num <= 2) {
+                    return 0
+                }
 
-				let pageNum = Math.floor(num / 10);
-				if (num % 10 > 0) {
-					pageNum += 1;
-				}
+                let pageNum = Math.floor(num / 10);
+                if (num % 10 > 0) {
+                    pageNum += 1;
+                }
 
-				return pageNum
-			}
+                return pageNum
+            }
 
             /*鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺��*/
 

--
Gitblit v1.8.0