From aa8628d72c18418da01f4b7eacd7202f732cf4c3 Mon Sep 17 00:00:00 2001
From: WYB <908761037@qq.com>
Date: 星期日, 25 四月 2021 17:43:40 +0800
Subject: [PATCH] 工序汇报单打印路径修复

---
 WebTM/views/计划管理/工艺路线/Gy_RoutingBill_loser.html    |  925 +++++++++++++
 WebTM/Properties/PublishProfiles/LAYUI.pubxml.user |   15 
 WebTM/views/基础资料/公用基础资料/Gy_Department_Edit.html    |  108 +
 WebTM/views/计划管理/工艺路线/Gy_RoutingBill.html          | 2727 ++++++++++++++++++++++++++++++++++++++
 WebTM/views/基础资料/公用基础资料/Gy_Unit.html               |  180 ++
 WebTM/views/index.html                             |    1 
 WebTM/views/基础资料/公用基础资料/Gy_StockPlace.html         |  180 ++
 WebTM/views/基础资料/公用基础资料/Gy_Department.html         |   43 
 WebTM/WebTM.csproj                                 |    9 
 9 files changed, 4,148 insertions(+), 40 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index 91c7f0c..bf65dc2 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -1145,6 +1145,9 @@
     <File Include="views/鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html">
       <publishTime>03/29/2021 20:16:17</publishTime>
     </File>
+    <File Include="views/鍩虹璧勬枡/閿�鍞熀纭�璧勬枡/Gy_Customer.html">
+      <publishTime>03/29/2021 10:48:23</publishTime>
+    </File>
     <File Include="views/妯℃不鍏风鐞�/Sc_CheckToolsRepairWorkBillList.html">
       <publishTime>03/24/2021 14:28:14</publishTime>
     </File>
@@ -1203,7 +1206,7 @@
       <publishTime>04/08/2021 10:57:44</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_Add_NoPassProdCheckBill.html">
-      <publishTime>04/20/2021 21:10:48</publishTime>
+      <publishTime>04/20/2021 21:46:06</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_NoPassProdCheckBill.html">
       <publishTime>04/13/2021 10:12:44</publishTime>
@@ -1230,7 +1233,7 @@
       <publishTime>04/23/2021 16:41:10</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.html">
-      <publishTime>04/21/2021 16:40:38</publishTime>
+      <publishTime>04/22/2021 17:13:32</publishTime>
     </File>
     <File Include="views/鐢熶骇绠$悊/鐢熶骇浠诲姟鍗�/Sc_ICMOBillList.html">
       <publishTime>03/23/2021 16:57:43</publishTime>
@@ -1244,6 +1247,9 @@
     <File Include="views/缁勮鍗�/Sc_AssemblyBill_Fast.html">
       <publishTime>03/29/2021 20:16:17</publishTime>
     </File>
+    <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html">
+      <publishTime>04/25/2021 16:05:20</publishTime>
+    </File>
     <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">
       <publishTime>03/29/2021 20:16:17</publishTime>
     </File>
@@ -1251,7 +1257,7 @@
       <publishTime>04/21/2021 18:59:55</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭娲惧伐鍗�/Sc_ProcessSendWorkList.html">
-      <publishTime>04/09/2021 21:12:33</publishTime>
+      <publishTime>04/21/2021 14:26:35</publishTime>
     </File>
     <File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭璁″垝鍗�/Sc_ProcessPlanList.html">
       <publishTime>04/09/2021 20:12:18</publishTime>
@@ -1265,6 +1271,9 @@
     <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">
       <publishTime>03/29/2021 20:16:17</publishTime>
     </File>
+    <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill_loser.html">
+      <publishTime>04/25/2021 13:29:33</publishTime>
+    </File>
     <File Include="views/杞﹂棿绠$悊/涓嶈壇鍝佽瘎瀹″崟/Cj_NoPassProc.html">
       <publishTime>03/26/2021 09:58:10</publishTime>
     </File>
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index aa7e849..da27d5d 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -433,8 +433,10 @@
     <Content Include="views\浠撳瓨绠$悊\浠撳簱璋冩嫧\Kf_MoveStockBill_Fast.html" />
     <Content Include="views\浠撳瓨绠$悊\浠撳簱璋冩嫧\Kf_MoveStockBill_FastList.html" />
     <Content Include="views\鍏叡椤甸潰\Kf_BarCodeEditDlg.html" />
-    <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Depart.html" />
+    <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Department_Edit.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Material.html" />
+    <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Unit.html" />
+    <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_StockPlace.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Warehouse.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Employee.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Department.html" />
@@ -445,10 +447,15 @@
     <Content Include="views\鍩虹璧勬枡\鐢熶骇鍩虹璧勬枡\H_ProcessDetail.html" />
     <Content Include="views\鍩虹璧勬枡\鐢熶骇鍩虹璧勬枡\H_ProcessList.html" />
     <Content Include="views\鍩虹璧勬枡\閲囪喘鍩虹璧勬枡\Gy_Supplier.html" />
+    <Content Include="views\鍩虹璧勬枡\閿�鍞熀纭�璧勬枡\Gy_Customer.html" />
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_CheckToolsFileMainList.html" />
     <Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_Mould.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\宸ュ簭姹囨姤鍗昞HBarPlanPrint.html" />
     <Content Include="views\鐢熶骇宸ュ簭绠$悊\宸ュ簭姹囨姤鍗昞xmlLBM_ProcessReport.aspx" />
+    <Content Include="views\璁″垝绠$悊\宸ヨ壓璺嚎\Gy_RoutingBill_loser.html" />
+    <Content Include="views\璁″垝绠$悊\宸ヨ壓璺嚎\Gy_RoutingBill.html" />
+    <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBill.html" />
+    <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBillList.html" />
     <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBill.html" />
     <Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBillList.html" />
     <Content Include="views\杞﹂棿绠$悊\宸ュ簭杩涚珯鎺ユ敹鍗昞Cj_StationInBill.html" />
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index 66419b3..49ab87f 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -230,6 +230,7 @@
                       <dd class="layui-nav-itemed">
                           <a>宸ヨ壓璺嚎</a>
                           <dl class="layui-nav-child">
+                              <dd><a lay-href="璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html">宸ヨ壓璺嚎</a></dd>
                               <dd><a lay-href="璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">宸ヨ壓璺嚎鍒楄〃</a></dd>
                           </dl>
                       </dd>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department.html"
index 7ec6889..deb1c56 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department.html"
@@ -28,6 +28,14 @@
                                         <span></span>
                                     </div>
                                 </div>
+                                <div>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btndelete" id="btndelete" style="padding:0 5px">鍒犻櫎</button>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnAdd" id="btnAdd" style="padding:0 5px">鏂板</button>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnModify" id="btnModify" style="padding:0 5px">淇敼</button>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnJY" id="btnJY" style="padding:0 5px">绂佺敤</button>
+                                    <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnFJY" id="btnFJY" style="padding:0 5px">鍙嶇鐢�</button>
+                                </div>
                                 <div class="layui-inline">
                                     <label class="layui-form-label">閮ㄩ棬浠g爜</label>
                                     <div class="layui-input-block">
@@ -43,25 +51,37 @@
                                 <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>
-                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btndelete" id="btndelete" style="padding:0 5px">鍒犻櫎</button>
-                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnAdd" id="btnAdd" style="padding:0 5px">鏂板</button>
-                                <button type="button" lay-submit="" class="buttom_box_little" lay-filter="btnModify">淇敼</button>
-                                <button type="button" lay-submit="" class="buttom_box_little" lay-filter="btnJY">绂佺敤</button>
-                                <button type="button" lay-submit="" class="buttom_box_little" lay-filter="btnFJY">鍙嶇鐢�</button>
-
+                                <div class="layui-card">
+                                    <div class="layui-card-header"></div>
+                                    <div class="layui-card-body">
+                                        <div class="layui-tab">
+                                            <ul class="layui-tab-title" lay-filter="tab-all">
+                                                <li data-status="">閮ㄩ棬淇℃伅</li>
+                                                <li data-status="2">鍏朵粬</li>
+                                            </ul>
+                                            <div class="layui-tab-content">
+                                                <div class="layui-tab-item layui-show">
+                                                    <table class="layui-hide" id="hk-table-jh" lay-filter="hk-table-jh"></table>
+                                                </div>
+                                                <div class="layui-tab-item">
+                                                    <table class="layui-hide" id="fj-table-qd" lay-filter="fj-table-qd"></table>
+                                                </div>
+                                            </div>
+                                        </div>
+                                    </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-reload"><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>
+                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>閫�鍑�</button>-->
 
                             </div>
                         </script>
@@ -148,6 +168,9 @@
                 //    layer.msg("璇ュ崟鎹凡瀹℃牳鏃犳硶鍒犻櫎锛岃鍏堝弽瀹℃牳锛�");
                 //    return;
                 //}
+                
+
+
                 var data = obj.data //鑾峰緱褰撳墠琛屾暟鎹�
                     , layEvent = obj.event; //鑾峰緱 lay-event 瀵瑰簲鐨勫��
                 layer.confirm('鎮ㄧ‘瀹氳鍒犻櫎鍚楋紵', {
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Depart.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department_Edit.html"
similarity index 69%
rename from "WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Depart.html"
rename to "WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department_Edit.html"
index 7ace67c..c89bf16 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Depart.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Department_Edit.html"
@@ -2,7 +2,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>閮ㄩ棬鍩虹璧勬枡</title>
+    <title>閮ㄩ棬</title>
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -20,18 +20,30 @@
         <div class="layui-card" style="padding: 15px;background-color: #efefef;">
             <div class="layui-card-body" style="padding: 1px;">
                 <form class="layui-form" action="" lay-filter="formData" style="background-color:white;">
-                    <div class="maintitle">閮ㄩ棬鍩虹璧勬枡</div>
+                    <div class="maintitle">閮ㄩ棬</div>
                     <div class="title">鍩烘湰淇℃伅</div>
                     <div class="layui-form-item" style="padding-top: 10px;">
                         <div class="layui-row">
                             <div class="layui-inline">
-                                <label class="layui-form-label" style="width: 85px;">閮ㄩ棬浠g爜</label>
+                                <label class="layui-form-label" style="width: 85px;">鍒涘缓缁勭粐</label>
+                                <div class="layui-input-inline" style="margin-left: 120px;">
+                                    <input type="text" name="HCreateOrgID" id="HCreateOrgID" lay-verify="HCreateOrgID" autocomplete="off" placeholder="" class="layui-input">
+                                </div>
+                            </div>
+                            <div class="layui-inline">
+                                <label class="layui-form-label" style="width: 85px;">浣跨敤缁勭粐</label>
+                                <div class="layui-input-inline" style="margin-left: 120px;">
+                                    <input type="text" name="HUseOrgID" id="HUseOrgID" lay-verify="HUseOrgID" autocomplete="off" placeholder="" class="layui-input">
+                                </div>
+                            </div>
+                            <div class="layui-inline">
+                                <label class="layui-form-label" style="width: 85px;">缂栫爜</label>
                                 <div class="layui-input-inline" style="margin-left: 120px;">
                                     <input type="text" name="HNumber" id="HNumber" lay-verify="HNumber" autocomplete="off" placeholder="" class="layui-input">
                                 </div>
                             </div>
                             <div class="layui-inline">
-                                <label class="layui-form-label" style="width: 85px;">閮ㄩ棬鍚嶇О</label>
+                                <label class="layui-form-label" style="width: 85px;">鍚嶇О</label>
                                 <div class="layui-input-inline" style="margin-left: 120px;">
                                     <input type="text" name="HName" id="HName" lay-verify="HName" autocomplete="off" placeholder="" class="layui-input">
                                 </div>
@@ -39,17 +51,17 @@
                         </div>
                         <div class="layui-row">
                             <!--<div class="layui-inline">
-                                <label class="layui-form-label" style="width: 85px;">绂佺敤鏍囪</label>
-                                <div class="layui-input-inline" style="margin-left: 120px;">
-                                    <input type="text" name="HStopFlag" id="HStopFlag" lay-verify="HStopFlag" autocomplete="off" placeholder="" class="layui-input">
-                                </div>
-                            </div>
-                            <div class="layui-inline">
-                                <label class="layui-form-label" style="width: 85px;">浣跨敤鏍囪</label>
-                                <div class="layui-input-inline" style="margin-left: 120px;">
-                                    <input type="text" name="HUseFlag" id="HUseFlag" lay-verify="HUseFlag" autocomplete="off" placeholder="" class="layui-input">
-                                </div>
-                            </div>-->
+            <label class="layui-form-label" style="width: 85px;">绂佺敤鏍囪</label>
+            <div class="layui-input-inline" style="margin-left: 120px;">
+                <input type="text" name="HStopFlag" id="HStopFlag" lay-verify="HStopFlag" autocomplete="off" placeholder="" class="layui-input">
+            </div>
+        </div>
+        <div class="layui-inline">
+            <label class="layui-form-label" style="width: 85px;">浣跨敤鏍囪</label>
+            <div class="layui-input-inline" style="margin-left: 120px;">
+                <input type="text" name="HUseFlag" id="HUseFlag" lay-verify="HUseFlag" autocomplete="off" placeholder="" class="layui-input">
+            </div>
+        </div>-->
                             <div class="layui-inline">
                                 <label class="layui-form-label" style="width: 85px;">澶囨敞</label>
                                 <div class="layui-input-inline" style="margin-left: 120px;">
@@ -57,16 +69,45 @@
                                 </div>
                             </div>
                         </div>
-                    </div>
-                    <div class="layer-footer" style="text-align: center;">
-                        <button type="button" lay-submit="" class="buttom_box_little" lay-filter="Saver">鎻愪氦</button>
-                        <button type="button" class="buttom_box_little" lay-filter="Cancel" id="Cancel">閫�鍑�</button>
-                    </div>
-                    <!--闅愯棌瀛楁-->
-                    <input type="hidden" name="lngBillKey" id="lngBillKey">
-                    <input type="hidden" name="lngBillSubKey" id="lngBillSubKey">
-                    <input type="hidden" name="HMaker" id="HMaker"><!--鍒跺崟浜�-->
-                </form>
+
+                            <ul class="layui-tab-title" lay-filter="tab-all">
+                                <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
+                                <li lay-id="2" style="padding:1px;">鍏朵粬</li>
+                                <!--<li lay-id="5">鏃ュ織</li>-->
+                            </ul>
+                            <div class="layui-inline">
+                                <label class="layui-form-label" style="width: 85px;">鏉″舰鐮�</label>
+                                <div class="layui-input-inline" style="margin-left: 120px;">
+                                    <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" placeholder="" class="layui-input">
+                                </div>
+                            </div>
+                            <div class="layui-inline">
+                                <label class="layui-form-label" style="width: 85px;">鍔╄鐮�</label>
+                                <div class="layui-input-inline" style="margin-left: 120px;">
+                                    <input type="text" name="HHelpCode" id="HHelpCode" lay-verify="HHelpCode" autocomplete="off" placeholder="" class="layui-input">
+                                </div>
+                            </div>
+                            <div class="layui-inline">
+                                    <label class="layui-form-label" style="width:85px;">璐熻矗浜�</label>
+                                    <input type="text" name="HEmpName" id="HEmpName" lay-verify="HEmpName" autocomplete="off" class="layui-input" style="background-color:#efefef4d;" readonly>
+                                    <input type="hidden" name="HEmpID" id="HEmpID" lay-verify="HEmpID" value="0" autocomplete="off" class="layui-input">
+                                <div class="layui-col-xs3">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpID-BT" style="display:none">...</button>
+                                </div>
+                            </div>
+                            <div class="layer-footer" style="text-align: center;">
+
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="Saver" id="Saver" style="padding:0 5px">鎻愪氦</button>
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="Cancel" id="Cancel" style="padding:0 5px">閫�鍑�</button>
+                            </div>
+
+
+
+                            <!--闅愯棌瀛楁-->
+                            <input type="hidden" name="lngBillKey" id="lngBillKey">
+                            <input type="hidden" name="lngBillSubKey" id="lngBillSubKey">
+                            <input type="hidden" name="HMaker" id="HMaker"><!--鍒跺崟浜�-->
+</form>
             </div>
         </div>
     </div>
@@ -147,7 +188,22 @@
             }
 
 
-           
+            //閫夋嫨璐熻矗浜�
+            form.on('submit(HEmpID-BT)', function () {
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '璐熻矗浜哄垪琛�'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee.html', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
 
             //鑾峰彇鏈�澶у熀纭�璧勬枡ID
             $.ajax({
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace.html"
new file mode 100644
index 0000000..d637d74
--- /dev/null
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_StockPlace.html"
@@ -0,0 +1,180 @@
+锘�<!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 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>
+    
+</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">浠撲綅浠g爜</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HNumber" id="HNumber">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">浠撲綅鍚嶇О</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HName" id="HName">
+                                    </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>
+                        </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-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>
+                        </script>
+                    </form>
+                </div>
+            </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/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).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
+            var sWhere = "";
+
+            var option = {
+                elem: '#mainTable'
+                //, toolbar: '#toolbarDemo'
+                ,height: 'full-50' 
+                , page: true
+                ,cellMinWidth: 90
+                , cols: [[
+                    { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
+                    , { field: '浠撲綅浠g爜', title: '浠撲綅浠g爜' }
+                    , { field: '浠撲綅鍚嶇О', title: '浠撲綅鍚嶇О' }
+                    , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿' }
+                    , { field: '绂佺敤鏍囪', title: '绂佺敤鏍囪' }
+                    , { field: '浠撳簱浠g爜', title: '浠撳簱浠g爜' }
+                    , { field: '浠撳簱鍚嶇О', title: '浠撳簱鍚嶇О' }
+                    , { field: '澶囨敞', title: '澶囨敞' }
+                    , { field: '浣跨敤鏍囪', title: '浣跨敤鏍囪' }
+                ]]
+            };
+
+            var index = layer.load(0, { shade: false });
+            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+            $.ajax({
+                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
+                url: GetWEBURL() + '/Gy_StockPlace/list1',
+                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 });
+                    }
+                }, error: function () {
+                    layer.close(index);
+                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                }
+            }); 
+
+            //閲嶇疆鎸夐挳
+            form.on('submit(btnReSearch)', function (data) {
+                $("#HNumber").val("");
+                $("#HName").val("");
+                $("#btnSearch").click();
+            });
+
+            //鏌ヨ鎸夐挳
+            form.on('submit(btnSearch)', function (data) {
+                var HNumber = $("#HNumber").val();
+                var HName = $("#HName").val();
+                if (HNumber) {
+                    sWhere += " and 浠撲綅浠g爜 like '%" + HNumber + "%'";
+                }
+                if (HName) {
+                    sWhere += " and 浠撲綅鍚嶇О like '%" + HName + "%'";
+                }
+                $.ajax({
+                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
+                    url: GetWEBURL() + '/Gy_StockPlace/list1',
+                    type: "GET",
+                    data: { "sWhere": sWhere },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            option.data = data1.data;
+                            table.render(option);
+                            layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
+                        } else {
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+                sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+            });
+
+
+            //laydate.render({
+            //    elem: '#HDate'
+            //    , type: 'datetime'
+            //    , trigger: 'click'
+            //    , format:'yyyy-MM-dd HH:mm'
+            //});
+
+
+            //浠ヤ笂鏄痩ayui妯″潡
+        });
+
+        
+
+
+    </script>
+
+</body>
+</html>
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Unit.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Unit.html"
new file mode 100644
index 0000000..f5cfb53
--- /dev/null
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_Unit.html"
@@ -0,0 +1,180 @@
+锘�<!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 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>
+    
+</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">璁¢噺鍗曚綅浠g爜</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HNumber" id="HNumber">
+                                    </div>
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label">璁¢噺鍗曚綅鍚嶇О</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" name="HName" id="HName">
+                                    </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>
+                        </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-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>
+                        </script>
+                    </form>
+                </div>
+            </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/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).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
+            var sWhere = "";
+
+            var option = {
+                elem: '#mainTable'
+                //, toolbar: '#toolbarDemo'
+                ,height: 'full-50' 
+                , page: true
+                ,cellMinWidth: 90
+                , cols: [[
+                    { field: 'HItemID', title: 'HItemID', sort: true, hide: true }
+                    , { field: '浠撲綅浠g爜', title: '浠撲綅浠g爜' }
+                    , { field: '浠撲綅鍚嶇О', title: '浠撲綅鍚嶇О' }
+                    , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿' }
+                    , { field: '绂佺敤鏍囪', title: '绂佺敤鏍囪' }
+                    , { field: '浠撳簱浠g爜', title: '浠撳簱浠g爜' }
+                    , { field: '浠撳簱鍚嶇О', title: '浠撳簱鍚嶇О' }
+                    , { field: '澶囨敞', title: '澶囨敞' }
+                    , { field: '浣跨敤鏍囪', title: '浣跨敤鏍囪' }
+                ]]
+            };
+
+            var index = layer.load(0, { shade: false });
+            //杩涘叆椤甸潰鏄剧ず鐨勭紦瀛樺垪琛�
+            $.ajax({
+                //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
+                url: GetWEBURL() + '/Gy_StockPlace/list1',
+                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 });
+                    }
+                }, error: function () {
+                    layer.close(index);
+                    layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                }
+            }); 
+
+            //閲嶇疆鎸夐挳
+            form.on('submit(btnReSearch)', function (data) {
+                $("#HNumber").val("");
+                $("#HName").val("");
+                $("#btnSearch").click();
+            });
+
+            //鏌ヨ鎸夐挳
+            form.on('submit(btnSearch)', function (data) {
+                var HNumber = $("#HNumber").val();
+                var HName = $("#HName").val();
+                if (HNumber) {
+                    sWhere += " and 浠撲綅浠g爜 like '%" + HNumber + "%'";
+                }
+                if (HName) {
+                    sWhere += " and 浠撲綅鍚嶇О like '%" + HName + "%'";
+                }
+                $.ajax({
+                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum",
+                    url: GetWEBURL() + '/Gy_StockPlace/list1',
+                    type: "GET",
+                    data: { "sWhere": sWhere },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            option.data = data1.data;
+                            table.render(option);
+                            layer.alert("鏌ヨ鎴愬姛", { icon: 1 });
+                        } else {
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+                sWhere = "";//璋冪敤鎺ュ彛鍚庢竻绌簊Where缂撳瓨
+            });
+
+
+            //laydate.render({
+            //    elem: '#HDate'
+            //    , type: 'datetime'
+            //    , trigger: 'click'
+            //    , format:'yyyy-MM-dd HH:mm'
+            //});
+
+
+            //浠ヤ笂鏄痩ayui妯″潡
+        });
+
+        
+
+
+    </script>
+
+</body>
+</html>
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
new file mode 100644
index 0000000..e0cf2cf
--- /dev/null
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
@@ -0,0 +1,2727 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+    <meta 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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+    <style>
+        .main-btn { /*澶撮儴涓绘寜閽�*/
+            padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
+            height: 30px;
+            line-height: 30px;
+        }
+        .maintitle {
+            background-color: #1492ff;
+            color: #fff;
+            padding: 5px 10px;
+            border: none;
+            border-radius: 4px;
+            text-align: center;
+            font-size: 24px;
+        }
+
+        .btn-title {
+            font-size: 16px;
+        }
+    </style>
+</head>
+<body>
+    <div class="layui-fluid" style="padding: 0;">
+        <div class="layui-card" style="padding: 2px;background-color: #efefef;">
+            <div class="layui-card-body" style="padding: 1px;">
+                <form class="layui-form" action="" lay-filter="formData" style="background-color:white;">
+                    <div class="maintitle">宸ヨ壓璺嚎</div>
+                    <div style="padding: 10px;">
+                        <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+                            <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">棰勮</span></i>
+                        </button>
+                        <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+                            <i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"><span class="btn-title">鏂板</span></i>
+                        </button>
+                        <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+                            <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">淇敼</span></i>
+                        </button>
+                        <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+                            <i class="layui-icon layui-icon-delete layuiadmin-button-btn"><span class="btn-title">鍒犻櫎</span></i>
+                        </button>
+                    </div>
+                    <div class="layui-tab" lay-filter="tab-POStockInBill">
+                        <ul class="layui-tab-title" lay-filter="tab-all">
+                            <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
+                            <li lay-id="2" style="padding:1px;">鍏朵粬淇℃伅</li>
+                        </ul>
+                        <div class="layui-tab-content">
+                            <!--鍩烘湰淇℃伅-->
+                            <div class="layui-tab-item layui-show">
+                                <div class="layui-form-item" style="padding-top: 10px;">
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍗曟嵁鍙�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">宸ヨ壓璺嚎鍚嶇О</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜у搧浠g爜</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">浜у搧鍚嶇О</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">瑙勬牸鍨嬪彿</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">璁¢噺鍗曚綅</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="" value="0">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ヨ壓璺嚎澶х被</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSup" id="btnSearchSup" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label">鏃堕棿鍗曚綅</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;width: 182px;">
+                                                <select name="" id="">
+                                                    <option value="灏忔椂">灏忔椂</option>
+                                                    <option value="澶�">澶�</option>
+                                                </select>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ュ簭</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="" value="0">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ヤ綔涓績</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="" value="0">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇鐝粍</label>
+                                            <div class="layui-input-block" style="margin-left: 77px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+                                                <input type="hidden" name="" id="" value="0">
+                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+                                                </button>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍔犲伐鏁伴噺</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">杩愯鏃堕棿</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" value="0">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">宸ヤ环</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" value="0">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鏍囧噯璧勬簮鏁�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍔犺祫婧愬閲�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍑忚祫婧愬噺閲�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline" style="width: 56%;">
+                                            <label class="layui-form-label" style="width: 85px;">澶囨敞</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <div class="layui-input-block" style="margin-left: 70px;">
+                                                <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="鏄惁榛樿宸ヨ壓" lay-skin="primary" lay-filter="checkboxHLastSubProc">
+                                                <input type="hidden" value="false" name="HLastSubProc" id="HLastSubProc">
+                                                <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="鏄惁鍚敤" lay-skin="primary" lay-filter="checkboxHLastSubProc">
+                                                <input type="hidden" value="false" name="HLastSubProc" id="HLastSubProc">
+                                            </div>
+                                        </div>
+
+                                    </div>
+                                </div>
+                            </div>
+                            <!--鍏朵粬淇℃伅-->
+                            <div class="layui-tab-item">
+                                <div class="layui-form-item">
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍒跺崟浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">瀹℃牳浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍚敤浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍒跺崟鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">瀹℃牳鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍚敤鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">淇敼浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">浣滃簾浜�</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="text" class="layui-input" name="" id="">
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">淇敼鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <label class="layui-form-label" style="width: 85px;">浣滃簾鏃ユ湡</label>
+                                            <div class="layui-input-block" style="margin-left: 120px;">
+                                                <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+                                            </div>
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <script type="text/html" id="barDemo">
+        <!--<a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>-->
+        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
+    </script>
+    <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/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+        }).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;
+
+            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: 'HWasterReasonName', title: '涓嶈壇鍘熷洜', event: "ReasonNameEvent" }
+                    , { field: 'HBadReasonID', title: '涓嶈壇鍘熷洜id' }
+                    , { field: 'HEmpName', title: '璐d换浜�', edit: 'text', event: "EmpNameEvent" }
+                    , { field: 'HSQProcName', title: '鐢宠宸ュ簭', event: "SQProcNameEvent" }
+                    , { field: 'HProcID', title: '鐢宠宸ュ簭id' }
+                    , { field: 'HZRProcName', title: '璐d换宸ュ簭', event: "ZRProcNameEvent" }
+                    , { field: 'HMRBChecker', title: '涓嶈壇鏁伴噺', edit: 'text', event: "BadQtyEvent" }//璇ュ瓧娈垫槸涓嶈壇鏁伴噺锛屽厛鐢℉MRBChecker瀛樻斁
+                    , { field: 'HRemark', title: '澶囨敞', edit: 'text', event: "RemarkEvent" }
+                    , { field: 'HPSProcName', title: '涓嶈壇纭浜�', event: "PSProcNameEvent" }
+                    , { field: 'HCloseMan', title: '鍒ゅ畾缁撴灉', edit: 'text', event: "CloseManEvent" }
+                    , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 }
+                ]]
+                , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+            };
+            //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
+            option.data = [{ "HWasterReasonName": " ", "HBadReasonID": 0, "HEmpName": "  ", "HSQProcName": "   ", "HProcID": 0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }];
+            table.render(option);
+
+            //table.render({
+            //    elem: '#mainTable'
+            //    , height: 500
+            //    //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛
+            //    , page: true //寮�鍚垎椤�
+            //    , cols: [[ //琛ㄥご
+            //        { field: 'ID', title: '搴忓彿', sort: true, fixed: 'left' }
+            //        , { field: 'HWasterReasonName', title: '涓嶈壇鍘熷洜', event: "ReasonNameEvent" }
+            //        , { field: 'HBadReasonID', title: '涓嶈壇鍘熷洜id' }
+            //        , { field: 'HEmpName', title: '璐d换浜�', edit: 'text', event: "EmpNameEvent" }
+            //        , { field: 'HSQProcName', title: '鐢宠宸ュ簭', event: "SQProcNameEvent" }
+            //        , { field: 'HProcID', title: '鐢宠宸ュ簭id' }
+            //        , { field: 'HZRProcName', title: '璐d换宸ュ簭', event: "ZRProcNameEvent" }
+            //        , { field: 'HMRBChecker', title: '涓嶈壇鏁伴噺', edit: 'text', event: "BadQtyEvent" }//璇ュ瓧娈垫槸涓嶈壇鏁伴噺锛屽厛鐢℉MRBChecker瀛樻斁
+            //        , { field: 'HRemark', title: '澶囨敞', edit: 'text', event: "RemarkEvent" }
+            //        , { field: 'HPSProcName', title: '涓嶈壇纭浜�', event: "PSProcNameEvent" }
+            //        , { field: 'HCloseMan', title: '鍒ゅ畾缁撴灉', edit: 'text', event: "CloseManEvent" }
+            //    ]]
+            //    , data: [
+            //        { "ID": 1, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
+
+
+            //    ]
+            //    , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+            //    //, height: 500
+            //    , done: function () {
+            //        layer.closeAll("loading");
+            //    }
+            //});
+            //澶村伐鍏锋爮浜嬩欢
+            var rowid = 0;
+            var rows = 0;
+            table.on('toolbar(mainTable)', function (obj) {
+                var checkStatus = table.checkStatus('mainTable')
+                    , data = checkStatus.data;;
+                var AddRow = table.cache['mainTable'];
+                var NewRow = { "HWasterReasonName": " ", "HBadReasonID": 0, "HEmpName": "  ", "HSQProcName": "   ", "HProcID": 0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " };
+                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('澧炲姞涓�琛屾寜閽紒')
+                        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);
+                        }
+                        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 {
+                            obj.del();
+                            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;
+
+                    }
+                }
+
+
+
+            });
+
+            //鑾峰彇鍙傛暟
+            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;
+            }
+
+            //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+            if (sessionStorage.login != "login") {
+                layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+                    icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+                }, function () { window.location.href = "../../user/login.html"; });
+            }
+
+            var params = getUrlVars();
+            var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+            var lSourceBillType = params[params[2]];  //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+
+            function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+            {
+                $.ajax({
+                    url: GetWEBURL() + "/Web/GetPonderationBill",
+                    type: "GET",
+                    data: { "HInterID": linterid },
+                    success: function (d) {
+                        // console.log(d.data);
+                        $("#HInterID").val(d.data[0].HInterID);
+                        $("#HBillNo").val(d.data[0].HBillNo);
+                        $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+
+                    }
+                })
+            }
+
+
+            var date = new Date();
+            var day = date.getDate();
+            var month = date.getMonth() + 1;
+            var year = date.getFullYear();
+            var shijian = year + "-" + month + "-" + day;
+
+            //鍒ゆ柇鏄惁鏂板
+            if (linterid == null || linterid == 0) {
+                //鑾峰彇鏈�澶у崟鎹彿 new
+                $("#HInterID").val("");
+                $("#HBillNo").val("");
+                $.ajax({
+                    url: GetWEBURL() + "/Web/GetMAXNum",
+                    type: "GET",
+                    data: { "HBillType": '7509' },
+                    success: function (d) {
+                        //console.log(d.data);
+                        $("#HInterID").val(d.data[0].HInterID);
+                        $("#HBillNo").val(d.data[0].HBillNo);
+                        $("#HDate").val(shijian);
+                    }
+                });
+            }
+            else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
+                RoadBillMain(linterid);
+                RoadBillSub(linterid);
+            }
+
+
+
+            //閫夋嫨涓嶈壇鍘熷洜
+            form.on('submit(HBadReasonID-BT)', function () {//閫夋嫨浠撳簱
+                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
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+            //閫夋嫨宸ュ簭璁″垝鍗�
+            form.on('submit(HPlanID-BT)', function () {//閫夋嫨宸ュ簭璁″垝鍗�
+                layer.open({
+                    type: 2
+                    , area: ['80%', '80%']
+                    , title: '宸ュ簭璁″垝鍗曞垪琛�'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+            //閫夋嫨璐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");
+                    }
+                })
+            });
+
+            //閫夋嫨鐢宠宸ュ簭
+            form.on('submit(HSQProcID-BT)', function () {//閫夋嫨鐢宠宸ュ簭
+                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
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
+
+            //閫夋嫨璐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(cmdModify)', function () {//缂栬緫
+                var sSubStr = table.cache['wl-table'];
+                //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '鏄庣粏鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), '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(Saver)', function (data) {//淇濆瓨
+                //debugger;
+                var sMainStr = JSON.stringify(data.field);
+                var sSubStr = JSON.stringify(table.cache['mainTable']);
+                var sMainSub = sMainStr + ';' + sSubStr;
+                $.ajax(
+                    {
+                        type: "POST",
+                        url: GetWEBURL() + "SaveBadReasonList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        async: true,
+                        data: { "msg": sMainSub },
+                        dataType: "json",
+                        success: function (data) {
+                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                layer.msg(data.Message, { icon: 1 });
+                                $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
+                            }
+                            else {
+
+                                f_alert(data.Message);
+                                console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable));
+                            }
+                            layer.closeAll("loading");
+                        },
+                        error: function (err) {
+
+                            f_alert("閿欒:" + err);
+                            console.log("Reason" + sMainStr);
+                        }
+                    });
+            });
+            function f_alert(sMsg) {
+                layer.alert(sMsg, { icon: 5 });
+
+            }
+
+            //鐩戝惉鎻愪氦
+            form.verify({
+                numberOrEmpty: function (value, item) {
+                    // if (value != '') {
+                    if (!/^\d+$/.test(value)) {
+                        return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+                    }
+                    //}
+                }
+            });
+
+
+        });
+        //瀹氫箟鍏ㄥ眬鍙橀噺
+        var HReasonName, ReasonID, EmpName, SQProcName,
+            ProcID, ZRProcName, QRName
+            ;
+        function GetHReasonValue(obj)  //杩斿洖涓嶈壇鍘熷洜
+        {
+            HReasonName = obj[0].HName;
+            ReasonID = obj[0].HItemID;
+        }
+        function GetHPlanValue(obj) {  //杩斿洖宸ュ簭璁″垝鍗�
+            $("#HMainSourceInterID").val(obj[0].hmainid);
+            $("#HMainSourceEntryID").val(obj[0].hsubid);
+            $("#HMainSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+            $("#HMaterID").val(obj[0].HMaterID);
+            $("#HMaterNumber").val(obj[0].鐗╂枡浠g爜);
+            $("#HMater").val(obj[0].鐗╂枡鍚嶇О);
+            $("#HCenterID").val(obj[0].HCenterID);
+            $("#HWorkCenterName").val(obj[0].宸ヤ綔涓績);
+            $("#HModel").val(obj[0].瑙勬牸鍨嬪彿);
+            $("#HPlanQty").val(obj[0].璁″垝鏁伴噺);
+
+
+        }
+        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 ($("#HSourceBillNo").val() == '') {
+            //    layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
+            //    return false;
+            //}
+            if ($("#HDeptName").val() == '') {
+                layer.msg("閮ㄩ棬娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            if ($("#HSecManager").val() == '') {
+                layer.msg("楠屾敹浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            if ($("#HKeeper").val() == '') {
+                layer.msg("淇濈浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            //if ($("#HWHNAME").val() == '') {
+            //    layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 });
+            //    return false;
+            //}
+            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") {
+                //for (var i = 0; i <= sSubStr.length - 1; i++) {  //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺
+                //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
+                //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
+                //        {
+                //            layer.msg("鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+                //            return false;
+                //        }
+                //    }
+                //}
+                for (var i = 0; i <= sSubStr.length - 1; i++) {   //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+                    if (parseFloat(sSubStr[i].HQty) > 0) {
+                        s = 1;
+                    }
+                }
+                if (s == 0) {
+                    layer.msg("浜у搧鍏ュ簱璁板綍鏈壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return false;
+                }
+            }
+            else {
+                return true;
+            }
+        }
+    </script>
+</body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html"
new file mode 100644
index 0000000..d96c324
--- /dev/null
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html"
@@ -0,0 +1,925 @@
+锘�<!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 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">
+    <style>
+        .layui-table-cell{
+            height:auto;
+            white-space:normal;
+        }
+    </style>
+</head>
+<body>
+    <div class="layui-fluid" style="padding:0">
+        <div class="layui-card" style="padding: 1px">
+            <div class="layui-card-body" style="padding: 5px; height:800px;">
+                <form class="layui-form" action="" lay-filter="component-form-group">
+                    <div style="background-color:#0085E8;">
+                        <span style="color: white;"><i class="layui-icon layui-icon-form"></i>澶栬喘鍏ュ簱鍗�</span>
+                    </div>
+                    <div class="layui-form-item" style="padding:15px;margin:0px">
+                        <div class="layui-row">
+                            <div class="layui-col-xs3">
+                                <label class="layui-form-label" style="width:60px;padding-left:0px;">MES搴撲綅</label>
+                            </div>
+                            <div class="layui-col-xs8">
+                                <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
+                                <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
+                                <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
+                            </div>
+                        </div>
+                        <div class="layui-row">
+                            <div class="layui-col-xs3">
+                                <label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
+                            </div>
+                            <div class="layui-col-xs8">
+                                <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
+                            </div>
+                        </div>
+                    </div>
+                    <div class="layui-tab layui-col-xs12" lay-filter="tab-POStockInBill">
+                        <ul class="layui-tab-title" lay-filter="tab-all">
+                            <li lay-id="1" style="padding:1px;" class="layui-this">婧愬崟淇℃伅</li>
+                            <li lay-id="2" style="padding:1px;">鍗曟嵁淇℃伅</li>
+                            <li lay-id="3" style="padding:1px;">鐗╂枡娓呭崟</li>
+                            <li lay-id="4" style="padding:1px;">鍚堣淇℃伅</li>
+                        </ul>
+                        <div class="layui-tab-content">
+                            <!--婧愬崟淇℃伅-->
+                            <div class="layui-tab-item layui-show">
+                                <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-xs8">
+                                            <select name="HBillType" id="HBillType">
+                                                <option value="1103">鏀舵枡閫氱煡鍗�</option>
+                                                <option value="1102">閲囪喘璁㈠崟</option>
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-row">
+                                        <div class="layui-col-xs3">
+                                            <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍙�</label>
+                                        </div>
+                                        <div class="layui-col-xs8">
+                                            <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input">
+                                        </div>
+                                    </div>
+                                </div>
+                            </div>
+                            <!--鍗曟嵁淇℃伅-->
+                        </div>
+                    </div>
+                    <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">鎻愪氦</button>
+                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button>
+                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
+                        <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">閫�鍑�</button>
+                    </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>
+    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
+
+
+        //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new
+        $("#HWHID").val(sessionStorage["HWHID"]);
+        $("#HWHNAME").val(sessionStorage["HWHName"]);
+        $("#HStockPlaceID").val(sessionStorage["HSPID"]);
+        $("#HStockPlaceName").val(sessionStorage["HSPName"]);
+        //$("#HSupID").val(sessionStorage["HSupID"]);
+        //$("#HSupName").val(sessionStorage["HSupName"]);
+        $("#HDeptID").val(sessionStorage["HDeptID"]);
+        $("#HDeptName").val(sessionStorage["HDept"]);
+        $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
+        $("#HSecManager").val(sessionStorage["HSecManager"]);
+        $("#HKeeperID").val(sessionStorage["HKeeperID"]);
+        $("#HKeeper").val(sessionStorage["HKeeper"]);
+        $("#HMaker").val(sessionStorage["HUserName"]);
+        $("#HMaker").hide();
+        $("#HMakerID").hide();
+        $("#HBillerID").val(sessionStorage["HBillerID"]);
+        $("#HBillerID").hide();
+        //榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new
+
+
+        //鑾峰彇鍙傛暟
+        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 = getUrlVars();
+        var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+        var lSourceBillType = params[params[2]];  //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+
+        function  RoadBillMain(linterid)//鍔犺浇琛ㄥご
+        {
+            $.ajax({
+                url: GetWEBURL() + "/Web/GetPonderationBill",
+                type: "GET",
+                data: { "HInterID": linterid },
+                success: function (d) {
+                    // console.log(d.data);
+                    $("#HInterID").val(d.data[0].HInterID);
+                    $("#HBillNo").val(d.data[0].HBillNo);
+                    $("#HBillType").val(d.data[0].HSourceBillType);
+                    $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+                    //$("#HWHID").val(d.data[0].HWhID);
+                    //$("#HKeeperID").val(d.data[0].HKeeperID);
+                    //$("#HSecManagerID").val(d.data[0].HSecManagerID);
+                    //$("#HDeptID").val(d.data[0].HDeptID);
+                    //$("#HBarCode").val(d.data[0].HBarCode);
+                    //$("#HQty").val(d.data[0].HQty);
+                    RoadSup();
+                }
+            })
+        }
+
+        function RoadSup()//鏍规嵁婧愬崟绫诲瀷鍙婃簮鍗曞彿 鍔犺浇渚涘簲鍟�
+        {
+            //var sInterID = $("#HInterID").val()
+            var HSourceBillNo = $('#HSourceBillNo').val()
+            var sInterID = $("#HInterID").val()
+            var sBillNo = $("#HBillNo").val()
+            var HSourceBillType = $("#HBillType").val()
+            //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+            if (HSourceBillNo == "" || sInterID <= 0) {
+                layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return;
+            }
+            else {
+                $.ajax({
+                    url: GetWEBURL() + "/POStockInBill/get_GetCg_POOrderBillList",
+                    type: "GET",
+                    data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            $("#HSupID").val(result.data[0].HSupID);
+                            $("#HSupName").val(result.data[0].HSupName);
+                            $("#HDeptID").val(result.data[0].HDeptID);
+                            $("#HDeptName").val(result.data[0].HDeptName);
+                            sessionStorage["SourceFlag"] = true;
+                            element.tabChange('tab-POStockInBill', '2');
+                            layer.load(3);
+                        }
+                        else {
+                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                        layer.closeAll("loading");
+                    }
+                });
+            }
+        }
+
+        function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋
+        {
+            table.render({
+                elem: '#wl-table'
+                , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+                , where: { HBillID: linterid, HBillType: '1201', sWhere: '' }
+                , cols: [[
+                    { type: 'radio' }
+                , { field: 'HQty', title: '鏁伴噺', sort: true }
+                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true }
+                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+                , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+                , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+                , { field: 'HBatchNo', title: '鎵规', sort: true }
+                ]]
+                , height: 500
+                , done: function () {
+                    layer.closeAll("loading");
+                }
+            });
+        }
+
+        //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
+
+
+
+
+
+
+
+        //鍒ゆ柇鏄惁鏂板
+        if (linterid == null || linterid == 0) {
+            //鑾峰彇鏈�澶у崟鎹彿 new
+            $("#HInterID").val("");
+            $("#HBillNo").val("");
+            $.ajax({
+                url: GetWEBURL() + "/Web/GetMAXNum",
+                //url: GetWEBURL() + "/Web/UpdatePOInStockBillPrintQty", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                type: "GET",
+                data: { "HBillType": '1201' },
+                success: function (d) {
+                    //console.log(d.data);
+                    $("#HInterID").val(d.data[0].HInterID);
+                    $("#HBillNo").val(d.data[0].HBillNo);
+                }
+            });
+        }
+        else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
+            RoadBillMain(linterid);
+            RoadBillSub(linterid);
+        }
+        //濡傛灉淇敼鍒欒蛋涓嬮潰 new
+
+
+
+
+        //杩涘叆鐗╂枡鏄庣粏椤电銆佹潯鐮佹 鍏夋爣鐒︾偣   new
+        if (1 == 2)
+        {
+            element.tabChange('tab-POStockInBill', '3');
+            var pFocus = $("#HBarCode");
+            pFocus.focus();
+            pFocus.select();
+        }
+        else
+        {
+            element.tabChange('tab-POStockInBill', '1');
+            var pFocus = $("#HSourceBillNo");
+            pFocus.focus();
+            pFocus.select();
+        }
+        //
+        //
+        form.on('submit(HWHID-BT)', function () {//閫夋嫨璋冨叆浠撳簱
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '浠撳簱鍒楄〃'
+                , shade: 0.6 //閬僵閫忔槑搴�
+                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseList.html?Type=HWHID', 'yes']
+                , resize: false
+                , cancel: function () {
+                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                }
+            })
+        });
+        form.on('submit(HSpID-BT)', function () {//閫夋嫨璋冨叆浠撲綅
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '浠撲綅鍒楄〃'
+                , shade: 0.6 //閬僵閫忔槑搴�
+                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
+                , resize: false
+                , cancel: function () {
+                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                }
+            })
+        });
+        form.on('submit(HSupID-BT)', function () {//閫夋嫨渚涘簲鍟�
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '渚涘簲鍟嗗垪琛�'
+                , shade: 0.6 //閬僵閫忔槑搴�
+                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_SupplierList.html', 'yes']
+                , resize: false
+                , cancel: function () {
+                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                }
+            })
+        });
+        form.on('submit(HKeeperID-BT)', function () {//閫夋嫨淇濈
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , 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");
+                }
+            })
+        });
+        form.on('submit(HSecManagerID-BT)', function (data) {//閫夋嫨楠屾敹
+            var sMainStr = JSON.stringify(data.field);
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '楠屾敹鍒楄〃'
+                , shade: 0.6 //閬僵閫忔槑搴�
+                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
+                , resize: false
+                , cancel: function () {
+                    //$(".layui-btn").removeClass("layui-btn-disabled");
+                }
+            })
+        });
+        form.on('submit(HDeptID-BT)', function () {//閫夋嫨閮ㄩ棬
+            layer.open({
+                type: 2
+                , area: ['100%', '100%']
+                , title: '閮ㄩ棬鍒楄〃'
+                , shade: 0.6 //閬僵閫忔槑搴�
+                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', '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(cmdModify)', function () {//缂栬緫
+            var sSubStr = table.cache['wl-table'];
+            //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+                layer.open({
+                    type: 2
+                    , area: ['100%', '100%']
+                    , title: '鏄庣粏鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+           // }
+        });
+
+        form.on('submit(cmdDelete)', function () {//鍒犻櫎
+            var checkStatus = table.checkStatus('wl-table')
+            , data = checkStatus.data;
+           // console.log(data);
+            var sInterID = $('#HInterID').val()
+            var sMaterID = data[0].HMaterID
+            var sBillType = '1201'
+            var sAuxPropID = data[0].HAuxPropID
+            //var sMTONo = data[0].HMTONo
+            var sMTONo = ''
+            var sSourceInterID = data[0].HSourceInterID
+            var sSourceEntryID = data[0].HSourceEntryID
+            $.ajax(
+               {
+                   type: "Get",
+                   //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                   url: GetWEBURL() + "/POStockInBill/Delete_Json",
+                   async: true,
+                   data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": '1103', },
+                   dataType: "json",
+                   success: function (data) {
+                       if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                           //layer.msg(data.Message, { icon: 1 });
+                           table.render({
+                               elem: '#wl-table'
+                               //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
+                               //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
+                               , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+                               , cellMinWidth: 80
+                               , toolbar: '#toolbarDemo'
+                               , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+                               , cols: [[
+                                  { type: 'radio' }
+                                , { field: 'HQty', title: '鏁伴噺', width: 80 }
+                                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 80 }
+                                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+                                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
+                                , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 100 }
+                                , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 100 }
+                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+                                , { field: 'HBatchNo', title: '鎵规', width: 100 }
+                                , { field: 'HAuxPropID', title: '杈呭姪灞炴��', width: 100 }
+                                , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 100 }
+                         ]]
+                         , height: 500
+                           })
+                       }
+                       else {
+                           layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                       }
+                   },
+                   error: function (err) {
+                       layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                   }
+               });
+        });
+
+        //鎻愪氦
+        form.on('submit(Saver)', function (data) {//鎻愪氦
+            if ($("#HExplanation").val() == "") {
+                if ($("#HWHNAME").val() == "瀹藉箙鎴愬搧浠揘EW" || $("#HWHNAME").val() == "鏍锋湰浠揘EW") {
+                    $("#HWHNAME").val("");
+                    $("#HWHID").val("");
+                    layer.msg("璇锋壂MES搴撲綅鐮侊紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return;
+                }
+            }
+            var sMainStr = JSON.stringify(data.field);
+            var sSubStr = table.cache['wl-table'];
+            var sSourceType = $("#HBillType").val();
+            if (AllowLoadData(sSubStr, 'Saver') != false)//闈炵┖楠岃瘉
+            {
+                layer.load(3);
+                $.ajax(
+                {
+                    type: "POST",
+                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePOStockInBill_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                    url: GetWEBURL() + "/POStockInBill/set_SavePOStockInBill_Json",
+                    async: true,
+                    data: { "oMain": sMainStr},
+                    dataType: "json",
+                    success: function (data) {
+                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                            sessionStorage["SourceFlag"] = false;
+                            layer.confirm("鏀舵枡" + data.Message + $("#HBillNo").val(), {
+                                icon: 1,
+                                skin: 'layui-layer-lan',
+                                closeBtn: 0,
+                                btn: ['纭'],
+                                btn2: function () {
+                                    //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
+                                    //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
+                                    //window.location.reload();//鏂板
+                                    parent.location.href = "../../../views/index.html"
+                                }//鍏抽棴
+                            }
+                            , function () { parent.location.href = "../../../views/index.html"; }//鏂板
+                            );
+                        }
+                        else {
+                            //layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+                            layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                        layer.closeAll("loading");
+                        layui.form.render();
+                    },
+                    error: function (err) {
+                        //layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+                        layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    }
+                });
+                return false;
+            }
+        });
+        //鐩戝惉鎻愪氦
+        form.verify({
+            numberOrEmpty: function (value, item) {
+                // if (value != '') {
+                if (!/^\d+$/.test(value)) {
+                    return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+                }
+                //}
+            }
+        });
+
+        //鎵潯鐮�
+        $('#HBarCode').on('keydown', function (event) {  //鎵潯鐮�
+            var sSubStr = table.cache['wl-table'];
+            var sBarCode = $('#HBarCode').val()
+            var sInterID = $("#HInterID").val()
+            var sBillNo = $("#HBillNo").val()
+            var sQty = $("#HQty").val()
+            var sHBillType = $("#HBillType").val()  //婧愬崟绫诲瀷
+            var sBillType = '1201'
+            var sHWHID = $("#HWHID").val()
+            var sHSPID = $("#HStockPlaceID").val()
+            var sSourceBillNo = $("#HSourceBillNo").val()
+           // var Flag = sessionStorage["SourceFlag"];
+            if (sQty == "") {
+                sQty = 0;
+            }
+            if (event.keyCode == 13) {
+                //鍒ゆ柇鏉$爜鏄惁涓虹┖  new
+                if (sBarCode == '') {
+                    layer.msg("鏉$爜涓虹┖锛屼笉鑳芥壂鎻忥紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return false;
+                }
+                if (sBarCode != "") {
+                    $('#HBarCode').val("");
+                }
+                if (sQty != "") {
+                    $('#HQty').val("");
+                }
+                if (sHWHID == "184154") {
+                    if (sHSPID == "0") {
+                        layer.msg("浠撲綅涓虹┖锛岃閫夋嫨浠撲綅锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        return false;
+                    }
+                }
+                  //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//闈炵┖楠岃瘉
+                                $.ajax({
+                                    url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
+                                    type: "GET",
+                                    data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": 0 },
+                                    success: function (result) {
+                                        if (result.count == 1) {
+                                            if (result.data.HBarType == '浠撳簱鏉$爜') {
+                                                $("#HWHNAME").val(result.data.HWhName);
+                                                $("#HWHID").val(result.data.HWhID);
+                                                $("#HStockPlaceName").val("");
+                                                $("#HNote").val(";涓�閿壂鐮佷粨搴撴潯鐮�");
+                                                element.tabChange('tab-POStockInBill', '2');  //璺宠浆椤电
+                                            }
+                                            else if (result.data.HBarType == '浠撲綅鏉$爜') {
+                                                $("#HStockPlaceName").val(result.data.HSPName);
+                                                $("#HStockPlaceID").val(result.data.HSPID);
+                                                $("#HWHNAME").val(result.data.HWhName);
+                                                $("#HWHID").val(result.data.HWhID);
+                                                $("#HNote").val(";涓�閿壂鐮佷粨浣嶆潯鐮�");
+                                                element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
+                                            }
+                                            else if (result.data.HBarType == '閮ㄩ棬鏉$爜') {
+                                                $("#HDeptName").val(result.data.HDeptName);
+                                                $("#HDeptID").val(result.data.HDeptID);
+                                                $("#HNote").val(";涓�閿壂鐮侀儴闂ㄦ潯鐮�");
+                                                element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
+                                            }
+                                            else if (result.data.HBarType == '婧愬崟鏉$爜') {
+                                                $("#HSupName").val(result.data.HSupName);
+                                                $("#HSupID").val(result.data.HSupID);
+                                                $("#HDeptName").val(result.data.HDeptName);
+                                                $("#HDeptID").val(result.data.HDeptID);
+                                                $("#HSourceBillNo").val(result.data.HSourceBillNo);
+                                                sessionStorage["SourceFlag"] = true;
+                                                //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                                if (result.data.HSourceBillType == "1102") {
+                                                    $("#HBillType").val("1102");
+
+                                                }
+                                                else if (result.data.HSourceBillType == "1103") {
+                                                    $("#HBillType").val("1103");
+                                                }
+                                                else {
+                                                    $("#HBillType").val("鎵嬪伐褰曞叆");
+                                                }
+                                                $("#HNote").val(";涓�閿壂鐮佹簮鍗曟潯鐮�");
+                                                element.tabChange('tab-POStockInBill', '3');
+                                            }
+                                            else {
+                                                if (sessionStorage["SourceFlag"] == "true") {
+                                                    element.tabChange('tab-POStockInBill', '3');
+                                                }
+                                                else
+                                                {
+                                                    $("#HSupName").val(result.data.hSupNameField);
+                                                    $("#HSupID").val(result.data.hSupIDField);
+                                                    //$("#HDeptName").val(result.data.HDept);
+                                                    //$("#HDeptID").val(result.data.HDeptID);
+                                                    $("#HSourceBillNo").val(result.data.hSourceBillNoField);
+                                                    sessionStorage["SourceFlag"] = true;
+                                                    //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+                                                    if (result.data.hSourceBillTypeField == "1102") {
+                                                        $("#HBillType").val("1102");
+
+                                                    }
+                                                    else if (result.data.hSourceBillTypeField == "1103") {
+                                                        $("#HBillType").val("1103");
+                                                    }
+                                                    else {
+                                                        $("#HBillType").val("鎵嬪伐褰曞叆");
+                                                    }
+                                                    $("#HNote").val(";鐗╂枡鏉$爜");
+                                                    element.tabChange('tab-POStockInBill', '3');
+                                                }
+                                            }
+                                            //$("#HSupID").val(result.data.HSupID);
+                                            //$("#HSupName").val(result.data.HSupName);
+                                            //$("#HDeptID").val(result.data.HDeptID);
+                                            //$("#HDeptName").val(result.data.HDeptName);
+                                            layer.load(3)
+                                            table.render({
+                                                    elem: '#wl-table'
+                                                  , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+                                                  , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+                                                  , cellMinWidth : 115
+                                                  , cols: [[
+                                                      { type: 'radio' }
+                                                    , { field: 'HQty', title: '鏁伴噺', sort: true }
+                                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true  }
+                                                    , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+                                                    , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+                                                    , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+                                                    , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+                                                    , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+                                                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+                                                    , { field: 'HBatchNo', title: '鎵规', sort: true }
+                                                  ]]
+                                                  , height: 500
+                                                  , done: function () {
+                                                      layer.closeAll("loading");
+                                                  }
+                                            });
+                                        }
+                                        else {
+                                            // $("#verifycode").click();
+                                            //layer.msg(result.Message, { icon: 5 });
+                                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                        }
+                                        layer.closeAll("loading");
+                                    }
+                                });
+                            }
+                            //else
+                            //{
+                            //    layer.msg(result.Message, { icon: 5 });
+                            //}
+                            //layer.closeAll("loading");
+            //}
+        });
+
+        //鎵簮鍗�
+        $('#HSourceBillNo').on('keydown', function (event) {      //鎵簮鍗�
+            var HSourceBillNo = $('#HSourceBillNo').val()
+            var sInterID = $("#HInterID").val()
+            var sBillNo = $("#HBillNo").val()
+            var HSourceBillType = $("#HBillType").val()
+            if (event.keyCode == 13) {
+                //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+                if (HSourceBillNo == "" || sInterID <= 0) {
+                    layer.msg("婧愬崟鍙蜂负绌猴紝鎴栬�呭唴鐮佷笉瀛樺湪锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return;
+                }
+                //
+                $.ajax({
+                    //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
+                    url: GetWEBURL() + "/POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
+                    type: "GET",
+                    data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            $("#HSupID").val(result.data[0].HSupID);
+                            $("#HSupName").val(result.data[0].HSupName);
+                            //$("#HDeptID").val(result.data[0].HDeptID);
+                            //$("#HDeptName").val(result.data[0].HDeptName);
+                            sessionStorage["SourceFlag"] = true;
+                            layer.load(3);
+                            element.tabChange('tab-POStockInBill', '2');
+                            table.render({
+                                elem: '#wl-table'
+                                , cellMinWidth: 80
+                              //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
+                               , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+                              //, toolbar: '#toolbarDemo'
+                              , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+                              , cols: [[
+                                  { type: 'radio' }
+                                , { field: 'HQty', title: '鏁伴噺', sort: true }
+                                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true }
+                                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+                                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+                                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+                                , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+                                , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+                                , { field: 'HBatchNo', title: '鎵规'}
+                              ]]
+                                // , data: [linterid]
+                                // , page: true
+                              , height: 500
+                              , done: function () {
+                                  layer.closeAll("loading");
+                              }
+                            });
+                        }
+                        else {
+                            // $("#verifycode").click();
+                            //layer.msg(result.Message, { icon: 5 });
+                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                        layer.closeAll("loading");
+                    }
+                });
+               // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+            }
+        });
+
+
+        $('#HStockPlaceName').on('keydown', function (event) {      //鎵粨浣�
+            var HBarCode = $('#HStockPlaceName').val()
+            if (event.keyCode == 13) {
+                //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+                $.ajax({
+                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
+                    type: "GET",
+                    data: { "HBarCode": HBarCode},
+                    success: function (result) {
+                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                            $("#HStockPlaceName").val(result.data[0].HName);
+                            $("#HStockPlaceID").val(result.data[0].HItemID);
+                            $("#HWHID").val(result.data[0].HWHID);
+                            $("#HWHNAME").val(result.data[0].HWhName);
+                            element.tabChange('tab-POStockInBill', '2');
+                        }
+                        else {
+                            // $("#verifycode").click();
+                            //layer.msg(result.Message, { icon: 5 });
+                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                        layer.closeAll("loading");
+                    }
+                });
+                // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+            }
+        });
+        //鍒锋柊鏄庣粏椤电
+        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 () {
+         }
+        });
+
+        //鎵玀ES浠撲綅
+        $('#HMESSPName').on('keydown', function (event) {      //鎵粨浣�
+            var HBarCode = $('#HMESSPName').val();
+            if (event.keyCode == 13) {
+                $.ajax({
+                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
+                    type: "GET",
+                    data: { "HBarCode": HBarCode },
+                    success: function (result) {
+                        if (result.count == 1) {
+                            $("#HMESSPID").val(result.data[0].HWHID);
+                            $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
+                            $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
+                            $.ajax({
+                                url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
+                                type: "GET",
+                                data: { "HERPWHID": result.data[0].HWHID },
+                                success: function (result) {
+                                    if (result.count == 1) {
+                                        $("#HWHID").val(result.data[0].HMESWHID);
+                                        $("#HWHNAME").val(result.data[0].HMESWHNAME);
+                                        $("#HMESSPName").attr("readonly", "readonly");//MES浠撲綅鍙HExplanation
+                                        $("#HMESSPName").css("background-color", "#efefef4d");
+                                    }
+                                    else {
+                                        layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                    }
+                                    layer.closeAll("loading");
+                                }
+                            });
+                        }
+                        else {
+                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                        layer.closeAll("loading");
+                    }
+                });
+            }
+        });
+
+    //浠ヤ笂涓簂ayui妯″潡
+    });
+
+    function GetHWHValue(obj)  //杩斿洖璋冨叆浠撳簱
+    {
+        $("#HWHNAME").val(obj[0].HName);
+        //sessionStorage["HWHID"] = obj[0].HItemID;
+        $("#HWHID").val(obj[0].HItemID);
+    }
+    function GetHSpValue(obj) {  //杩斿洖璋冨叆浠撲綅
+        $("#HStockPlaceName").val(obj[0].HName);
+        $("#HStockPlaceID").val(obj[0].HItemID);
+    }
+    function GetHSupValue(obj) {  //杩斿洖渚涘簲鍟�
+        $("#HSupName").val(obj[0].HName);
+        $("#HSupID").val(obj[0].HItemID);
+    }
+    function GetHKeeperValue(obj) {  //杩斿洖淇濈
+        $("#HKeeper").val(obj[0].HName);
+        $("#HKeeperID").val(obj[0].HItemID);
+    }
+    function GetHSecManagerValue(obj) {  //杩斿洖楠屾敹
+        $("#HSecManager").val(obj[0].HName);
+        $("#HSecManagerID").val(obj[0].HItemID);
+    }
+    function GetHDeptNameValue(obj) {   //杩斿洖閮ㄩ棬
+        $("#HDeptName").val(obj[0].HName);
+        $("#HDeptID").val(obj[0].HItemID);
+    }
+    function AllowLoadData(sSubStr,bnt) {  //闈炵┖楠岃瘉
+        //if ($("#HSourceBillNo").val() == '') {
+        //    layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
+        //    return false;
+        //}
+        if($("#HDeptName").val()=='')
+        {
+            layer.msg("閮ㄩ棬娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            return false;
+        }
+        if ($("#HSecManager").val() == '') {
+            layer.msg("楠屾敹浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            return false;
+        }
+        if ($("#HKeeper").val() == '') {
+            layer.msg("淇濈浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            return false;
+        }
+        //if ($("#HSupName").val() == '') {
+        //    layer.msg("渚涘簲鍟嗘病鏈夐�夋嫨", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+        //    return false;
+        //}
+        //if ($("#HWHNAME").val() == '') {
+        //    layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 });
+        //    return false;
+        //}
+        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' });
+            layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            return false;
+        }
+        if (bnt == 'Saver') {
+            if (!typeof (sSubStr) == "undefined") {
+                //for (var i = 0; i <= sSubStr.length - 1; i++) {  //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺
+                //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
+                //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
+                //            layer.msg("鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+                //            return false;
+                //        }
+                //    }
+                //}
+                for (var i = 0; i <= sSubStr.length - 1; i++) {   //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+                    if (parseFloat(sSubStr[i].HQty) > 0) {
+                        s = 1;
+                    }
+                }
+                if (s == 0) {
+                    layer.msg("澶栬喘鍏ュ簱璁板綍鏈壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    return false;
+                }
+            }
+        }
+        else {
+            return true;
+        }
+    }
+    </script>
+
+</body>
+</html>

--
Gitblit v1.9.1