From 727ee25aeb5fcaf84e2cf009b2eacd3a86bcb3ca Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 28 十一月 2024 12:55:23 +0800
Subject: [PATCH] 新增 环境检测方案,环境检测单

---
 WebTM/views/WMS扫码模块/生产调拨/Kf_MoveStockStepInBill_PDA.html |   64 ++++++++++++++++++++++++++++----
 1 files changed, 56 insertions(+), 8 deletions(-)

diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockStepInBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockStepInBill_PDA.html"
index 2ca55d0..2755a30 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockStepInBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\350\260\203\346\213\250/Kf_MoveStockStepInBill_PDA.html"
@@ -76,11 +76,18 @@
                                             <div class="layui-col-xs3">
                                                 <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍗曞彿</label>
                                             </div>
-                                            <div class="layui-col-xs7">
-                                                <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
-                                            </div>
-                                            <div class="layui-col-xs2">
-                                                <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT">纭畾</button>
+                                            <div class="layui-col-xs9">
+                                                <div class="layui-col-xs8">
+                                                    <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
+                                                </div>
+                                                <div class="layui-col-xs2">
+                                                    <button type="button" lay-submit="" lay-filter="cmdHSourceBillNo" class="layui-btn" id="cmdHSourceBillNo" style="width:55px;">
+                                                        <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i>
+                                                    </button>
+                                                </div>
+                                                <div class="layui-col-xs2" style="float: right;">
+                                                    <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT" style="width: 40px; margin-left: 0px;padding-left:10px">OK</button>
+                                                </div>
                                             </div>
                                         </div>
                                         <div class="layui-row">
@@ -380,6 +387,7 @@
                     <input type="hidden" name="HBillType" id="HBillType">
                     <input type="hidden" name="HBillerID" id="HBillerID">
                     <input type="hidden" name="HRedBlueFlag" id="HRedBlueFlag">
+                    <input type="hidden" name="HSourceBillListCtl" id="HSourceBillListCtl">
                     <!--澶辫触鎻愮ず闊�-->
                     <div id="" style="display:none;">
                         <audio id="cs" hidden controls>
@@ -510,7 +518,7 @@
                 $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]);
                 $("#HBillType").val("1251");
                 $("#HRedBlueFlag").val("false");
-                if (sessionStorage["HSCWHSPFlag"]) {
+                if (sessionStorage["HSCWHID"] != 0 && sessionStorage["HSCWHSPFlag"]) {
                     $("#HStockPlaceID").val("0");
                     $("#HStockPlaceName").val("");
                     $("#HStockPlaceName").attr("disabled", "disabled");
@@ -522,7 +530,7 @@
                     $("#HStockPlaceName").removeAttr("disabled");
                     $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//鎸夐挳鎭㈠姝e父鐘舵��
                 }
-                if (sessionStorage["HWhSPFlag"]) {
+                if (sessionStorage["HWHID"] != 0 && sessionStorage["HWhSPFlag"]) {
                     $("#HOutStockPlaceID").val("0");
                     $("#HOutStockPlaceName").val("");
                     $("#HOutStockPlaceName").attr("disabled", "disabled");
@@ -1354,6 +1362,39 @@
             //#endregion
 
 
+            //#region 婧愬崟閫夋嫨
+
+            form.on('submit(cmdHSourceBillNo)', function () {
+                var HSourceTitle = "";
+                var HSourceBillType = $("#HMainSourceBillType").val()
+                if (HSourceBillType == '1250') {
+                    HSourceTitle = "鍒嗘寮忚皟鍑哄崟";
+                }
+
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: HSourceTitle + '鍒楄〃'//鏍囬
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/鍏叡椤甸潰/Kf_SourceBillEditDlg_PDA.html?HBillType =' + HBillType + '&HSourceBillType =' + HSourceBillType + '&HStockOrgID =' + HStockOrgID, 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                    , end: function () {
+                        if ($("#HSourceBillListCtl").val() == '1') {
+                            GetMeesageBySourceBillNo();
+                            $("#HSourceBillListCtl").val("0");  //鐢ㄤ簬鍖哄垎婧愬崟鍒楄〃鐣岄潰鍏抽棴鐘舵�侊紙1涓鸿繑鍥烇紝0涓洪��鍑猴級
+                        }
+                    }
+                })
+            });
+
+            //#endregion
+
+
             //#region 鎵弿婧愬崟鏉$爜
 
             //鎵弿婧愬崟鏉$爜
@@ -1567,7 +1608,7 @@
                     layer.load(3)
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_Json",
+                        url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_New_Json",
                         async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
                         data: { "sBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HSCWHID": sHSCWHID, "HSCSPID": sHSCSPID, "HQty": sHQty, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sSourceBillType, "HStockInOrgID": HStockInOrgID, "HStockOutOrgID": HStockOutOrgID, "HScanStyle": "", "HCustom1": "", "HCustom2": "" },
                         success: function (result) {
@@ -1903,6 +1944,13 @@
                 $("#HDeptID").val(obj[0].HItemID);
             }
         }
+        //鐐瑰嚮鎸夐挳閫夋嫨鍚�   杩斿洖婧愬崟鍗曞彿
+        function GetHSourceBillValue(obj) {
+            if (obj.length > 0) {
+                $("#HSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+                $("#HSourceBillListCtl").val("1");
+            }
+        }
 
         //鍗曟嵁涓婁紶鍓嶅垽鏂�
         function AllowLoadData(sSubStr) {

--
Gitblit v1.9.1