From f17efd8c87866af536ef840bbdd998569e32c0a9 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期三, 24 九月 2025 17:18:32 +0800
Subject: [PATCH] 1

---
 WebTM/views/WMS扫码模块/找货上架单/Kf_MaterialUpperBill_PDA.html |   96 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 94 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\346\211\276\350\264\247\344\270\212\346\236\266\345\215\225/Kf_MaterialUpperBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\346\211\276\350\264\247\344\270\212\346\236\266\345\215\225/Kf_MaterialUpperBill_PDA.html"
index 344c452..2c3c7ea 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\346\211\276\350\264\247\344\270\212\346\236\266\345\215\225/Kf_MaterialUpperBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\346\211\276\350\264\247\344\270\212\346\236\266\345\215\225/Kf_MaterialUpperBill_PDA.html"
@@ -77,6 +77,17 @@
                                 </div>
                             </div>
                         </div>
+                        <div class="layui-row" style="margin-top: 5px; margin-bottom: 0px;">
+                            <div class="layui-col-xs3">
+                                <label class="layui-form-label" style="width:60px;padding-left:0px;">灏忚溅淇℃伅</label>
+                            </div>
+                            <div class="layui-col-xs9">
+                                <input type="text" name="HCarBarCode" id="HCarBarCode" lay-verify="HCarBarCode" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+                            </div>
+                            <div class="layui-col-xs3">
+                                <button type="button" lay-submit="" lay-filter="HCar-BT" class="layui-btn" id="HCar-BT" style="width: 30px; margin-left: 8px;padding-left:8px">...</button>
+                            </div>
+                        </div>
                         <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Kf_MaterialUpperBill_PDA">
                             <ul class="layui-tab-title" lay-filter="tab-all">
                                 <li lay-id="1" style="padding:1px;">鍗曟嵁淇℃伅</li>
@@ -300,6 +311,22 @@
                 listOption.data = data;
                 table.render(listOption);
 
+                //灏忚溅琛屽垪
+                LowerListOption.cols = [[
+                    { field: '灏忚溅鏉$爜', title: '灏忚溅鏉$爜', width: 100 }
+                    , { field: '搴撲綅浠g爜', title: '搴撲綅浠g爜', width: 100 }
+                    , { field: '褰撳墠搴撲綅', title: '褰撳墠搴撲綅', width: 100 }
+                    , { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
+                    , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��', width: 100 }
+                    , { field: '鎿嶄綔鍛�1', title: '鎿嶄綔鍛�1', width: 100 }
+                    , { field: '鎿嶄綔鍛�2', title: '鎿嶄綔鍛�2', width: 100 }
+                ]];
+                LowerListOption.data = data;
+                table.render(LowerListOption);
+
                 //鍏夋爣榛樿鍦ㄦ潯鐮佷綅缃笂
                 var pFocus = $("#HBarCode");
                 pFocus.select();
@@ -323,6 +350,14 @@
                     , cellMinWidth: 90
                     , limit: 200
                 };
+                //灏忚溅淇℃伅
+                LowerListOption = {
+                    elem: '#LowerList-table'
+                    //, toolbar: '#toolbarDemo'
+                    //, totalRow: true
+                    , cellMinWidth: 90
+                    , limit: 200
+                }
             }
 
             //#region 鐐瑰嚮琛岄�変腑楂樹寒
@@ -529,7 +564,7 @@
                 }
             });
 
-            //浠撲綅鎸夐挳
+            //浠撲綅鎸夐挳  
             form.on('submit(HSpID-BT)', function () {
                 //浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
                 if ($("#HWHName").val() == '') {
@@ -552,6 +587,50 @@
 
             //#endregion
 
+            //#region 灏忚溅
+            //鎵弿浠撲綅鏉$爜
+            $('#HCarBarCode').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    
+                    var sHWHID = $("#HWHID").val()
+                    var HCarBarCode = $('#HCarBarCode').val()
+                    if (HCarBarCode == '') {
+                        playSound();
+                        layer.msg("灏忚溅鏉$爜涓虹┖锛�", {
+                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () {
+                            $("#HStockPlaceName").select();
+                            $("#HStockPlaceName").focus();
+                        });
+                        return;
+                    }
+
+                    layer.load(3);
+                }
+            });
+
+            //浠撲綅鎸夐挳  
+            form.on('submit(HSpID-BT)', function () {
+                //浠撳簱鏂囨湰妗嗕负绌烘椂锛屾竻绌哄搴擨D
+                if ($("#HWHName").val() == '') {
+                    $("#HWHID").val("0");
+                }
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '浠撲綅鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceListNew.html?HWhID=' + $("#HWHID").val() + '&Type=HSpID&HOrgID=' + HStockOrgID + '', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+            //#endregion
             //#endregion
 
 
@@ -720,6 +799,14 @@
                 $("#HBarCode").focus();     //鑾峰彇鍏夋爣
             });
 
+            //鎵弿灏忚溅鏉$爜
+            $('#HCarBarCode').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    $("#HBarCode").select();
+                    $("#HBarCode").focus();     //鑾峰彇鍏夋爣
+                }
+            });
+
             //鎵潯鐮�
             function GetMeesageByBarCode(obj) {
                 //浠撳簱銆佷粨浣嶆枃鏈涓虹┖鏃讹紝娓呯┖瀵瑰簲ID
@@ -729,6 +816,10 @@
                 if ($("#HStockPlaceName").val() == '') {
                     $("#HStockPlaceID").val("0");
                 }
+                //鏂板灏忚溅鍒ゆ柇
+                if ($("#HMouldName").val() == '') {
+                    $("#HMouldID").val("0");
+                }
                 var sOldBarCode = $('#HBarCode').val()
                 var HDeleteFlag = sOldBarCode.substring(0, 1);
                 var sBarCode = sOldBarCode.slice(1);
@@ -736,6 +827,7 @@
                 var sHSPID = $("#HStockPlaceID").val()
                 var sHQty = $("#HQty").val()
                 var sSourceBillType = "-1"
+                var sCarBarCode = $("#HCarBarCode").val()
 
                 if (HDeleteFlag == "*") {
                     if (sBarCode == "") {
@@ -813,7 +905,7 @@
                         type: "GET",
                         url: GetWEBURL() + "/WEBSController/Get_BarCode_WorkShop_Json",
                         async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
-                        data: { "HBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HQty": sHQty, "SourceFlag": HSourceFlag, "HSourceBillType": sSourceBillType, "HCarBarCode": "", "HStockOrgID": HStockOrgID },
+                        data: { "HBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HQty": sHQty, "SourceFlag": HSourceFlag, "HSourceBillType": sSourceBillType, "HCarBarCode": sCarBarCode, "HStockOrgID": HStockOrgID },
                         success: function (result) {
                             if (result.count == 1) {
                                 playSound_OK();

--
Gitblit v1.9.1