From 6b06f514cdc2dc57258d2bfe8b762b57e96e6486 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 22 九月 2023 14:58:18 +0800
Subject: [PATCH] 项目管理:各模块相关操作后进行的刷新操作由刷新页面改为根据现有过滤条件进行过滤

---
 WebTM/views/验收入库/委外入库/Kf_EntrustInBill_Fast.html |   95 ++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 81 insertions(+), 14 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..efecb73 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"
@@ -18,7 +18,7 @@
 <body>
     <div class="layui-fluid" style="padding:0">
         <div class="layui-card">
-            <div class="layui-card-body" style="padding: 5px; height:800px;">
+            <div class="layui-card-body" style="padding: 0px; height:800px;">
                 <form class="layui-form" action="" lay-filter="component-form-group">
                     <div style="background-color:#0085E8;">
                         <span style="color: white;"><i class="layui-icon layui-icon-form"></i>濮斿鍏ュ簱鍗�</span>
@@ -43,6 +43,14 @@
                             </div>
                             <div class="layui-col-xs2">
                                 <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>
@@ -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";
                 });
             })
 
@@ -599,7 +607,8 @@
                             dataType: "json",
                             success: function (data) {
                                 if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
-                                    layer.confirm("鐢熸垚濮斿鍏ュ簱鍗�" + data.Message + $("#HBillNo").val(), {
+                                    layer.confirm(data.Message, {
+                                    //layer.confirm("鐢熸垚濮斿鍏ュ簱鍗�" + data.Message + $("#HBillNo").val(), {
                                         icon: 1,
                                         skin: 'layui-layer-lan',
                                         closeBtn: 0,
@@ -640,11 +649,11 @@
 
             //鎵潯鐮�
             $('#HBarCode').on('keydown', function (event) {
-                if (sQty == "") {
-                    sQty = 0;
-                }
+                //if (sQty == "") {
+                //    sQty = 0;
+                //}
                 if (event.keyCode == 13) {
-                    GetMeesageByBarCode
+                    GetMeesageByBarCode();
                 }
             });
             //纭畾
@@ -744,6 +753,39 @@
                 }
             });
 
+            //鎵粨搴�
+            $('#HWHNAME').on('keydown', function (event) {
+                var HBarCode = $('#HWHNAME').val()
+                if (event.keyCode == 13) {
+                    if (!HBarCode) {
+                        layer.msg('鏃犱粨搴撴潯鐮佷俊鎭紒');
+                        return;
+                    }
+                    //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+                    $.ajax({
+                        url: GetWEBURL() + "/LookingFor/getWHName_Json",
+                        type: "GET",
+                        data: { "HBarCode": HBarCode },
+                        success: function (result) {
+                            if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                //$("#HStockPlaceName").val(result.data[0].HName);
+                                //$("#HStockPlaceID").val(result.data[0].HItemID);
+                                $("#HWHID").val(result.data[0].HItemID);
+                                $("#HWHNAME").val(result.data[0].HName);
+                                element.tabChange('tab-POStockInBill', '2');
+                            }
+                            else {
+                                // $("#verifycode").click();
+                                //layer.msg(result.Message, { icon: 5 });
+                                layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                            layer.closeAll("loading");
+                        }
+                    });
+                    // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+                }
+            });
+
             //鎵潯鐮�
             function GetMeesageByBarCode(obj) {  //杩斿洖宸ヤ綔涓績
                 var sSubStr = table.cache['wl-table'];
@@ -768,6 +810,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 +904,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 +924,8 @@
                                     layer.closeAll("loading");
                                 }
                             });
+                            //娓呯┖鏁伴噺
+                            $("#HQty").val("");
                         }
                         else {
                             // $("#verifycode").click();
@@ -932,11 +981,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 +994,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 +1026,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 +1065,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