From 4fe1033595d41b9cceb721072a2b1f6b7d8f635f Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期五, 02 七月 2021 17:25:06 +0800
Subject: [PATCH] 调拨单扫码记录

---
 WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html    | 1383 +++++++++++++++++++++++++------------------------
 WebTM/Properties/PublishProfiles/JFTM.pubxml.user   |   61 +
 WebTM/layuiadmin/Scripts/webConfig.js               |    3 
 WebTM/views/Baseset/基础资料/WMSBarCodeDetailsList.html |  168 ++++++
 WebTM/WebTM.csproj                                  |   20 
 5 files changed, 940 insertions(+), 695 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index 4b2ea1a..2225160 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -15,10 +15,10 @@
       <publishTime>03/23/2021 14:14:38</publishTime>
     </File>
     <File Include="bin/WebTM.dll">
-      <publishTime>07/01/2021 09:38:32</publishTime>
+      <publishTime>07/02/2021 14:43:48</publishTime>
     </File>
     <File Include="bin/WebTM.pdb">
-      <publishTime>07/01/2021 09:38:32</publishTime>
+      <publishTime>07/02/2021 14:43:48</publishTime>
     </File>
     <File Include="layuiadmin/config.js">
       <publishTime>03/23/2021 14:14:38</publishTime>
@@ -812,6 +812,9 @@
     <File Include="views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html">
       <publishTime>04/16/2021 14:21:33</publishTime>
     </File>
+    <File Include="views/Baseset/鍩虹璧勬枡/WMSBarCodeDetailsList.html">
+      <publishTime>07/02/2021 14:43:34</publishTime>
+    </File>
     <File Include="views/component/anim/index.html">
       <publishTime>03/23/2021 14:14:38</publishTime>
     </File>
@@ -1044,7 +1047,7 @@
       <publishTime>03/23/2021 14:14:38</publishTime>
     </File>
     <File Include="views/index.html">
-      <publishTime>07/01/2021 09:38:09</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/index_Mobile.html">
       <publishTime>07/01/2021 09:39:42</publishTime>
@@ -1197,7 +1200,7 @@
       <publishTime>03/23/2021 14:14:38</publishTime>
     </File>
     <File Include="views/user/login.html">
-      <publishTime>05/28/2021 08:53:29</publishTime>
+      <publishTime>07/02/2021 09:44:36</publishTime>
     </File>
     <File Include="views/user/reg.html">
       <publishTime>03/23/2021 14:14:38</publishTime>
@@ -1245,7 +1248,7 @@
       <publishTime>04/16/2021 14:21:33</publishTime>
     </File>
     <File Include="views/浠撳瓨绠$悊/浠撳簱璋冩嫧/Kf_MoveStockBill_Fast.html">
-      <publishTime>03/29/2021 10:47:09</publishTime>
+      <publishTime>07/02/2021 14:30:00</publishTime>
     </File>
     <File Include="views/浠撳瓨绠$悊/浠撳簱璋冩嫧/Kf_MoveStockBill_FastList.html">
       <publishTime>03/29/2021 10:47:31</publishTime>
@@ -1311,13 +1314,19 @@
       <publishTime>05/29/2021 15:26:46</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Department.html">
-      <publishTime>05/10/2021 08:54:50</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Department_Edit.html">
       <publishTime>05/06/2021 17:40:06</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee.html">
       <publishTime>05/29/2021 15:26:46</publishTime>
+    </File>
+    <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EquipMent.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EquipMent_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Material.html">
       <publishTime>03/29/2021 10:48:22</publishTime>
@@ -1460,8 +1469,14 @@
     <File Include="views/鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html">
       <publishTime>03/29/2021 10:48:22</publishTime>
     </File>
+    <File Include="views/鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
     <File Include="views/鍩虹璧勬枡/閿�鍞熀纭�璧勬枡/Gy_Customer.html">
-      <publishTime>03/29/2021 10:48:23</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/鍩虹璧勬枡/閿�鍞熀纭�璧勬枡/Gy_Customer_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/鎶ュ伐骞冲彴/ReportPlatform.html">
       <publishTime>07/01/2021 13:15:12</publishTime>
@@ -1530,7 +1545,7 @@
       <publishTime>04/08/2021 09:14:52</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_Mould.html">
-      <publishTime>04/08/2021 09:14:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Kf_ProductInBillList.html">
       <publishTime>04/16/2021 14:21:33</publishTime>
@@ -1620,7 +1635,7 @@
       <publishTime>04/08/2021 09:14:52</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_Mould.html">
-      <publishTime>04/08/2021 09:14:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/妯℃不鍏风鐞�/妯℃不鍏风鐞�/Kf_ProductInBillList.html">
       <publishTime>04/16/2021 14:21:33</publishTime>
@@ -1824,16 +1839,25 @@
       <publishTime>06/22/2021 14:19:35</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/浼氳鏈熼棿/Xt_AccountPeriodList.html">
-      <publishTime>04/29/2021 16:21:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/绯荤粺绠$悊/浼氳鏈熼棿/Xt_AccountPeriod_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/鍗曟嵁绫诲瀷/Xt_BillTypeList.html">
-      <publishTime>04/29/2021 16:21:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/绯荤粺绠$悊/鍗曟嵁绫诲瀷/Xt_BillType_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/鏃ュ織绠$悊/Xt_SystemLogList.html">
       <publishTime>04/29/2021 16:21:52</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/妯″潡绠$悊/Xt_XtgnbList.html">
-      <publishTime>04/29/2021 16:21:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/绯荤粺绠$悊/妯″潡绠$悊/Xt_Xtgnb_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/鐢ㄦ埛绠$悊/Xt_UserGroupList.html">
       <publishTime>04/29/2021 16:21:52</publishTime>
@@ -1842,7 +1866,10 @@
       <publishTime>04/29/2021 16:21:52</publishTime>
     </File>
     <File Include="views/绯荤粺绠$悊/绯荤粺鍙傛暟绠$悊/Xt_SystemParameterList.html">
-      <publishTime>04/29/2021 16:21:52</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
+    </File>
+    <File Include="views/绯荤粺绠$悊/绯荤粺鍙傛暟绠$悊/Xt_SystemParameter_Edit.html">
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/缁勮鍗�/Sc_AssemblyBill_Fast.html">
       <publishTime>03/29/2021 10:48:24</publishTime>
@@ -1911,10 +1938,10 @@
       <publishTime>06/09/2021 13:43:30</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/浜у搧鍏ュ簱妫�楠屽崟/QC_LastPieceCheckBill.html">
-      <publishTime>05/24/2021 10:08:23</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/浜у搧鍏ュ簱妫�楠屽崟/QC_LastPieceCheckBillList.html">
-      <publishTime>05/24/2021 10:08:23</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/鍑哄巶妫�楠屽崟/QC_OutCompCheckBillList.html">
       <publishTime>05/24/2021 10:08:23</publishTime>
@@ -1995,10 +2022,10 @@
       <publishTime>06/09/2021 13:43:30</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/浜у搧鍏ュ簱妫�楠屽崟/QC_LastPieceCheckBill.html">
-      <publishTime>05/24/2021 10:08:23</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/浜у搧鍏ュ簱妫�楠屽崟/QC_LastPieceCheckBillList.html">
-      <publishTime>05/24/2021 10:08:23</publishTime>
+      <publishTime>07/02/2021 09:07:44</publishTime>
     </File>
     <File Include="views/璐ㄩ噺绠$悊/鍑哄巶妫�楠屽崟/QC_OutCompCheckBillList.html">
       <publishTime>05/24/2021 10:08:23</publishTime>
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 004888d..00c918c 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -78,6 +78,7 @@
     <Content Include="layuiadmin\myicon\杞﹂棿绠$悊.svg" />
     <Content Include="layuiadmin\treeTable.js" />
     <Content Include="views\Baseset\HBarPlanPrint.html" />
+    <Content Include="views\Baseset\鍩虹璧勬枡\WMSBarCodeDetailsList.html" />
     <Content Include="views\Baseset\鍩虹璧勬枡\Gy_RepairList.html" />
     <Content Include="views\Baseset\鍩虹璧勬枡\Gy_ScrapReasonList.html" />
     <Content Include="views\Baseset\鍩虹璧勬枡\Gy_CheckItemList.html" />
@@ -493,7 +494,6 @@
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Currency.html" />
     <Content Include="views\鍩虹璧勬枡\閲囪喘鍩虹璧勬枡\Gy_Supplier_Edit.html" />
     <Content Include="views\鍩虹璧勬枡\閿�鍞熀纭�璧勬枡\Gy_Customer_Edit.html" />
-    <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Gy_Unit - 澶嶅埗.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Add_Edit_Gy_WorkCenter.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\test.html" />
     <Content Include="views\鍩虹璧勬枡\鍏敤鍩虹璧勬枡\Xt_ORGANIZATIONSList.html" />
@@ -580,6 +580,24 @@
     <Content Include="views\绯荤粺绠$悊\绯荤粺鍙傛暟绠$悊\Xt_SystemParameter_Edit.html" />
     <Content Include="views\绯荤粺绠$悊\绯荤粺鍙傛暟绠$悊\Xt_SystemParameterList.html" />
     <Content Include="views\璁″垝绠$悊\宸ヨ壓璺嚎\Gy_RoutingBill.html" />
+    <Content Include="views\璁惧绠$悊\Sb_Add_EqpConkBookBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_Add_EqpMaintenanceBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_Add_EqpRepairCheckBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EqpConkBookBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EqpMaintenanceBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EqpMaintenanceBillList_PDA.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EqpRepairCheckBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipDotCheckBillEdit.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipDotCheckBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipDotCheckBillList_PDA.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipDotCheckPlanBillEdit.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipDotCheckPlanBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipMaintainBillEdit.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipMaintainBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipMaintainBillList_PDA.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipMaintainPlanBillEdit.html" />
+    <Content Include="views\璁惧绠$悊\Sb_EquipMaintainPlanBillList.html" />
+    <Content Include="views\璁惧绠$悊\Sc_Add_MouldDotCheckBillList.html" />
     <Content Include="views\璐ㄩ噺绠$悊\宸℃璁板綍鍗昞QC_Add_Edit_PatrolProcCheckBill.html" />
     <Content Include="views\璐ㄩ噺绠$悊\浜у搧鍏ュ簱妫�楠屽崟\QC_LastPieceCheckBill.html" />
     <Content Include="views\璐ㄩ噺绠$悊\浜у搧鍏ュ簱妫�楠屽崟\QC_LastPieceCheckBillList.html" />
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index 3f575be..d53c968 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -1,7 +1,7 @@
 锘縡unction GetWEBURL() {
     //var WEBURL = "http://192.168.16.80:8011/";          //鍔炲叕瀹ゆ湇鍔″櫒
     //var WEBURL = "http://localhost:8081/SWEAPI/";       //ch鏈湴
-    var WEBURL = "http://localhost:8085/API/";   //zgq鏈湴
+    //var WEBURL = "http://localhost:8085/API/";   //zgq鏈湴
     //var WEBURL = "http://192.168.2.21:8081/lubaoWebAPI/";//鐜嬫案娉㈡湰鍦伴厤缃紝璇峰嬁鏇存敼
      //var WEBURL = "http://101.37.171.70/API/";   //鍏徃鏈嶅姟鍣�
     //var WEBURL = "http://localhost:8080/API/";   //棰滄檽鍐涙湰鍦伴厤缃�
@@ -9,6 +9,7 @@
     //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //鏉ㄩ湶鏈湴閰嶇疆
     //var WEBURL = "http://10.1.4.154/API/";   //姹熶赴瀹㈡埛
     //var WEBURL = "http://10.1.4.155/API/";   //姹熶赴瀹㈡埛NEW
+    var WEBURL = "http://47.96.97.237/API/";   //zgq鏈湴
     return WEBURL
 }
 
diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html"
new file mode 100644
index 0000000..c289781
--- /dev/null
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/WMSBarCodeDetailsList.html"
@@ -0,0 +1,168 @@
+锘�<!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 type="text/css">
+        .layui-form-label {
+            width: 85px;
+        }
+    </style>
+</head>
+<body>
+
+    <div id="layout1" class="layui-fluid">
+        <div class="layui-row layui-col-space15">
+            <div class="layui-col-md12">
+                <div class="layui-card">
+                    <div class="layui-card-body" style="padding: 15px;">
+                        <form class="layui-form" action="" lay-filter="component-form-group">
+                            <div class="layui-form-item">
+                                <div class="layui-inline">
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">杩斿洖</button>
+                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="Exit">閫�鍑�</button>
+                                </div>
+                            </div>
+                        </form>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+    <table class="layui-hide" id="mainTable"></table>
+    <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
+                , laydate = layui.laydate
+                , element = layui.element;
+
+            //鑾峰彇鍙傛暟
+            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 HInterID = params[params[0]];
+            //var HBillType = params[params[2]];
+            var HInterID = 367;
+            var HBillType = "3789";
+            form.on('submit(FH)', function () {
+                var checkStatus = table.checkStatus('ck-table')
+                    , data = checkStatus.data;
+                parent.GetHKeeperValue(data);
+                var index = parent.layer.getFrameIndex(window.name);
+                parent.layer.close(index);
+            });
+            form.on('submit(Exit)', function () {
+                var index = parent.layer.getFrameIndex(window.name);
+                parent.layer.close(index);
+            });
+            RoadQuery(HInterID, HBillType);
+            table.render({
+                elem: '#mainTable'
+                // , url: '/demo/table/user/'
+                , toolbar: '#toolbarDemo'
+                , data: []
+                , cellMinWidth: 80 //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
+                , cols: [[
+                    { type: 'radio' }
+                    , { field: 'HInterID', width: 150, title: 'HInterID', hide: true }//, hide: true
+                    , { field: 'HBillType', width: 150, title: '鍗曟嵁绫诲瀷' }
+                    , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
+                    , { field: 'HMaterNumber', width: 150, title: '浜у搧缂栫爜' }
+                    , { field: 'HMaterName', width: 150, title: '浜у搧鍚嶇О' }
+                    , { field: 'HMaterModel', width: 150, title: '瑙勬牸鍨嬪彿' }
+                    , { field: 'HQty', width: 150, title: '鏁伴噺' }
+                    , { field: 'HQtyMust', width: 150, title: '搴旀敹鏁伴噺' }
+                    , { field: 'HBatchNo', width: 150, title: '鎵规' }
+                    , { field: 'HPieceQty', width: 150, title: '浠舵暟' }
+                    , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' }
+                ]]
+                , page: true
+            });
+            ///鍔犺浇鏄剧ず鏁版嵁
+            function RoadQuery(HInterID, HBillType) {
+                $.ajax({
+                    type: "get",
+                    url: GetWEBURL() + "/Web/GetWMSBarCodeDetailsList",
+                    async: true,
+                    data: { "HInterID": HInterID, "HBillType": HBillType },
+                    success: function (result) {
+                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+                        table.reload('mainTable', {
+                            data: ajaxReturnData
+                            , height: 'full-10'
+                            , loading: false
+                            , done: function (index, res) {
+
+                            }
+                        });
+                    },
+                    error: function (result) {
+                        console.log(result);
+                        //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
+                    }
+                });
+            };
+
+            //琛屽唴浜嬩欢
+            table.on('tool(mainTable)', function (obj) {
+                var data = obj.data;
+                if (obj.event === 'del') {
+                    var _obj = obj;
+                    $.ajax({
+                        type: "get",
+                        url: GetWEBURL() + "/Web/GetWMSBarCodeDetailsList",
+                        async: true,
+                        data: { "HInterID": HInterID, "HBillType": HBillType },
+                        success: function (result) {
+                            ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
+                            table.reload('mainTable', {
+                                data: ajaxReturnData
+                                , height: 'full-10'
+                                , loading: false
+                                , done: function (index, res) {
+
+                                }
+                            });
+                        },
+                        error: function (result) {
+                            console.log(result);
+                            //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
+                        }
+                    });
+                }
+            });
+            //浠ヤ笂涓簂ayui妯″潡
+        });
+    </script>
+</body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_Fast.html" "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_Fast.html"
index e781039..237c0d8 100644
--- "a/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_Fast.html"
+++ "b/WebTM/views/\344\273\223\345\255\230\347\256\241\347\220\206/\344\273\223\345\272\223\350\260\203\346\213\250/Kf_MoveStockBill_Fast.html"
@@ -34,7 +34,7 @@
                             <li lay-id="2" style="padding:1px;">琛ㄥご淇℃伅</li>
                             <li lay-id="3" style="padding:1px;">鏄庣粏淇℃伅</li>
                             <li lay-id="4" style="padding:1px;">搴撳瓨淇℃伅</li>
-                            <li lay-id="5" style="padding:1px;min-width: 35px;"">姹囨��</li>
+                            <li lay-id="5" style="padding:1px;min-width: 35px;" ">姹囨��</li>
                         </ul>
                         <div class="layui-tab-content">
                             <!--閫夋嫨婧愬崟-->
@@ -49,9 +49,9 @@
                                                 <option value="-1">鎵嬪伐褰曞叆</option>
                                                 <option value="3720">鐢熶骇浠诲姟鍗�-鎶曟枡</option>
                                                 <!--<option value="1201">濮斿璁㈠崟-鎶曟枡</option>
-                                <option value="1402">鍙戣揣閫氱煡鍗�</option>
-                                <option value="1234">涓嬫灦閫氱煡鍗�</option>
-                                <option value="1243">璋冩嫧鐢宠鍗�</option>-->
+                                                <option value="1402">鍙戣揣閫氱煡鍗�</option>
+                                                <option value="1234">涓嬫灦閫氱煡鍗�</option>
+                                                <option value="1243">璋冩嫧鐢宠鍗�</option>-->
                                             </select>
                                             <!--<input type="text" name="cmbSourceType" id="cmbSourceType" lay-verify="cmbSourceType" autocomplete="off" class="layui-input">-->
                                         </div>
@@ -208,15 +208,15 @@
                                     </div>
                                 </div>
                                 <!--<div class="layui-form-item" >
-                    <label class="layui-form-label" style="width:60px;padding-left:0px;">璋冩嫧绫诲瀷</label>
-                    <div class="layui-input-inline">
-                        <select name=" HBillType" id="HBillType">
-                            <option value="">浠撳簱璋冩嫧</option>
-                            <option value="">棰嗘枡璋冩嫧</option>
-                        </select>
-                        <input type="text" name="cmbSourceType" id="cmbSourceType" lay-verify="cmbSourceType" autocomplete="off" class="layui-input">
-                    </div>
-                </div>-->
+                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">璋冩嫧绫诲瀷</label>
+                                    <div class="layui-input-inline">
+                                        <select name=" HBillType" id="HBillType">
+                                            <option value="">浠撳簱璋冩嫧</option>
+                                            <option value="">棰嗘枡璋冩嫧</option>
+                                        </select>
+                                        <input type="text" name="cmbSourceType" id="cmbSourceType" lay-verify="cmbSourceType" autocomplete="off" class="layui-input">
+                                    </div>
+                                </div>-->
                             </div>
                             <!--鏄庣粏淇℃伅-->
                             <div class="layui-tab-item">
@@ -268,275 +268,279 @@
             </div>
         </div>
     </div>
+    <script type="text/html" id="barDemo">
+        <a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</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;
-        $("#HBarCode").focus();
+        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;
+            $("#HBarCode").focus();
 
-        //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new
-        $("#HSCWHID").val(sessionStorage["HWHID"]);
-        $("#HSCWHNAME").val(sessionStorage["HWHName"]);
-        $("#HOutStockPlaceID").val(sessionStorage["HSPID"]);
-        $("#HOutStockPlaceName").val(sessionStorage["HSPName"]);
-        $("#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
+            $("#HSCWHID").val(sessionStorage["HWHID"]);
+            $("#HSCWHNAME").val(sessionStorage["HWHName"]);
+            $("#HOutStockPlaceID").val(sessionStorage["HSPID"]);
+            $("#HOutStockPlaceName").val(sessionStorage["HSPName"]);
+            $("#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();
 
-        //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
-        if (sessionStorage.login != "login") {
-            layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
-                icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
-            }, function () { window.location.href = "../../user/login.html"; });
-        }
-
-        //鑾峰彇鍙傛暟
-        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];
+            //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+            if (sessionStorage.login != "login") {
+                layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+                    icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+                }, function () { window.location.href = "../../user/login.html"; });
             }
-            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);
+
+            //鑾峰彇鍙傛暟
+            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);
+                    }
+                })
+            }
 
 
-        function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋
-        {
-            table.render({
-                elem: '#wl-table'
+            function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋
+            {
+                table.render({
+                    elem: '#wl-table'
                     , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                     , toolbar: '#toolbarDemo'
                     , where: { HBillID: linterid, HBillType: '1207', sWhere: '' }
                     , cols: [[
                         { type: 'radio' }
-                    , { field: 'HQty', title: '鏁伴噺', width: 150 }
-                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
-                    , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
-                    , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
-                    , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
-                    , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
-                    , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
-                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
-                    , { field: 'HBatchNo', title: '鎵规', width: 150 }
-                    , { field: 'HMaterID', title: '鐗╂枡鍐呯爜', width: 150, hide: true }
-                    , { field: 'HAuxPropID', title: '', width: 150, hide: true }
-                    , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 150, hide: true }
-                    ]] 
+                        , { field: 'HQty', title: '鏁伴噺', width: 150 }
+                        , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                        , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                        , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
+                        , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                        , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                        , { field: 'HMaterID', title: '鐗╂枡鍐呯爜', width: 150, hide: true }
+                        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
+                        , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 150, hide: true }
+                        , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo' }
+                    ]]
                     , height: 500
                     , done: function () {
                         layer.closeAll("loading");
                     }
+                });
+            }
+
+            //鍒ゆ柇鏄惁鏂板
+            if (linterid == null || linterid == 0) {
+                //鑾峰彇鏈�澶у崟鎹彿 new
+                $("#HInterID").val("");
+                $("#HBillNo").val("");
+                $.ajax({
+                    url: GetWEBURL() + "/Web/GetMAXNum",
+                    type: "GET",
+                    data: { "HBillType": '1207' },
+                    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);
+            }
+
+
+            //閫夋嫨璋冨叆浠撳簱
+            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 () {
+                    }
+                })
             });
-        }
 
-        //鍒ゆ柇鏄惁鏂板
-        if (linterid == null || linterid == 0) {
-            //鑾峰彇鏈�澶у崟鎹彿 new
-            $("#HInterID").val("");
-            $("#HBillNo").val(""); 
-            $.ajax({
-                url: GetWEBURL() + "/Web/GetMAXNum",
-                type: "GET",
-                data: { "HBillType": '1207' },
-                success: function (d) {
-                    //console.log(d.data);
-                    $("#HInterID").val(d.data[0].HInterID);
-                    $("#HBillNo").val(d.data[0].HBillNo);
-                }
+            //閫夋嫨璋冨叆浠撲綅
+            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 () {
+                    }
+                })
             });
-        }
-        else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
-            RoadBillMain(linterid);
-            RoadBillSub(linterid);
-        }
 
+            //閫夋嫨璋冨嚭浠撳簱
+            form.on('submit(HSCWHID-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=HSCWHID', 'yes']
+                    , resize: false
+                    , cancel: function () {
+                        //$(".layui-btn").removeClass("layui-btn-disabled");
+                    }
+                })
+            });
 
-        //閫夋嫨璋冨叆浠撳簱
-        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 () {
-                }
-            })
-        });
+            //閫夋嫨璋冨嚭浠撲綅
+            form.on('submit(HOSpID-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=HOSpID', '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 () {
-                }
-            })
-        });
+            //閫夋嫨淇濈
+            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(HSCWHID-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=HSCWHID', '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(HOSpID-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=HOSpID', '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(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(ProductionTeam-BT)', function () {//閫夋嫨鐝粍
+                layer.open({
+                    type: 2
+                    , area: ['60%', '60%']
+                    , title: '鐝粍鍒楄〃'
+                    , shade: 0.6 //閬僵閫忔槑搴�
+                    , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                    , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                    , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_GetProductionTeamList.html', 'yes']
+                    , resize: false
+                    , cancel: function (index, layero) {
+                    }
+                })
+            });
 
-        //閫夋嫨楠屾敹
-        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(ProductionTeam-BT)', function () {//閫夋嫨鐝粍
-            layer.open({
-                type: 2
-                , area: ['60%', '60%']
-                , title: '鐝粍鍒楄〃'
-                , shade: 0.6 //閬僵閫忔槑搴�
-                , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
-                , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_GetProductionTeamList.html', 'yes']
-                , resize: false
-                , cancel: function (index, layero) {
-                }
-            })
-        });
-
-        //缂栬緫
-        form.on('submit(cmdModify)', function () {//缂栬緫
-            var sSubStr = table.cache['wl-table'];
-            //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+            //缂栬緫
+            form.on('submit(cmdModify)', function () {//缂栬緫
+                var sSubStr = table.cache['wl-table'];
+                //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
                 layer.open({
                     type: 2
                     , area: ['100%', '100%']
@@ -550,163 +554,163 @@
                         //$(".layui-btn").removeClass("layui-btn-disabled");
                     }
                 })
-           // }
-        });
+                // }
+            });
 
-        //鍒犻櫎
-        form.on('submit(Delete)', function () {//鍒犻櫎
-            var checkStatus = table.checkStatus('wl-table')
-            , data = checkStatus.data;
-            var sInterID = $('#HInterID').val()
-            var sMaterID = data[0].HMaterID
-            var sBillType = '1207'
-            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: GetWEBURL() + "/MoveStock/Delete_Json",
-                   async: true,
-                   data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
-                   dataType: "json",
-                   success: function (data) {
-                       if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
-                           table.render({
-                               elem: '#wl-table'
-                         , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
-                         , cellMinWidth: 80
-                         , toolbar: '#toolbarDemo'
-                         , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
-                         , cols: [[
-                                { type: 'radio' }
-                                , { field: 'HQty', title: '鏁伴噺', width: 80 }
-                                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 80 }
-                                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
-                                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
-                                , { 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 }
-                                , { field: 'HMaterID', title: '鐗╂枡ID', 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(Cancel)', function () {
-            parent.location.href = "../../../views/index.html"
-            //window.close();//鍏抽棴褰撳墠椤�
-        })
-
-        //鎻愪氦
-        form.on('submit(Saver)', function (data) {//鎻愪氦
-            //debugger;
-            var sMainStr = JSON.stringify(data.field);
-            var sSubStr = table.cache['wl-table'];
-            var sSourceType = '-1'
-            if (AllowLoadData(sSubStr, 'Saver') != false)//闈炵┖楠岃瘉
-            {
-                var index = layer.load(3);
+            //鍒犻櫎
+            form.on('submit(Delete)', function () {//鍒犻櫎
+                var checkStatus = table.checkStatus('wl-table')
+                    , data = checkStatus.data;
+                var sInterID = $('#HInterID').val()
+                var sMaterID = data[0].HMaterID
+                var sBillType = '1207'
+                var sAuxPropID = data[0].HAuxPropID
+                //var sMTONo = data[0].HMTONo
+                var sMTONo = ''
+                var sSourceInterID = data[0].HSourceInterID
+                var sSourceEntryID = data[0].HSourceEntryID
                 $.ajax(
-                {
-                    type: "POST",
-                    url: GetWEBURL() + "/MoveStockBill/set_SaveMoveStockBill_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                    async: true,
-                    data: { "oMain": sMainStr },
-                    dataType: "json",
-                    success: function (data) {
-                        if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
-                            layer.confirm("鐢熸垚璋冩嫧鍗�" + data.Message + $("#HBillNo").val(), {
-                                icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
-                                btn2: function () {
-                                    //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
-                                    //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
-                                    parent.location.href = "../../../views/index.html"
-                                }//鍏抽棴
-                            }, function () { window.location.reload(); });//鏂板
+                    {
+                        type: "Get",
+                        url: GetWEBURL() + "/MoveStock/Delete_Json",
+                        async: true,
+                        data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
+                        dataType: "json",
+                        success: function (data) {
+                            if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                table.render({
+                                    elem: '#wl-table'
+                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
+                                    , cellMinWidth: 80
+                                    , toolbar: '#toolbarDemo'
+                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
+                                    , cols: [[
+                                        { type: 'radio' }
+                                        , { field: 'HQty', title: '鏁伴噺', width: 80 }
+                                        , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 80 }
+                                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+                                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 100 }
+                                        , { 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 }
+                                        , { field: 'HMaterID', title: '鐗╂枡ID', 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: "娓╅Θ鎻愮ず" });
                         }
-                        else {
-                            layer.close(index);
-                            layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        }
-                    },
-                    error: function (err) {
-                        layer.close(index);
-                        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 SCWhID = $("#HSCWHID").val()//璋冨嚭浠撳簱
-            var HSPID = $("#HStockPlaceID").val()//璋冨叆浠撲綅
-            var HWHID = $("#HWHID").val()//璋冨叆浠撳簱
-            var SCSPID = $("#HOutStockPlaceID").val()//璋冨嚭浠撲綅
-            if (sQty == "") {
-                sQty = 0;
-            }
-            if (event.keyCode == 13) {
-                if (sBarCode != "") {
-                    $('#HBarCode').val("");
-                }
-                if (sQty != "") {
-                    $('#HQty').val("");
-                }
-                if ($("#HWHNAME").val() == '') {
-                    layer.msg("璋冨叆浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //閫�鍑烘寜閽�
+            form.on('submit(Cancel)', function () {
+                parent.location.href = "../../../views/index.html"
+                //window.close();//鍏抽棴褰撳墠椤�
+            })
+
+            //鎻愪氦
+            form.on('submit(Saver)', function (data) {//鎻愪氦
+                //debugger;
+                var sMainStr = JSON.stringify(data.field);
+                var sSubStr = table.cache['wl-table'];
+                var sSourceType = '-1'
+                if (AllowLoadData(sSubStr, 'Saver') != false)//闈炵┖楠岃瘉
+                {
+                    var index = layer.load(3);
+                    $.ajax(
+                        {
+                            type: "POST",
+                            url: GetWEBURL() + "/MoveStockBill/set_SaveMoveStockBill_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                            async: true,
+                            data: { "oMain": sMainStr },
+                            dataType: "json",
+                            success: function (data) {
+                                if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+                                    layer.confirm("鐢熸垚璋冩嫧鍗�" + data.Message + $("#HBillNo").val(), {
+                                        icon: 1, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['鏂板'],
+                                        btn2: function () {
+                                            //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
+                                            //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
+                                            parent.location.href = "../../../views/index.html"
+                                        }//鍏抽棴
+                                    }, function () { window.location.reload(); });//鏂板
+                                }
+                                else {
+                                    layer.close(index);
+                                    layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                }
+                            },
+                            error: function (err) {
+                                layer.close(index);
+                                layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                        });
                     return false;
                 }
-                //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) {
-                //    layer.msg("璋冨叆浠撳簱銆佷粨浣嶄笉鑳藉拰璋冨嚭浠撳簱銆佷粨浣嶉兘鐩稿悓!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                //    return false;
-                //}
-                //if ($("#HSCWHNAME").val() == '') {
-                //    layer.msg("璋冨嚭浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                //    return false;
-                //}
-                if ($("#HBillNo").val() == '') {
-                    layer.msg("閿欒鐨勫崟鎹彿!", { 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';
+                    }
+                    //}
                 }
-                if ($("#HInterID").val() == '') {
-                    layer.msg("閿欒鐨勫唴鐮�!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                    return false;
+            });
+
+            //鎵潯鐮�
+            $('#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 SCWhID = $("#HSCWHID").val()//璋冨嚭浠撳簱
+                var HSPID = $("#HStockPlaceID").val()//璋冨叆浠撲綅
+                var HWHID = $("#HWHID").val()//璋冨叆浠撳簱
+                var SCSPID = $("#HOutStockPlaceID").val()//璋冨嚭浠撲綅
+                if (sQty == "") {
+                    sQty = 0;
                 }
+                if (event.keyCode == 13) {
+                    if (sBarCode != "") {
+                        $('#HBarCode').val("");
+                    }
+                    if (sQty != "") {
+                        $('#HQty').val("");
+                    }
+                    if ($("#HWHNAME").val() == '') {
+                        layer.msg("璋冨叆浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        return false;
+                    }
+                    //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) {
+                    //    layer.msg("璋冨叆浠撳簱銆佷粨浣嶄笉鑳藉拰璋冨嚭浠撳簱銆佷粨浣嶉兘鐩稿悓!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    //    return false;
+                    //}
+                    //if ($("#HSCWHNAME").val() == '') {
+                    //    layer.msg("璋冨嚭浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    //    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;
+                    }
                     $.ajax({
                         url: GetWEBURL() + "/MoveStockBill/get_InfoByBarCode_Source_Json",
                         type: "GET",
@@ -730,20 +734,20 @@
                                     , totalRow: true
                                     , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                     , cols: [[
-                                      { type: 'radio', totalRowText: '鍚堣' }
-                                    , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true }
-                                    , { field: '浠舵暟', title: '浠舵暟', width: 150, totalRow: true }
-                                    , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
-                                    , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
-                                    , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
-                                    , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
-                                    , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
-                                    , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
-                                    , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
-                                    , { field: 'HBatchNo', title: '鎵规', width: 150 }
-                                    , { field: 'HMaterID', title: '鐗╂枡鍐呯爜', width: 150, hide: true }
-                                    , { field: 'HAuxPropID', title: '', width: 150, hide: true }
-                                    , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 150, hide: true }
+                                        { type: 'radio', totalRowText: '鍚堣' }
+                                        , { field: 'HQty', title: '鏁伴噺', width: 150, totalRow: true }
+                                        , { field: '浠舵暟', title: '浠舵暟', width: 150, totalRow: true }
+                                        , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                                        , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                                        , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
+                                        , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                                        , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                                        , { field: 'HMaterID', title: '鐗╂枡鍐呯爜', width: 150, hide: true }
+                                        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
+                                        , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 150, hide: true }
                                     ]]
                                     // , data: [linterid]
                                     // , page: true
@@ -766,274 +770,301 @@
                         //    alert("寮傚父瀵硅薄errorThrown: " + errorThrown);
                         //}
                     });
-                } 
-        });
+                }
+            });
 
-        //鎵簮鍗�
-        $('#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) {
-                $.ajax({
-                    url: GetWEBURL() + "/MoveStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
-                    type: "GET",
-                    data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
-                    success: function (result) {
-                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            layer.load(3);
-                            element.tabChange('tab-MoveStockBill', '2');
-                            table.render({
-                                elem: '#wl-table'
-                              , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
-                              , toolbar: '#toolbarDemo'
-                              , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
-                              , cols: [[
-                                  { type: 'radio' }
-                                , { field: 'HQty', title: '鏁伴噺', width: 150 }
-                                , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
-                                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
-                                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
-                                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
-                                , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
-                                , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
-                                , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
-                                , { field: 'HBatchNo', title: '鎵规', width: 150 }
-                              ]]
-                                // , data: [linterid]
-                                // , page: true
-                              , height: 500
-                              , done: function () {
-                                  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) {
+                    $.ajax({
+                        url: GetWEBURL() + "/MoveStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
+                        type: "GET",
+                        data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+                        success: function (result) {
+                            if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                layer.load(3);
+                                element.tabChange('tab-MoveStockBill', '2');
+                                table.render({
+                                    elem: '#wl-table'
+                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
+                                    , toolbar: '#toolbarDemo'
+                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
+                                    , cols: [[
+                                        { type: 'radio' }
+                                        , { field: 'HQty', title: '鏁伴噺', width: 150 }
+                                        , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 150 }
+                                        , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 150 }
+                                        , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+                                        , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 150 }
+                                        , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 150 }
+                                        , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 150 }
+                                        , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 150 }
+                                        , { field: 'HBatchNo', title: '鎵规', width: 150 }
+                                    ]]
+                                    // , data: [linterid]
+                                    // , page: true
+                                    , height: 500
+                                    , done: function () {
+                                        layer.closeAll("loading");
+                                    }
+                                });
+                            }
+                            else {
+                                layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                            layer.closeAll("loading");
+                        }
+                    });
+                }
+            });
+
+            $('#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 {
+                                layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                            layer.closeAll("loading");
+                        }
+                    });
+                }
+            });
+
+            $('#HOutStockPlaceName').on('keydown', function (event) {      //鎵粨浣�
+                var HBarCode = $('#HOutStockPlaceName').val()
+                if (event.keyCode == 13) {
+                    //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
+                    $.ajax({
+                        url: GetWEBURL() + "/LookingFor/getSpName_Json",
+                        type: "GET",
+                        data: { "HBarCode": HBarCode },
+                        success: function (result) {
+                            if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                                $("#HOutStockPlaceName").val(result.data[0].HName);
+                                $("#HOutStockPlaceID").val(result.data[0].HItemID);
+                                $("#HSCWHNAME").val(result.data[0].HWhName);
+                                $("#HSCWHID").val(result.data[0].HWHID);
+                                element.tabChange('tab-POStockInBill', '2');
+                            }
+                            else {
+                                layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            }
+                            layer.closeAll("loading");
+                        }
+                    });
+                }
+            });
+
+            table.render({
+                elem: '#mx-table'
+                // , url: GetWEBURL() + '/MoveStockBill/GetHBarCodeShowBillSub'
+                //, toolbar: '#toolbarDemo'
+                // , where: { sMsg: linterid, sMsg2: lentryid }
+                , cols: [[
+                    , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
+                ]]
+                , page: true
+                , height: 500
+                , done: function () {
+                }
+            });
+
+            //琛屽唴浜嬩欢
+            table.on('tool(mainTable)', function (obj) {
+                var data = obj.data;
+                var rowIndex = $(obj.tr).attr("data-index");
+                if (obj.event === 'edit') {
+                    var _obj = obj;
+                    layer.open({
+                        type: 2
+                        , area: ['80%', '80%']
+                        , title: '鎵爜璇︽儏鍒楄〃'
+                        , shade: 0.6 
+                        , maxmin: true 
+                        , anim: 0
+                        , content: ['../../../views/Baseset/鍩虹璧勬枡/WMSBarCodeDetailsList.html?HInterID=' + $("#HInterID").val() + '&HBillType=1234', 'yes']
+                        , resize: false
+                        , end: function () {
+                            _obj.update({
+                                渚涘簲鍟�: subSupName
+                                , HSupID: subSupID
+                                , 渚涘簲鍟嗕唬鐮�: subSupNumber
                             });
                         }
-                        else {
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        }
-                        layer.closeAll("loading");
-                    }
-                });
-            }
-        });
-
-        $('#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 {
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        }
-                        layer.closeAll("loading");
-                    }
-                });
-            }
-        });
-
-        $('#HOutStockPlaceName').on('keydown', function (event) {      //鎵粨浣�
-            var HBarCode = $('#HOutStockPlaceName').val()
-            if (event.keyCode == 13) {
-                //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁    new
-                $.ajax({
-                    url: GetWEBURL() + "/LookingFor/getSpName_Json",
-                    type: "GET",
-                    data: { "HBarCode": HBarCode },
-                    success: function (result) {
-                        if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            $("#HOutStockPlaceName").val(result.data[0].HName);
-                            $("#HOutStockPlaceID").val(result.data[0].HItemID);
-                            $("#HSCWHNAME").val(result.data[0].HWhName);
-                            $("#HSCWHID").val(result.data[0].HWHID);
-                            element.tabChange('tab-POStockInBill', '2');
-                        }
-                        else {
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        }
-                        layer.closeAll("loading");
-                    }
-                });
-            }
-        });
-
-        table.render({
-            elem: '#mx-table'
-            // , url: GetWEBURL() + '/MoveStockBill/GetHBarCodeShowBillSub'
-            //, toolbar: '#toolbarDemo'
-            // , where: { sMsg: linterid, sMsg2: lentryid }
-         , cols: [[
-           , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
-         ]]
-         , page: true
-         , height: 500
-         , done: function () {
-         }
-        });
-    });
-    //娓呯┖琛ㄥご
-    //function f_ClearTitle() {
-
-    //    $("#HBarCode").val("");
-    //    $("#HSpName").val("");
-    //    $("#HSpID").val("0");
-    //    $("#HQty").val("0");
-    //    $("#HSourceBillNo").val("");
-    //    $("#HWHNAME").val("");
-    //    $("#HWHID").val("0");
-    //    $("#HSCWHNAME").val("");
-    //    $("#HSCWHID").val("0");
-    //    $("#HSupName").val("");
-    //    $("#HSupID").val("0");
-    //    $("#HKeeper").val("");
-    //    $("#HKeeperID").val("0");
-    //    $("#HSecManager").val("0");
-    //    $("#HSecManagerID").val("");
-    //    $("#HDeptName").val("");
-    //    $("#HDeptID").val("0");
-    //    $("#HBillNo").val("");
-    //    $("#HInterID").val("0");
-    //}
-    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 GetHSCWHNAMEValue(obj)  //杩斿洖璋冨嚭浠撳簱
-    {
-        $("#HSCWHNAME").val(obj[0].HName);
-        $("#HSCWHID").val(obj[0].HItemID);
-    }
-    function GetHOutStockPlaceIDValue(obj) {  //杩斿洖璋冨嚭浠撲綅
-        $("#HOutStockPlaceName").val(obj[0].HName);
-        $("#HOutStockPlaceID").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 GetProductionTeamValue(obj) {   //杩斿洖鐝粍
-        if (obj.length==0) {
-            layer.msg("璇峰厛閫夋嫨鐝粍", { index: 0 });
-        } else {
-            $("#HGroupName").val(obj[0].鐝粍);
-            $("#HGroupID").val(obj[0].HItemID);
-            layer.closeAll();
-        }
-    }
-    //function Get_CheckWhAndSP(sInterID, sHBillType, sBarCode, sHWHID, sHSPID) {   //杩斿洖閮ㄩ棬
-    //    $.ajax({ 
-    //        type: "GET",
-    //        data: { "sHInterID": sInterID, "sHBillType": sHBillType, "sBarCode": sBarCode, "sHWHID": sHWHID, "sHSPID": sHSPID },
-    //        success: function (result) {
-    //            if(result.count==1)
-    //            {
-    //               // layer.msg(result.Message, { icon: 1 });
-    //                return true;
-    //            }
-    //            else
-    //            {
-    //                layer.msg(result.Message, { icon: 5 });
-    //                return false;
-    //            }
-    //        }
-    //    })
-    //}
-    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', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-        //    return false;
-        //}
-        if ($("#HWHNAME").val() == '') {
-            layer.msg("璋冨叆浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-            return false;
-        }
-        //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) {
-        //    layer.msg("璋冨叆浠撳簱銆佷粨浣嶄笉鑳藉拰璋冨嚭浠撳簱銆佷粨浣嶉兘鐩稿悓!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-        //    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 (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', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                            return false;
-                        }
-                    }
+                    })
                 }
-                //for (var i = 0; i <= sSubStr.length - 1; i++) {   //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
-                //    if (parseFloat(sSubStr[i].HQty) == 0) {
-                //        layer.msg("澶栬喘鍏ュ簱璁板綍鏈壂鐮侊紒", { icon: 5 });
-                //        return false;
-                //    }
-                //}
+            });
+
+
+            //浠ヤ笂涓簂ayui妯″潡
+        });
+        //娓呯┖琛ㄥご
+        //function f_ClearTitle() {
+
+        //    $("#HBarCode").val("");
+        //    $("#HSpName").val("");
+        //    $("#HSpID").val("0");
+        //    $("#HQty").val("0");
+        //    $("#HSourceBillNo").val("");
+        //    $("#HWHNAME").val("");
+        //    $("#HWHID").val("0");
+        //    $("#HSCWHNAME").val("");
+        //    $("#HSCWHID").val("0");
+        //    $("#HSupName").val("");
+        //    $("#HSupID").val("0");
+        //    $("#HKeeper").val("");
+        //    $("#HKeeperID").val("0");
+        //    $("#HSecManager").val("0");
+        //    $("#HSecManagerID").val("");
+        //    $("#HDeptName").val("");
+        //    $("#HDeptID").val("0");
+        //    $("#HBillNo").val("");
+        //    $("#HInterID").val("0");
+        //}
+        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 GetHSCWHNAMEValue(obj)  //杩斿洖璋冨嚭浠撳簱
+        {
+            $("#HSCWHNAME").val(obj[0].HName);
+            $("#HSCWHID").val(obj[0].HItemID);
+        }
+        function GetHOutStockPlaceIDValue(obj) {  //杩斿洖璋冨嚭浠撲綅
+            $("#HOutStockPlaceName").val(obj[0].HName);
+            $("#HOutStockPlaceID").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 GetProductionTeamValue(obj) {   //杩斿洖鐝粍
+            if (obj.length == 0) {
+                layer.msg("璇峰厛閫夋嫨鐝粍", { index: 0 });
+            } else {
+                $("#HGroupName").val(obj[0].鐝粍);
+                $("#HGroupID").val(obj[0].HItemID);
+                layer.closeAll();
             }
         }
-        else {
-            return true;
+        //function Get_CheckWhAndSP(sInterID, sHBillType, sBarCode, sHWHID, sHSPID) {   //杩斿洖閮ㄩ棬
+        //    $.ajax({
+        //        type: "GET",
+        //        data: { "sHInterID": sInterID, "sHBillType": sHBillType, "sBarCode": sBarCode, "sHWHID": sHWHID, "sHSPID": sHSPID },
+        //        success: function (result) {
+        //            if(result.count==1)
+        //            {
+        //               // layer.msg(result.Message, { icon: 1 });
+        //                return true;
+        //            }
+        //            else
+        //            {
+        //                layer.msg(result.Message, { icon: 5 });
+        //                return false;
+        //            }
+        //        }
+        //    })
+        //}
+        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', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //    return false;
+            //}
+            if ($("#HWHNAME").val() == '') {
+                layer.msg("璋冨叆浠撳簱娌℃湁閫夋嫨!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                return false;
+            }
+            //if ($("#HWHID").val() == $("#HSCWHID").val() && $("#HStockPlaceID").val() == $("#HOutStockPlaceID").val()) {
+            //    layer.msg("璋冨叆浠撳簱銆佷粨浣嶄笉鑳藉拰璋冨嚭浠撳簱銆佷粨浣嶉兘鐩稿悓!", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+            //    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 (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', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                                return false;
+                            }
+                        }
+                    }
+                    //for (var i = 0; i <= sSubStr.length - 1; i++) {   //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+                    //    if (parseFloat(sSubStr[i].HQty) == 0) {
+                    //        layer.msg("澶栬喘鍏ュ簱璁板綍鏈壂鐮侊紒", { icon: 5 });
+                    //        return false;
+                    //    }
+                    //}
+                }
+            }
+            else {
+                return true;
+            }
         }
-    }
     </script>
 
 </body>

--
Gitblit v1.9.1