From 4ece667df879a0e8179f641e8365932fe3d7ec65 Mon Sep 17 00:00:00 2001
From: YL <YL@LAPTOP-SE03PLUR>
Date: 星期一, 29 十一月 2021 10:26:20 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI

---
 WebTM/WebTM.csproj.user                                       |    2 
 WebTM/views/采购管理/采购订单/Cg_POOrderBillList.html                 |   92 
 WebTM/views/验收入库/外购入库/Kf_POStockInBackBillList.html           |  934 ++++++++--
 WebTM/views/领料发货/领料出库/Kf_MateOutBillList.html                 |    6 
 WebTM/views/模治具管理/模治具管理/Sc_MouldDotCheckPlanBillList.html     |   22 
 WebTM/views/模治具管理/模治具管理/Sb_Add_MouldRepairWorkBillList.html   |    6 
 WebTM/views/领料发货/领料出库/Kf_MateOutBackBillList.html             |    6 
 WebTM/views/模治具管理/模治具管理/Sc_Add_MouldMaintainBillList.html     |   12 
 WebTM/views/设备管理/Sb_Add_EqpMaintenanceBillList.html           |    4 
 WebTM/views/采购管理/委外订单/WW_EntrustOrderBillList.html            |   93 
 WebTM/views/模治具管理/模治具管理/Sc_Add_MouldMaintainPlanBillList.html |   82 
 WebTM/views/模治具管理/模治具管理/Sc_MouldMaintainPlanBillList.html     |   16 
 WebTM/views/领料发货/委外出库/Kf_EntrustOutBillList.html              |  818 +++++++--
 WebTM/views/模治具管理/模治具管理/Sc_Add_MouldDotCheckPlanBillList.html | 2710 ++++-----------------------------
 WebTM/views/index.html                                        |    4 
 WebTM/WebTM.csproj                                            |    4 
 WebTM/views/设备管理/Sb_EquipMaintainBillEdit.html                |    2 
 17 files changed, 1,930 insertions(+), 2,883 deletions(-)

diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 42a75e6..c9d06d4 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -821,6 +821,7 @@
     <Content Include="views\閲囪喘绠$悊\閲囪喘璁㈠崟\Cg_POOrderBillList.html" />
     <Content Include="views\閿�鍞鐞哱鍙戣揣閫氱煡鍗昞Add_Edit_Xs_SeOutStockBillList.html" />
     <Content Include="views\閿�鍞鐞哱閿�鍞鍗昞Add_Edit_Xs_SeOrderBillList.html" />
+    <Content Include="views\棰嗘枡鍙戣揣\濮斿鍑哄簱\Kf_EntrustOutBillList.html" />
     <Content Include="views\棰嗘枡鍙戣揣\鏀舵枡鍏ュ簱\Kf_ReciveBill_Fast.html" />
     <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBillLEdit.html" />
     <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBackBillList.html" />
@@ -828,8 +829,8 @@
     <Content Include="views\楠屾敹鍏ュ簱\鍏朵粬鍏ュ簱\Kf_OtherInBillList.html" />
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Kf_ProductInBillList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Add_Edit_Kf_POStockInBillList.html" />
+    <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBackBillList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBillList.html" />
-    <Content Include="views\棰嗘枡鍙戣揣\濮斿鍑哄簱\Kf_EntrustOutBillList.html" />
     <Content Include="views\棰嗘枡鍙戣揣\鍏朵粬鍑哄簱\Kf_OtherOutBillList.html" />
     <Content Include="views\棰嗘枡鍙戣揣\閿�鍞嚭搴揬Kf_SellOutBillList.html" />
     <Content Include="views\棰嗘枡鍙戣揣\棰嗘枡鍑哄簱\Kf_MateOutBillList.html" />
@@ -908,7 +909,6 @@
     <Content Include="views\楠屾敹鍏ュ簱\鍏朵粬鍏ュ簱\Kf_OtherInBackBill_FastList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\鍏朵粬鍏ュ簱\Kf_OtherInBill_FastList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBackBill.html" />
-    <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBackBillList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBill_FastList.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\Kf_POStockInBill_Fast.html" />
     <Content Include="views\楠屾敹鍏ュ簱\澶栬喘鍏ュ簱\qrscan.js" />
diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index c147982..06468a2 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -2,7 +2,7 @@
 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
     <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile>
-    <ProjectView>ShowAllFiles</ProjectView>
+    <ProjectView>ProjectFiles</ProjectView>
     <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
     <Use64BitIISExpress />
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index a7dadce..7c82147 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -196,11 +196,12 @@
                                     <a>楠屾敹鍏ュ簱</a>
                                     <dl class="layui-nav-child">
                                         <dd><a lay-href="楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Kf_POStockInBillList.html">閲囪喘鍏ュ簱鍗曠淮鎶�</a></dd>
-                                        <dd><a lay-href="">閲囪喘閫�鏂欏崟缁存姢</a></dd>
+                                        <dd><a lay-href="楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Kf_POStockInBackBillList.html">閲囪喘閫�鏂欏崟缁存姢</a></dd>
                                         <dd><a lay-href="楠屾敹鍏ュ簱/浜у搧鍏ュ簱/Kf_ProductInBillList.html">鐢熶骇鍏ュ簱鍗曠淮鎶�</a></dd>
                                         <dd><a lay-href="">鐢熶骇閫�搴撳崟缁存姢n</a></dd>
                                         <dd><a lay-href="楠屾敹鍏ュ簱/鍏朵粬鍏ュ簱/Kf_OtherInBillList.html">鍏朵粬鍏ュ簱鍗曠淮鎶�</a></dd>
                                         <dd><a lay-href="楠屾敹鍏ュ簱/濮斿鍏ュ簱/Kf_EntrustInBillList.html">濮斿鍔犲伐鍏ュ簱鍗曠淮鎶�</a></dd>
+                                        <dd><a lay-href="棰嗘枡鍙戣揣/濮斿鍑哄簱/Kf_EntrustOutBillList.html">濮斿鍔犲伐鍑哄簱鍗曠淮鎶�</a></dd>
                                         <dd><a lay-href="">鍒嗘寮忚皟鍏ュ崟缁存姢n</a></dd>
                                     </dl>
                                 </dd>
@@ -213,7 +214,6 @@
                                         <dd><a lay-href="棰嗘枡鍙戣揣/閿�鍞嚭搴�/Kf_SellOutBillList.html">閿�鍞嚭搴撳崟缁存姢</a></dd>
                                         <dd><a lay-href="">閿�鍞��搴撳崟缁存姢</a></dd>
                                         <dd><a lay-href="棰嗘枡鍙戣揣/鍏朵粬鍑哄簱/Kf_OtherOutBillList.html">鍏朵粬鍑哄簱鍗曠淮鎶�</a></dd>
-                                        <dd><a lay-href="棰嗘枡鍙戣揣/濮斿鍑哄簱/Kf_EntrustOutBillList.html">濮斿鍔犲伐鍑哄簱鍗曠淮鎶�</a></dd>
                                         <dd><a lay-href="">鍒嗘寮忚皟鍑哄崟缁存姢n</a></dd>
                                     </dl>
                                 </dd>
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sb_Add_MouldRepairWorkBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sb_Add_MouldRepairWorkBillList.html"
index 39ddff7..cf19a76 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sb_Add_MouldRepairWorkBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sb_Add_MouldRepairWorkBillList.html"
@@ -927,9 +927,9 @@
                                 , "HExplanation": data.缁翠慨瑕佹眰
                                 , "HRemark": data.澶囨敞
                                 , "HMainSourceBillType": data.HMainSourceBillType
-                                , "HMainSourceBillNo": data.HMainSourceBillNo
-                                , "HMainSourceInterID": data.HMainSourceInterID
-                                , "HMainSourceEntryID": data.HMainSourceEntryID
+                                , "HMainSourceBillNo": data.婧愬崟鍗曞彿
+                                , "HMainSourceInterID": data.婧愬崟涓诲唴鐮�
+                                , "HMainSourceEntryID": data.婧愬崟瀛愮被鐮�
 
                             });
 
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldDotCheckPlanBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldDotCheckPlanBillList.html"
index 52994ee..268124d 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldDotCheckPlanBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldDotCheckPlanBillList.html"
@@ -1,8 +1,8 @@
-锘�<!DOCTYPE html>
+锘縥<!DOCTYPE html>
 <html>
 <head>
     <meta 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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
@@ -32,7 +32,7 @@
                         </div>
                         <div class="layui-card-body">
                             <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
-                                <h1 style="text-align:center;"><b>鍣ㄥ叿淇濆吇璁板綍琛�</b></h1>
+                                <h1 style="text-align:center;"><b>鍣ㄥ叿鐐规璁″垝琛�</b></h1>
                                 <div class="layui-tab-content">
                                     <div class="layui-tab-item layui-show">
                                         <div class="layui-form-item">
@@ -140,21 +140,14 @@
     <script src="../../../layuiadmin/PubCustom.js"></script>
     <script>
         //鑾峰彇鍙傛暟
-        function getUrlVars() {
-            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 = get_UrlVars();
+        if (typeof (params[params[0]]) == "undefined") {
+            var OperationType = 1;//鎿嶄綔绫诲瀷
+        } else {
+            var OperationType = params[params[0]];//鎿嶄綔绫诲瀷
+            var linterid = params[params[1]];//婧愬崟id
+            var HSouceBillType = params[params[2]];//婧愬崟绫诲瀷
         }
-
-
-
-        var params = getUrlVars();
-        var hID = params[params[0]];//缂栬緫鏌ョ湅
 
 
         layui.config({
@@ -170,2265 +163,64 @@
                 , laydate = layui.laydate
                 , element = layui.element;
 
-            //甯歌鐢ㄦ硶
-            laydate.render({
-                elem: '#HDate'
 
-            });
-            laydate.render({
-                elem: '#HBeginDate'
-            });
-            laydate.render({
-                elem: '#HEndDate'
-            });
-            //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
-            //if (sessionStorage.login != "login") {
-            //    layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
-            //        icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
-            //    }, function () { window.location.href = "../../user/login.html"; });
-            //}
-            var tableReload = table.reload;
-            var option = {
-                elem: '#mainTable'
-                , toolbar: '#toolbarDemo'
-                , height: 500
-                //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛
-                , page: true //寮�鍚垎椤�
-                , cols: [[ //琛ㄥご
-                    { type: 'checkbox', fixed: 'left' }
-                    , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
-                    , { field: 'HDotCheckItem', title: '鐐规椤圭洰', edit: 'text' }
-                    , { field: 'HDotCheckPart', title: '鐐规閮ㄤ綅', edit: 'text' }
-                    , { field: 'HClaim', title: '鍏蜂綋瑕佹眰', edit: 'text' }
-                    , { field: 'HManagerID', title: '璐熻矗浜轰唬鐮�', edit: 'text' }
-                    , { field: 'HRemark', title: '澶囨敞', edit: 'text' }
-                    , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 }
-                ]]
-                , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
-            };
-            //鍒ゆ柇鏄惁鏂板
-            if (hID == null || hID == 0) {
-                //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
-                option.data = [{ "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HRemark": "" }];
-                table.render(option);
+            //#region 杩涘叆椤甸潰鍗冲姞杞�
+            //鍒濆鍖栬〃鍗曟彃浠�
+            set_InitFrom();
+            //鍒濆鍖栬〃鏍�
+            set_InitGrid();
+            //鍒ゆ柇鎿嶄綔绫诲瀷
+            if (OperationType == 1) {//鏃犳簮鍗�
+                set_AddFNew();
+            }
+            else if (OperationType == 3) {//缂栬緫
+                set_EditFromGrid();
             }
             else {
-                $("#HInterID").val(hID);//淇敼鏃朵富琛↖D
-                //缂栬緫鍔犺浇鏁版嵁
-                $.ajax({
-                    url: GetWEBURL() + 'Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBillListProjectDetai',
-                    type: "GET",
-                    data: { "sqlWhere": "and HInterID=" + hID },
-                    success: function (result) {
-                        //console.log('gouba' + result);
-                        if (result.count == 1) {
-                            option.data = result.data;
-                            table.render(option);
-
-                        } else {
-                            layer.alert(result.code + result.Message, { icon: 5 });
-                        }
-                    }, error: function () {
-                        layer.close(index0);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                    }
-                });
-
+                layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
             }
+            //#endregion
 
 
-            //澶村伐鍏锋爮浜嬩欢
-            var rowid = 0;
-            var rows = 0;
+            //#region 澶村伐鍏锋爮浜嬩欢
             table.on('toolbar(mainTable)', function (obj) {
                 var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;;
-                var AddRow = table.cache['mainTable'];
-                var NewRow = { "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": "0", "HRemark": "" };
+                    , data = checkStatus.data;
+                var NewRow = { "HDotCheckItemID": 0, "HDotCheckCode": "", "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" };
                 switch (obj.event) {
-                    case 'btn-AddLine':
-                        //table.cache["mainTable"].push(AddRow[rows]);
-                        table.cache["mainTable"].push(NewRow);
-                        option.data = table.cache["mainTable"];
-                        table.render(option);
-                        rows++;
-                        layer.msg('澧炲姞涓�琛屾寜閽紒')
+                    //澧炲姞涓�琛�
+                    case 'btn-AddLine': set_AddLine(NewRow);
                         break;
-                    case 'btn-CopyLine':
-                        var copydata = JSON.stringify(data);
-                        if (data.length <= 0) {
-                            layer.alert("璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒");
-                        }
-                        else if (data.length > 1) {
-                            layer.alert("鍙兘閫夋嫨澶嶅埗涓�琛岋紒");
-                        }
-                        else {
-                            var copydata2 = copydata.substring(1, copydata.length);//鍘婚櫎棣栬瀛楃'['
-                            var copyrow = copydata2.substring(0, copydata2.length - 1);//鍘婚櫎鏈熬瀛楃']'
-                            table.cache["mainTable"].push(JSON.parse(copyrow));//灏嗗鍒剁殑琛屽己杞垚json杩藉姞鍒拌〃鏍间笂
-                            option.data = table.cache["mainTable"];//灏嗘暟鎹粦瀹氬埌data涓�
-                            table.render(option);//灏嗘暟鎹覆鏌撳埌琛ㄦ牸涓�
-                            //layer.alert(copyrow);
-                        }
+                    //澶嶅埗涓�琛�
+                    case 'btn-CopyLine': set_CopyLine(data);
                         break;
                 }
             });
             //琛屽唴浜嬩欢
             table.on('tool(mainTable)', function (obj) {
-                var data = obj.data;
-                var rowIndex = $(obj.tr).attr("data-index");
-                if (obj.event === 'del') {
-                    layer.confirm('鐪熺殑鍒犻櫎琛屼箞', function (index) {
-                        console.log("绱㈠紩涓�:" + rowIndex);
-                        if (rowIndex === '0') {
-                            layer.msg('棣栬鏃犳硶鍒犻櫎锛侊紒锛�');
-                        } else {
-                            var oldData = table.cache["mainTable"];
-                            oldData.splice(obj.tr.data('index'), 1);
-                            table.reload('mainTable', { data: oldData });
-                            layer.close(index);
-                        }
-                    });
-                }
-                if (obj.event === 'ReasonNameEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "1":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "2":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "3":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "4":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "5":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "6":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "7":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "8":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "9":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "10":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "11":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "12":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "13":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "14":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "15":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "16":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '涓嶈壇鍘熷洜鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HWasterReasonName: HReasonName
-                                        , HBadReasonID: ReasonID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HWasterReasonName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'EmpNameEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "1":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "2":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "3":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "4":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "5":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "6":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "7":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "8":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "9":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "10":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "11":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "12":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "13":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "14":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "15":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "16":
-                            //寮瑰嚭妗嗛�夋嫨璐d换浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HEmpName: EmpName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HEmpName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'SQProcNameEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "1":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "2":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "3":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "4":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "5":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "6":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "7":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "8":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "9":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "10":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "11":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "12":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "13":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "14":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "15":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "16":
-                            //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鐢宠宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HSQProcName: SQProcName
-                                        , HProcID: ProcID
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HSQProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'ZRProcNameEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "1":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "2":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "3":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "4":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "5":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "6":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "7":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "8":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "9":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "10":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "11":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "12":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "13":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "14":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "15":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "16":
-                            //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '璐d换宸ュ簭鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HZRProcName: ZRProcName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HZRProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'BadQtyEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-
-                            break;
-                        case "1":
-
-                            break;
-                        case "2":
-
-                            break;
-                        case "3":
-
-                            break;
-                        case "4":
-
-                            break;
-                        case "5":
-
-                            break;
-                        case "6":
-
-                            break;
-                        case "7":
-
-                            break;
-                        case "8":
-
-                            break;
-                        case "9":
-
-                            break;
-                        case "10":
-
-                            break;
-                        case "11":
-
-                            break;
-                        case "12":
-
-                            break;
-                        case "13":
-
-                            break;
-                        case "14":
-
-                            break;
-                        case "15":
-
-                            break;
-                        case "16":
-                            //$(obj.tr).find(".layui-table-edit").keyup(function () {
-                            //    var $input = $(this), val = $input.val();
-                            //    if (!val) val = "1";
-                            //    $input.val(val.replace(/[^\d]/g, ''));
-                            //});
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'RemarkEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-
-                            break;
-                        case "1":
-
-                            break;
-                        case "2":
-
-                            break;
-                        case "3":
-
-                            break;
-                        case "4":
-
-                            break;
-                        case "5":
-
-                            break;
-                        case "6":
-
-                            break;
-                        case "7":
-
-                            break;
-                        case "8":
-
-                            break;
-                        case "9":
-
-                            break;
-                        case "10":
-
-                            break;
-                        case "11":
-
-                            break;
-                        case "12":
-
-                            break;
-                        case "13":
-
-                            break;
-                        case "14":
-
-                            break;
-                        case "15":
-
-                            break;
-                        case "16":
-
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'PSProcNameEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "1":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "2":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "3":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "4":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "5":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "6":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "7":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "8":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "9":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "10":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "11":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "12":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "13":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "14":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "15":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-                        case "16":
-                            //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
-                            layer.open({
-                                type: 2
-                                , area: ['80%', '80%']
-                                , title: '鑱屽憳鍒楄〃'
-                                , shade: 0.6 //閬僵閫忔槑搴�
-                                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
-                                , resize: false
-                                , end: function () {
-                                    _obj.update({
-                                        HPSProcName: QRName
-                                    });
-                                }
-                            })
-                            console.log("瀛楁璧嬪��" + data.HPSProcName);
-                            console.log("琛屽彿锛�" + rowIndex);
-                            break;
-
-                    }
-                }
-                else if (obj.event === 'CloseManEvent') {
-                    var _obj = obj;
-                    switch (rowIndex) {
-                        case "0":
-
-                            break;
-                        case "1":
-
-                            break;
-                        case "2":
-
-                            break;
-                        case "3":
-
-                            break;
-                        case "4":
-
-                            break;
-                        case "5":
-
-                            break;
-                        case "6":
-
-                            break;
-                        case "7":
-
-                            break;
-                        case "8":
-
-                            break;
-                        case "9":
-
-                            break;
-                        case "10":
-
-                            break;
-                        case "11":
-
-                            break;
-                        case "12":
-
-                            break;
-                        case "13":
-
-                            break;
-                        case "14":
-
-                            break;
-                        case "15":
-
-                            break;
-                        case "16":
-
-                            break;
-                    }
-                }
+                set_GirdDelete(obj);//鍒犻櫎浜嬩欢
+                set_GridCellCheck(obj); //琛屽唴蹇嵎閿瓫閫�(F7)
             });
-            function RoadBillMain(hID)//鍔犺浇琛ㄥご
-            {
-                alert(hID);
-                //鏌ヨ妫�楠屾柟妗堝崟鏄惁瀛樺湪
-                $.ajax({
-                    url: GetWEBURL() + "Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBillListCheckDetai",
-                    type: "GET",
-                    data: {
-                        "HID": hID
-                    },
-                    success: function (result) {
-                        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            var data = result.data.h_v_Sc_MouldDotCheckPlanBillList[0];
-                            form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
-                                "HBillNo": data.鍗曟嵁鍙�
-                                , "HDate": data.鏃ユ湡
-                                , "HInnerBillNo": data.鍐呴儴鍗曟嵁鍙�
-                                , "HBeginDate": data.淇濆吇寮�濮嬫棩鏈�
-                                , "HEndDate": data.淇濆吇缁撴潫鏃ユ湡
-                                , "HExplanation": data.鎽樿
-                                , "HRemark": data.澶囨敞
-                                , "HMouldID": data.HMouldID
-                                , "HCycleUnit": data.鍛ㄦ湡鍗曚綅
-                                , "HCheckCycle": data.淇濆吇鍛ㄦ湡
-                                , "HBeginDate": data.璁″垝寮�濮嬫棩鏈�
-                                , "HEndDate": data.璁″垝缁撴潫鏃ユ湡
-
-                            });
-
-                        } else {
-                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
-                        }
-                    }, error: function () {
-                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
-                    }
-                });
-            }
-
-
-            var date = new Date();
-            var day = date.getDate();
-            var month = date.getMonth() + 1;
-            var year = date.getFullYear();
-            var shijian = year + "-" + month + "-" + day;
-
-            //鍒ゆ柇鏄惁鏂板
-            if (hID == null || hID == 0) {
-                //鑾峰彇鏈�澶у崟鎹彿 new
-                $("#HInterID").val("0");
-                $("#HBillNo").val("");
-                $.ajax({
-                    url: GetWEBURL() + "/Web/GetMAXNum",
-                    type: "GET",
-                    data: { "HBillType": '3807' },
-                    success: function (d) {
-                        //console.log(d.data);
-                        $("#HBillNo").val(d.data[0].HBillNo);
-                        $("#HDate").val(shijian);
-                        $("#HBeginDate").val(shijian);
-                        $("#HEndDate").val(shijian);
-                        $("#HInterID").val(0);
-                    }
-                });
-            }
-            else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
-                RoadBillMain(hID);
-                /* RoadBillSub(linterid);*/
-            }
-
-            //閫夋嫨浜у搧寮圭獥
-            form.on('submit(HMateria-BT)', function () {//浜у搧
-                layer.open({
-                    type: 2
-                    , area: ['80%', '80%']
-                    , title: '鐗╂枡'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    //, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../Baseset/鍩虹璧勬枡/Gy_MaterialList.html', 'yes']
-                    , resize: false
-                    , cancel: function (index, layero) {
-                    }
-                })
-            });
-            //閫夋嫨宸ュ簭
-            form.on('submit(HProc-BT)', function () {//閫夋嫨宸ュ簭
-                layer.open({
-                    type: 2
-                    , area: ['80%', '80%']
-                    , title: '宸ュ簭鍒楄〃'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    //, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
-                    , resize: false
-                    , cancel: function (index, layero) {
-                    }
-                })
-            });
-
-            //閫夋嫨閮ㄩ棬
-            form.on('submit(HDepart-BT)', function () {//閫夋嫨閮ㄩ棬
-                layer.open({
-                    type: 2
-                    , area: ['80%', '80%']
-                    , title: '閮ㄩ棬鍒楄〃'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    //, maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
-                    , resize: false
-                    , cancel: function (index, layero) {
-                    }
-                })
-            });
-            //閫夋嫨鍗曚綅
-            form.on('submit(HUnitID-BT)', function () {//閫夋嫨鍗曚綅
-                layer.open({
-                    type: 2
-                    , area: ['666px', '666px']
-                    , title: '鍗曚綅鍒楄〃'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_UnitList.html', 'yes']
-                    , resize: false
-                    , cancel: function () {
-                        //$(".layui-btn").removeClass("layui-btn-disabled");
-                    }
-                })
-            });
-
+            //閫�鍑�
             form.on('submit(Exit)', function (data) {//
-                var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
-                parent.layer.close(index); //鍐嶆墽琛屽叧闂�
+                if (linterid == undefined) {
+                    //鍏抽棴椤电
+                    Pub_Close(2);
+                }
+                else {
+                    //鍏抽棴椤电
+                    Pub_Close(1);
+                }
             });
+            //棰勮Printing
+            form.on("submit(view)", function (data) {
+                window.open("../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/HBarPlanPrint.html?linterid=" + linterid + "&Type=HMouldDotCheckPlanBill&OpenTmp=鍣ㄥ叿鐐规璁″垝鏉$爜");
 
-            //閫夋嫨璐d换浜�
-            form.on('submit(HEmployeeID-BT)', function () {//閫夋嫨璐d换浜�
-                layer.open({
-                    type: 2
-                    , area: ['80%', '80%']
-                    , title: '鑱屽憳鍒楄〃'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
-                    , resize: false
-                    , cancel: function () {
-                        //$(".layui-btn").removeClass("layui-btn-disabled");
-                    }
-                })
             });
+            //鎵撳嵃Printing
+            form.on("submit(print)", function (data) {
+                window.open("../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/HBarPlanPrint.html?linterid=" + linterid + "&Type=HMouldDotCheckPlanBill&OpenTmp=鍣ㄥ叿鐐规璁″垝鏉$爜");
 
-            //閫夋嫨璐d换宸ュ簭
-            form.on('submit(HZRProcID-BT)', function () {//閫夋嫨璐d换宸ュ簭
-                layer.open({
-                    type: 2
-                    , area: ['80%', '80%']
-                    , title: '璐d换宸ュ簭鍒楄〃'
-                    , shade: 0.6 //閬僵閫忔槑搴�
-                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
-                    , resize: false
-                    , cancel: function () {
-                        //$(".layui-btn").removeClass("layui-btn-disabled");
-                    }
-                })
-            });
-
-
-
-            form.on('submit(Cancel)', function () {
-                //sessionStorage["SourceFlag"] = false;
-                parent.location.href = "../../../views/index.html"
-                //window.close();//鍏抽棴褰撳墠椤�
-            })
-
-
-            //鏂板
-            form.on('submit(set_AddNew)', function (data) {
-                $("#component-form-group")[0].reset();
-                layui.form.render();
-                //鑾峰彇鏈�澶у崟鎹彿 new
-                $("#HInterID").val("0");
-                $("#HBillNo").val("");
-                $.ajax({
-                    url: GetWEBURL() + "/Web/GetMAXNum",
-                    type: "GET",
-                    data: { "HBillType": '3807' },
-                    success: function (d) {
-                        //console.log(d.data);
-                        $("#HBillNo").val(d.data[0].HBillNo);
-                        $("#HDate").val(shijian);
-                        $("#HBeginDate").val(shijian);
-                        $("#HEndDate").val(shijian);
-                        $("#HInterID").val(0);
-                    }
-                });
             });
             //淇濆瓨
             form.on('submit(Saver)', function (data) {
@@ -2468,32 +260,317 @@
                 }
 
             });
-            //棰勮Printing
-            form.on("submit(view)", function (data) {
-                window.open("../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/HBarPlanPrint.html?linterid=" + linterid + "&Type=HMouldDotCheckPlanBill&OpenTmp=鍣ㄥ叿鐐规璁″垝鏉$爜");
 
-            });
-            //鎵撳嵃Printing
-            form.on("submit(print)", function (data) {
-                window.open("../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/HBarPlanPrint.html?linterid=" + linterid + "&Type=HMouldDotCheckPlanBill&OpenTmp=鍣ㄥ叿鐐规璁″垝鏉$爜");
+            //#endregion
 
-            });
-            //閫�鍑�
-            form.on('submit(Exit)', function (data) {//
-                if (linterid == undefined) {
-                    //鍏抽棴椤电
-                    Pub_Close(2);
+            //#region 褰撳墠椤甸潰鎵�鏈夋柟娉�
+            //鍒濆鍖栬〃鍗曟彃浠�
+            function set_InitFrom() {
+                //鍒濆鍖栬〃鍗曟彃浠�
+                laydate.render({
+                    elem: '#HDate',
+                });
+                laydate.render({
+                    elem: '#HBeginDate'
+                });
+                laydate.render({
+                    elem: '#HEndDate'
+                });
+            }
+            //鍒濆鍖栬〃鏍�
+            function set_InitGrid() {
+                //琛ㄥご
+                columns = [
+                    { type: 'checkbox', fixed: 'left' }
+                    , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
+                    , { field: 'HDotCheckItemID', title: '鐐规椤圭洰ID', edit: 'text', hide: true }
+                    , { field: 'HDotCheckItem', title: '鐐规椤圭洰', edit: 'text', event: "HDotCheckCode" }
+                    , { field: 'HDotCheckPart', title: '鐐规閮ㄤ綅', edit: 'text', event: "" }
+                    , { field: 'HClaim', title: '鍏蜂綋瑕佹眰', edit: 'text' }
+                    , { field: 'HManagerID', title: '璐熻矗浜轰唬鐮�', edit: 'text', hide: true }
+                    , { field: 'HManagerCode', title: '璐熻矗浜轰唬鐮�', edit: 'text', event: 'HManagerCode' }
+                    , { field: 'HManagerName', title: '璐熻矗浜哄悕绉�', edit: 'text' }
+                    , { field: 'HRemark', title: '澶囨敞', event: "", edit: 'text' }
+                    , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 }
+                ];
+                option = {
+                    id: 'mainTable'
+                    , elem: '#mainTable'
+                    , toolbar: '#toolbarDemo'
+                    , page: true
+                    , cellMinWidth: 120
+                    , height: 500
+                    , cols: [columns]
+                    , done: function (res, curr, count) {
+
+                    }
+                };
+            }
+            //鏃犳簮鍗曟柊澧�
+            function set_AddFNew() {
+                //鑾峰彇鏈�澶у崟鎹彿
+                get_MAXNum();
+                option.data = [{ "HDotCheckItemID": 0,  "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }];
+                table.render(option);
+            }
+            //鑾峰彇鏈�澶у崟鎹彿鍙婇粯璁ゅ�艰祴鍊�
+            function get_MAXNum() {
+                //鑾峰彇鏈�澶у崟鎹彿 new
+                $("#HInterID").val("0");
+                $("#HBillNo").val("");
+                $.ajax({
+                    url: GetWEBURL() + "/Web/GetMAXNum",
+                    type: "GET",
+                    data: { "HBillType": '3807'},
+                    success: function (d) {
+                        var myDate = new Date();
+                        var aa = myDate.toLocaleDateString()
+                        $("#HBillNo").val(d.data[0].HBillNo);
+                        $("#HDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+                        $("#HBeginDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+                        $("#HEndDate").val(Pub_Format(new Date(), "yyyy-MM-dd"));
+                        $("#HInterID").val(0);
+                    }
+                });
+            }
+            //缂栬緫
+            function set_EditFromGrid() {
+                set_EditForm(linterid);  //缂栬緫鑾峰彇琛ㄥご
+                set_EditGrid(linterid);  //缂栬緫鑾峰彇琛ㄤ綋
+                option.data = [{ "HDotCheckItemID": 0,  "HDotCheckItem": "", "HDotCheckPart": "", "HClaim": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRemark": "" }];
+                table.render(option);
+            }
+            //缂栬緫鍔犺浇琛ㄥご
+            function set_EditForm(linterid) {
+                $.ajax({
+                    url: GetWEBURL() + "Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBillListCheckDetai",
+                    type: "GET",
+                    data: {
+                        "HID": linterid
+                    },
+                    success: function (result) {
+                        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            var data = result.data.h_v_Sc_MouldDotCheckPlanBillList[0];
+                            form.val("component-form-group", { //formTest 鍗� class="layui-form" 鎵�鍦ㄥ厓绱犲睘鎬� lay-filter="" 瀵瑰簲鐨勫��
+                                "HBillNo": data.鍗曟嵁鍙�
+                                , "HDate": data.鏃ユ湡
+                                , "HInnerBillNo": data.鍐呴儴鍗曟嵁鍙�
+                                , "HBeginDate": data.淇濆吇寮�濮嬫棩鏈�
+                                , "HEndDate": data.淇濆吇缁撴潫鏃ユ湡
+                                , "HExplanation": data.鎽樿
+                                , "HRemark": data.澶囨敞
+                                , "HMouldID": data.HMouldID
+                                , "HCycleUnit": data.鍛ㄦ湡鍗曚綅
+                                , "HCheckCycle": data.淇濆吇鍛ㄦ湡
+                                , "HBeginDate": data.璁″垝寮�濮嬫棩鏈�
+                                , "HEndDate": data.璁″垝缁撴潫鏃ユ湡
+
+                            });
+
+                        } else {
+                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                        }
+                    }, error: function () {
+                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                    }
+                });
+            }
+            // 缂栬緫鑾峰彇琛ㄤ綋
+            function set_EditGrid(linterid) {
+                $("#HInterID").val(linterid);//淇敼鏃朵富琛↖D
+                //缂栬緫鍔犺浇鏁版嵁
+                $.ajax({
+                    url: GetWEBURL() + 'Sc_MouldDotCheckPlanBill/Sc_MouldDotCheckPlanBillListProjectDetai',
+                    type: "GET",
+                    data: { "sqlWhere": "and HInterID=" + linterid },
+                    success: function (result) {
+                        //console.log('gouba' + result);
+                        if (result.count == 1) {
+                            option.data = result.data;
+                            table.render(option);
+
+                        } else {
+                            layer.alert(result.code + result.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.close(index0);
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            }
+            // 缂栬緫鑾峰彇琛ㄥご鏃舵椂闂存牸寮忕煫姝f柟寮�
+            function formatDate(date) {
+                var d = new Date(date),
+                    month = '' + (d.getMonth() + 1),
+                    day = '' + d.getDate(),
+                    year = d.getFullYear();
+
+                if (month.length < 2) month = '0' + month;
+                if (day.length < 2) day = '0' + day;
+
+                return [year, month, day].join('-');
+            }
+            //澧炲姞涓�琛�
+            function set_AddLine(NewRow) {
+                var tableBak = table.cache["mainTable"]; //鑾峰彇涔嬪墠缂栬緫杩囩殑琛ㄦ牸鏁版嵁
+                buttonArr = [];//娓呯┖鏁扮粍
+                for (var i = 0; i < tableBak.length; i++) {
+                    buttonArr.push(tableBak[i]);  //灏嗕箣鍓嶇殑鏁版嵁瀛樺偍
+                }
+                buttonArr.push(NewRow);  //鍦ㄥ熬閮ㄥ姞涓�琛�
+                table.reload("mainTable", {
+                    data: buttonArr    //灏嗘暟鎹噸鏂拌浇鍏ヨ〃鏍�
+                })
+            }
+            //澶嶅埗涓�琛�
+            function set_CopyLine(data) {
+                var copydata = JSON.stringify(data);
+                if (data.length <= 0) {
+                    layer.alert("璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒");
+                }
+                else if (data.length > 1) {
+                    layer.alert("鍙兘閫夋嫨澶嶅埗涓�琛岋紒");
                 }
                 else {
-                    //鍏抽棴椤电
-                    Pub_Close(1);
+                    var copydata2 = copydata.substring(1, copydata.length);//鍘婚櫎棣栬瀛楃'['
+                    var copyrow = copydata2.substring(0, copydata2.length - 1);//鍘婚櫎鏈熬瀛楃']'
+                    table.cache["mainTable"].push(JSON.parse(copyrow));//灏嗗鍒剁殑琛屽己杞垚json杩藉姞鍒拌〃鏍间笂
+                    option.data = table.cache["mainTable"];//灏嗘暟鎹粦瀹氬埌data涓�
+                    table.render(option);//灏嗘暟鎹覆鏌撳埌琛ㄦ牸涓�
+                    //layer.alert(copyrow);
                 }
-            });
+            }
+            //琛屽唴鍒犻櫎浜嬩欢
+            function set_GirdDelete(obj) {
+                var data = obj.data;
+                var rowIndex = $(obj.tr).attr("data-index");
+                if (obj.event === 'del') {
+                    layer.confirm('鐪熺殑鍒犻櫎琛屼箞', function (index) {
+                        console.log("绱㈠紩涓�:" + rowIndex);
+                        if (rowIndex === '0') {
+                            layer.msg('棣栬鏃犳硶鍒犻櫎锛侊紒锛�');
+                        } else {
+                            //obj.del();
+                            //layer.close(index);
+                            var oldData = table.cache["mainTable"];
+                            oldData.splice(obj.tr.data('index'), 1);
+                            table.reload('mainTable', { data: oldData });
+                            layer.close(index);
+                        }
+                    });
+                }
+            }
+            // 琛ㄦ牸琛屽唴浜嬩欢蹇嵎閿瓫閫�
+            function set_GridCellCheck(obj) {
+                $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
+                    if (event.key == "F7") {
+                        if (obj.event === 'HDotCheckCode')  //鐐规椤圭洰浠g爜
+                        {
+                            //椤甸潰灞�-鑷畾涔�
+                            layer.open({
+                                type: 2,
+                                skin: 'layui-layer-rim', //鍔犱笂杈规
+                                title: '鐗╂枡鍒楄〃',
+                                closeBtn: 1,
+                                shift: 2,
+                                area: ['90%', '90%'],
+                                maxmin: true,
+                                content: ['../../PublicPage/CheckItemInformation.html', 'yes'],
+                                btn: ['纭畾', '鍙栨秷']
+                                , btn1: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                                    var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                                    if (checkStatus.data.length === 0) {
+                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                    }
+                                    //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+                                    obj.update({
+                                        HDotCheckItemID: checkStatus.data[0].HItemID,
+                                        HDotCheckCode: checkStatus.data[0].HNumber,
+                                        HDotCheckItem: checkStatus.data[0].HName
+                                    });
+                                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                                }
+                                , btn2: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                                },
+                                end: function () {
+                                }
+                            });
+                        }
+                        if (obj.event === 'HManagerCode')  //璐熻矗浜轰唬鐮�
+                        {
+                            //椤甸潰灞�-鑷畾涔�
+                            layer.open({
+                                type: 2,
+                                skin: 'layui-layer-rim', //鍔犱笂杈规
+                                title: '鐗╂枡鍒楄〃',
+                                closeBtn: 1,
+                                shift: 2,
+                                area: ['90%', '90%'],
+                                maxmin: true,
+                                content: ['../../PublicPage/UserInformation.html', 'yes'],
+                                btn: ['纭畾', '鍙栨秷']
+                                , btn1: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                                    var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                                    if (checkStatus.data.length === 0) {
+                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                    }
+                                    //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+                                    obj.update({
+                                        HManagerID: checkStatus.data[0].HItemID,
+                                        HManagerCode: checkStatus.data[0].HNumber,
+                                        HManagerName: checkStatus.data[0].HName
+                                    });
+                                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                                }
+                                , btn2: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                                },
+                                end: function () {
+                                }
+                            });
+                        }
+                        obj.event = "";
+                        return false;
 
+                    }
+                })
+            }
+            //鏁版嵁楠岃瘉
+            function AllowLoadData(sSubStr) {
+                var Result = true;
+                if ($("#HEquipID").val() == '' || $("#HEquipName").val() == '') {
+                    layer.msg("璇烽�夋嫨璁惧", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return Result = false;
+                }
+                if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") {
+                    sSubStr = JSON.parse(sSubStr);
+                    for (var i = 0; i < sSubStr.length; i++) {
+                        if (sSubStr[i].HDotCheckItemID == "") {
+                            layer.msg("鏄庣粏璁板綍绗�" + (i + 1) + "琛�,鐐规椤圭洰浠g爜淇℃伅涓虹┖!", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            return Result = false;
+                        }
+                        if (sSubStr[i].HManagerID == "") {
+                            layer.msg("鏄庣粏璁板綍绗�" + (i + 1) + "琛�,璐熻矗浜轰唬鐮佷俊鎭负绌�!", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            return Result = false;
+                        }
+
+                    }
+                }
+                return Result;
+            }
+            //閿欒淇℃伅
             function f_alert(sMsg) {
                 layer.alert(sMsg, { icon: 5 });
 
             }
+            //#endregion
 
             //鐩戝惉鎻愪氦
             form.verify({
@@ -2508,95 +585,6 @@
 
 
         });
-        //瀹氫箟鍏ㄥ眬鍙橀噺
-        var HReasonName, ReasonID, EmpName, SQProcName,
-            ProcID, ZRProcName, QRName
-            ;
-        function GetHReasonValue(obj)  //杩斿洖涓嶈壇鍘熷洜
-        {
-            HReasonName = obj[0].HName;
-            ReasonID = obj[0].HItemID;
-        }
-        //杩斿洖鐗╂枡
-        function GetHMaterNameValue(obj) {  //杩斿洖鐗╂枡
-            $("#HMater").val(obj[0].HName);
-            $("#HMaterID").val(obj[0].HItemID);
-            $("#HMaterNumber").val(obj[0].HNumber);
-        }
-        //杩斿洖宸ュ簭
-        function GetHProcValue(obj) {  //杩斿洖宸ュ簭
-            $("#HProcName").val(obj[0].宸ュ簭);
-            $("#HProcID").val(obj[0].HItemID);
-            $("#HProcNumber").val(obj[0].宸ュ簭浠g爜);
-        }
-        function GetHDeptNameValue(obj) {  //杩斿洖閮ㄩ棬
-            $("#HDepName").val(obj[0].HName);
-            $("#HDeptID").val(obj[0].HItemID);
-            $("#HDeptNumber").val(obj[0].HNumber);
-        }
-        //杩斿洖鍗曚綅
-        function GetHUnitNameValue(obj) {
-            $("#HUName").val(obj[0].HName);
-            $("#HUnitID").val(obj[0].HItemID);
-            $("#HUnitNumber").val(obj[0].HNumber);
-        }
-
-        function GetHKeeperValue(obj) {  //杩斿洖璐d换浜�
-            EmpName = obj[0].HName;
-            // $("#HEmpName").val(obj[0].HName);
-            //$("#HItemID").val(obj[0].HItemID);
-        }
-        //function GetHProcValue(obj) {  //杩斿洖鐢宠宸ュ簭
-        //    SQProcName = obj[0].宸ュ簭;
-        //    ProcID = obj[0].HItemID;
-        //    //$("#HSQProcName").val(obj[0].宸ュ簭);
-        //    //$("#HProcID").val(obj[0].HItemID);
-        //}
-        function GetHZRValue(obj) {   //杩斿洖璐d换宸ュ簭
-            ZRProcName = obj[0].宸ュ簭;
-            //$("#HZRProcName").val(obj[0].宸ュ簭);
-            //$("#HItemID").val(obj[0].HItemID);
-        }
-        //HWorker
-        function GetHWorkerValue(obj) {  //杩斿洖涓嶈壇纭浜�
-            QRName = obj[0].HName;
-            //$("#HQRName").val(obj[0].HName);
-            //$("#HItemID").val(obj[0].HItemID);
-        }
-        function AllowLoadData(sSubStr) {  //闈炵┖楠岃瘉
-
-            if ($("#HBillNo").val() == '') {
-                layer.msg("閿欒鐨勫崟鎹彿", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                return false;
-            }
-            if ($("#HInterID").val() == '') {
-                layer.msg("閿欒鐨勫唴鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                return false;
-            }
-            if (typeof (sSubStr) == "undefined") {
-                layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                return false;
-            }
-            if (typeof (sSubStr) == "undefined" || sSubStr == "") {
-                layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                return Result = false;
-            }
-            if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") {
-                sSubStr = JSON.parse(sSubStr);
-                for (var i = 0; i < sSubStr.length; i++) {
-                    if (sSubStr[i].HMaterID == "") {
-                        layer.msg("鏄庣粏璁板綍绗�" + (i + 1) + "琛�,鍣ㄥ叿淇℃伅涓虹┖!", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        return Result = false;
-                    }
-                    if (sSubStr[i].HWHID == "") {
-                        layer.msg("鏄庣粏璁板綍绗�" + (i + 1) + "琛�,鍙戞枡浠撳簱涓虹┖!", { icon: 5, btn: ['纭'], time: 2000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        return Result = false;
-                    }
-                }
-            }
-            else {
-                return true;
-            }
-        }</script>
+    </script>
 </body>
 </html>
\ No newline at end of file
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
index 1f32598..c1cc797 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainBillList.html"
@@ -284,10 +284,18 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['', 'yes'],
+                    content: ['../妯℃不鍏风鐞�/Sc_MouldMaintainPlanBillList.html', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
-
+                        //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                        var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                        if (checkStatus.data.length === 0) {
+                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                        }
+                        $("#HPlanInterName").val(checkStatus.data[0].鍗曟嵁鍙�);
+                        $("#HPlanInterID").val(checkStatus.data[0].hmainid);
+                        layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) {
                         //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainPlanBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainPlanBillList.html"
index 572b1a9..75f35d8 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainPlanBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldMaintainPlanBillList.html"
@@ -197,7 +197,7 @@
                 var checkStatus = table.checkStatus('mainTable')
                     , data = checkStatus.data;;
                 var AddRow = table.cache['mainTable'];
-                var NewRow = { "HMaterID": 0, "HUnitID": "0 ", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " };
+                var NewRow = { "HMaterID": 0, "HMaterNumber": "", "HUnitID": "0 ","HUnitNumber":"", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " };
                 switch (obj.event) {
                     //鏂板涓�琛�
                     case 'btn-AddLine': btnAddLine(NewRow);
@@ -218,9 +218,75 @@
             function set_GridCellCheck(obj) {
                 $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) {
                     if (event.key == "F7") {
-                        if (obj.event === 'HMaintainItemNumber')  //閰嶄欢浠g爜
+                        if (obj.event === 'HMaterNumber')  //閰嶄欢浠g爜
                         {
-
+                            //椤甸潰灞�-鑷畾涔�
+                            layer.open({
+                                type: 2,
+                                skin: 'layui-layer-rim', //鍔犱笂杈规
+                                title: '閰嶄欢鍒楄〃',
+                                closeBtn: 1,
+                                shift: 2,
+                                area: ['90%', '90%'],
+                                maxmin: true,
+                                content: ['../../PublicPage/PartInformation.html', 'yes'],
+                                btn: ['纭畾', '鍙栨秷']
+                                , btn1: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                                    var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                                    if (checkStatus.data.length === 0) {
+                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                    }
+                                    //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+                                    obj.update({
+                                        HMaterID: checkStatus.data[0].HItemID,
+                                        HMaterNumber: checkStatus.data[0].HNumber
+                                    });
+                                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                                }
+                                , btn2: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                                },
+                                end: function () {
+                                }
+                            });
+                        }
+                        //鍗曚綅浠g爜
+                        if (obj.event === 'HUnitNumber') {
+                            //椤甸潰灞�-鑷畾涔�
+                            layer.open({
+                                type: 2,
+                                skin: 'layui-layer-rim', //鍔犱笂杈规
+                                title: '鍗曚綅鍒楄〃',
+                                closeBtn: 1,
+                                shift: 2,
+                                area: ['90%', '90%'],
+                                maxmin: true,
+                                content: ['../../PublicPage/UnitInformation.html', 'yes'],
+                                btn: ['纭畾', '鍙栨秷']
+                                , btn1: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                                    var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                                    var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                                    if (checkStatus.data.length === 0) {
+                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                    }
+                                    //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
+                                    obj.update({
+                                        HUnitID: checkStatus.data[0].HItemID,
+                                        HUnitNumber: checkStatus.data[0].HNumber
+                                    });
+                                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                                }
+                                , btn2: function (index, layero) {
+                                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                                },
+                                end: function () {
+                                }
+                            });
                         }
                         obj.event = "";
                         return false;
@@ -324,8 +390,10 @@
                 columns = [
                     { type: 'checkbox', fixed: 'left' }
                     , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
-                    , { field: 'HMaterID', title: '閰嶄欢浠g爜', edit: 'text', event: "" }
-                    , { field: 'HUnitID', title: '鍗曚綅浠g爜', edit: 'text', event: "" }
+                    , { field: 'HMaterID', title: '閰嶄欢ID', edit: 'text', hide: true }
+                    , { field: 'HMaterNumber', title: '閰嶄欢浠g爜', edit: 'text', event: "HMaterNumber", }
+                    , { field: 'HUnitID', title: '鍗曚綅ID', edit: 'text', event: "", hide: true}
+                    , { field: 'HUnitNumber', title: '鍗曚綅浠g爜', edit: 'text', event: "HUnitNumber" }
                     , { field: 'HQty', title: '瀹為檯鐢ㄩ噺', edit: 'text' }
                     , { field: 'HQtyMust', title: '鍗曚綅鐢ㄩ噺', edit: 'text' }
                     , { field: 'HRemark', title: '澶囨敞', edit: 'text' }
@@ -350,7 +418,7 @@
             function set_AddFNew() {
                 //鑾峰彇鏈�澶у崟鎹彿
                 get_MAXNum();
-                option.data = [{ "HMaterID": 0, "HUnitID": "0 ", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " }];
+                option.data = [{ "HMaterID": 0, "HMaterNumber": "", "HUnitID": "0 ", "HUnitNumber": "", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " }];
                 table.render(option);
             }
 
@@ -358,7 +426,7 @@
             function set_EditFromGrid() {
                 set_EditForm(linterid);  //缂栬緫鑾峰彇琛ㄥご
                 set_EditGrid(linterid);  //缂栬緫鑾峰彇琛ㄤ綋
-                option.data = [{ "HMaterID": 0, "HUnitID": "0 ", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " }];
+                option.data = [{ "HMaterID": 0, "HMaterNumber": "", "HUnitID": "0 ", "HUnitNumber": "", "HQty": "0   ", "HQtyMust": "0", "HRemark": "  " }];
                 table.render(option);
             }
 
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldDotCheckPlanBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldDotCheckPlanBillList.html"
index b8d71b2..84b39b5 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldDotCheckPlanBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldDotCheckPlanBillList.html"
@@ -200,7 +200,7 @@
                     , cols: [[
                         { type: 'checkbox', fixed: 'left' }
                         , { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
-                        , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160 }
+                        , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 }
                         , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 160, hide: true }
                         , { field: 'HMouldID', title: 'HMouldID', width: 200, hide: true }
@@ -208,8 +208,8 @@
                         , { field: '浜у搧妯″叿', title: '浜у搧鍣ㄥ叿', width: 200, hide: true }
                         , { field: '鍛ㄦ湡鍗曚綅', title: '鍛ㄦ湡鍗曚綅', width: 200 }
                         , { field: '淇濆吇鍛ㄦ湡', title: '淇濆吇鍛ㄦ湡', width: 200 }
-                        , { field: '璁″垝寮�濮嬫棩鏈�', title: '璁″垝寮�濮嬫棩鏈�', width: 200 }
-                        , { field: '璁″垝缁撴潫鏃ユ湡', title: '璁″垝缁撴潫鏃ユ湡', width: 200 }
+                        , { field: '璁″垝寮�濮嬫棩鏈�', title: '璁″垝寮�濮嬫棩鏈�', width: 200, templet: "<div>{{d.璁″垝寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.璁″垝寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>" }
+                        , { field: '璁″垝缁撴潫鏃ユ湡', title: '璁″垝缁撴潫鏃ユ湡', width: 200, templet: "<div>{{d.璁″垝缁撴潫鏃ユ湡 ==null ?'':layui.util.toDateString(d.璁″垝缁撴潫鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                         , { field: '鎽樿', title: '鎽樿', width: 200 }
                         , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 200 }
                         , { field: '澶囨敞', title: '澶囨敞', width: 200 }
@@ -225,15 +225,15 @@
                         , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 200, hide: true }
                         , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 200, hide: true }
                         , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 115, hide: true }
-                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200 }
+                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 200 }
-                        , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, hide: true }
+                        , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, hide: true, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                         , { field: '淇敼浜�', title: '淇敼浜�', width: 200, hide: true }
-                        , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, hide: true }
+                        , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, hide: true, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                         , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 200 }
-                        , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200 }
+                        , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                         , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 200, hide: true }
-                        , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 115, hide: true }
+                        , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 115, hide: true, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 200, hide: true }
                         , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 200, hide: true }
                         , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 200 }
@@ -275,7 +275,7 @@
                     shift: 2,
                     area: ['100%', '100%'],
                     maxmin: true,
-                    content: '../妯℃不鍏风鐞�/Sc_Add_MouldDotCheckPlanBillList.html',
+                    content: '../妯℃不鍏风鐞�/Sc_Add_MouldDotCheckPlanBillList.html?OperationType=1&linterid=&HSouceBillType=',
                     end: function () {
                         //鍒锋柊椤甸潰,
                         location.reload();
@@ -290,7 +290,7 @@
                 var checkStatus = table.checkStatus('mainTable')
                     , data = checkStatus.data;
                 if (checkStatus.data.length === 1) {
-                    var hID = data[0].hmainid.toString();
+                    var linterid = data[0].hmainid.toString();
                     //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
                     layer.open({
                         type: 2
@@ -299,7 +299,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: '../妯℃不鍏风鐞�/Sc_Add_MouldDotCheckPlanBillList.html?hID=' + hID
+                        , content: '../妯℃不鍏风鐞�/Sc_Add_MouldDotCheckPlanBillList.html?OperationType=3&linterid=' + linterid + '&HSouceBillType='
                         , resize: false,
                         end: function () {
                             //鍒锋柊椤甸潰,
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainPlanBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainPlanBillList.html"
index cf080e0..fba8801 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainPlanBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_MouldMaintainPlanBillList.html"
@@ -213,13 +213,13 @@
                     , cols: [[
                         { type: 'checkbox', fixed: 'left' }
                         , { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
-                        , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160 }
+                        , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 }
                         , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 160, hide: true }
                         , { field: '鍛ㄦ湡鍗曚綅', title: '鍛ㄦ湡鍗曚綅', width: 200 }
                         , { field: '淇濆吇鍛ㄦ湡', title: '淇濆吇鍛ㄦ湡', width: 200 }
-                        , { field: '璁″垝寮�濮嬫棩鏈�', title: '璁″垝寮�濮嬫棩鏈�', width: 200 }
-                        , { field: '璁″垝缁撴潫鏃ユ湡', title: '璁″垝缁撴潫鏃ユ湡', width: 200 }
+                        , { field: '璁″垝寮�濮嬫棩鏈�', title: '璁″垝寮�濮嬫棩鏈�', width: 200, templet: "<div>{{d.璁″垝寮�濮嬫棩鏈� ==null ?'':layui.util.toDateString(d.璁″垝寮�濮嬫棩鏈�, 'yyyy-MM-dd')}}</div>"}
+                        , { field: '璁″垝缁撴潫鏃ユ湡', title: '璁″垝缁撴潫鏃ユ湡', width: 200, templet: "<div>{{d.璁″垝缁撴潫鏃ユ湡 ==null ?'':layui.util.toDateString(d.璁″垝缁撴潫鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '鎽樿', title: '鎽樿', width: 200 }
                         , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 200 }
                         , { field: '澶囨敞', title: '澶囨敞', width: 200 }
@@ -237,15 +237,15 @@
                         , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 200 }
                         , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 200, hide: true }
                         , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 115, hide: true }
-                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200 }
+                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡 'yyyy-MM-dd')}}</div>"}
                         , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 200 }
-                        , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, hide: true }
+                        , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, hide: true, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '淇敼浜�', title: '淇敼浜�', width: 200, hide: true }
-                        , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, hide: true }
+                        , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 115, hide: true, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 200 }
-                        , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200 }
+                        , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 200, hide: true }
-                        , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 115, hide: true }
+                        , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 115, hide: true, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>"}
                         , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 200, hide: true }
                         , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 200, hide: true }
                         , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 200 }
diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
index 61de300..29c9ada 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
@@ -17,7 +17,7 @@
 <body>
 
     <div id="layout1" class="layui-fluid">
-        <div class="layui-row layui-col-space15">
+        <div class="layui-row layui-col-space15">                                                                
             <div class="layui-col-md12">
                 <div class="layui-card">
                     <form id="form0" class="layui-form" lay-filter="component-form-group" action="">
@@ -564,7 +564,7 @@
                                     });
                                 }
                                 else {
-                                    f_alert(data.Message);
+                                    layui.alert("淇濆瓨澶辫触")
                                     console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable));
                                 }
                                 layer.closeAll("loading");
diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipMaintainBillEdit.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipMaintainBillEdit.html"
index 651ec51..893e987 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipMaintainBillEdit.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipMaintainBillEdit.html"
@@ -817,7 +817,7 @@
                             layer.open({
                                 type: 2,
                                 skin: 'layui-layer-rim', //鍔犱笂杈规
-                                title: '鍗曚綅鍒楄〃',
+                                title: '閰嶄欢鍒楄〃',
                                 closeBtn: 1,
                                 shift: 2,
                                 area: ['90%', '90%'],
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
index c55d850..02d2649 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\247\224\345\244\226\350\256\242\345\215\225/WW_EntrustOrderBillList.html"
@@ -34,7 +34,7 @@
                                     <label class="layui-form-label">涓氬姟鐘舵��</label>
                                     <div class="layui-input-block">
                                         <select name="HStatus" lay-filter="HStatus" style="width:190px;">
-                                            <option value="-1" selected="selected">鍏ㄩ儴</option>
+                                            <option value="-1" selected>鍏ㄩ儴</option>
                                             <option value="1">鏈垎閰�</option>
                                             <option value="2">宸插垎閰�</option>
                                             <option value="3">宸插彂甯�</option>
@@ -58,17 +58,52 @@
                                 </button>
                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
                                 <div class="layui-colla-content">
-                                    <div class="layui-inline">
+                                    <!--<div class="layui-inline">
                                         <div class="layui-inline">
                                             <span>鍏朵粬鏉′欢></span>
                                         </div>
-                                    </div>
+                                    </div>-->
                                     <div class="layui-inline">
                                         <label class="layui-form-label">鍗曟嵁鍙�</label>
                                         <div class="layui-input-block">
-                                            <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter">
+                                            <input type="text" class="layui-input" name="HBillno" id="HBillno" style="width:190px;">
                                         </div>
                                     </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">涓氬姟鍛�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍗忓悓鐘舵��</label>
+                                        <div class="layui-input-block">
+                                            <select name="HXTStatus" lay-filter="HXTStatus" style="width:190px;">
+                                                <option value="" selected>鍏ㄩ儴</option>
+                                                <option value="鏈‘璁�">鏈‘璁�</option>
+                                                <option value="宸茬‘璁�">宸茬‘璁�</option>
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍙嶉鐘舵��</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HXTFKStatus" id="HXTFKStatus" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡浠g爜</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="width:190px;">
+                                        </div>
+                                    </div>
+
                                 </div>
                             </div>
                         </div>
@@ -315,13 +350,17 @@
             //鍔犺浇缃戞牸
             function get_Display(sWhere) {
                 var wait = layer.load();//閬僵
-                var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
-                var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
-                if (HBeginDate) {
-                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
-                }
-                if (HEndDate) {
-                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                if (sWhere == "")
+                {
+                    var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                    var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                    if (HBeginDate) {
+                        sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+                    }
+                    if (HEndDate) {
+                        sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                    }
+                    sWhere +=  " and 涓氬姟鐘舵�� = '鏈垎閰�' and 渚涘簲鍟嗗崗鍚岀姸鎬� ='鏈‘璁�' ";
                 }
                 $.ajax({
                     url: GetWEBURL() + '/WW_EntrustOrderBill/list',
@@ -898,8 +937,6 @@
 
                     }
                 });
-
-
             }
 
             //蹇�熻繃婊�
@@ -908,7 +945,12 @@
                 var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
                 var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
                 var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙�
-                var HSupID = $("#HSupID").val();       //渚涘簲鍟嗕俊鎭�
+                var HEmpID = $("#HEmpID").val();
+                var HMaterNumber = $("#HMaterNumber").val();
+                var HMaterName = $("#HMaterName").val();
+                var HXTStatus = $("select[name='HXTStatus']").val();
+                var HXTFKStatus = $("#HXTFKStatus").val();
+
                 if (HStatus) {
                     switch (HStatus) {
                         case '-1':   //鍏ㄩ儴
@@ -935,8 +977,22 @@
                 if (HBillNo) {
                     sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
                 }
-                if (HSupID) {
-                    sWhere += " and HSupID = '" + HSupID + "'";
+                if (HMaterNumber) {
+                    sWhere += " and 鐗╂枡浠g爜 like '%" + HMaterNumber + "%'";
+                }
+                if (HMaterName) {
+                    sWhere += " and 鐗╂枡鍚嶇О like '%" + HMaterName + "%'";
+                }
+                if (HEmpID) {
+                    sWhere += " and 涓氬姟鍛� like '%" + HEmpID + "%'";
+                }
+                if (HXTStatus) {
+                    sWhere += " and 渚涘簲鍟嗗崗鍚岀姸鎬� like '%" + HXTStatus + "%'";
+
+                }
+                if (HXTFKStatus) {
+                    sWhere += " and 鍙嶉鐘舵�� like '%" + HXTFKStatus + "%'";
+
                 }
                 var index = layer.load(0);
                 get_Display(sWhere);
@@ -949,8 +1005,9 @@
                 $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                 $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 $("#HBillNo").val("");
-                $("#HSupName").val("");
-                $("#HSupID").val("");
+                $("#HEmpID").val("");
+                $("#HMaterNumber").val("");
+                $("#HMaterName").val("");
                 sWhere = "";
                 get_Display(sWhere);
             }
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
index 29d0730..6b61a7a 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillList.html"
@@ -59,24 +59,43 @@
                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
                                 <div class="layui-colla-content">
                                     <div class="layui-inline">
-                                        <div class="layui-inline">
-                                            <span>鍏朵粬鏉′欢></span>
-                                        </div>
-                                    </div>
-                                    <div class="layui-inline">
                                         <label class="layui-form-label">鍗曟嵁鍙�</label>
                                         <div class="layui-input-block">
-                                            <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;">
+                                            <input type="text" class="layui-input" name="HBillno" id="HBillno" style="width:190px;">
                                         </div>
                                     </div>
                                     <div class="layui-inline">
-                                        <label class="layui-form-label">渚涘簲鍟嗕俊鎭�</label>
-                                        <div class="layui-input-inline">
-                                            <input type="text" name="HSupName" id="HSupName" readonly class="layui-input" value="" style="float:left;width:150px;">
-                                            <input type="hidden" name="HSupID" id="HSupID" class="layui-input" value="" style="float:left;width:150px;">
-                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;">
-                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
-                                            </button>
+                                        <label class="layui-form-label">涓氬姟鍛�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍗忓悓鐘舵��</label>
+                                        <div class="layui-input-block">
+                                            <select name="HXTStatus" lay-filter="HXTStatus" style="width:190px;">
+                                                <option value="" selected>鍏ㄩ儴</option>
+                                                <option value="鏈‘璁�">鏈‘璁�</option>
+                                                <option value="宸茬‘璁�">宸茬‘璁�</option>
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍙嶉鐘舵��</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HXTFKStatus" id="HXTFKStatus" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡浠g爜</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="width:190px;">
                                         </div>
                                     </div>
                                 </div>
@@ -324,13 +343,16 @@
             //鍔犺浇缃戞牸
             function get_Display(sWhere) {
                 var wait = layer.load();//閬僵
-                var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
-                var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
-                if (HBeginDate) {
-                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
-                }
-                if (HEndDate) {
-                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                if (sWhere == "") {
+                    var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                    var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                    if (HBeginDate) {
+                        sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+                    }
+                    if (HEndDate) {
+                        sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                    }
+                    sWhere += " and 涓氬姟鐘舵�� = '鏈垎閰�' and 渚涘簲鍟嗗崗鍚岀姸鎬� ='鏈‘璁�' ";
                 }
                 $.ajax({
                     url: GetWEBURL() + '/Cg_POOrderBill/list',
@@ -917,7 +939,12 @@
                 var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
                 var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
                 var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙�
-                var HSupID = $("#HSupID").val();       //渚涘簲鍟嗕俊鎭�
+                var HEmpID = $("#HEmpID").val();
+                var HMaterNumber = $("#HMaterNumber").val();
+                var HMaterName = $("#HMaterName").val();
+                var HXTStatus = $("select[name='HXTStatus']").val();
+                var HXTFKStatus = $("#HXTFKStatus").val();
+
                 if (HStatus) {
                     switch (HStatus) {
                         case '-1':   //鍏ㄩ儴
@@ -944,8 +971,22 @@
                 if (HBillNo) {
                     sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
                 }
-                if (HSupID) {
-                    sWhere += " and HSupID = '" + HSupID + "'";
+                if (HMaterNumber) {
+                    sWhere += " and 鐗╂枡浠g爜 like '%" + HMaterNumber + "%'";
+                }
+                if (HMaterName) {
+                    sWhere += " and 鐗╂枡鍚嶇О like '%" + HMaterName + "%'";
+                }
+                if (HEmpID) {
+                    sWhere += " and 涓氬姟鍛� like '%" + HEmpID + "%'";
+                }
+                if (HXTStatus) {
+                    sWhere += " and 渚涘簲鍟嗗崗鍚岀姸鎬� like '%" + HXTStatus + "%'";
+
+                }
+                if (HXTFKStatus) {
+                    sWhere += " and 鍙嶉鐘舵�� like '%" + HXTFKStatus + "%'";
+
                 }
                 var index = layer.load(0);
                 get_Display(sWhere);
@@ -958,8 +999,9 @@
                 $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
                 $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 $("#HBillNo").val("");
-                $("#HSupName").val("");
-                $("#HSupID").val("");
+                $("#HEmpID").val("");
+                $("#HMaterNumber").val("");
+                $("#HMaterName").val("");
                 sWhere = "";
                 get_Display(sWhere);
             }
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\345\247\224\345\244\226\345\207\272\345\272\223/Kf_EntrustOutBillList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\345\247\224\345\244\226\345\207\272\345\272\223/Kf_EntrustOutBillList.html"
index 1aaf162..47491ad 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\345\247\224\345\244\226\345\207\272\345\272\223/Kf_EntrustOutBillList.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\345\247\224\345\244\226\345\207\272\345\272\223/Kf_EntrustOutBillList.html"
@@ -1,14 +1,19 @@
 锘�<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-<title>濮斿鍑哄簱鍗曞垪琛�</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <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">
     <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
     <script src="../../../layuiadmin/layui/layui.js"></script>
+    <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>
+    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
     <style type="text/css">
         input.layui-input.layui-unselect {
             padding-right: 0;
@@ -28,62 +33,93 @@
                                         <span>鏇村</span>
                                     </div>
                                 </div>
-                                <!--<div class="layui-inline">
-                                    <label class="layui-form-label">鍗曟嵁绫诲瀷</label>
-                                    <div class="layui-input-block">
-                                        <select name="HBillType" id="HBillType">
-                                            <option value="">鎵�鏈�</option>
-                                            <option value="ZHXJ">涓嬫灦鎵捐揣鍗�</option>
-                                            <option value="ZHSJ">涓婃灦褰掕繕鍗�</option>
-                                        </select>
-                                    </div>
-                                </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label">鍗曟嵁鍙�</label>
                                     <div class="layui-input-block">
-                                        <input type="text" class="layui-input" name="HBillNo" id="HBillNo">
+                                        <input type="text" class="layui-input" id="HBillNo" style="width:190px;">
                                     </div>
                                 </div>
                                 <div class="layui-inline">
-                                    <label class="layui-form-label">鍒跺崟浜�</label>
+                                    <label class="layui-form-label">寮�濮嬫棩鏈�</label>
                                     <div class="layui-input-block">
-                                        <input type="text" class="layui-input" name="HCreateBy" id="HCreateBy">
+                                        <input type="date" class="layui-input" id="HBeginDate" style="width:190px;">
                                     </div>
-                                </div>-->
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+                                    <div class="layui-input-block">
+                                        <input type="date" class="layui-input" id="HEndDate" style="width:190px;">
+                                    </div>
+                                </div>
+
                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                     <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                 </button>
-                                <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>-->
-                                <!--<div class="layui-colla-content">
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
+                                <div class="layui-colla-content">
                                     <div class="layui-inline">
-                                        <div class="layui-inline">
-                                            <span>鍏朵粬鏉′欢></span>
-                                        </div>
-                                    </div>
-                                    <div class="layui-inline">
-                                        <label class="layui-form-label">寮�濮嬫椂闂�</label>
+                                        <label class="layui-form-label">閮ㄩ棬鍚嶇О</label>
                                         <div class="layui-input-block">
-                                            <input type="date" class="layui-input" name="BenginHCreateDate" id="BenginHCreateDate">
+                                            <input type="text" class="layui-input" id="HDepartName" style="width:190px;">
                                         </div>
                                     </div>
                                     <div class="layui-inline">
-                                        <label class="layui-form-label">缁撴潫鏃堕棿</label>
+                                        <label class="layui-form-label">鐗╂枡浠g爜</label>
                                         <div class="layui-input-block">
-                                            <input type="date" class="layui-input" name="EndHCreateDate" id="EndHCreateDate">
+                                            <input type="text" class="layui-input" id="HMaterNumber" style="width:190px;">
                                         </div>
                                     </div>
-                                </div>-->
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMaterName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">瑙勬牸鍨嬪彿</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMaterModel" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">婧愬崟鍗曞彿</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HSourceBillNo" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">璋冨叆浠撳簱</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HStockIn" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">璋冨嚭浠撳簱</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HStocOut" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍒跺崟浜�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMakerMan" style="width:190px;">
+                                        </div>
+                                    </div>
+                                </div>
                             </div>
                         </div>
                         <table class="" id="mainTable" lay-filter="mainTable"></table>
                         <script type="text/html" id="toolbarDemo">
                             <div class="layui-btn-container">
                                 <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
+                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>鍙嶅鏍�</button>-->
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>纭</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>椹冲洖</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>璇︽儏</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>鐢熸垚閫佽揣鍗�</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>
 
                             </div>
@@ -93,10 +129,6 @@
             </div>
         </div>
     </div>
-    <script src="../../../layuiadmin/layui/layui.js"></script>
-    <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>
         layui.config({
             base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -113,189 +145,585 @@
                 , laydate = layui.laydate
                 , util = layui.util
             //鏌ヨ鏉′欢
-            var sWhere = "";
+            var sWhere = " where 1 = 1 ";
+            var option = [];
+            var Name = "MouldProdInHouseCellWidth";
 
-            var option = {
-                elem: '#mainTable'
-                //, toolbar: '#toolbarDemo'
-                , height: 'full-50'
-                , page: true
-                , cellMinWidth: 90
-                , cols: [[
-                    { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
-                    , { field: '鏃ユ湡', title: '鏃ユ湡', width: 160 }
+            //#region 杩涘叆椤甸潰鏃㈠姞杞�
+            //鍒濆鍖栬〃鏍�
+            set_InitGrid();
+            //鍔犺浇鏁版嵁鍒扮綉鏍�
+            get_Display(sWhere);
+            //#endregion
+            //#region 鐐瑰嚮浜嬩欢鍖呮嫭on form浜嬩欢绛�
+            //澶村伐鍏锋爮浜嬩欢
+            table.on('toolbar(mainTable)', function (obj) {
+                switch (obj.event) {
+                    //鏂板鎸夐挳
+                    case 'btn-Add': set_AddNew();
+                        break;
+                    //缂栬緫鎸夐挳
+                    case 'btn-Edit': set_ShowBill();
+                        break;
+                    //鍒犻櫎鎸夐挳
+                    case 'btn-Delete': set_DeleteBill();
+                        break;
+                    //娴忚
+                    case 'btn-view': get_ViewReport();
+                        break;
+                    //鎵撳嵃
+                    case 'btn-print': get_PrintReport();
+                        break;
+                    //鍒锋柊
+                    case 'get_Refresh': set_Refresh();
+                        break;
+
+                    //閫�鍑�
+                    case 'get_Exit': Pub_Close(2);
+                        break;
+                    //鍒嗛厤
+                    case 'btn-fp': set_Distribut();
+                        break;
+                    //鍙戝竷
+                    case 'btn-fb': set_Release();
+                        break;
+                    //浼樺厛绾�
+                    case 'btn-yxj': set_Yxj();
+                        break;
+                    case 'btn-back': set_Back();
+                        break;
+                };
+            });
+            //閲嶇疆鎸夐挳
+            form.on('submit(btnReSearch)', function (data) {
+                set_ClearQuery();
+            });
+            //鏌ヨ鎸夐挳
+            form.on('submit(btnSearch)', function (data) {
+                get_FastQuery(table, option);
+            });
+            //鍒濆鍖栬〃鏍�
+            function set_InitGrid() {
+                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
+                var columns = [
+                    { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
+                    , { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
+                    , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
                     , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 }
                     , { field: 'hsupid', title: 'hsupid', width: 160, hide: true }
-                    , { field: '鍔犲伐鍗曚綅浠g爜', title: '鍔犲伐鍗曚綅浠g爜', width: 200 }
-                    , { field: '鍔犲伐鍗曚綅', title: '鍔犲伐鍗曚綅', width: 200 }
-                    , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true }
-                    , { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 200 }
-                    , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 200 }
-                    , { field: 'hmanagerid', title: 'hmanagerid', width: 200, width: 200, hide: true  }
+                    , { field: '鍔犲伐鍗曚綅浠g爜', title: '鍔犲伐鍗曚綅浠g爜', width: 150 }
+                    , { field: '鍔犲伐鍗曚綅', title: '鍔犲伐鍗曚綅', width: 150 }
+                    , { field: 'HEmpID', title: 'HEmpID', width: 150, hide: true }
+                    , { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 150 }
+                    , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 150 }
+                    , { field: 'hmanagerid', title: 'hmanagerid', width: 150, hide: true }
                     , { field: '涓荤浠g爜', title: '涓荤浠g爜', width: 160 }
-                    , { field: '涓荤', title: '涓荤', width: 160}
+                    , { field: '涓荤', title: '涓荤', width: 160 }
                     , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 160, hide: true }
-                    , { field: '楠屾敹鍛樹唬鐮�', title: '楠屾敹鍛樹唬鐮�', width: 200 }
-                    , { field: '楠屾敹鍛�', title: '楠屾敹鍛�', width: 200 }
-                    , { field: 'hkeeperid', title: 'hkeeperid', width: 200, hide: true }
-                    , { field: '淇濈鍛樹唬鐮�', title: '淇濈鍛樹唬鐮�', width: 200 }
-                    , { field: '淇濈鍛�', title: '淇濈鍛�', width: 200 }
-                    , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
-                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 200 }
+                    , { field: '楠屾敹鍛樹唬鐮�', title: '楠屾敹鍛樹唬鐮�', width: 150 }
+                    , { field: '楠屾敹鍛�', title: '楠屾敹鍛�', width: 150 }
+                    , { field: 'hkeeperid', title: 'hkeeperid', width: 150, hide: true }
+                    , { field: '淇濈鍛樹唬鐮�', title: '淇濈鍛樹唬鐮�', width: 150 }
+                    , { field: '淇濈鍛�', title: '淇濈鍛�', width: 150 }
+                    , { field: 'HDeptID', title: 'HDeptID', width: 150, hide: true }
+                    , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 150 }
                     , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 115 }
                     , { field: '鎽樿', title: '鎽樿', width: 115 }
-                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 200 }
-                    , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 200 }
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 150 }
+                    , { field: '鍐呴儴鍗曟嵁鍙�', title: '鍐呴儴鍗曟嵁鍙�', width: 150 }
                     , { field: '绾㈣摑鍗曟爣璁�', title: '绾㈣摑鍗曟爣璁�', width: 115 }
-                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 200 }
-                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200 }
-                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 200 }
-                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200 }
-                    , { field: '淇敼浜�', title: '淇敼浜�', width: 115 }
-                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 200  }
-                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 200 }
-                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200 }
-                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 115 }
-                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 200 }
-                    , { field: 'hsubid', title: 'hsubid', width: 200, hide: true }
-                    , { field: 'hmaterid', title: 'hmaterid', width: 200, hide: true }
-                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 200 }
-                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 200 }
-                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 200 }
-                    , { field: '闄勫姞灞炴��', title: '闄勫姞灞炴��', width: 115 }
-                    , { field: '棰滆壊', title: '棰滆壊', width: 200 }
-                    , { field: 'hunitid', title: 'hunitid', width: 200, hide: true }
-                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 200 }
-                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 115 }
-                    , { field: '搴斿彂鏁伴噺', title: '搴斿彂鏁伴噺', width: 115 }
-                    , { field: '瀹炲彂鏁伴噺', title: '瀹炲彂鏁伴噺', width: 200 }
-                    , { field: '鍗曚环', title: '鍗曚环', width: 200 }
-                    , { field: '閲戦', title: '閲戦', width: 200 }
-                    , { field: 'hwhid', title: 'hwhid', width: 115, hide: true }
-                    , { field: '鍙戣揣浠撳簱浠g爜', title: '鍙戣揣浠撳簱浠g爜', width: 115 }
-                    , { field: '鍙戣揣浠撳簱', title: '鍙戣揣浠撳簱', width: 115 }
-                    , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', width: 200 }
-                    , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 200 }
-                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 200 }
-                    , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 115 }
-                    , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 115 }
-                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 115 }
-                    , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 200, hide: true }
-                    , { field: '閲囪喘璁㈠崟涓诲唴鐮�', title: '閲囪喘璁㈠崟涓诲唴鐮�', width: 200, hide: true }
-                    , { field: '閲囪喘璁㈠崟瀛愬唴鐮�', title: '閲囪喘璁㈠崟瀛愬唴鐮�', width: 200 }
-                    , { field: '閲囪喘璁㈠崟鍙�', title: '閲囪喘璁㈠崟鍙�', width: 115 }
-                    , { field: '閿�鍞鍗曚富鍐呯爜', title: '閿�鍞鍗曚富鍐呯爜', width: 200, hide: true }
-                    , { field: '閿�鍞鍗曞瓙鍐呯爜', title: '閿�鍞鍗曞瓙鍐呯爜', width: 200, hide: true }
-                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', width: 115 }
-                    , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺', width: 200 }
-                    , { field: 'HBillType', title: 'HBillType', width: 200, hide: true }
-                ]]
-            };
+                    , { field: 'hsubid', title: 'hsubid', width: 115, hide: true }
+                    , { field: 'hmaterid', title: 'hmaterid', width: 150, hide: true }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 150 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 150 }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 150 }
+                    , { field: '闄勫姞灞炴��', title: '闄勫姞灞炴��', width: 150 }
+                    , { field: '棰滆壊', title: '棰滆壊', width: 150 }
+                    , { field: 'hunitid', title: 'hunitid', width: 150, hide: true }
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 150 }
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 150 }
+                    , { field: '搴斿彂鏁伴噺', title: '搴斿彂鏁伴噺', width: 150 }
+                    , { field: '瀹炲彂鏁伴噺', title: '瀹炲彂鏁伴噺', width: 150 }
+                    , { field: '鍗曚环', title: '鍗曚环', width: 150 }
+                    , { field: '閲戦', title: '閲戦', width: 150 }
+                    , { field: 'hwhid', title: 'hwhid', width: 150, hide: true }
+                    , { field: '鍙戣揣浠撳簱浠g爜', title: '鍙戣揣浠撳簱浠g爜', width: 150 }
+                    , { field: '鍙戣揣浠撳簱', title: '鍙戣揣浠撳簱', width: 150 }
+                    , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', width: 150 }
+                    , { field: '鍏抽棴绫诲瀷', title: '鍏抽棴绫诲瀷', width: 150 }
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 150 }
+                    , { field: '婧愬崟涓诲唴鐮�', title: '婧愬崟涓诲唴鐮�', width: 150, hide: true }
+                    , { field: '婧愬崟瀛愬唴鐮�', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 150 }
+                    , { field: '婧愬崟绫诲瀷', title: '婧愬崟绫诲瀷', width: 150 }
+                    , { field: '閲囪喘璁㈠崟涓籌D', title: '閲囪喘璁㈠崟涓籌D', width: 150, hide: true }
+                    , { field: '閲囪喘璁㈠崟瀛怚D', title: '閲囪喘璁㈠崟瀛怚D', width: 150, hide: true }
+                    , { field: '閲囪喘璁㈠崟鍙�', title: '閲囪喘璁㈠崟鍙�', width: 150 }
+                    , { field: '閿�鍞鍗曚富ID', title: '閿�鍞鍗曚富ID', width: 150, hide: true }
+                    , { field: '閿�鍞鍗曞瓙ID', title: '閿�鍞鍗曞瓙ID', width: 150, hide: true }
+                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', width: 150 }
+                    , { field: '鍏宠仈鏁伴噺', title: '鍏宠仈鏁伴噺', width: 150 }
+                    , { field: 'HBillType', title: 'HBillType', width: 150, hide: true }
+                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 150 }
+                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 120, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 100 }
+                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 120, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '淇敼浜�', title: '淇敼浜�', width: 100 }
+                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 120, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 100 }
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 120, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
+                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100 }
+                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 120, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
 
-            var index = layer.load(0);
-            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
-            $.ajax({
-                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
-                url: GetWEBURL() + '/Kf_EntrustOutBill/GetEntrustOutBill',
-                type: "GET",
-                data: { "sWhere": sWhere},
-                success: function (data1) {
-                    if (data1.count == 1) {
-                        option.data = data1.data;
-                        table.render(option);
-                        layer.close(index);
-                    } else {
-                        layer.close(index);
-                        layer.alert(data1.code + data1.Message, { icon: 5 });
+                ];
+                option = {
+                    elem: '#mainTable'
+                    , toolbar: '#toolbarDemo'
+                    , page: true
+                    , cellMinWidth: 120
+                    , totalRow: true
+                    , limit: 10
+                    , height: 'full-50'
+                    , cols: [columns]
+                    , limits: [50, 500, 1000, 5000]
+                    , done: function (res, curr, count) {
+
                     }
-                }, error: function () {
-                    layer.close(index);
-                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                };
+            }
+            //鍔犺浇缃戞牸
+            function get_Display(sWhere) {
+                var wait = layer.load();//閬僵
+                var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                if (HBeginDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
                 }
-            });
-
-            //閲嶇疆鎸夐挳
-            //form.on('submit(btnReSearch)', function (data) {
-            //    $("#HBillType").val("");//鍗曟嵁绫诲瀷
-            //    $("#HBillNo").val("");//鍗曟嵁鍙�
-            //    $("#HSourceBillNo").val("");//婧愬崟鍙�
-            //    $("#HCreateBy").val("");//鍒跺崟浜�
-            //    $("#BenginHCreateDate").val("");//寮�濮嬪埗鍗曟椂闂�
-            //    $("#EndHCreateDate").val("");//缁撴潫鍒跺崟鏃堕棿
-            //    $("#btnSearch").click();
-            //});
-
-            //鏌ヨ鎸夐挳
-            form.on('submit(btnSearch)', function (data) {//閫夋嫨浠撲綅
-                //var HBillType = $("#HBillType").val();//鍗曟嵁绫诲瀷
-                //var HBillNo = $("#HBillNo").val();//鍗曟嵁鍙�
-                //var HCreateBy = $("#HCreateBy").val();//鍒跺崟浜�
-                //var BenginHCreateDate = $("#BenginHCreateDate").val();//寮�濮嬪埗鍗曟椂闂�
-                //var EndHCreateDate = $("#EndHCreateDate").val();//缁撴潫鍒跺崟鏃堕棿
-                //if (HBillNo) {
-                //    sWhere += " and HBillNo like '%" + HBillNo + "%'";
-                //}
-                //if (HCreateBy) {
-                //    sWhere += " and HCreateBy like '%" + HCreateBy + "%'";
-                //}
-                //if (BenginHCreateDate) {
-                //    sWhere += " and CONVERT(varchar(100),HCreateDate, 23) >= '" + BenginHCreateDate + "'";
-                //}
-                //if (EndHCreateDate) {
-                //    sWhere += " and CONVERT(varchar(100),HCreateDate, 23) <= '" + EndHCreateDate + "'";
-                //}
-                var index = layer.load(0);
+                if (HEndDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                }
                 $.ajax({
-                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
-                    url: GetWEBURL1() + '/Kf_EntrustOutBill/GetEntrustOutBill',
+                    url: GetWEBURL() + '/Kf_EntrustOutBackBill/GetEntrustOutBackBillList',
                     type: "GET",
-                    data: { "sWhere": sWhere},
+                    data: { "sWhere": sWhere },
                     success: function (data1) {
                         if (data1.count == 1) {
+                            DataList = data1.data;
                             option.data = data1.data;
                             table.render(option);
-                            layer.close(index);
-                            layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
+                            layer.close(wait);
                         } else {
-                            layer.close(index);
-                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                            layer.close(wait);
+                            layer.alert(data1.Message, { icon: 5 });
                         }
                     }, error: function () {
-                        layer.close(index);
-                        layer.alert("鎺ュ彛澶辨晥!", { icon: 5 });
+                        layer.close(wait);
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
                     }
                 });
+            }
+            //鏂板
+            function set_AddNew() {
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '鏂板鐢熶骇閫�鏂欏崟',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['100%', '100%'],
+                    maxmin: true,
+                    content: '../棰嗘枡鍑哄簱/Kf_MateOutBackBillLEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1',
+                    end: function () {
+                        //鍒锋柊椤甸潰,
+                        get_FastQuery(table, option);
+                    },
+                    success: function (layero, index) {
+
+                    }
+                });
+            }
+            //缂栬緫鍗曟嵁
+            function set_ShowBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var linterid = data[0].hmainid.toString();
+                    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '缂栬緫鐢熶骇閫�鏂欏崟'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../棰嗘枡鍑哄簱/Kf_MateOutBackBillLEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
+                        , resize: false,
+                        end: function () {
+                            get_FastQuery(table, option);
+                        }
+                        , cancel: function () {
+                            //$(".layui-btn").removeClass("layui-btn-disabled");
+                        }
+                    })
+                } else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                }
+            }
+            //鍒犻櫎
+            function set_DeleteBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫鍒犻櫎鏂规硶
+                    layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                        var wait = layer.load();
+                        $.ajax({
+                            type: "GET",
+                            url: GetWEBURL() + "/Kf_MateOutBackBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                            data: { "HInterID": InterID, "user": sessionStorage["HUserName"] },
+                            success: function (result) {
+                                if (result.count == 1) {
+                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                        // 寰楀埌frame绱㈠紩
+                                        var index = layer.getFrameIndex(window.name);
+                                        //鍏抽棴褰撳墠frame
+                                        layer.close(index);
+                                        //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                        window.location.reload();
+                                    });
+
+                                } else {
+                                    layer.alert(result.code + result.Message, { icon: 5 });
+                                }
+                                layer.close(wait);
+                            }, error: function () {
+                                layer.close(wait);
+                                layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                            }
+                        });
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+                }
+            }
+            //棰勮
+            function get_ViewReport() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    layer.open({
+                        type: 2
+                        , area: ['50%', '50%']
+                        , title: '鎵撳嵃妯$増閫夋嫨'
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes']
+                        , resize: false
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+                }
+            }
+            //鎵撳嵃
+            function get_PrintReport() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    layer.open({
+                        type: 2
+                        , area: ['50%', '50%']
+                        , title: '鎵撳嵃妯$増閫夋嫨'
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes']
+                        , resize: false
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+                }
+            }
+            //瀹℃牳
+            function set_CheckBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫瀹℃牳鏂规硶
+                    var wait = layer.load();
+                    $.ajax({
+                        type: "GET",
+                        url: GetWEBURL() + "/Sc_MouldProdInBill/set_CheckBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
+                        success: function (result) {
+                            if (result.count == 1) {
+                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                    // 寰楀埌frame绱㈠紩
+                                    var index = layer.getFrameIndex(window.name);
+                                    //鍏抽棴褰撳墠frame
+                                    layer.close(index);
+                                    //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                    get_FastQuery(table, option);
+                                });
+                            } else {
+                                layer.alert(result.Message, { icon: 5 });
+                            }
+                            layer.close(wait);
+                        }, error: function () {
+                            layer.close(wait);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
+                    });
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹鏍革紒');
+                }
+            }
+            //鍙嶅鏍�
+            function set_AbandonCheck() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫瀹℃牳鏂规硶
+                    var wait = layer.load();
+                    $.ajax({
+                        type: "GET",
+                        url: GetWEBURL() + "/Sc_MouldProdInBill/set_AbandonCheck", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
+                        success: function (result) {
+                            if (result.count == 1) {
+                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                    // 寰楀埌frame绱㈠紩
+                                    var index = layer.getFrameIndex(window.name);
+                                    //鍏抽棴褰撳墠frame
+                                    layer.close(index);
+                                    //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                    get_FastQuery(table, option);
+                                });
+
+                            } else {
+                                layer.alert(result.code + result.Message, { icon: 5 });
+                            }
+                            layer.close(wait);
+                        }, error: function () {
+                            layer.close(wait);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
+                    });
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹弽瀹℃牳锛�');
+                }
+
+            }
+            //鑾峰彇鍒楀
+            function getColumnsWidth() {
+                var result = [];
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                //鑾峰彇鍒楀
+                $.ajax({
+                    url: GetWEBURL() + '/Cg_POOrderBill/list',
+                    async: false,
+                    type: "Get",
+                    dataType: "json",
+                    data: { "colNum": colNum, "Name": Name },
+                    success: function (data1) {
+                        if (data1.code == 1) {
+                            result = data1.data;
+                        }
+                        else if (data1.code == -1) {
+
+                        }
+                        else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+
+                return result;
+            }
+            //淇濆瓨鍒楀
+            function set_SaveGridColWidth() {
+                var arr = [];
+                // 鍒楁暟
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                for (var i = 0; i <= colNum; i++) {
+                    var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text();
+                    var colWidth = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).width();
+                    if (colName != "" && colName != null) {
+                        arr.push(colWidth == -1 ? 200 : colWidth);
+                    }
+                }
+                arr.unshift(40); //棣栦綅杩藉姞
+                $.ajax({
+                    url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth',
+                    async: false,
+                    type: "POST",
+                    dataType: "json",
+                    data: { "myMap": JSON.stringify(arr), "Name": Name },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            layer.alert(data1.Message, { icon: 1 });
+                        } else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+                //璁剧疆璧嬪�煎垪瀹�
+                var colWidth = getColumnsWidth();
+                if (colWidth == "" || colWidth == []) {
+
+                }
+                else {
+                    $.each(columns, function (x, m) {
+                        m["width"] = colWidth[x];
+                    });
+                }
+                get_FastQuery(table, option);
+            }
+            //榛樿鍒楀
+            function set_DefaultGridColWidth() {
+                var arr = [];
+                // 鍒楁暟
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                for (var i = 0; i <= colNum; i++) {
+                    var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text();
+                    if (colName != "" && colName != null) {
+                        arr.push(200);   //榛樿瀹藉害200
+                    }
+                }
+                arr.unshift(40); //棣栦綅杩藉姞
+                $.ajax({
+                    url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth',
+                    async: false,
+                    type: "POST",
+                    dataType: "json",
+                    data: { "myMap": JSON.stringify(arr), "Name": Name },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            layer.alert(data1.Message, { icon: 1 });
+
+                        } else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+                //璁剧疆璧嬪�煎垪瀹�
+                var colWidth = getColumnsWidth();
+                if (colWidth == "" || colWidth == []) {
+
+                }
+                else {
+                    $.each(columns, function (x, m) {
+                        m["width"] = colWidth[x];
+                    });
+                }
+                get_FastQuery(table, option);
+            }
+            //蹇�熻繃婊�
+            function get_FastQuery(table, option) {
+                var HStatus = $("select[name='HStatus']").val();//鐘舵��
+                var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙�
+                var HDepartName = $("#HDepartName").val();
+                var HMaterNumber = $("#HMaterNumber").val();
+                var HMaterName = $("#HMaterName").val();
+                var HMaterModel = $("#HMaterModel").val();
+                var HSourceBillNo = $("#HSourceBillNo").val();
+                var HStockIn = $("#HStockIn").val();
+                var HStocOut = $("#HStocOut").val();
+                var HMakerMan = $("#HMakerMan").val();
+                //if (HStatus) {
+                //    switch (HStatus) {
+                //        case '-1':   //鍏ㄩ儴
+                //            sWhere += "";
+                //            break;
+                //        case '1':    //鏈垎閰�
+                //            sWhere += " and 涓氬姟鐘舵��='鏈垎閰�'";
+                //            break;
+                //        case '2':    //宸插鏍�
+                //            sWhere += " and 涓氬姟鐘舵��='宸插垎閰�'";
+                //            break;
+                //        case '3':    //宸插叧闂�
+                //            sWhere += " and 涓氬姟鐘舵��='宸插彂甯�'";
+                //        default:
+
+                //    }
+                //}
+                if (HBeginDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+                }
+                if (HEndDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                }
+                if (HBillNo) {
+                    sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
+                }
+                if (HDepartName) {
+                    sWhere += " and 閮ㄩ棬 like '%" + HDepartName + "%'";
+                }
+                if (HMaterNumber) {
+                    sWhere += " and 鐗╂枡浠g爜 like '%" + HMaterNumber + "%'";
+                }
+                if (HMaterName) {
+                    sWhere += " and 鐗╂枡鍚嶇О like '%" + HMaterName + "%'";
+                }
+                if (HMaterModel) {
+                    sWhere += " and 瑙勬牸鍨嬪彿 like '%" + HMaterModel + "%'";
+                }
+                if (HSourceBillNo) {
+                    sWhere += " and 婧愬崟鍗曞彿 like '%" + HSourceBillNo + "%'";
+                }
+                if (HStockIn) {
+                    //sWhere += " and 閮ㄩ棬 like '%" + HStockIn + "%'";
+                }
+                if (HStocOut) {
+                    //sWhere += " and 閮ㄩ棬 like '%" + HStocOut + "%'";
+                }
+                if (HMakerMan) {
+                    sWhere += " and 鍒跺崟浜� like '%" + HMakerMan + "%'";
+                }
+                var index = layer.load(0);
+                get_Display(sWhere);
                 //璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
-                sWhere = "";
-                //$("#HBillType").val("");//鍗曟嵁绫诲瀷
-                //$("#HBillNo").val("");//鍗曟嵁鍙�
-                //$("#HSourceBillNo").val("");//婧愬崟鍙�
-                //$("#HCreateBy").val("");//鍒跺崟浜�
-                //$("#BenginHCreateDate").val("");//寮�濮嬪埗鍗曟椂闂�
-                //$("#EndHCreateDate").val("");//缁撴潫鍒跺崟鏃堕棿
-            });
-
-            //鐩戝惉琛屽弻鍑讳簨浠�
-            table.on('rowDouble(mainTable)', function (obj) {
-                layer.alert("鍙屽嚮浜嬩欢", { icon: 1 });
-            });
-
-
-            //laydate.render({
-            //    elem: '#HDate'
-            //    , type: 'datetime'
-            //    , trigger: 'click'
-            //    , format:'yyyy-MM-dd HH:mm'
-            //});
-
-
-            //浠ヤ笂鏄痩ayui妯″潡
+                sWhere = " where 1 = 1 ";
+            }
+            //閲嶇疆杩囨护鏉′欢
+            function set_ClearQuery() {
+                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
+                $("#HBillNo").val("");
+                $("#HDepartName").val("");
+                $("#HMaterNumber").val("");
+                $("#HMaterName").val("");
+                $("#HMaterModel").val("");
+                $("#HSourceBillNo").val("");
+                $("#HStockIn").val("");
+                $("#HStocOut").val("");
+                $("#HMakerMan").val("");
+                sWhere = " where 1 = 1 ";
+                get_Display(sWhere);
+            }
+            //鍒锋柊
+            function set_Refresh() {
+                $("#btnSearch").click();
+            }
         });
-
-
-
-
     </script>
-
 </body>
 </html>
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html"
index afb09a1..fbd23d3 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBackBillList.html"
@@ -145,7 +145,7 @@
                 , laydate = layui.laydate
                 , util = layui.util
             //鏌ヨ鏉′欢
-            var sWhere = "";
+            var sWhere = " where 1 = 1 ";
             var option = [];
             var Name = "MouldProdInHouseCellWidth";
 
@@ -675,7 +675,7 @@
                 var index = layer.load(0);
                 get_Display(sWhere);
                 //璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
-                sWhere = "";
+                sWhere = " where 1 = 1 ";
             }
             //閲嶇疆杩囨护鏉′欢
             function set_ClearQuery() {
@@ -690,7 +690,7 @@
                 $("#HStockIn").val("");
                 $("#HStocOut").val("");
                 $("#HMakerMan").val("");
-                sWhere = "";
+                sWhere = " where 1 = 1 ";
                 get_Display(sWhere);
             }
             //鍒锋柊
diff --git "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html" "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html"
index 3aeae19..fb18540 100644
--- "a/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html"
+++ "b/WebTM/views/\351\242\206\346\226\231\345\217\221\350\264\247/\351\242\206\346\226\231\345\207\272\345\272\223/Kf_MateOutBillList.html"
@@ -145,7 +145,7 @@
                 , laydate = layui.laydate
                 , util = layui.util
             //鏌ヨ鏉′欢
-            var sWhere = "";
+            var sWhere = " where 1 = 1 ";
             var option = [];
             var Name = "MouldProdInHouseCellWidth";
 
@@ -675,7 +675,7 @@
                 var index = layer.load(0);
                 get_Display(sWhere);
                 //璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
-                sWhere = "";
+                sWhere = " where 1 = 1 ";
             }
             //閲嶇疆杩囨护鏉′欢
             function set_ClearQuery() {
@@ -690,7 +690,7 @@
                 $("#HStockIn").val("");
                 $("#HStocOut").val("");
                 $("#HMakerMan").val("");
-                sWhere = "";
+                sWhere = " where 1 = 1 ";
                 get_Display(sWhere);
             }
             //鍒锋柊
diff --git "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBillList.html" "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBillList.html"
index dac11d5..487cf14 100644
--- "a/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBillList.html"
+++ "b/WebTM/views/\351\252\214\346\224\266\345\205\245\345\272\223/\345\244\226\350\264\255\345\205\245\345\272\223/Kf_POStockInBackBillList.html"
@@ -1,262 +1,718 @@
 锘�<!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-    <title>澶栬喘鍏ュ簱鍗�(绾㈠瓧)缂撳瓨鍒楄〃</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <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">
     <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
-</head>
-<body>
-    <div class="layui-fluid">
-        <div class="layui-card" style="padding: 1px">
-            <div class="layui-card-body" style="padding: 1px;">
-                <form class="layui-form" action="" lay-filter="component-form-group">
-                    <!--<div class="layui-form-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-xs7">
-                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off"  class="layui-input">
-                            </div>
-                         </div>
-                    </div>
-                    <div class="layui-form-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-xs7">
-                                <input type="text" name="HQty" id="HQty" lay-verify="HQty" autocomplete="off" class="layui-input">
-                            </div>
-                            </div>
-                    </div>-->
-                    <div class="layui-tab" lay-filter="tab-POStockInBillList">
-                        <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  layui-show">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs12">
-                                        <table class="layui-hide" id="dj-table" lay-filter="dj-table"></table>
-                                    </div>
-                                </div>
-                            </div>
-                            <div class="layui-tab-item">
-                                <div class="layui-row">
-                                    <div class="layui-col-xs12">
-                                        <table class="layui-hide" id="yd-table" lay-filter="yd-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>
-                </form>
-            </div>
-        </div>
-    </div>
     <script src="../../../layuiadmin/layui/layui.js"></script>
     <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>
+    <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+    <style type="text/css">
+        input.layui-input.layui-unselect {
+            padding-right: 0;
+        }
+    </style>
+</head>
+<body>
+    <div class="layui-fluid">
+        <div class="layui-col-md12">
+            <div class="layui-card" style="padding: 1px">
+                <div class="layui-card-body" style="padding: 1px;">
+                    <form class="layui-form" action="" lay-filter="component-form-group">
+                        <div class="layui-collapse">
+                            <div class="layui-colla-item">
+                                <div class="layui-colla-title layui-inline">
+                                    <div class="layui-inline">
+                                        <span>鏇村</span>
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">鍗曟嵁鍙�</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" id="HBillNo" style="width:190px;">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">寮�濮嬫棩鏈�</label>
+                                    <div class="layui-input-block">
+                                        <input type="date" class="layui-input" id="HBeginDate" style="width:190px;">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">缁撴潫鏃ユ湡</label>
+                                    <div class="layui-input-block">
+                                        <input type="date" class="layui-input" id="HEndDate" style="width:190px;">
+                                    </div>
+                                </div>
+
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                </button>
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
+                                <div class="layui-colla-content">
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">閮ㄩ棬鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HDepartName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡浠g爜</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMaterNumber" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鐗╂枡鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMaterName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">瑙勬牸鍨嬪彿</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMaterModel" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">婧愬崟鍗曞彿</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HSourceBillNo" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">渚涘簲鍟嗗悕绉�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HSupplyName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">閲囪喘璁㈠崟鍙�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HPurNo" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">浠撳簱鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HStockName" style="width:190px;">
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label">鍒跺崟浜�</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" id="HMakerMan" style="width:190px;">
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                        <table class="" id="mainTable" lay-filter="mainTable"></table>
+                        <script type="text/html" id="toolbarDemo">
+                            <div class="layui-btn-container">
+                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>棰勮</button>-->
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
+                                <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>棰勮</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>瀹℃牳</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>鍙嶅鏍�</button>-->
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>鍒锋柊</button>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>
+
+                            </div>
+                        </script>
+                    </form>
+                </div>
+            </div>
+        </div>
+    </div>
     <script>
-    layui.config({
-        base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
-    }).extend({
-        index: 'lib/index' //涓诲叆鍙fā鍧�
-    }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
-        var $ = layui.$
-        , admin = layui.admin
-        , layer = layui.layer
-        , table = layui.table
-        , form = layui.form
-        , element = layui.element;
-        //娓呯┖鐣岄潰  new
+        layui.config({
+            base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).extend({
+            index: 'lib/index', //涓诲叆鍙fā鍧�
+        }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () {
+            var $ = layui.$
+                , admin = layui.admin
+                , layer = layui.layer
+                , table = layui.table
+                , form = layui.form
+                , element = layui.element
+                , laypage = layui.laypage
+                , laydate = layui.laydate
+                , util = layui.util
+            //鏌ヨ鏉′欢
+            var sWhere = " where 1 = 1 ";
+            var option = [];
+            var Name = "MouldProdInHouseCellWidth";
 
-        //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
+            //#region 杩涘叆椤甸潰鏃㈠姞杞�
+            //鍒濆鍖栬〃鏍�
+            set_InitGrid();
+            //鍔犺浇鏁版嵁鍒扮綉鏍�
+            get_Display(sWhere);
+            //#endregion
+            //#region 鐐瑰嚮浜嬩欢鍖呮嫭on form浜嬩欢绛�
+            //澶村伐鍏锋爮浜嬩欢
+            table.on('toolbar(mainTable)', function (obj) {
+                switch (obj.event) {
+                    //鏂板鎸夐挳
+                    case 'btn-Add': set_AddNew();
+                        break;
+                    //缂栬緫鎸夐挳
+                    case 'btn-Edit': set_ShowBill();
+                        break;
+                    //鍒犻櫎鎸夐挳
+                    case 'btn-Delete': set_DeleteBill();
+                        break;
+                    //娴忚
+                    case 'btn-view': get_ViewReport();
+                        break;
+                    //鎵撳嵃
+                    case 'btn-print': get_PrintReport();
+                        break;
+                    //鍒锋柊
+                    case 'get_Refresh': set_Refresh();
+                        break;
 
-        //鍔犺浇婧愬崟绫诲瀷
-
-        //璇诲彇鍗曟嵁鍒楄〃
-        //
-
-        form.on('submit(Cancel)', function () {
-            parent.location.href = "../../../views/index.html"
-            //window.close();//鍏抽棴褰撳墠椤�
-        })
-
-        form.on('submit(cmdModify)', function () {
-            var checkStatus = table.checkStatus('dj-table')
-                     , data = checkStatus.data;
-            //ajaxLabelData = data;
-            //layer.alert(rows);
-            layer.open({
-                type: 2
-                , area: ['100%', '100%']
-                , title: '澶栬喘鍏ュ簱鍗曠孩瀛�'
-                , shade: 0.6 //閬僵閫忔槑搴�
-                , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                , content: ['../../楠屾敹鍏ュ簱/澶栬喘鍏ュ簱/Kf_POStockInBackBill.html?linterid=' + data[0].HInterID, 'yes']
-                , resize: false
-                , cancel: function () {
-                    $(".layui-btn").removeClass("layui-btn-disabled");
-                }
-            })
-        });
-
-        form.on('submit(cmdRefresh)', function () {// 
-            var sBillType = '1239'
-            table.render({
-                elem: '#dj-table'
-                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                    ,toolbar: '#toolbarDemo'
-                    , where: { HBillType: sBillType,sWhere:''}
-                    , cols: [[
-                          { type: 'radio' }
-                        , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
-                        , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
-                        , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
-                        , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
-                        , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                        , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                        , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-                    ]]
-                      , height: 500
-                      , done: function () {
-                          layer.closeAll("loading");
-                      }
+                    //閫�鍑�
+                    case 'get_Exit': Pub_Close(2);
+                        break;
+                    //鍒嗛厤
+                    case 'btn-fp': set_Distribut();
+                        break;
+                    //鍙戝竷
+                    case 'btn-fb': set_Release();
+                        break;
+                    //浼樺厛绾�
+                    case 'btn-yxj': set_Yxj();
+                        break;
+                    case 'btn-back': set_Back();
+                        break;
+                };
             });
-        });
+            //閲嶇疆鎸夐挳
+            form.on('submit(btnReSearch)', function (data) {
+                set_ClearQuery();
+            });
+            //鏌ヨ鎸夐挳
+            form.on('submit(btnSearch)', function (data) {
+                get_FastQuery(table, option);
+            });
+            //鍒濆鍖栬〃鏍�
+            function set_InitGrid() {
+                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
+                var columns = [
+                    { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
+                    , { field: 'hmainid', title: 'hmainid', sort: true, hide: true }
+                    , { field: '鏃ユ湡', title: '鏃ユ湡', templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
+                    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 }
+                    , { field: 'hsupid', title: 'hsupid', width: 160, hide: true }
+                    , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 200 }
+                    , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 200, hide: true }
+                    , { field: '楠屾敹鍛�', title: '楠屾敹鍛�', width: 200 }
+                    , { field: 'hkeeperid', title: 'hkeeperid', width: 200, hide: true }
+                    , { field: '淇濈鍛�', title: '淇濈鍛�', width: 200 }
+                    , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true }
+                    , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 160 }
+                    , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 160 }
+                    , { field: 'hsubid', title: 'hsubid', width: 160, hide: true }
+                    , { field: 'hmaterid', title: 'hmaterid', width: 200, hide: true }
+                    , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 200 }
+                    , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 200 }
+                    , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 200 }
+                    , { field: 'hunitid', title: 'hunitid', width: 200, hide: true }
+                    , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 200 }
+                    , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 200 }
+                    , { field: '鏁伴噺', title: '鏁伴噺', width: 115 }
+                    , { field: '鍗曚环', title: '鍗曚环', width: 115 }
+                    , { field: '閲戦', title: '閲戦', width: 200 }
+                    , { field: 'hwhid', title: 'hwhid', width: 200, hide: true }
+                    , { field: '鏀舵枡浠撳簱浠g爜', title: '鏀舵枡浠撳簱浠g爜', width: 115 }
+                    , { field: '鏀舵枡浠撳簱', title: '鏀舵枡浠撳簱', width: 200 }
+                    , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 200 }
+                    , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 200 }
+                    , { field: '閲囪喘璁㈠崟鍙�', title: '閲囪喘璁㈠崟鍙�', width: 200 }
+                    , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', width: 115 }
+                    , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 125 }
+                    , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
+                    , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 125 }
+                    , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 200, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ? '':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
+                    , { field: '淇敼浜�', title: '淇敼浜�', width: 125 }
+                    , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 200, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
+                    , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 125 }
+                    , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 200, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
+                    , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 125 }
+                    , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 200, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
 
+                ];
+                option = {
+                    elem: '#mainTable'
+                    , toolbar: '#toolbarDemo'
+                    , page: true
+                    , cellMinWidth: 120
+                    , totalRow: true
+                    , limit: 10
+                    , height: 'full-50'
+                    , cols: [columns]
+                    , limits: [50, 500, 1000, 5000]
+                    , done: function (res, curr, count) {
 
+                    }
+                };
+            }
+            //鍔犺浇缃戞牸
+            function get_Display(sWhere) {
+                var wait = layer.load();//閬僵
+                //var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                //var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                //if (HBeginDate) {
+                //    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+                //}
+                //if (HEndDate) {
+                //    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                //}
+                $.ajax({
+                    url: GetWEBURL() + '/Kf_POStockInBackBill/Get_POStockInBackBillList',
+                    type: "GET",
+                    data: { "sWhere": sWhere },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            DataList = data1.data;
+                            option.data = data1.data;
+                            table.render(option);
+                            layer.close(wait);
+                        } else {
+                            layer.close(wait);
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.close(wait);
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            }
+            //鏂板
+            function set_AddNew() {
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '鏂板鐢熶骇閫�鏂欏崟',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['100%', '100%'],
+                    maxmin: true,
+                    content: '../棰嗘枡鍑哄簱/Kf_POStockInBackBillEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1',
+                    end: function () {
+                        //鍒锋柊椤甸潰,
+                        get_FastQuery(table, option);
+                    },
+                    success: function (layero, index) {
 
-        form.on('submit(cmdDelete)', function () {//鍒犻櫎
-            var checkStatus = table.checkStatus('dj-table')
-            , data = checkStatus.data;
-            // console.log(data);
-           // var sInterID = $('#HInterID').val()
-            var sInterID = data[0].HInterID
-            //var sMaterID = data[0].HMaterID   
-            //var sBillType = $('#HBillType').val()
-            //var sAuxPropID = data[0].HAuxPropID
-            ////var sMTONo = data[0].HMTONo
-            //var sMTONo = 0
-            //var sSourceInterID = data[0].HSourceInterID
-            //var sSourceEntryID = data[0].HSourceEntryID
-            $.ajax(
-               {
-                   type: "Get",
-                   url: GetWEBURL() + "/Web/Delete_Json",
-                   async: true,
-                   data: { "sHInterID": sInterID },
-                   dataType: "json",
-                   success: function (data) {
-                       if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                           //layer.msg(data.Message, { icon: 1 });
-                           table.render({
-                               elem: '#dj-table'
-                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
-                               //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
-                               , url: GetWEBURL() + '/POStockInBillList/DisBillEntryList_Mate_Webs_Json'
-                               , cellMinWidth: 80
-                               , toolbar: '#toolbarDemo'
-                               , where: { HBillType: '1239', sWhere: '' }
-                               , cols: [[
-                                   { type: 'radio' }
-                                , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
-                                , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
-                                , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
-                                , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
-                                , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                                , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                                , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-                               ]]
-                         , height: 500
-                           })
-                       }
-                       else {
-                           layer.msg(data.Message, { icon: 2 });
-                       }
-                   },
-                   error: function (err) {
-                       layer.msg('閿欒' + err, {
-                           icon: 5,
-                           time: 20000
-                       }, function () {
-                           //do something
-                       });
-                   }
-               });
+                    }
+                });
+            }
+            //缂栬緫鍗曟嵁
+            function set_ShowBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var linterid = data[0].hmainid.toString();
+                    //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '缂栬緫鐢熶骇閫�鏂欏崟'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../棰嗘枡鍑哄簱/Kf_POStockInBackBillEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
+                        , resize: false,
+                        end: function () {
+                            get_FastQuery(table, option);
+                        }
+                        , cancel: function () {
+                            //$(".layui-btn").removeClass("layui-btn-disabled");
+                        }
+                    })
+                } else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+                }
+            }
+            //鍒犻櫎
+            function set_DeleteBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫鍒犻櫎鏂规硶
+                    layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
+                        var wait = layer.load();
+                        $.ajax({
+                            type: "GET",
+                            url: GetWEBURL() + "/Kf_POStockInBackBill/set_DeleteBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                            data: { "HInterID": InterID, "user": sessionStorage["HUserName"] },
+                            success: function (result) {
+                                if (result.count == 1) {
+                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                        // 寰楀埌frame绱㈠紩
+                                        var index = layer.getFrameIndex(window.name);
+                                        //鍏抽棴褰撳墠frame
+                                        layer.close(index);
+                                        //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                        window.location.reload();
+                                    });
+
+                                } else {
+                                    layer.alert(result.code + result.Message, { icon: 5 });
+                                }
+                                layer.close(wait);
+                            }, error: function () {
+                                layer.close(wait);
+                                layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                            }
+                        });
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
+                }
+            }
+            //棰勮
+            function get_ViewReport() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    layer.open({
+                        type: 2
+                        , area: ['50%', '50%']
+                        , title: '鎵撳嵃妯$増閫夋嫨'
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes']
+                        , resize: false
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+                }
+            }
+            //鎵撳嵃
+            function get_PrintReport() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    layer.open({
+                        type: 2
+                        , area: ['50%', '50%']
+                        , title: '鎵撳嵃妯$増閫夋嫨'
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdInBill', 'yes']
+                        , resize: false
+                    })
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒');
+                }
+            }
+            //瀹℃牳
+            function set_CheckBill() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫瀹℃牳鏂规硶
+                    var wait = layer.load();
+                    $.ajax({
+                        type: "GET",
+                        url: GetWEBURL() + "/Sc_MouldProdInBill/set_CheckBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
+                        success: function (result) {
+                            if (result.count == 1) {
+                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                    // 寰楀埌frame绱㈠紩
+                                    var index = layer.getFrameIndex(window.name);
+                                    //鍏抽棴褰撳墠frame
+                                    layer.close(index);
+                                    //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                    get_FastQuery(table, option);
+                                });
+                            } else {
+                                layer.alert(result.Message, { icon: 5 });
+                            }
+                            layer.close(wait);
+                        }, error: function () {
+                            layer.close(wait);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
+                    });
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹鏍革紒');
+                }
+            }
+            //鍙嶅鏍�
+            function set_AbandonCheck() {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;
+                if (checkStatus.data.length === 1) {
+                    var InterID = data[0].hmainid.toString();
+                    //閫昏緫瀹℃牳鏂规硶
+                    var wait = layer.load();
+                    $.ajax({
+                        type: "GET",
+                        url: GetWEBURL() + "/Sc_MouldProdInBill/set_AbandonCheck", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
+                        success: function (result) {
+                            if (result.count == 1) {
+                                layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
+                                    // 寰楀埌frame绱㈠紩
+                                    var index = layer.getFrameIndex(window.name);
+                                    //鍏抽棴褰撳墠frame
+                                    layer.close(index);
+                                    //淇敼涓哄姛鍚庡埛鏂扮晫闈�
+                                    get_FastQuery(table, option);
+                                });
+
+                            } else {
+                                layer.alert(result.code + result.Message, { icon: 5 });
+                            }
+                            layer.close(wait);
+                        }, error: function () {
+                            layer.close(wait);
+                            layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        }
+                    });
+                }
+                else {
+                    layer.msg('璇烽�夋嫨涓�琛屾暟鎹弽瀹℃牳锛�');
+                }
+
+            }
+            //鑾峰彇鍒楀
+            function getColumnsWidth() {
+                var result = [];
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                //鑾峰彇鍒楀
+                $.ajax({
+                    url: GetWEBURL() + '/Cg_POOrderBill/list',
+                    async: false,
+                    type: "Get",
+                    dataType: "json",
+                    data: { "colNum": colNum, "Name": Name },
+                    success: function (data1) {
+                        if (data1.code == 1) {
+                            result = data1.data;
+                        }
+                        else if (data1.code == -1) {
+
+                        }
+                        else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+
+                return result;
+            }
+            //淇濆瓨鍒楀
+            function set_SaveGridColWidth() {
+                var arr = [];
+                // 鍒楁暟
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                for (var i = 0; i <= colNum; i++) {
+                    var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text();
+                    var colWidth = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).width();
+                    if (colName != "" && colName != null) {
+                        arr.push(colWidth == -1 ? 200 : colWidth);
+                    }
+                }
+                arr.unshift(40); //棣栦綅杩藉姞
+                $.ajax({
+                    url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth',
+                    async: false,
+                    type: "POST",
+                    dataType: "json",
+                    data: { "myMap": JSON.stringify(arr), "Name": Name },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            layer.alert(data1.Message, { icon: 1 });
+                        } else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+                //璁剧疆璧嬪�煎垪瀹�
+                var colWidth = getColumnsWidth();
+                if (colWidth == "" || colWidth == []) {
+
+                }
+                else {
+                    $.each(columns, function (x, m) {
+                        m["width"] = colWidth[x];
+                    });
+                }
+                get_FastQuery(table, option);
+            }
+            //榛樿鍒楀
+            function set_DefaultGridColWidth() {
+                var arr = [];
+                // 鍒楁暟
+                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
+                for (var i = 0; i <= colNum; i++) {
+                    var colName = $(".layui-table-header").find("tr").eq(0).find("th").eq(i).text();
+                    if (colName != "" && colName != null) {
+                        arr.push(200);   //榛樿瀹藉害200
+                    }
+                }
+                arr.unshift(40); //棣栦綅杩藉姞
+                $.ajax({
+                    url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidth',
+                    async: false,
+                    type: "POST",
+                    dataType: "json",
+                    data: { "myMap": JSON.stringify(arr), "Name": Name },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            layer.alert(data1.Message, { icon: 1 });
+
+                        } else {
+                            layer.alert(data1.Message, { icon: 5 });
+                        }
+                    }, error: function (e) {
+                        layer.alert(e.Message, { icon: 5 });
+                    }
+                });
+                //璁剧疆璧嬪�煎垪瀹�
+                var colWidth = getColumnsWidth();
+                if (colWidth == "" || colWidth == []) {
+
+                }
+                else {
+                    $.each(columns, function (x, m) {
+                        m["width"] = colWidth[x];
+                    });
+                }
+                get_FastQuery(table, option);
+            }
+            //蹇�熻繃婊�
+            function get_FastQuery(table, option) {
+                var HStatus = $("select[name='HStatus']").val();//鐘舵��
+                var HBeginDate = $("#HBeginDate").val();//寮�濮嬫棩鏈�
+                var HEndDate = $("#HEndDate").val();//缁撴潫鏃ユ湡
+                var HBillNo = $("#HBillNo").val(); //鍗曟嵁鍙�
+                var HDepartName = $("#HDepartName").val();
+                var HMaterNumber = $("#HMaterNumber").val();
+                var HMaterName = $("#HMaterName").val();
+                var HMaterModel = $("#HMaterModel").val();
+                var HSourceBillNo = $("#HSourceBillNo").val();
+                var HMakerMan = $("#HMakerMan").val();
+                var HSupplyName = $("#HSupplyName").val();
+                var HPurNo = $("#HPurNo").val();
+                var HStockName = $("#HStockName").val();
+                //if (HStatus) {
+                //    switch (HStatus) {
+                //        case '-1':   //鍏ㄩ儴
+                //            sWhere += "";
+                //            break;
+                //        case '1':    //鏈垎閰�
+                //            sWhere += " and 涓氬姟鐘舵��='鏈垎閰�'";
+                //            break;
+                //        case '2':    //宸插鏍�
+                //            sWhere += " and 涓氬姟鐘舵��='宸插垎閰�'";
+                //            break;
+                //        case '3':    //宸插叧闂�
+                //            sWhere += " and 涓氬姟鐘舵��='宸插彂甯�'";
+                //        default:
+
+                //    }
+                //}
+                if (HBeginDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + HBeginDate + "'";
+                }
+                if (HEndDate) {
+                    sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + HEndDate + "'";
+                }
+                if (HBillNo) {
+                    sWhere += " and 鍗曟嵁鍙� like '%" + HBillNo + "%'";
+                }
+                if (HDepartName) {
+                    sWhere += " and 閮ㄩ棬 like '%" + HDepartName + "%'";
+                }
+                if (HMaterNumber) {
+                    sWhere += " and 鐗╂枡浠g爜 like '%" + HMaterNumber + "%'";
+                }
+                if (HMaterName) {
+                    sWhere += " and 鐗╂枡鍚嶇О like '%" + HMaterName + "%'";
+                }
+                if (HMaterModel) {
+                    sWhere += " and 瑙勬牸鍨嬪彿 like '%" + HMaterModel + "%'";
+                }
+                if (HSourceBillNo) {
+                    sWhere += " and 婧愬崟鍗曞彿 like '%" + HSourceBillNo + "%'";
+                }
+                if (HStockIn) {
+                    //sWhere += " and 閮ㄩ棬 like '%" + HStockIn + "%'";
+                }
+                if (HStocOut) {
+                    //sWhere += " and 閮ㄩ棬 like '%" + HStocOut + "%'";
+                }
+                if (HMakerMan) {
+                    sWhere += " and 鍒跺崟浜� like '%" + HMakerMan + "%'";
+                }
+                if (HSupplyName) {
+                    sWhere += " and 渚涘簲鍟� like '%" + HSupplyName + "%'";
+                }
+                if (HPurNo) {
+                    sWhere += " and 閲囪喘璁㈠崟鍙� like '%" + HPurNo + "%'";
+                }
+                if (HStockName) {
+                    sWhere += " and 鏀舵枡浠撳簱 like '%" + HStockName + "%'";
+                }
+                var index = layer.load(0);
+                get_Display(sWhere);
+                //璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+                sWhere = " where 1 = 1 ";
+            }
+            //閲嶇疆杩囨护鏉′欢
+            function set_ClearQuery() {
+                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
+                $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
+                $("#HBillNo").val("");
+                $("#HDepartName").val("");
+                $("#HMaterNumber").val("");
+                $("#HMaterName").val("");
+                $("#HMaterModel").val("");
+                $("#HSourceBillNo").val("");
+                $("#HStockIn").val("");
+                $("#HStocOut").val("");
+                $("#HMakerMan").val("");
+                sWhere = " where 1 =1 ";
+                get_Display(sWhere);
+            }
+            //鍒锋柊
+            function set_Refresh() {
+                $("#btnSearch").click();
+            }
         });
-        
-       
-        
-        var sBillType = '1239'
-                table.render({
-                    elem: '#dj-table'
-                    ,url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
-                    ,toolbar: '#toolbarDemo'
-                    , where: { HBillType: sBillType,sWhere:''}
-                    , cols: [[
-                          { type: 'radio' }
-                        , { field: 'HInterID', title: '鍗曟嵁鍐呯爜', width: 80 }
-                        , { field: 'HBillNo', title: '鍗曟嵁鍙�', width: 80 }
-                        , { field: 'HMaker', title: '鍒跺崟浜�', width: 100 }
-                        , { field: 'HMakeDate', title: '鍒跺崟鏃ユ湡', width: 100 }
-                        , { field: 'HQty', title: '鏁伴噺', width: 100 }
-                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
-                        , { field: 'HRedBlueFlag', title: '绾㈣摑瀛�', width: 100 }
-                        , { field: 'HSourceBillType', title: '婧愬崟绫诲瀷', width: 100 }
-                        ]]
-                      , height: 500
-                      , done: function () {
-                          layer.closeAll("loading");
-                      }
-    })
-        //鍒锋柊鏄庣粏椤电
-        table.render({
-            elem: '#mx-table'
-            // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
-            //, toolbar: '#toolbarDemo'
-            // , where: { sMsg: linterid, sMsg2: lentryid }
-         , cols: [[
-           , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
-         ]]
-         , page: true
-         , height: 500
-         , done: function () {
-         }
-        });
-    });
-    //娓呯┖琛ㄥご
     </script>
-
 </body>
 </html>

--
Gitblit v1.9.1