From 01bb4cc6da9641e41d24f6ac7dea6e84cb8ba768 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期六, 01 四月 2023 10:48:31 +0800
Subject: [PATCH] 便捷方式,扫码模板,条码生成、列表,工序出站

---
 WebTM/views/验收入库/委外入库/Kf_EntrustInBill_Fast.html |   57 +++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 45 insertions(+), 12 deletions(-)

diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
index 89c38f4..5319e0c 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\247\224\345\244\226\345\205\245\345\272\223/Kf_EntrustInBill_Fast.html"
@@ -45,6 +45,14 @@
                                 <button type="button" lay-submit="" class="layui-btn" lay-filter="QueDin">纭畾</button>
                             </div>
                         </div>
+                        <div class="layui-row">
+                            <div class="layui-col-xs3">
+                                <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
+                            </div>
+                            <div class="layui-col-xs8">
+                                <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
+                            </div>
+                        </div>
                     </div>
                     <div class="layui-tab layui-col-xs12" lay-filter="tab-Kf_EntrustInBill">
                         <ul class="layui-tab-title" lay-filter="tab-all">
@@ -109,7 +117,7 @@
                                             <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                         </div>
                                         <div class="layui-col-xs3">
-                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
+                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT">...</button>
                                         </div>
                                     </div>
                                 </div>
@@ -200,14 +208,14 @@
                                 <div class="layui-row">
                                     <div class="layui-col-xs12">
                                         <div class="layui-form-item" style="padding:0px;margin:0px">
-                                            <div class="layui-row">
+                                            <!--<div class="layui-row">
                                                 <div class="layui-col-xs3">
                                                     <label class="layui-form-label" style="width:40px;padding-left:0px;">鏁伴噺</label>
                                                 </div>
                                                 <div class="layui-col-xs8">
                                                     <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
                                                 </div>
-                                            </div>
+                                            </div>-->
                                         </div>
                                         <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                     </div>
@@ -568,7 +576,7 @@
             form.on('submit(Cancel)', function () {
                 Flag = false;
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                    window.close();
+                    parent.location.href = "../../../views/index_Mobile.html";
                 });
             })
 
@@ -640,11 +648,11 @@
 
             //鎵潯鐮�
             $('#HBarCode').on('keydown', function (event) {
-                if (sQty == "") {
-                    sQty = 0;
-                }
+                //if (sQty == "") {
+                //    sQty = 0;
+                //}
                 if (event.keyCode == 13) {
-                    GetMeesageByBarCode
+                    GetMeesageByBarCode();
                 }
             });
             //纭畾
@@ -768,6 +776,10 @@
                 if (sQty != "") {
                     $('#HQty').val("");
                 }
+                if (sQty == "") {
+                    sQty = 0;
+                }
+
                 $.ajax({
                     //url: "http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
                     url: GetWEBURL() + "/Kf_EntrustInBill/get_CheckTypeByBarCode_Json",
@@ -858,12 +870,13 @@
                                 elem: '#wl-table'
                                 , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                 , toolbar: '#toolbarDemo'
+                                , totalRow: true
                                 , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                 , cellMinWidth: 90
                                 , cols: [[
                                     { type: 'radio' }
-                                    , { field: 'HQty', title: '鏁伴噺', width: 150 }
-                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                                    , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true}
+                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150, totalRow: true}
                                     , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
                                     , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
                                     , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
@@ -877,6 +890,8 @@
                                     layer.closeAll("loading");
                                 }
                             });
+                            //娓呯┖鏁伴噺
+                            $("#HQty").val("");
                         }
                         else {
                             // $("#verifycode").click();
@@ -932,11 +947,12 @@
                                 //, url: 'http://61.130.49.162:9090/WMSAPI///Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                 , url: GetWEBURL() + '/Kf_EntrustInBill/DisBillEntryList_Webs_Json'
                                 , toolbar: '#toolbarDemo'
+                                , totalRow: true
                                 , where: { HBillID: sInterID, HBillType: '1210', sWhere: '' }
                                 , cols: [[
                                     { type: 'radio' }
-                                    , { field: 'HQty', title: '鏁伴噺', width: 150 }
-                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                                    , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true }
+                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150, totalRow: true }
                                     , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
                                     , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
                                     , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
@@ -944,6 +960,7 @@
                                     , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
                                     , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
                                     , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                                    , { field: 'HPieceQty', title: '鏉$爜鏁伴噺', width: 150 }
                                 ]]
                                 // , data: [linterid]
                                 // , page: true
@@ -975,6 +992,8 @@
         function GetHSpValue(obj) {  //杩斿洖璋冨叆浠撲綅
             $("#HStockPlaceName").val(obj[0].HName);
             $("#HStockPlaceID").val(obj[0].HItemID);
+            $("#HWHNAME").val(obj[0].HWhName);
+            $("#HWHID").val(obj[0].HWHID);
         }
         function GetHSupValue(obj) {  //杩斿洖渚涘簲鍟�
             $("#HSupName").val(obj[0].HName);
@@ -1012,6 +1031,20 @@
         //    })
         //}
         function AllowLoadData(sSubStr, bnt) {  //闈炵┖楠岃瘉
+            //鏁板瓧姝e垯(鍖呭惈灏忔暟)
+            var reg = /^\d+(\.\d+)?$/;
+            //if (reg.test($("#HQty").val()) == false || $("#HQty").val() == '') {
+            //    layer.msg("鏁伴噺蹇呴』涓烘暟閲忔垨灏忔暟", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //    return false;
+            //}
+            //if (reg.test($("#HBarcodeQtys").val()) == false || $("#HBarcodeQtys").val() == '') {
+            //    layer.msg("鏉$爜鏁伴噺蹇呴』涓烘暟閲忔垨灏忔暟", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //    return false;
+            //} 
+            //if (reg.test($("#HSumQtys").val()) == false || $("#HSumQtys").val() == '') {
+            //    layer.msg("鎬绘暟閲忓繀椤讳负鏁伴噺鎴栧皬鏁�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //    return false;
+            //}
             //if ($("#HSourceBillNo").val() == '') {
             //    layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
             //    return false;

--
Gitblit v1.9.1