From 5d8e6cb6cf7f057675f8ffabed041f5da2f1e77e Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期六, 11 十月 2025 08:59:16 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/质量管理/来料检验单/QC_Add_Edit_POStockInCheckBillList.html |   10 
 WebTM/WebTM.csproj.user                                        |    2 
 WebTM/views/质量管理/出厂检验单/QC_OutCompCheckBill.html                |    4 
 WebTM/views/WMS扫码模块/生产管理/删托单/Sc_DeletePackUnionBill_PDA.html   |  538 ++++++++++------
 WebTM/views/home/console_Mobile.html                           |   18 
 WebTM/views/index_Mobile.html                                  |    2 
 WebTM/views/WMS扫码模块/生产管理/生产组托单/Sc_PackUnionBillList_PDA.html   |  328 ++++++---
 WebTM/views/WMS扫码模块/生产管理/生产组托单/Sc_PackUnionBill_PDA.html       |  964 ++++++++++++++++++-----------
 8 files changed, 1,176 insertions(+), 690 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 2f7c57c..c2c4c7b 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -3,7 +3,7 @@
   <PropertyGroup>
     <NameOfLastUsedPublishProfile>D:\鏅轰簯杩堟�漒MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
     <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
-    <ProjectView>ShowAllFiles</ProjectView>
+    <ProjectView>ProjectFiles</ProjectView>
     <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
     <Use64BitIISExpress />
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\345\210\240\346\211\230\345\215\225/Sc_DeletePackUnionBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\345\210\240\346\211\230\345\215\225/Sc_DeletePackUnionBill_PDA.html"
index 17a9120..aa08354 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\345\210\240\346\211\230\345\215\225/Sc_DeletePackUnionBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\345\210\240\346\211\230\345\215\225/Sc_DeletePackUnionBill_PDA.html"
@@ -2,7 +2,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>鍒犳墭鍗�</title>
+    <title>鐢熶骇鎷嗘墭鍗�</title>
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -14,91 +14,94 @@
     <script src="../../../../layuiadmin/Scripts/json2.js"></script>
     <script src="../../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
     <script src="../../../../layuiadmin/Scripts/webConfig.js"></script>
+    <script src="../../../../layuiadmin/PubCustom.js"></script>
     <style>
-        .layui-col-xs4 {
-            width: 12.333333%
-        }
-
         .layui-col-xs8 {
             width: 55.666667%;
         }
     </style>
 </head>
 <body>
-    <div class="layui-fluid" style="padding: 0px">
-        <div class="layui-card">
+    <div class="layui-fluid" style="padding:0">
+        <div class="layui-card" style="padding: 1px">
             <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>
+                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>鐢熶骇鎷嗘墭鍗�</span>
                     </div>
-                    <div class="layui-form-item" style="padding:10px;margin:0px">
+                    <div class="layui-form-item" style="padding:15px;margin:0px">
                         <div class="layui-row">
-                            <div class="layui-col-xs3">
-                                <label class="layui-form-label" style="width:50px;padding-left:0px;">鎵樻潯鐮�</label>
+                            <div class="layui-col-xs2">
+                                <label class="layui-form-label" style="width: 45px;padding-left: 0px;">鎵樻潯鐮�</label>
                             </div>
                             <div class="layui-col-xs8">
-                                <input type="text" name="HBarCode_Pack" id="HBarCode_Pack" lay-verify="HBarCode_Pack" autocomplete="off" class="layui-input">
+                                <input type="text" name="HBarCode_Pack" id="HBarCode_Pack" lay-verify="HBarCode_Pack" 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="" class="layui-btn" lay-filter="cmdHBarCode_Pack" id="cmdHBarCode_Pack">纭畾</button>
+                                <button type="button" lay-submit="" lay-filter="HBarCode_Pack-BT" class="layui-btn" id="HBarCode_Pack-BT" style="width: 45px; margin-left: 8px;padding-left:12px">OK</button>
                             </div>
                         </div>
-                    </div>
-                    <div class="layui-tab" lay-filter="tab-Sc_DeletePackUnionBill_PDA">
-                        <ul class="layui-tab-title" lay-filter="tab-all">
-                            <li lay-id="1">鏉$爜淇℃伅</li>
-                            <li lay-id="2">鍗曟嵁淇℃伅</li>
-                        </ul>
-                        <div class="layui-tab-content">
-                            <!--鏉$爜淇℃伅-->
-                            <div class="layui-tab-item">
-                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
-                            </div>
-                            <!--鍗曟嵁淇℃伅-->
-                            <div class="layui-tab-item">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
+                        <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Sc_DeletePackUnionBill_PDA">
+                            <ul class="layui-tab-title" lay-filter="tab-all">
+                                <li lay-id="1" style="padding:1px;">鎷嗘墭淇℃伅</li>
+                                <li lay-id="2" style="padding:1px;">鍗曟嵁淇℃伅</li>
+                            </ul>
+                            <div class="layui-tab-content">
+                                <!--鎷嗘墭淇℃伅-->
+                                <div class="layui-tab-item">
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs12">
+                                            <div class="layui-form-item" style="padding:0px;margin:0px"></div>
+                                            <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
+                                        </div>
                                     </div>
                                 </div>
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input">
-                                    </div>
-                                </div>
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input">
-                                    </div>
-                                </div>
-                            </div>
-                            <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdLoadData" id="cmdLoadData">鎻愪氦</button>
-                                    </div>
-                                    <div class="layui-col-xs3">
-                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button>
+                                <!--鍗曟嵁淇℃伅-->
+                                <div class="layui-tab-item">
+                                    <div class="layui-form-item" style="padding: 0px; margin: 0px">
+                                        <div class="layui-row">
+                                            <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="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <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="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <div class="layui-col-xs3">
+                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
+                                            </div>
+                                            <div class="layui-col-xs9">
+                                                <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
                                     </div>
                                 </div>
                             </div>
                         </div>
+                        <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+                            <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">鎷嗘墭</button>
+                            <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">閫�鍑�</button>
+                        </div>
                     </div>
+
+                    <!--闅愯棌瀛楁-->
+                    <input type="hidden" name="HBillType" id="HBillType">
+                    <!--澶辫触鎻愮ず闊�-->
                     <div id="" style="display:none;">
-                        <audio id="cs1" hidden controls>
+                        <audio id="cs" hidden controls>
                             <source src="../../../video/jingbao.wav" type="audio/ogg">
                         </audio>
                     </div>
+                    <!--鎴愬姛鎻愮ず闊�-->
                     <div id="" style="display:none;">
                         <audio id="cs2" hidden controls>
                             <source src="../../../video/success.wav" type="audio/ogg">
@@ -121,13 +124,18 @@
                 , layer = layui.layer
                 , table = layui.table
                 , form = layui.form
+                , laydate = layui.laydate
                 , element = layui.element;
             var HInterID = $('#HInterID').val()
             var HBillNo = $('#HBillNo').val()
             var HBillType = '3783'
             var HMaker = sessionStorage["HUserName"]
-            var HStockOrgID = sessionStorage["OrganizationID"]
-            var option = [];
+            var HStockOrgID = sessionStorage["OrganizationID"]  //缁勭粐ID
+            var listOption = [];
+            var columns = "";
+            var HModName = "Sc_DeletePackUnionBill_PDA";
+            var ModRightName = "CE_DeletePackUnion";  //妯″潡鏉冮檺鍙傛暟
+            var titleData = [];                     //涓嶉渶瑕佹樉绀虹殑瀛楁
 
             //#endregion
 
@@ -135,43 +143,40 @@
             if (sessionStorage.login != "login") {
                 layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
                     icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
-                }, function () { window.location.href = "../../../user/login.html"; });
+                }, function () { window.location.href = "../../../user/login_pda.html"; });
             }
 
-            //#region 鍒濆鍖栫晫闈�
+            //#region   鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
 
-            set_ClearBill();
+            //鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+            CheckModRight();
 
-            function set_ClearBill() {
-                $("#HMaker").val(HMaker);
-                $("#HMaker").attr("readonly", "readonly");
-                $("#HBillNo").attr("readonly", "readonly");
-                $("#HInterID").attr("readonly", "readonly");
-                element.tabChange('tab-Sc_DeletePackUnionBill_PDA', '1');
-                var pFocus = $("#HBarCode_Pack");
-                pFocus.focus();     //鑾峰彇鍏夋爣
-                pFocus.select();
-                set_InitGrid();     //鍒濆鍖栬〃鏍�
+            function CheckModRight() {
+                layer.load(3);
+                $.ajax({
+                    type: "GET",
+                    url: GetWEBURL() + "/WEBSController/CheckModRight_ERP_Json",
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "ModRightName": ModRightName, "HUserName": HMaker },
+                    success: function (d) {
+                        if (d.count == 1) {
+                        }
+                        else {
+                            layer.msg(d.Message, {
+                                icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                            }, function () { parent.location.href = "../../../../views/index_Mobile.html"; });
+                        }
+                    },
+                    complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
+                });
+                layer.closeAll("loading");
             }
-
-            //#region 鍒濆鍖栬〃鏍兼柟娉�
-            function set_InitGrid() {
-                option = {
-                    elem: '#wl-table'
-                    , height: 'full-50'
-                    //, page: true
-                    , cellMinWidth: 90
-                    , limit: 50
-                    //, limits: [50, 500, 5000, 20000]
-                };
-            }
-
             //#endregion
 
             //澶辫触鎻愮ず闊�
             function playSound() {
                 console.log("playSound");
-                var audio = document.getElementById("cs1");
+                var audio = document.getElementById("cs");
                 audio.play();
                 audio.onended = function () {
                     // 褰撻煶棰戞挱鎶ュ畬鎴愭椂锛岃皟鐢� pause 鍜岃缃� currentTime 涓� 0 浠ュ仠姝㈡挱鎶ュ苟閲嶇疆
@@ -191,139 +196,114 @@
                 };
             }
 
+            //#region 鍒濆鍖栫晫闈�
+
+            set_ClearBill();
+
+            function set_ClearBill() {
+                //琛ㄥご鍒濆鍖栬祴鍊�
+                $("#HMaker").val(sessionStorage["HUserName"]);
+                $("#HBillType").val(HBillType);
+                $("#HInterID").val(0);
+                $("#HBillNo").val('');
+                HInterID = $('#HInterID').val()
+                HBillNo = $('#HBillNo').val()
+
+                //榛樿鏄剧ず椤甸潰
+                element.tabChange('tab-Sc_DeletePackUnionBill_PDA', '1');
+                set_InitGrid();         //鍒濆鍖栬〃鏍�
+
+                var data = [];
+                listOption.cols = [[
+                    { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿', width: 100 }
+                    , { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 100 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 100 }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
+                ]];
+                listOption.data = data;
+                table.render(listOption);
+
+                //鍏夋爣榛樿鍦ㄦ潯鐮佷綅缃笂
+                var pFocus = $("#HBarCode_Pack");
+                pFocus.select();
+                pFocus.focus();     //鑾峰彇鍏夋爣
+            }
+
+            //鍒濆鍖栬〃鏍�
+            function set_InitGrid() {
+                listOption = {
+                    elem: '#wl-table'
+                    //, toolbar: '#toolbarDemo'
+                    , totalRow: true
+                    , height: 'full-60'
+                    , cellMinWidth: 90
+                    , limit: 200
+                };
+            }
+
+            //#region 鐐瑰嚮琛岄�変腑楂樹寒
+            table.on('row(wl-table)', function (obj) {
+                //閫変腑琛屾敼鍙橀鑹�
+                $(".layui-table-body tr ").attr({ "style": "background:" });    //鍏朵粬tr鎭㈠鍘熸牱
+                obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');   //閫変腑琛屾牱寮�
+                obj.tr.find('i[class="layui-anim layui-icon"]').trigger("click");   //閫変腑radio鏍峰紡
+                $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+            })
             //#endregion
 
-
-            //#region 鎵弿鎵樻潯鐮�
-
-            //鎸夊洖杞﹂敭杩斿洖淇℃伅
-            $('#HBarCode_Pack').on('keydown', function (event) {
-                if (event.keyCode == 13) {
-                    GetMeesageByBarCode_Pack();
-                }
-            });
-
-            //鐐瑰嚮鎸夐挳杩斿洖淇℃伅
-            form.on('submit(cmdHBarCode_Pack)', function (data) {
-                GetMeesageByBarCode_Pack();
-            });
-
-            //鎵弿鎵樻潯鐮�
-            function GetMeesageByBarCode_Pack(obj) {
-                HBarCode_Pack = $('#HBarCode_Pack').val()
-
-                if (HBarCode_Pack == '') {
-                    playSound();
-                    layer.msg("鎵樻潯鐮佷笉鑳戒负绌猴紝璇锋壂鎻忔墭鏉$爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                    return false;
-                }
-
-                $.ajax({
-                    type: "GET",
-                    url: GetWEBURL() + "/WEBSController/Get_PackBarCode_DeletePackUnionBill_Json",
-                    data: { "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
-                    success: function (result) {
-                        var col = [];
-                        if (result.count == 1) {
-                            playSound_OK();
-                            $("#HInterID").val(result.data[0].HInterID);
-                            $("#HBillNo").val(result.data[0].HBillNo);
-                            $("#HBarCode_Pack").val(result.data[0].HBarCode_Pack);
-                            $("#HBarCode_Pack").attr("readonly", "readonly");
-                            document.getElementById("cmdHBarCode_Pack").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
-                            //鍏ㄥ眬鍙橀噺璧嬪��
-                            HInterID = $('#HInterID').val()
-                            HBillNo = $('#HBillNo').val()
-                            element.tabChange('tab-Sc_DeletePackUnionBill_PDA', '1');
-                            //鏄剧ず琛ㄤ綋鏄庣粏
-                            var data = [];
-                            //缁欑┖鐨勬暟缁勮祴鍊�
-                            for (var key in result.list) {
-                                data.push({ "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
-                            }
-                            //鍒ゆ柇鏄惁鏄函鑻辨枃
-                            var patrn = new RegExp("[\u4E00-\u9FA5]+");
-                            col.push({ type: 'radio' });
-                            for (var i = 0; i < data.length; i++) {
-                                if (!patrn.test(data[i].name)) {
-                                    col.push({ field: data[i].name, title: data[i].name, hide: true }); //闅愯棌鍒�
-                                }
-                                else {
-                                    switch (data[i].Type) {
-                                        case 'DateTime':
-                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
-                                            break;
-                                        default:
-                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true });
-                                    }
-                                }
-                            }
-                            option.cols = [col];
-                            option.data = result.data;
-                            table.cache['wl-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
-                            table.render(option);
-                            layer.load(3);
-                        }
-                        else {
-                            playSound();
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                            $('#HBarCode_Pack').val("");
-                            $("#HBarCode_Pack").select();
-                            $("#HBarCode_Pack").focus();     //鑾峰彇鍏夋爣
-                        }
-                        layer.closeAll("loading");
-                    },
-                    complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
-                });
-            }
 
             //#endregion
 
 
             //#region 鍔熻兘鎺т欢
 
-            //#region 鎻愪氦涓婁紶鍔熻兘鎺т欢
-
-            form.on('submit(cmdLoadData)', function (data) {
-                HBarCode_Pack = $('#HBarCode_Pack').val()
-                document.getElementById("cmdLoadData").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
-                $.ajax(
-                    {
-                        type: "GET",
-                        url: GetWEBURL() + "/WEBSController/GetDeletePackUnionBill_Json",
-                        async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
-                        data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker },
-                        dataType: "json",
-                        success: function (data) {
-                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                                layer.confirm(data.Message, {
-                                    icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
-                                    btn2: function () {
-                                        parent.location.href = "../../../../views/index_Mobile.html"
-                                    }//鍏抽棴
-                                }, function () {
-                                    window.location.reload();   //鍒锋柊褰撳墠椤甸潰
-                                });//鏂板
-                                layer.load(3);
+            //#region 鎷嗘墭
+            form.on('submit(cmdSaver)', function (data) {
+                document.getElementById("cmdSaver").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
+                var sSubStr = table.cache['wl-table'];
+                var HBarCode_Pack = $('#HBarCode_Pack').val()
+                if (AllowLoadData(sSubStr) != false)//闈炵┖楠岃瘉
+                {
+                    layer.load(3);
+                    $.ajax(
+                        {
+                            type: "GET",
+                            url: GetWEBURL() + "/WEBSController/GetDeletePackUnionBill_Json",
+                            async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                            data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker },
+                            dataType: "json",
+                            success: function (data) {
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                    layer.confirm(data.Message, {
+                                        icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板', '鍏抽棴'],
+                                        btn2: function () {
+                                            parent.location.href = "../../../../views/index_Mobile.html";
+                                        }//鍏抽棴
+                                    }
+                                        , function () {
+                                            location.replace('Sc_DeletePackUnionBill_PDA.html?HInterID=0');
+                                        });//鏂板
+                                }
+                                else {
+                                    layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                    document.getElementById("cmdSaver").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
+                                }
+                            },
+                            complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                            error: function (err) {
+                                layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                document.getElementById("cmdSaver").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
                             }
-                            else {
-                                playSound();
-                                layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                                document.getElementById("cmdLoadData").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
-                            }
-                            layer.closeAll("loading");  //鍏抽棴鍔犺浇灞�
-                        },
-                        complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
-                        error: function (err) {
-                            layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                            document.getElementById("cmdLoadData").disabled = false;
-                        }
-                    });
+                        });
+                    layer.closeAll("loading");
+                    return;
+                }
             });
 
             //#endregion
 
-            //#region 閫�鍑哄姛鑳芥帶浠�
+            //#region 閫�鍑�
 
             form.on('submit(cmdCancel)', function () {
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
@@ -335,8 +315,154 @@
 
             //#endregion
 
+
+            //#region 鎵弿鎵樻潯鐮�
+
+            //鎵弿鎵樻潯鐮�
+            $('#HBarCode_Pack').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    GetMeesageByBarCode_Pack();
+                }
+            });
+
+            //鎵樻潯鐮佹寜閽�
+            form.on('submit(HBarCode_Pack-BT)', function (data) {
+                GetMeesageByBarCode_Pack();
+            });
+
+            //鎵墭鏉$爜
+            function GetMeesageByBarCode_Pack(obj) {
+                var HBarCode_Pack = $('#HBarCode_Pack').val()
+                if (HBarCode_Pack == '') {
+                    playSound();
+                    layer.msg("鎵樻潯鐮佷笉鑳戒负绌猴紝璇锋壂鎻忔墭鏉$爜锛�", {
+                        icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                    }, function () {
+                        $("#HBarCode_Pack").select();
+                        $("#HBarCode_Pack").focus();
+                    });
+                    return;
+                }
+                layer.load(3)
+                $.ajax({
+                    type: "GET",
+                    url: GetWEBURL() + "/WEBSController/Get_PackBarCode_DeletePackUnionBill_Json",
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
+                    success: function (result) {
+                        var data = [];
+                        var col = [];
+                        if (result.count == 1) {
+                            playSound_OK();
+                            $("#HInterID").val(result.data[0].HInterID);
+                            $("#HBillNo").val(result.data[0].HBillNo);
+                            HInterID = $('#HInterID').val()
+                            HBillNo = $('#HBillNo').val()
+
+                            //鏄剧ず琛ㄤ綋鏄庣粏
+                            //缁欑┖鐨勬暟缁勮祴鍊�
+                            for (var key in result.list) {
+                                //鍔ㄦ�佽幏鍙栧垪琛ㄦ墍鏈夊垪鍚�
+                                data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
+                                //鑾峰彇涓嶉渶瑕佹樉绀虹殑鍒楋紙H寮�澶寸殑鍒椾笉鏄剧ず锛�
+                                var patrn = new RegExp(/^h/i);
+                                if (patrn.test(result.list[key].ColmCols)) {
+                                    titleData[key] = result.list[key].ColmCols;
+                                }
+                            }
+
+                            //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+                            col.push({ type: 'radio', totalRowText: '鍚堣' });
+                            for (var i = 0; i < data.length; i++) {
+                                if ($.inArray(data[i].name, titleData) > -1) {
+                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+                                }
+                                else {
+                                    switch (data[i].Type) {
+                                        //int
+                                        case 'DateTime':
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
+                                            break;
+                                        default:
+
+                                            if (data[i].name == '鏁伴噺') {
+                                                col.push({ field: data[i].id, title: data[i].name, align: 'left', totalRow: true });
+                                            } else if (data[i].name == '鐗╂枡浠g爜') {
+                                                col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 120 });
+                                            } else if (data[i].name == '鐗╂枡鍚嶇О' || data[i].name == '瑙勬牸鍨嬪彿') {
+                                                col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 180 });
+                                            } else {
+                                                col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 220 });
+                                            }
+                                    }
+                                }
+                            }
+                            columns = col;
+                            listOption.cols = [columns];
+                            listOption.data = result.data;
+                            listOption.totalRow = true;
+                            table.cache['wl-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
+                            table.render(listOption);
+                        }
+                        else {
+                            playSound();
+                            layer.msg(result.Message, {
+                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                            }, function () {
+                                $("#HBarCode_Pack").select();
+                                $("#HBarCode_Pack").focus();
+                                listOption.cols = [[
+                                    { 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 }
+                                ]];
+                                listOption.data = data;
+                                table.render(listOption);
+                            });
+                        }
+                    },
+                    complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                    error: function (err) {
+                        playSound();
+                        layer.msg("閿欒锛�" + err, {
+                            icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () {
+                            $("#HBarCode_Pack").select();
+                            $("#HBarCode_Pack").focus();
+                            listOption.cols = [[
+                                { 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 }
+                            ]];
+                            listOption.data = data;
+                            table.render(listOption);
+                        });
+                    }
+                });
+                layer.closeAll("loading");
+            }
+
+            //#endregion
+
         });
 
+        //浠ヤ笂涓簂ayui妯″潡
+        //姝ゅ鏂规硶娑夊強鍒拌澶栭儴椤甸潰parent.鏂规硶鍚嶈皟鐢ㄧ殑蹇呴』鏀惧湪Layui鏂规硶澶栭儴
+
+        //鍗曟嵁涓婁紶鍓嶅垽鏂�
+        function AllowLoadData(sSubStr) {
+            if (sSubStr.length == 0) {
+                layer.msg("娌℃湁鎷嗘墭淇℃伅锛岃鍏堟壂鎻忔墭鏉$爜锛岀‘璁ゆ棤璇悗鍐嶆媶鎵橈紒", { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            return true;
+        }
     </script>
 
 </body>
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillList_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillList_PDA.html"
index 1e61fcf..5e298b4 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillList_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBillList_PDA.html"
@@ -22,36 +22,48 @@
                 <form class="layui-form" action="" lay-filter="component-form-group">
                     <div class="layui-tab" lay-filter="tab-Sc_PackUnionBillList_PDA">
                         <ul class="layui-tab-title" lay-filter="tab-all">
-                            <li lay-id="1">缂撳瓨鍒楄〃</li>
+                            <li lay-id="1" style="padding:1px;">缂撳瓨鍒楄〃</li>
                         </ul>
                         <div class="layui-tab-content">
-                            <div class="layui-tab-item  layui-show">
+                            <!--缂撳瓨鍒楄〃-->
+                            <div class="layui-tab-item">
                                 <div class="layui-row">
                                     <div class="layui-col-xs12">
-                                        <table class="layui-hide" id="Temp-table" lay-filter="Temp-table"></table>
+                                        <div class="layui-form-item" style="padding:0px;margin:0px"></div>
+                                        <table class="layui-hide" id="dj-table" lay-filter="dj-table"></table>
                                     </div>
                                 </div>
                             </div>
                         </div>
-                        <div class="layui-form-item" style="margin-bottom: 20px;">
-                            <div class="layui-row">
-                                <div class="layui-col-xs2">
-                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button>
-                                </div>
-                                <div class="layui-col-xs2">
-                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
-                                </div>
-                                <div class="layui-col-xs2">
-                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">鍒锋柊</button>
-                                </div>
-                                <div class="layui-col-xs2">
-                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button>
-                                </div>
-                                <div class="layui-col-xs2">
-                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdAdd">鏂板</button>
-                                </div>
-                            </div>
+                    </div>
+                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+                        <div class="layui-col-xs2" style="margin-left:0px">
+                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdModify" class="layui-btn" id="cmdModify">缂栬緫</button>
                         </div>
+                        <div class="layui-col-xs2" style="margin-left:5px">
+                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">鍒犻櫎</button>
+                        </div>
+                        <div class="layui-col-xs2" style="margin-left:5px">
+                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdRefresh" class="layui-btn" id="cmdRefresh">鍒锋柊</button>
+                        </div>
+                        <div class="layui-col-xs2" style="margin-left:5px">
+                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">閫�鍑�</button>
+                        </div>
+                        <div class="layui-col-xs2" style="margin-left:5px">
+                            <button type="button" lay-submit="" style="width: 60px; float: right" lay-filter="cmdAdd" class="layui-btn" id="cmdAdd">鏂板</button>
+                        </div>
+                    </div>
+                    <!--澶辫触鎻愮ず闊�-->
+                    <div id="" style="display:none;">
+                        <audio id="cs" hidden controls>
+                            <source src="../../../video/jingbao.wav" type="audio/ogg">
+                        </audio>
+                    </div>
+                    <!--鎴愬姛鎻愮ず闊�-->
+                    <div id="" style="display:none;">
+                        <audio id="cs2" hidden controls>
+                            <source src="../../../video/success.wav" type="audio/ogg">
+                        </audio>
                     </div>
                 </form>
             </div>
@@ -63,8 +75,6 @@
     }).extend({
         index: 'lib/index' //涓诲叆鍙fā鍧�
     }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
-
-        //#region 鍏叡鍙橀噺
         var $ = layui.$
         , admin = layui.admin
         , layer = layui.layer
@@ -73,169 +83,270 @@
         , element = layui.element;
         var HBillType = '3783'
         var HMaker = sessionStorage["HUserName"]
-        var HStockOrgID = sessionStorage["OrganizationID"]
-        var option = [];
+        var HStockOrgID = sessionStorage["OrganizationID"]  //缁勭粐ID
+        var listOption = [];    //缂撳瓨鍒楄〃
+        var columns = "";
+        var MvarReportTitle = "鐢熶骇缁勬墭鍗曠紦瀛樺垪琛�";
+        var HModName = "Sc_PackUnionBillList_PDA";
+        var ModRightName = "CE_PackUnion";    //妯″潡鏉冮檺鍙傛暟
+        var titleData = [];     //涓嶉渶瑕佹樉绀虹殑瀛楁
+
+        //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+        if (sessionStorage.login != "login") {
+            layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+                icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+            }, function () { window.location.href = "../../user/login_pda.html"; });
+        }
+
+        //#region   鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+
+        //鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+        CheckModRight();
+
+        function CheckModRight() {
+            layer.load(3);
+            $.ajax({
+                type: "GET",
+                url: GetWEBURL() + "/WEBSController/CheckModRight_ERP_Json",
+                async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                data: { "ModRightName": ModRightName, "HUserName": HMaker },
+                success: function (d) {
+                    if (d.count == 1) {
+                    }
+                    else {
+                        layer.msg(d.Message, {
+                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () { parent.location.href = "../../../../views/index_Mobile.html"; });
+                    }
+                },
+                complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
+            });
+            layer.closeAll("loading");
+        }
+        //#endregion
+
+        //澶辫触鎻愮ず闊�
+        function playSound() {
+            console.log("playSound");
+            var audio = document.getElementById("cs");
+            audio.play();
+            audio.onended = function () {
+                // 褰撻煶棰戞挱鎶ュ畬鎴愭椂锛岃皟鐢� pause 鍜岃缃� currentTime 涓� 0 浠ュ仠姝㈡挱鎶ュ苟閲嶇疆
+                audio.pause();
+                audio.currentTime = 0;
+            };
+        }
+        //鎴愬姛鎻愮ず闊�
+        function playSound_OK() {
+            console.log("playSound_OK");
+            var audio = document.getElementById("cs2");
+            audio.play();
+            audio.onended = function () {
+                // 褰撻煶棰戞挱鎶ュ畬鎴愭椂锛岃皟鐢� pause 鍜岃缃� currentTime 涓� 0 浠ュ仠姝㈡挱鎶ュ苟閲嶇疆
+                audio.pause();
+                audio.currentTime = 0;
+            };
+        }
 
         //#region 鍒濆鍖栫晫闈�
 
         set_ClearBill();
 
         function set_ClearBill() {
+            //榛樿鏄剧ず椤甸潰
             element.tabChange('tab-Sc_PackUnionBillList_PDA', '1');
-            //鍒濆鍖栬〃鏍�
-            set_InitGrid();
-            //璇诲彇鍗曟嵁鍒楄〃
-            DisBillEntryList();
+            set_InitGrid();     //鍒濆鍖栬〃鏍�
+            //鏄剧ず缂撳瓨鍒楄〃淇℃伅
+            DisTempEntryList();
         }
 
-        //#region 鍒濆鍖栬〃鏍兼柟娉�
+        //鍒濆鍖栬〃鏍�
         function set_InitGrid() {
-            option = {
-                elem: '#Temp-table'
-                , height: 'full-50'
-                //, page: true
+            //缂撳瓨鍒楄〃
+            listOption = {
+                elem: '#dj-table'
+                , height: 'full-150'
+                , page: true //寮�鍚垎椤�
                 , cellMinWidth: 90
                 , limit: 50
-                //, limits: [50, 500, 5000, 20000]
             };
         }
 
+        //#region 鐐瑰嚮琛岄�変腑楂樹寒
+        table.on('row(dj-table)', function (obj) {
+            //閫変腑琛屾敼鍙橀鑹�
+            $(".layui-table-body tr ").attr({ "style": "background:" });    //鍏朵粬tr鎭㈠鍘熸牱
+            obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');   //閫変腑琛屾牱寮�
+            obj.tr.find('i[class="layui-anim layui-icon"]').trigger("click");   //閫変腑radio鏍峰紡
+            $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+        })
         //#endregion
 
         //#endregion
 
-
-        //#region 缂撳瓨鍒楄〃鐣岄潰    鎺т欢浜嬩欢
 
         //#region 缂栬緫鍔熻兘鎺т欢
-        form.on('submit(cmdModify)', function () {
-            var checkStatus = table.checkStatus('Temp-table')
-                , data = checkStatus.data;
-            layer.open({
-                type: 2
-                , area: ['100%', '100%']
-                , title: '鐢熶骇缁勬墭鍗�'
-                , shade: 0.6 //閬僵閫忔槑搴�
-                , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                , content: ['../../../WMS鎵爜妯″潡/鐢熶骇绠$悊/鐢熶骇缁勬墭鍗�/Sc_PackUnionBill_PDA.html?HInterID_Temp=' + data[0].HInterID + '& HBillNo_Temp=' + data[0].HBillNo + '& HBarCode_Pack_Temp=' + data[0].HBarCode_Pack, 'yes']
-                , resize: false
-                , cancel: function () {
-                    $(".layui-btn").removeClass("layui-btn-disabled");
-                }
-            })
-        });
-        //#endregion
 
-        //#region 鍒犻櫎鍔熻兘鎺т欢
-        form.on('submit(cmdDelete)', function () {
-            var checkStatus = table.checkStatus('Temp-table')
+        form.on('submit(cmdModify)', function () {
+            var checkStatus = table.checkStatus('dj-table')
                 , data = checkStatus.data;
             if (checkStatus.data.length === 1) {
-                layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗灏嗕笉鍙仮澶嶏紒", { title: "鍒犻櫎纭" }, function (index) {
-                    var sInterID = data[0].HInterID;
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '鐢熶骇缁勬墭鍗�'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../WMS鎵爜妯″潡/鐢熶骇绠$悊/鐢熶骇缁勬墭鍗�/Sc_PackUnionBill_PDA.html?OperationType=2&HBarCode_Pack_Temp=' + data[0].HBarCode_Pack, 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        $(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            }
+            else {
+                layer.msg('璇峰厛閫変腑涓�琛屾暟鎹紒');
+            }
+        });
+
+        //#endregion
+
+
+        //#region 鍒犻櫎鍔熻兘鎺т欢
+
+        form.on('submit(cmdDelete)', function () {
+            var checkStatus = table.checkStatus('dj-table')
+                , data = checkStatus.data;
+            if (checkStatus.data.length === 1) {
+                layer.confirm("纭瑕佸垹闄ら�変腑琛屾墍鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�", { title: "鍒犻櫎纭" }, function (index) {
+                    layer.load(3)
                     $.ajax(
                         {
                             type: "GET",
                             url: GetWEBURL() + "/WEBSController/DeleteTemp_PackUnionBill_Json",
-                            async: true,
-                            data: { "HInterID": sInterID },
+                            async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                            data: { "HInterID": data[0].HInterID },
                             dataType: "json",
                             success: function (data) {
                                 if (data.count == 1) {
                                     layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
-                                        DisBillEntryList(); //鏄剧ず琛ㄤ綋鏄庣粏
-                                        //// 寰楀埌frame绱㈠紩
-                                        //var index = layer.getFrameIndex(window.name);
-                                        ////鍏抽棴褰撳墠frame
-                                        //layer.close(index);
-                                        ////淇敼鎴愬姛鍚庡埛鏂扮晫闈�
-                                        //window.location.reload();
+                                        //鏄剧ず缂撳瓨鍒楄〃淇℃伅
+                                        DisTempEntryList();
                                     });
                                 }
                                 else {
-                                    layer.msg(data.Message, { icon: 2 });
+                                    playSound();
+                                    layer.msg(data.Message, { icon: 2, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                                 }
                             },
                             complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
                             error: function (err) {
-                                layer.msg('閿欒' + err, {
-                                    icon: 5,
-                                    time: 20000
-                                }, function () {
-                                });
+                                layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                             }
                         });
-                    })
-                }
-                else {
-                    layer.msg('璇烽�夋嫨涓�琛岃褰曪紝杩涜鍒犻櫎锛�');
+                    layer.closeAll("loading");
+                })
+            }
+            else {
+                layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
             }
         });
+
         //#endregion
 
+
         //#region 鍒锋柊鍔熻兘鎺т欢
+
         form.on('submit(cmdRefresh)', function () {
-            DisBillEntryList();
+            //鏄剧ず缂撳瓨鍒楄〃淇℃伅
+            DisTempEntryList();
         });
 
-        function DisBillEntryList() {
-            var ajaxLoad = layer.load();
+        //鏄剧ず缂撳瓨鍒楄〃淇℃伅
+        function DisTempEntryList() {
+            layer.load(3)
             $.ajax({
                 type: "GET",
                 url: GetWEBURL() + '/WEBSController/GetSc_PackUnionBill_TempList_Json',
+                async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
                 data: { "HBillType": HBillType, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
-                success: function (data1) {
+                success: function (result) {
+                    var data = [];
                     var col = [];
-                    if (data1.count == 1) {
-                        var data = [];
+                    if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
                         //缁欑┖鐨勬暟缁勮祴鍊�
-                        for (var key in data1.list) {
-                            data.push({ "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
+                        for (var key in result.list) {
+                            //鍔ㄦ�佽幏鍙栧垪琛ㄦ墍鏈夊垪鍚�
+                            data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
+                            //鑾峰彇涓嶉渶瑕佹樉绀虹殑鍒楋紙H寮�澶寸殑鍒椾笉鏄剧ず锛�
+                            var patrn = new RegExp(/^h/i);
+                            if (patrn.test(result.list[key].ColmCols)) {
+                                titleData[key] = result.list[key].ColmCols;
+                            }
                         }
-                        //鍒ゆ柇鏄惁鏄函鑻辨枃
-                        var patrn = new RegExp("[\u4E00-\u9FA5]+");
+
+                        //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
                         col.push({ type: 'radio' });
                         for (var i = 0; i < data.length; i++) {
-                            if (!patrn.test(data[i].name)) {
-                                col.push({ field: data[i].name, title: data[i].name, hide: true }); //闅愯棌鍒�
+                            if ($.inArray(data[i].name, titleData) > -1) {
+                                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
                             }
                             else {
                                 switch (data[i].Type) {
+                                    //int
                                     case 'DateTime':
-                                        col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
+                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
                                         break;
                                     default:
-                                        col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true });
+
+                                    if (data[i].name == '鎵樻潯鐮�') {
+                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 200 });
+                                    } else if (data[i].name == '鍗曟嵁鍙�' || data[i].name == '缁勭粐') {
+                                        col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 150 });
+                                    } else {
+                                        col.push({ field: data[i].id, title: data[i].name, align: 'left' });
+                                    }
                                 }
                             }
                         }
-                        option.cols = [col];
-                        option.data = data1.data;
-                        table.cache['Temp-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
-                        table.render(option);
-                        layer.close(ajaxLoad);
-                    } else {
-                        layer.close(ajaxLoad);
-                        layer.alert(data1.code + data1.Message, { icon: 5 });
+                        columns = col;
+                        listOption.cols = [columns];
+                        listOption.data = result.data;
+                        //listOption.totalRow = true;
+                        table.cache['dj-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
+                        table.render(listOption);
+                    }
+                    else {
+                        listOption.cols = [[
+                            { field: '鎵樻潯鐮�', title: '鎵樻潯鐮�', width: 100 }
+                            , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 100 }
+                            , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 100 }
+                            , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 100 }
+                            , { field: '缁勭粐', title: '缁勭粐', width: 100 }
+                        ]];
+                        listOption.data = data;
+                        //listOption.totalRow = true;
+                        table.render(listOption);
+                        //layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                     }
                 },
-                complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
-                error: function () {
-                    layer.close(ajaxLoad);
-                    layer.alert("鍒锋柊缂撳瓨鍒楄〃淇℃伅锛屾帴鍙h姹傚け璐�!", { icon: 5 });
-                }
+                complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
             });
+            layer.closeAll("loading");
         }
 
         //#endregion
 
+
         //#region 閫�鍑哄姛鑳芥帶浠�
+
         form.on('submit(cmdCancel)', function () {
             layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                parent.location.href = "../../../../views/index_Mobile.html"
+                parent.location.href = "../../../../views/index_Mobile.html";
             });
         })
+
         //#endregion
 
         //#region 鏂板鍔熻兘鎺т欢
@@ -257,10 +368,7 @@
 
         //#endregion
 
-        //#endregion
-
     });
-
     </script>
 
 </body>
diff --git "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBill_PDA.html" "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBill_PDA.html"
index 56f4990..95da515 100644
--- "a/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBill_PDA.html"
+++ "b/WebTM/views/WMS\346\211\253\347\240\201\346\250\241\345\235\227/\347\224\237\344\272\247\347\256\241\347\220\206/\347\224\237\344\272\247\347\273\204\346\211\230\345\215\225/Sc_PackUnionBill_PDA.html"
@@ -14,107 +14,126 @@
     <script src="../../../../layuiadmin/Scripts/json2.js"></script>
     <script src="../../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
     <script src="../../../../layuiadmin/Scripts/webConfig.js"></script>
+    <script src="../../../../layuiadmin/PubCustom.js"></script>
     <style>
-        .layui-col-xs4 {
-            width: 12.333333%
-        }
-
         .layui-col-xs8 {
             width: 55.666667%;
         }
     </style>
 </head>
 <body>
-    <div class="layui-fluid" style="padding: 0px">
-        <div class="layui-card">
+    <div class="layui-fluid" style="padding:0">
+        <div class="layui-card" style="padding: 1px">
             <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>
                     </div>
-                    <div class="layui-form-item" style="padding:10px;margin:0px">
+                    <div class="layui-form-item" style="padding:15px;margin:0px">
                         <div class="layui-row">
-                            <div class="layui-col-xs3">
-                                <label class="layui-form-label" style="width:50px;padding-left:0px;">鎵樻潯鐮�</label>
+                            <div class="layui-col-xs2">
+                                <label class="layui-form-label" style="width: 45px;padding-left: 0px;">鎵樻潯鐮�</label>
                             </div>
                             <div class="layui-col-xs8">
-                                <input type="text" name="HBarCode_Pack" id="HBarCode_Pack" lay-verify="HBarCode_Pack" autocomplete="off" class="layui-input">
+                                <input type="text" name="HBarCode_Pack" id="HBarCode_Pack" lay-verify="HBarCode_Pack" 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="" class="layui-btn" lay-filter="cmdHBarCode_Pack" id="cmdHBarCode_Pack">纭畾</button>
+                                <button type="button" lay-submit="" lay-filter="HBarCode_Pack-BT" class="layui-btn" id="HBarCode_Pack-BT" style="width: 45px; margin-left: 8px;padding-left:12px">OK</button>
                             </div>
                         </div>
-                    </div>
-                    <div class="layui-form-item" style="padding:10px;margin:0px">
-                        <div class="layui-row">
-                            <div class="layui-col-xs3">
-                                <label class="layui-form-label" style="width:50px;padding-left:0px;">鏉$爜</label>
-                            </div>
-                            <div class="layui-col-xs8">
-                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
-                            </div>
-                            <div class="layui-col-xs2">
-                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdHBarCode">纭畾</button>
+                        <div class="layui-row" style="margin-top: 5px; margin-bottom: 0px;">
+                            <div class="layui-row">
+                                <div class="layui-col-xs2">
+                                    <label class="layui-form-label" style="width: 45px;padding-left: 0px;">鏉$爜</label>
+                                </div>
+                                <div class="layui-col-xs8">
+                                    <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" 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="HBarCode-BT" class="layui-btn" id="HBarCode-BT" style="width: 45px; margin-left: 8px;padding-left:12px">OK</button>
+                                </div>
                             </div>
                         </div>
-                    </div>
-                    <div class="layui-tab" lay-filter="tab-Sc_PackUnionBill_PDA">
-                        <ul class="layui-tab-title" lay-filter="tab-all">
-                            <li lay-id="1">缁勬墭淇℃伅</li>
-                            <li lay-id="2">鍗曟嵁淇℃伅</li>
-                        </ul>
-                        <div class="layui-tab-content">
-                            <!--缁勬墭淇℃伅-->
-                            <div class="layui-tab-item">
-                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
-                            </div>
-                            <!--鍗曟嵁淇℃伅-->
-                            <div class="layui-tab-item">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍒跺崟浜�</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input">
+                        <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Sc_PackUnionBill_PDA">
+                            <ul class="layui-tab-title" lay-filter="tab-all">
+                                <li lay-id="1" style="padding:1px;">缁勬墭淇℃伅</li>
+                                <li lay-id="2" style="padding:1px;">鍗曟嵁淇℃伅</li>
+                            </ul>
+                            <div class="layui-tab-content">
+                                <!--缁勬墭淇℃伅-->
+                                <div class="layui-tab-item">
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs12">
+                                            <div class="layui-form-item" style="padding:0px;margin:0px"></div>
+                                            <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
+                                        </div>
                                     </div>
                                 </div>
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁鍙�</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input">
-                                    </div>
-                                </div>
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
-                                    </div>
-                                    <div class="layui-col-xs8 layui-input-inline mobile">
-                                        <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input">
-                                    </div>
-                                </div>
-                            </div>
-                            <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs3">
-                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdLoadData" id="cmdLoadData">鎻愪氦</button>
-                                    </div>
-                                    <div class="layui-col-xs3">
-                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
-                                    </div>
-                                    <div class="layui-col-xs3">
-                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">閫�鍑�</button>
+                                <!--鍗曟嵁淇℃伅-->
+                                <div class="layui-tab-item">
+                                    <div class="layui-form-item" style="padding: 0px; margin: 0px">
+                                        <div class="layui-row">
+                                            <div class="layui-col-xs3">
+                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">鏃ユ湡</label>
+                                            </div>
+                                            <div class="layui-col-xs9">
+                                                <input name="HDate" id="HDate" autocomplete="off" class="layui-input">
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <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="HMaker" id="HMaker" lay-verify="HMaker" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <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="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <div class="layui-col-xs3">
+                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁ID</label>
+                                            </div>
+                                            <div class="layui-col-xs9">
+                                                <input type="text" name="HInterID" id="HInterID" lay-verify="HInterID" value="0" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                            </div>
+                                        </div>
+                                        <div class="layui-row">
+                                            <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="HStockOrgName" id="HStockOrgName" lay-verify="HStockOrgName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled>
+                                                <input type="hidden" name="HStockOrgID" id="HStockOrgID" lay-verify="HStockOrgID" value="0" autocomplete="off" class="layui-input">
+                                            </div>
+                                        </div>
                                     </div>
                                 </div>
                             </div>
                         </div>
+                        <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+                            <button type="button" lay-submit="" lay-filter="cmdSaver" class="layui-btn" id="cmdSaver">鎻愪氦</button>
+                            <button type="button" lay-submit="" lay-filter="cmdDelete" class="layui-btn" id="cmdDelete">鍒犻櫎</button>
+                            <button type="button" lay-submit="" lay-filter="cmdCancel" class="layui-btn" id="cmdCancel">閫�鍑�</button>
+                        </div>
                     </div>
+
+                    <!--闅愯棌瀛楁-->
+                    <input type="hidden" name="HBillType" id="HBillType">
+                    <input type="hidden" name="HBillSubType" id="HBillSubType">
+                    <!--澶辫触鎻愮ず闊�-->
                     <div id="" style="display:none;">
-                        <audio id="cs1" hidden controls>
+                        <audio id="cs" hidden controls>
                             <source src="../../../video/jingbao.wav" type="audio/ogg">
                         </audio>
                     </div>
+                    <!--鎴愬姛鎻愮ず闊�-->
                     <div id="" style="display:none;">
                         <audio id="cs2" hidden controls>
                             <source src="../../../video/success.wav" type="audio/ogg">
@@ -137,15 +156,24 @@
                 , layer = layui.layer
                 , table = layui.table
                 , form = layui.form
+                , laydate = layui.laydate
                 , element = layui.element;
             var HInterID = $('#HInterID').val()
             var HBillNo = $('#HBillNo').val()
             var HBillType = '3783'
-            var HBarCode_Pack = sessionStorage["HBarCode_Pack"]
+            var HBillSubType = '1'  //瀛愮被鍨嬶紙1瑁呯銆佹爣鍑嗙粍鎵樸��2缁勬墭锛�
             var HMaker = sessionStorage["HUserName"]
-            var HStockOrgID = sessionStorage["OrganizationID"]
-            var SourceFlag = sessionStorage["SourceFlag"];  //鎵樻潯鐮佸凡鎵爣蹇�
-            var option = [];
+            var HStockOrgID = sessionStorage["OrganizationID"]  //缁勭粐ID
+            var OperationType = 1       //鎿嶄綔绫诲瀷锛�1鏂板銆�2浠庣紦瀛樺垪琛ㄤ腑杩斿洖锛�
+            var HMaterNumber_Pack = ""; //鎵樻潯鐮佸搴旂墿鏂欎唬鐮�
+            var listOption = [];
+            var columns = "";
+            var HModName = "Sc_PackUnionBill_PDA";
+            var ModRightName = "CE_PackUnion";  //妯″潡鏉冮檺鍙傛暟
+            var titleData = [];                     //涓嶉渶瑕佹樉绀虹殑瀛楁
+            var params = get_UrlVars();
+            var OperationType = params[params[0]] == null ? 1 : params[params[0]];  //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鏁版嵁绫诲瀷锛�1鏂板銆�2浠庣紦瀛樺垪琛ㄤ腑杩斿洖锛�
+            var HBarCode_Pack_Temp = params[params[1]]; //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鎵樻潯鐮�
 
             //#endregion
 
@@ -153,100 +181,40 @@
             if (sessionStorage.login != "login") {
                 layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
                     icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
-                }, function () { window.location.href = "../../../user/login.html"; });
+                }, function () { window.location.href = "../../../user/login_pda.html"; });
             }
 
-            //#region 鍒濆鍖栫晫闈�
+            //#region   鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
 
-            set_ClearBill();
+            //鐢ㄦ埛妯″潡鏉冮檺鍒ゆ柇
+            CheckModRight();
 
-            function set_ClearBill() {
-                $("#HMaker").val(HMaker);
-                $("#HMaker").attr("readonly", "readonly");
-                $("#HBillNo").attr("readonly", "readonly");
-                $("#HInterID").attr("readonly", "readonly");
-                element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
-                var pFocus = $("#HBarCode_Pack");
-                pFocus.focus();     //鑾峰彇鍏夋爣
-                pFocus.select();
-                set_InitGrid();     //鍒濆鍖栬〃鏍�
-            }
-
-            //#region 鍒濆鍖栬〃鏍兼柟娉�
-            function set_InitGrid() {
-                option = {
-                    elem: '#wl-table'
-                    , height: 'full-50'
-                    //, page: true
-                    , cellMinWidth: 90
-                    , limit: 50
-                    //, limits: [50, 500, 5000, 20000]
-                };
-            }
-
-            //#endregion
-
-            //#region   浠庣紦瀛樺垪琛ㄤ腑杩斿洖淇℃伅
-            function getBillTemp() {
-                var vars = [], hash;
-                var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
-                for (var i = 0; i < hashes.length; i++) {
-                    hash = hashes[i].split('=');
-                    vars.push(hash[0]);
-                    vars[hash[0]] = hash[1];
-                }
-                return vars;
-            }
-            var params = getBillTemp();
-            var HInterID_Temp = params[params[0]];      //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鍗曟嵁ID
-            var HBillNo_Temp = params[params[1]];       //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鍗曟嵁鍙�
-            var HBarCode_Pack_Temp = params[params[2]]; //浠庣紦瀛樺垪琛ㄤ腑杩斿洖鎵樻潯鐮�
-
-            //#endregion
-
-            //鍒ゆ柇鏄惁鏂板
-            if (HInterID_Temp == null || HInterID_Temp == 0) {
-                //鑾峰彇鏈�澶у崟鎹甀D銆佸崟鎹彿
+            function CheckModRight() {
+                layer.load(3);
                 $.ajax({
                     type: "GET",
-                    url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json",
-                    data: { "HBillType": HBillType },
+                    url: GetWEBURL() + "/WEBSController/CheckModRight_ERP_Json",
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "ModRightName": ModRightName, "HUserName": HMaker },
                     success: function (d) {
                         if (d.count == 1) {
-                            $("#HInterID").val(d.data[0].HInterID);
-                            $("#HBillNo").val(d.data[0].HBillNo);
-                            HInterID = $('#HInterID').val()
-                            HBillNo = $('#HBillNo').val()
                         }
                         else {
-                            layer.msg(d.Message, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                            layer.msg(d.Message, {
+                                icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                            }, function () { parent.location.href = "../../../../views/index_Mobile.html"; });
                         }
                     },
                     complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
                 });
-                SourceFlag = false;
+                layer.closeAll("loading");
             }
-            //浠庣紦瀛樺垪琛ㄧ紪杈戝姛鑳借烦杞嚦鍗曟嵁妯″潡
-            else {
-                $('#HInterID').val(HInterID_Temp)
-                $('#HBillNo').val(HBillNo_Temp)
-                $('#HBarCode_Pack').val(HBarCode_Pack_Temp)
-                $("#HBarCode_Pack").attr("readonly", "readonly");
-                HInterID = $('#HInterID').val()
-                HBillNo = $('#HBillNo').val()
-                HBarCode_Pack = $('#HBarCode_Pack').val()
-                $("#HBarCode").focus();
-                element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
-
-                //鏄剧ず琛ㄤ綋鏄庣粏
-                DisBillEntryList();
-                SourceFlag = true;
-            }
+            //#endregion
 
             //澶辫触鎻愮ず闊�
             function playSound() {
                 console.log("playSound");
-                var audio = document.getElementById("cs1");
+                var audio = document.getElementById("cs");
                 audio.play();
                 audio.onended = function () {
                     // 褰撻煶棰戞挱鎶ュ畬鎴愭椂锛岃皟鐢� pause 鍜岃缃� currentTime 涓� 0 浠ュ仠姝㈡挱鎶ュ苟閲嶇疆
@@ -266,174 +234,102 @@
                 };
             }
 
+            //#region 鍒濆鍖栫晫闈�
+
+            set_ClearBill();
+
+            function set_ClearBill() {
+                //琛ㄥご鍒濆鍖栬祴鍊�
+                $("#HMaker").val(sessionStorage["HUserName"]);
+                $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+                $("#HStockOrgID").val(sessionStorage["OrganizationID"]);
+                $("#HStockOrgName").val(sessionStorage["Organization"]);
+                $("#HBillType").val(HBillType);
+                $("#HBillSubType").val(HBillSubType);
+
+                //榛樿鏄剧ず椤甸潰
+                element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
+                set_InitDate();         //鍒濆鍖栬〃鍗曟椂闂�
+                set_InitGrid();         //鍒濆鍖栬〃鏍�
+
+                var data = [];
+                listOption.cols = [[
+                    { 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 }
+                ]];
+                listOption.data = data;
+                table.render(listOption);
+
+                //鍏夋爣榛樿鍦ㄦ潯鐮佷綅缃笂
+                var pFocus = $("#HBarCode_Pack");
+                pFocus.select();
+                pFocus.focus();     //鑾峰彇鍏夋爣
+            }
+
+            //鍒濆鍖栬〃鍗曟椂闂存彃浠�
+            function set_InitDate() {
+                //甯歌鐢ㄦ硶
+                laydate.render({
+                    elem: '#HDate'
+                });
+            }
+            //鍒濆鍖栬〃鏍�
+            function set_InitGrid() {
+                listOption = {
+                    elem: '#wl-table'
+                    //, toolbar: '#toolbarDemo'
+                    , totalRow: true
+                    , height: 'full-60'
+                    , cellMinWidth: 90
+                    , limit: 200
+                };
+            }
+
+            //#region 鐐瑰嚮琛岄�変腑楂樹寒
+            table.on('row(wl-table)', function (obj) {
+                //閫変腑琛屾敼鍙橀鑹�
+                $(".layui-table-body tr ").attr({ "style": "background:" });    //鍏朵粬tr鎭㈠鍘熸牱
+                obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click');   //閫変腑琛屾牱寮�
+                obj.tr.find('i[class="layui-anim layui-icon"]').trigger("click");   //閫変腑radio鏍峰紡
+                $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" }); //鏀瑰彉褰撳墠tr鑳屾櫙棰滆壊鍜屽瓧浣撻鑹�
+            })
             //#endregion
 
-
-            //#region 鎵弿鎵樻潯鐮�
-
-            //鎸夊洖杞﹂敭杩斿洖淇℃伅
-            $('#HBarCode_Pack').on('keydown', function (event) {
-                if (event.keyCode == 13) {
-                    GetMeesageByBarCode_Pack();
-                }
-            });
-
-            //鐐瑰嚮鎸夐挳杩斿洖淇℃伅
-            form.on('submit(cmdHBarCode_Pack)', function (data) {
+            //鍒ゆ柇鏄惁鏂板锛岃幏鍙栨渶澶у崟鎹彿
+            if (HInterID != 0) {
+            }
+            //浠庣紦瀛樺垪琛ㄧ紪杈戝姛鑳借烦杞嚦鍗曟嵁妯″潡
+            else if (OperationType == 2) {
+                $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+                $("#HBarCode_Pack").val(HBarCode_Pack_Temp);
                 GetMeesageByBarCode_Pack();
-            });
-
-            //鎵弿鎵樻潯鐮�
-            function GetMeesageByBarCode_Pack(obj) {
-                HBarCode_Pack = $('#HBarCode_Pack').val()
-
-                if (HBarCode_Pack == '') {
-                    playSound();
-                    layer.msg("鎵樻潯鐮佷笉鑳戒负绌猴紝璇锋壂鎻忔墭鏉$爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                    return false;
-                }
-
+                //鏄剧ず琛ㄤ綋鏄庣粏
+                DisBillEntryList();
+                element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
+            }
+            else {
+                //鑾峰彇鏈�澶у崟鎹甀D銆佸崟鎹彿
                 $.ajax({
                     type: "GET",
-                    url: GetWEBURL() + "/WEBSController/Get_PackBarCode_PackUnionBill_Json",
-                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
-                    success: function (result) {
-                        if (result.count == 1) {
-                            playSound_OK();
-                            $("#HBarCode_Pack").val(result.data.hBarCodeField);
-                            $("#HBarCode_Pack").attr("readonly", "readonly");
-                            $("#HBarCode").select();
-                            $("#HBarCode").focus();     //鑾峰彇鍏夋爣
-                            document.getElementById("cmdHBarCode_Pack").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
-                            element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
-                            //鏄剧ず琛ㄤ綋鏄庣粏
-                            DisBillEntryList();
-                            SourceFlag = true;
-                            layer.load(3);
+                    url: GetWEBURL() + "/WEBSController/GetMaxBillNoAndID_Json",
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "HBillType": HBillType },
+                    success: function (d) {
+                        if (d.count == 1) {
+                            $("#HInterID").val(d.data[0].HInterID);
+                            $("#HBillNo").val(d.data[0].HBillNo);
+                            HInterID = $('#HInterID').val()
+                            HBillNo = $('#HBillNo').val()
                         }
                         else {
-                            playSound();
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                            $('#HBarCode_Pack').val("");
-                            $("#HBarCode_Pack").select();
-                            $("#HBarCode_Pack").focus();     //鑾峰彇鍏夋爣
+                            layer.msg(d.Message, { icon: 0, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
                         }
-                        layer.closeAll("loading");
                     },
                     complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
-                });
-            }
-
-            //#endregion
-
-
-            //#region 鎵弿鐗╂枡鏉$爜
-
-            //鎸夊洖杞﹂敭杩斿洖淇℃伅
-            $('#HBarCode').on('keydown', function (event) {
-                if (event.keyCode == 13) {
-                    GetMeesageByBarCode();
-                }
-            });
-
-            //鐐瑰嚮鎸夐挳杩斿洖淇℃伅
-            form.on('submit(cmdHBarCode)', function (data) {
-                GetMeesageByBarCode();
-            });
-
-            //鎵弿鐗╂枡鏉$爜
-            function GetMeesageByBarCode(obj) {
-                var sBarCode = $('#HBarCode').val()
-
-                if (sBarCode == '') {
-                    playSound();
-                    layer.msg("鏉$爜涓嶈兘涓虹┖锛岃鎵弿鏉$爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                    return false;
-                }
-                else if (SourceFlag == false) {
-                    playSound();
-                    layer.msg("娌℃湁鎵弿鎵樻潯鐮侊紝璇峰厛鎵弿鎵樻潯鐮侊紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                    return false;
-                }
-                if (sBarCode != "") {
-                    $('#HBarCode').val("");
-                }
-
-                $.ajax({
-                    type: "GET",
-                    url: GetWEBURL() + "/WEBSController/Get_BarCode_PackUnionBill_Json",
-                    data: { "HBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
-                    success: function (result) {
-                        if (result.count == 1) {
-                            playSound_OK();
-                            $("#HBarCode").select();
-                            $("#HBarCode").focus();     //鑾峰彇鍏夋爣
-                            element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
-                            //鏄剧ず琛ㄤ綋鏄庣粏
-                            DisBillEntryList();
-                            layer.load(3)
-                        }
-                        else {
-                            playSound();
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                        }
-                        layer.closeAll("loading");
-                    },
-                    complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
-                });
-            }
-
-            //#endregion
-
-
-            //#region 鏄剧ず鐗╂枡鍒楄〃淇℃伅
-
-            function DisBillEntryList() {
-                var ajaxLoad = layer.load();
-                $.ajax({
-                    type: "GET",
-                    url: GetWEBURL() + '/WEBSController/GetBillEntry_Tmp_Pack_Json',
-                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType },
-                    success: function (data1) {
-                        var col = [];
-                        if (data1.count == 1) {
-                            var data = [];
-                            //缁欑┖鐨勬暟缁勮祴鍊�
-                            for (var key in data1.list) {
-                                data.push({ "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
-                            }
-                            //鍒ゆ柇鏄惁鏄函鑻辨枃
-                            var patrn = new RegExp("[\u4E00-\u9FA5]+");
-                            col.push({ type: 'radio' });
-                            for (var i = 0; i < data.length; i++) {
-                                if (!patrn.test(data[i].name)) {
-                                    col.push({ field: data[i].name, title: data[i].name, hide: true }); //闅愯棌鍒�
-                                }
-                                else {
-                                    switch (data[i].Type) {
-                                        case 'DateTime':
-                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
-                                            break;
-                                        default:
-                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true });
-                                    }
-                                }
-                            }
-                            option.cols = [col];
-                            option.data = data1.data;
-                            table.cache['wl-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
-                            table.render(option);
-                            layer.close(ajaxLoad);
-                        } else {
-                            layer.close(ajaxLoad);
-                            layer.alert(data1.code + data1.Message, { icon: 5 });
-                        }
-                    },
-                    complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
-                    error: function () {
-                        layer.close(ajaxLoad);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                    }
                 });
             }
 
@@ -442,80 +338,86 @@
 
             //#region 鍔熻兘鎺т欢
 
-            //#region 鎻愪氦涓婁紶鍔熻兘鎺т欢
-
-            form.on('submit(cmdLoadData)', function (data) {
-                document.getElementById("cmdLoadData").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
-                $.ajax(
-                    {
-                        type: "GET",
-                        url: GetWEBURL() + "/WEBSController/set_SavePackUnionBill_Json",
-                        async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
-                        data: { "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
-                        dataType: "json",
-                        success: function (data) {
-                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                                layer.confirm(data.Message, {
-                                    icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
-                                    btn2: function () {
-                                        parent.location.href = "../../../../views/index_Mobile.html"
-                                    }//鍏抽棴
-                                }, function () {
-                                    HInterID_Temp = 0;
-                                    window.location.reload();   //鍒锋柊褰撳墠椤甸潰
-                                });//鏂板
-                                layer.load(3);
-                            }
-                            else {
-                                playSound();
-                                layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                                document.getElementById("cmdLoadData").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
-                            }
-                            layer.closeAll("loading");  //鍏抽棴鍔犺浇灞�
-                        },
-                        complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
-                        error: function (err) {
-                            layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
-                            document.getElementById("cmdLoadData").disabled = false;
-                        }
-                    });
-            });
-
-            //#endregion
-
-            //#region 鍒犻櫎鍔熻兘鎺т欢
-
-            form.on('submit(cmdDelete)', function () {//鍒犻櫎
-                var checkStatus = table.checkStatus('wl-table')
-                    , data = checkStatus.data;
-                if (checkStatus.data.length === 1) {
-                    layer.confirm("纭畾瑕佸垹闄ゅ悧锛屽垹闄ゅ悗灏嗕笉鍙仮澶嶏紝纭畾瑕佺户缁搷浣滐紵", { title: "鍒犻櫎纭" }, function (index) {
-                    var HBarCode = data[0].HBarCode
+            //#region 鎻愪氦
+            form.on('submit(cmdSaver)', function (data) {
+                document.getElementById("cmdSaver").disabled = true;   //鎸夐挳鍙樹负涓嶅彲缂栬緫鐘舵��
+                var sSubStr = table.cache['wl-table'];
+                var HBarCode_Pack = $('#HBarCode_Pack').val()
+                if (AllowLoadData(sSubStr) != false)//闈炵┖楠岃瘉
+                {
+                    layer.load(3);
                     $.ajax(
                         {
                             type: "GET",
-                            url: GetWEBURL() + "/WEBSController/set_DelPackUnionBill_Temp_Pack_Json",
-                            async: true,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
-                            data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType },
+                            url: GetWEBURL() + "/WEBSController/set_SavePackUnionBill_Json",
+                            async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                            data: { "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
                             dataType: "json",
                             success: function (data) {
-                                if (data.count == 1) {  //鎴愬姛
-                                    DisBillEntryList(); //鏄剧ず琛ㄤ綋鏄庣粏
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                    layer.confirm(data.Message, {
+                                        icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板','鍏抽棴'],
+                                        btn2: function () {
+                                            parent.location.href = "../../../../views/index_Mobile.html";
+                                        }//鍏抽棴
+                                    }
+                                        , function () {
+                                            location.replace('Sc_PackUnionBill_PDA.html?OperationType=1&HInterID=0');
+                                        });//鏂板
                                 }
                                 else {
-                                    layer.msg(data.Message, { icon: 2 });
+                                    layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                    document.getElementById("cmdSaver").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
                                 }
                             },
                             complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
                             error: function (err) {
-                                layer.msg('閿欒' + err, {
-                                    icon: 5,
-                                    time: 20000
-                                }, function () {
-                                });
+                                layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                document.getElementById("cmdSaver").disabled = false;  //鎸夐挳鍙樹负鍙紪杈戠姸鎬�
                             }
                         });
-                        layer.close(index)
+                    layer.closeAll("loading");
+                    return;
+                }
+            });
+
+            //#endregion
+
+            //#region 鍒犻櫎
+
+            form.on('submit(cmdDelete)', function () {
+                var checkStatus = table.checkStatus('wl-table')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length == 1) {
+                    layer.confirm("纭瑕佸垹闄ら�変腑琛屾墍鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�", { title: "鍒犻櫎纭" }, function (index) {
+                        var HBarCode = data[0].HBarCode
+
+                        layer.load(3)
+                        $.ajax(
+                            {
+                                type: "Get",
+                                url: GetWEBURL() + "/WEBSController/set_DelPackUnionBill_Temp_Pack_Json",
+                                async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                                data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType },
+                                dataType: "json",
+                                success: function (data) {
+                                    if (data.count == 1) {
+                                        layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                            //鏄剧ず琛ㄤ綋鏄庣粏
+                                            DisBillEntryList();
+                                        });
+                                    }
+                                    else {
+                                        playSound();
+                                        layer.msg(data.Message, { icon: 2, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                    }
+                                },
+                                complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                                error: function (err) {
+                                    layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                }
+                            });
+                        layer.closeAll("loading");
                     })
                 }
                 else {
@@ -525,11 +427,18 @@
 
             //#endregion
 
-            //#region 閫�鍑哄姛鑳芥帶浠�
+            //#region 閫�鍑�
 
             form.on('submit(cmdCancel)', function () {
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                    parent.location.href = "../../../../views/index_Mobile.html";
+                    if (OperationType == 2) {
+                        var index = parent.layer.getFrameIndex(window.name);    //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
+                        parent.location.reload();                               //鍒锋柊鐖堕〉闈紝娉ㄦ剰涓�瀹氳鍦ㄥ叧闂綋鍓峣frame灞備箣鍓嶆墽琛屽埛鏂�
+                        parent.layer.close(index);                              //鍐嶆墽琛屽叧闂�
+                    }
+                    else {
+                        parent.location.href = "../../../../views/index_Mobile.html";
+                    }
                 });
             })
 
@@ -537,8 +446,325 @@
 
             //#endregion
 
+
+            //#region 鎵弿鎵樻潯鐮�
+
+            //鎵弿鎵樻潯鐮�
+            $('#HBarCode_Pack').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    GetMeesageByBarCode_Pack();
+                }
+            });
+
+            //鎵樻潯鐮佹寜閽�
+            form.on('submit(HBarCode_Pack-BT)', function (data) {
+                GetMeesageByBarCode_Pack();
+            });
+
+            //鎵墭鏉$爜
+            function GetMeesageByBarCode_Pack(obj) {
+                var HBarCode_Pack = $('#HBarCode_Pack').val()
+                if (HBarCode_Pack == '') {
+                    playSound();
+                    layer.msg("鎵樻潯鐮佷笉鑳戒负绌猴紝璇锋壂鎻忔墭鏉$爜锛�", {
+                        icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                    }, function () {
+                        $("#HBarCode_Pack").select();
+                        $("#HBarCode_Pack").focus();
+                    });
+                    return;
+                }
+                layer.load(3)
+                $.ajax({
+                    type: "GET",
+                    url: GetWEBURL() + "/WEBSController/Get_PackBarCode_PackUnionBill_Json",
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
+                    success: function (result) {
+                        if (result.count == 1) {
+                            playSound_OK();
+                            $("#HInterID").val(result.data[0].HInterID);
+                            $("#HBillNo").val(result.data[0].HBillNo);
+                            HInterID = $('#HInterID').val()
+                            HBillNo = $('#HBillNo').val()
+                            HMaterNumber_Pack = result.data[0].HMaterNumber
+
+                            $("#HBarCode_Pack").attr("disabled", "disabled");
+                            $('#HBarCode_Pack-BT').addClass("layui-btn-disabled").attr("disabled", true);//鎸夐挳绂佺敤
+                            $("#HBarCode").select();
+                            $("#HBarCode").focus();     //鑾峰彇鍏夋爣
+                            //鏄剧ず琛ㄤ綋鏄庣粏
+                            DisBillEntryList();
+                            element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
+                        }
+                        else {
+                            playSound();
+                            layer.msg(result.Message, {
+                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                            }, function () {
+                                $("#HBarCode_Pack").select();
+                                $("#HBarCode_Pack").focus();
+                            });
+                        }
+                    },
+                    complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                    error: function (err) {
+                        playSound();
+                        layer.msg("閿欒锛�" + err, {
+                            icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () {
+                            $("#HBarCode_Pack").select();
+                            $("#HBarCode_Pack").focus();
+                        });
+                    }
+                });
+                layer.closeAll("loading");
+            }
+
+            //#endregion
+
+
+            //#region 鎵弿寰呯粍鎵樻潯鐮�
+
+            //鎵弿寰呯粍鎵樻潯鐮�
+            $('#HBarCode').on('keydown', function (event) {
+                if (event.keyCode == 13) {
+                    GetMeesageByBarCode();
+                }
+            });
+
+            //寰呯粍鎵樻潯鐮佹寜閽�
+            form.on('submit(HBarCode-BT)', function (data) {
+                GetMeesageByBarCode();
+                $("#HBarCode").select();
+                $("#HBarCode").focus();     //鑾峰彇鍏夋爣
+            });
+
+            //鎵緟缁勬墭鏉$爜
+            function GetMeesageByBarCode(obj) {
+                var HBarCode_Pack = $('#HBarCode_Pack').val()
+                var sOldBarCode = $('#HBarCode').val()
+                var HDeleteFlag = sOldBarCode.substring(0, 1);
+                var sBarCode = sOldBarCode.slice(1);
+
+                if (HBarCode_Pack == '') {
+                    playSound();
+                    layer.msg("鎵樻潯鐮佷笉鑳戒负绌猴紝璇峰厛鎵弿鎵樻潯鐮侊紒", {
+                        icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                    }, function () {
+                        $("#HBarCode_Pack").select();
+                        $("#HBarCode_Pack").focus();
+                    });
+                    return;
+                }
+
+                if (HDeleteFlag == "*") {
+                    if (sBarCode == "") {
+                        playSound();
+                        layer.msg("璇锋壂鎻忚鍒犻櫎鐨勬潯鐮�", {
+                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () {
+                            $("#HBarCode").focus();
+                        });
+                        return;
+                    }
+                    else {
+                        $('#HBarCode').val("");
+                    }
+                    layer.load(3)
+                    $.ajax(
+                        {
+                            type: "GET",
+                            url: GetWEBURL() + "/WEBSController/set_DelPackUnionBill_Temp_Pack_Json",
+                            async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                            data: { "HInterID": HInterID, "HBarCode": sBarCode, "HBillType": HBillType },
+                            dataType: "json",
+                            success: function (data) {
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                    playSound_OK();
+                                    //鏄剧ず琛ㄤ綋鏄庣粏
+                                    DisBillEntryList();
+                                }
+                                else {
+                                    playSound();
+                                    layer.msg(data.Message, {
+                                        icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                                    }, function () {
+                                        $("#HBarCode").select();
+                                        $("#HBarCode").focus();
+                                    });
+                                }
+                            },
+                            complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                            error: function (err) {
+                                playSound();
+                                layer.msg('閿欒' + err, {
+                                    icon: 2, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                                }, function () {
+                                    $("#HBarCode").select();
+                                    $("#HBarCode").focus();
+                                });
+                            }
+                        });
+                    layer.closeAll("loading");
+                }
+                else {
+                    var sBarCode = $('#HBarCode').val()
+                    if (sBarCode == '') {
+                        playSound();
+                        layer.msg("鏉$爜涓嶈兘涓虹┖锛岃鎵弿鏉$爜锛�", {
+                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                        }, function () {
+                            $("#HBarCode").select();
+                            $("#HBarCode").focus();
+                        });
+                        return;
+                    }
+
+                    layer.load(3)
+                    $.ajax({
+                        type: "GET",
+                        url: GetWEBURL() + "/WEBSController/Get_BarCode_PackUnionBill_Json",
+                        async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                        data: { "HBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HBarCode_Pack": HBarCode_Pack, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
+                        success: function (result) {
+                            if (result.count == 1) {
+                                playSound_OK();
+                                if (sBarCode != "") {
+                                    $('#HBarCode').val("");
+                                }
+                                $("#HBarCode").select();
+                                $("#HBarCode").focus();     //鑾峰彇鍏夋爣
+                                element.tabChange('tab-Sc_PackUnionBill_PDA', '1');
+                                //鏄剧ず琛ㄤ綋鏄庣粏
+                                DisBillEntryList();
+                            }
+                            else {
+                                playSound();
+                                layer.msg(result.Message, {
+                                    icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                                }, function () {
+                                    $("#HBarCode").select();
+                                    $("#HBarCode").focus();
+                                });
+                            }
+                        },
+                        complete: function (XHR, TS) { XHR = null },//鍥炴敹璧勬簮
+                        error: function (err) {
+                            playSound();
+                            layer.msg("閿欒锛�" + err, {
+                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", btn: ['纭']
+                            }, function () {
+                                $("#HBarCode").select();
+                                $("#HBarCode").focus();
+                            });
+                        }
+                    });
+                    layer.closeAll("loading");
+                }
+            }
+
+            //#endregion
+
+
+            //#region 鏄剧ず鐗╂枡鍒楄〃淇℃伅
+
+            function DisBillEntryList() {
+                $.ajax({
+                    type: "GET",
+                    url: GetWEBURL() + '/WEBSController/GetBillEntry_Tmp_Pack_Json',
+                    async: false,    //async鐢ㄤ簬鎺у埗锛坒alse锛夊悓姝ュ拰锛坱rue锛夊紓姝ワ紝榛樿鐨勬槸true锛屽嵆璇锋眰榛樿鐨勬槸寮傛璇锋眰
+                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType },
+                    success: function (result) {
+                        var data = [];
+                        var col = [];
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            //缁欑┖鐨勬暟缁勮祴鍊�
+                            for (var key in result.list) {
+                                //鍔ㄦ�佽幏鍙栧垪琛ㄦ墍鏈夊垪鍚�
+                                data.push({ "id": result.list[key].ColmCols, "name": result.list[key].ColmCols, "Type": result.list[key].ColmType });
+                                //鑾峰彇涓嶉渶瑕佹樉绀虹殑鍒楋紙H寮�澶寸殑鍒椾笉鏄剧ず锛�
+                                var patrn = new RegExp(/^h/i);
+                                if (patrn.test(result.list[key].ColmCols)) {
+                                    titleData[key] = result.list[key].ColmCols;
+                                }
+                            }
+
+                            //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+                            col.push({ type: 'radio', totalRowText: '鍚堣' });
+                            for (var i = 0; i < data.length; i++) {
+                                if ($.inArray(data[i].name, titleData) > -1) {
+                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
+                                }
+                                else {
+                                    switch (data[i].Type) {
+                                        //int
+                                        case 'DateTime':
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 });
+                                            break;
+                                        default:
+
+                                        if (data[i].name == '鏁伴噺' || data[i].name == '鏉$爜涓暟') {
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', totalRow: true });
+                                        } else if (data[i].name == '鐗╂枡浠g爜') {
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 120 });
+                                        } else if (data[i].name == '鐗╂枡鍚嶇О' || data[i].name == '瑙勬牸鍨嬪彿') {
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 180 });
+                                        } else {
+                                            col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 220 });
+                                        }
+                                    }
+                                }
+                            }
+                            columns = col;
+                            listOption.cols = [columns];
+                            listOption.data = result.data;
+                            listOption.totalRow = true;
+                            table.cache['wl-table'] = null;         //娓呯┖琛ㄦ牸缂撳瓨鏁版嵁
+                            table.render(listOption);
+                        }
+                        else {
+                            listOption.cols = [[
+                                { 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 }
+                            ]];
+                            listOption.data = data;
+                            table.render(listOption);
+                        }
+                    },
+                    complete: function (XHR, TS) { XHR = null }//鍥炴敹璧勬簮
+                });
+            }
+
+            //#endregion
+
+
+
         });
 
+        //浠ヤ笂涓簂ayui妯″潡
+        //姝ゅ鏂规硶娑夊強鍒拌澶栭儴椤甸潰parent.鏂规硶鍚嶈皟鐢ㄧ殑蹇呴』鏀惧湪Layui鏂规硶澶栭儴
+
+        //鍗曟嵁涓婁紶鍓嶅垽鏂�
+        function AllowLoadData(sSubStr) {
+            if (HInterID == 0) {
+                layer.msg("鍗曟嵁鍐呯爜鑾峰彇澶辫触锛岄敊璇殑鍗曟嵁鍐呯爜锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            if (HBillNo == '') {
+                layer.msg("鍗曟嵁鍙疯幏鍙栧け璐ワ紝閿欒鐨勫崟鎹彿锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            if (sSubStr.length == 0) {
+                layer.msg("娌℃湁鎵爜淇℃伅锛岃鍏堟壂鎻忔潯鐮侊紝纭鏃犺鍚庡啀鎻愪氦锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            return true;
+        }
     </script>
 
 </body>
diff --git a/WebTM/views/home/console_Mobile.html b/WebTM/views/home/console_Mobile.html
index 2dbae17..8eedf81 100644
--- a/WebTM/views/home/console_Mobile.html
+++ b/WebTM/views/home/console_Mobile.html
@@ -118,6 +118,18 @@
                                             </a>
                                         </li>
                                         <li class="layui-col-xs3">
+                                            <a href="../WMS鎵爜妯″潡/鐢熶骇绠$悊/鐢熶骇缁勬墭鍗�/Sc_PackUnionBill_PDA.html" target="main_self_frame">
+                                                <i class="layui-icon layui-icon-template-1"></i>
+                                                <cite style="white-space:pre-wrap">鐢熶骇缁勬墭鍗�</cite>
+                                            </a>
+                                        </li>
+                                        <li class="layui-col-xs3">
+                                            <a href="../WMS鎵爜妯″潡/鐢熶骇绠$悊/鍒犳墭鍗�/Sc_DeletePackUnionBill_PDA.html" target="main_self_frame">
+                                                <i class="layui-icon layui-icon-app"></i>
+                                                <cite style="white-space:pre-wrap">鐢熶骇鎷嗘墭鍗�</cite>
+                                            </a>
+                                        </li>
+                                        <li class="layui-col-xs3">
                                             <a href="../杞﹂棿绠$悊/宸ュ簭娴佽浆/MES_StationOutBill_PDA.html" target="main_self_frame">
                                                 <i class="layui-icon layui-icon-auz"></i>
                                                 <cite style="white-space:pre-wrap">鍑虹珯姹囨姤</cite>
@@ -439,6 +451,12 @@
                                             </a>
                                         </li>
                                         <li class="layui-col-xs3">
+                                            <a href="../WMS鎵爜妯″潡/鐢熶骇绠$悊/鐢熶骇缁勬墭鍗�/Sc_PackUnionBillList_PDA.html" target="main_self_frame">
+                                                <i class="layui-icon layui-icon-template-1"></i>
+                                                <cite style="white-space:pre-wrap">鐢熶骇缁勬墭鍗曠紦瀛�</cite>
+                                            </a>
+                                        </li>
+                                        <li class="layui-col-xs3">
                                             <a href="../WMS鎵爜妯″潡/瀹㈡埛鏉$爜鎵弿/Gy_getCusBarCodeBillList_PDA.html" target="main_self_frame">
                                                 <i class="layui-icon layui-icon-windows"></i>
                                                 <cite style="white-space:pre-wrap">瀹㈡埛鏉$爜鎵爜璁板綍鍗�</cite>
diff --git a/WebTM/views/index_Mobile.html b/WebTM/views/index_Mobile.html
index 0a92571..37987f8 100644
--- a/WebTM/views/index_Mobile.html
+++ b/WebTM/views/index_Mobile.html
@@ -769,7 +769,7 @@
                                 <dd>
                                     <a href="WMS鎵爜妯″潡/鐢熶骇绠$悊/鍒犳墭鍗�/Sc_DeletePackUnionBill_PDA.html" target="main_self_frame" style="color: aqua;">
                                         <img src="../layuiadmin/myicon/鍗曟嵁褰曞埗.svg" alt="鍗曟嵁褰曞埗" style="width:25px;height:25px;margin-right: 5px;" />
-                                        鍒犳墭鍗�
+                                        鐢熶骇鎷嗘墭鍗�
                                     </a>
                                 </dd>
                                 <dd>
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\207\272\345\216\202\346\243\200\351\252\214\345\215\225/QC_OutCompCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\207\272\345\216\202\346\243\200\351\252\214\345\215\225/QC_OutCompCheckBill.html"
index c166d97..61762fb 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\207\272\345\216\202\346\243\200\351\252\214\345\215\225/QC_OutCompCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\207\272\345\216\202\346\243\200\351\252\214\345\215\225/QC_OutCompCheckBill.html"
@@ -972,13 +972,13 @@
             //閫�鍑�
             form.on('submit(btn-Exit)', function (data) {
                 if (OperationType == 1) {
-                    Pub_Close(1);//鐩存帴鏂板closeType鍊间负2锛屽垪琛ㄨ皟鏂板closeType鍊间粠鍒楄〃浼犻��
+                    Pub_Close(2);//鐩存帴鏂板closeType鍊间负2锛屽垪琛ㄨ皟鏂板closeType鍊间粠鍒楄〃浼犻��
                 }
                 else if (OperationType == 3) {
                     Pub_Close(1);
                 }
                 else {
-                    Pub_Close(2);
+                    Pub_Close(1);
                 }
             });
 
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\235\245\346\226\231\346\243\200\351\252\214\345\215\225/QC_Add_Edit_POStockInCheckBillList.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\235\245\346\226\231\346\243\200\351\252\214\345\215\225/QC_Add_Edit_POStockInCheckBillList.html"
index 2a4c8a9..a099f85 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\235\245\346\226\231\346\243\200\351\252\214\345\215\225/QC_Add_Edit_POStockInCheckBillList.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\235\245\346\226\231\346\243\200\351\252\214\345\215\225/QC_Add_Edit_POStockInCheckBillList.html"
@@ -1447,7 +1447,15 @@
 
             //閫�鍑�
             function get_Exit() {
-                Pub_Close(1);
+                if (OperationType == 1) {
+                    Pub_Close(2);//鐩存帴鏂板closeType鍊间负2锛屽垪琛ㄨ皟鏂板closeType鍊间粠鍒楄〃浼犻��
+                }
+                else if (OperationType == 3) {
+                    Pub_Close(1);
+                }
+                else {
+                    Pub_Close(1);
+                }
             }
 
             //琛屽唴浜嬩欢--妫�楠岄」鐩�

--
Gitblit v1.9.1