From da9ca85fd190a5ebd62b9e1ae43979bcff01112e Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期日, 25 四月 2021 16:20:20 +0800
Subject: [PATCH] 工艺路线
---
WebTM/views/计划管理/工艺路线/Gy_RoutingBill_loser.html | 925 ++++++++++++++
WebTM/Properties/PublishProfiles/LAYUI.pubxml.user | 25
WebTM/views/计划管理/工艺路线/Gy_RoutingBill.html | 2727 +++++++++++++++++++++++++++++++++++++++++++
WebTM/layuiadmin/Scripts/webConfig.js | 5
WebTM/views/index.html | 1
WebTM/WebTM.csproj | 3
6 files changed, 3,676 insertions(+), 10 deletions(-)
diff --git a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
index d1060a8..6875901 100644
--- a/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/LAYUI.pubxml.user
@@ -18,10 +18,10 @@
<publishTime>03/23/2021 14:14:38</publishTime>
</File>
<File Include="bin/WebTM.dll">
- <publishTime>04/22/2021 18:32:43</publishTime>
+ <publishTime>04/25/2021 13:32:55</publishTime>
</File>
<File Include="bin/WebTM.pdb">
- <publishTime>04/22/2021 18:32:43</publishTime>
+ <publishTime>04/25/2021 13:32:55</publishTime>
</File>
<File Include="layuiadmin/config.js">
<publishTime>03/23/2021 14:14:38</publishTime>
@@ -588,7 +588,7 @@
<publishTime>03/23/2021 14:14:38</publishTime>
</File>
<File Include="layuiadmin/Scripts/webConfig.js">
- <publishTime>04/23/2021 10:17:29</publishTime>
+ <publishTime>04/25/2021 11:22:07</publishTime>
</File>
<File Include="layuiadmin/style/admin.css">
<publishTime>03/23/2021 14:14:38</publishTime>
@@ -954,7 +954,7 @@
<publishTime>03/23/2021 14:14:38</publishTime>
</File>
<File Include="views/index.html">
- <publishTime>04/23/2021 10:12:29</publishTime>
+ <publishTime>04/25/2021 11:28:37</publishTime>
</File>
<File Include="views/senior/echarts/bar.html">
<publishTime>03/23/2021 14:14:38</publishTime>
@@ -1130,6 +1130,9 @@
<File Include="views/鍩虹璧勬枡/閲囪喘鍩虹璧勬枡/Gy_Supplier.html">
<publishTime>03/29/2021 10:48:22</publishTime>
</File>
+ <File Include="views/鍩虹璧勬枡/閿�鍞熀纭�璧勬枡/Gy_Customer.html">
+ <publishTime>03/29/2021 10:48:23</publishTime>
+ </File>
<File Include="views/妯℃不鍏风鐞�/Sc_CheckToolsRepairWorkBillList.html">
<publishTime>03/24/2021 14:28:14</publishTime>
</File>
@@ -1188,7 +1191,7 @@
<publishTime>04/08/2021 09:14:52</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_Add_NoPassProdCheckBill.html">
- <publishTime>04/20/2021 21:10:48</publishTime>
+ <publishTime>04/20/2021 21:46:06</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/澧炲姞涓嶈壇璇勫鍗�/QC_NoPassProdCheckBill.html">
<publishTime>04/13/2021 10:12:44</publishTime>
@@ -1203,13 +1206,13 @@
<publishTime>04/08/2021 09:14:52</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭姹囨姤鍗�/Sc_Add_ProcessReportList.html">
- <publishTime>04/22/2021 19:52:57</publishTime>
+ <publishTime>04/23/2021 17:05:34</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭姹囨姤鍗�/Sc_ProcessReport_PDA.html">
<publishTime>04/16/2021 14:21:33</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭娲惧伐鍗�/Sc_Add_ProcessSendWork.html">
- <publishTime>04/21/2021 16:40:38</publishTime>
+ <publishTime>04/22/2021 17:13:32</publishTime>
</File>
<File Include="views/鐢熶骇绠$悊/鐢熶骇浠诲姟鍗�/Sc_ICMOBillList.html">
<publishTime>03/23/2021 14:14:38</publishTime>
@@ -1223,6 +1226,9 @@
<File Include="views/缁勮鍗�/Sc_AssemblyBill_Fast.html">
<publishTime>03/29/2021 10:48:24</publishTime>
</File>
+ <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html">
+ <publishTime>04/25/2021 16:05:20</publishTime>
+ </File>
<File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">
<publishTime>03/29/2021 10:48:23</publishTime>
</File>
@@ -1230,7 +1236,7 @@
<publishTime>04/22/2021 17:13:32</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭娲惧伐鍗�/Sc_ProcessSendWorkList.html">
- <publishTime>04/09/2021 21:12:33</publishTime>
+ <publishTime>04/21/2021 14:26:35</publishTime>
</File>
<File Include="views/鐢熶骇宸ュ簭绠$悊/宸ュ簭璁″垝鍗�/Sc_ProcessPlanList.html">
<publishTime>04/16/2021 14:21:33</publishTime>
@@ -1244,6 +1250,9 @@
<File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">
<publishTime>03/29/2021 10:48:23</publishTime>
</File>
+ <File Include="views/璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill_loser.html">
+ <publishTime>04/25/2021 13:29:33</publishTime>
+ </File>
<File Include="views/杞﹂棿绠$悊/涓嶈壇鍝佽瘎瀹″崟/Cj_NoPassProc.html">
<publishTime>03/26/2021 09:58:10</publishTime>
</File>
diff --git a/WebTM/WebTM.csproj b/WebTM/WebTM.csproj
index 754a913..4c8d993 100644
--- a/WebTM/WebTM.csproj
+++ b/WebTM/WebTM.csproj
@@ -440,8 +440,11 @@
<Content Include="views\鍩虹璧勬枡\鐢熶骇鍩虹璧勬枡\H_ProcessDetail.html" />
<Content Include="views\鍩虹璧勬枡\鐢熶骇鍩虹璧勬枡\H_ProcessList.html" />
<Content Include="views\鍩虹璧勬枡\閲囪喘鍩虹璧勬枡\Gy_Supplier.html" />
+ <Content Include="views\鍩虹璧勬枡\閿�鍞熀纭�璧勬枡\Gy_Customer.html" />
<Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_CheckToolsFileMainList.html" />
<Content Include="views\妯℃不鍏风鐞哱妯℃不鍏风鐞哱Gy_Mould.html" />
+ <Content Include="views\璁″垝绠$悊\宸ヨ壓璺嚎\Gy_RoutingBill_loser.html" />
+ <Content Include="views\璁″垝绠$悊\宸ヨ壓璺嚎\Gy_RoutingBill.html" />
<Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBill.html" />
<Content Include="views\杞﹂棿绠$悊\宸ュ簭鍑虹珯姹囨姤鍗昞Cj_StationOutBillList.html" />
<Content Include="views\杞﹂棿绠$悊\宸ュ簭杩涚珯鎺ユ敹鍗昞Cj_StationInBill.html" />
diff --git a/WebTM/layuiadmin/Scripts/webConfig.js b/WebTM/layuiadmin/Scripts/webConfig.js
index 6c13da4..b53b908 100644
--- a/WebTM/layuiadmin/Scripts/webConfig.js
+++ b/WebTM/layuiadmin/Scripts/webConfig.js
@@ -1,8 +1,9 @@
锘縡unction GetWEBURL() {
//var WEBURL = "http://192.168.16.80:8011/"; //鍔炲叕瀹ゆ湇鍔″櫒
//var WEBURL = "http://localhost:8081/SWEAPI/"; //ch鏈湴
- var WEBURL = "http://localhost:8085/JFAPI/"; //zgq鏈湴
- //var WEBURL = "http://localhost:8081/lubaoWebAPI/";//鐜嬫案娉㈡湰鍦伴厤缃紝璇峰嬁鏇存敼
+ var WEBURL = "http://localhost:8085/API/"; //zgq鏈湴
+ //var WEBURL = "http://localhost:8081/lubaoWebAPI/";//鐜嬫案娉㈡湰鍦伴厤缃紝璇峰嬁鏇存敼
+ //var WEBURL = "http://101.37.171.70:8085/API/"; //鍏徃鏈嶅姟鍣�
return WEBURL
}
diff --git a/WebTM/views/index.html b/WebTM/views/index.html
index f4b01e0..102e776 100644
--- a/WebTM/views/index.html
+++ b/WebTM/views/index.html
@@ -230,6 +230,7 @@
<dd class="layui-nav-itemed">
<a>宸ヨ壓璺嚎</a>
<dl class="layui-nav-child">
+ <dd><a lay-href="璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBill.html">宸ヨ壓璺嚎</a></dd>
<dd><a lay-href="璁″垝绠$悊/宸ヨ壓璺嚎/Gy_RoutingBillList.html">宸ヨ壓璺嚎鍒楄〃</a></dd>
</dl>
</dd>
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
new file mode 100644
index 0000000..e0cf2cf
--- /dev/null
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill.html"
@@ -0,0 +1,2727 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>宸ヨ壓璺嚎</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+ <style>
+ .main-btn { /*澶撮儴涓绘寜閽�*/
+ padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
+ height: 30px;
+ line-height: 30px;
+ }
+ .maintitle {
+ background-color: #1492ff;
+ color: #fff;
+ padding: 5px 10px;
+ border: none;
+ border-radius: 4px;
+ text-align: center;
+ font-size: 24px;
+ }
+
+ .btn-title {
+ font-size: 16px;
+ }
+ </style>
+</head>
+<body>
+ <div class="layui-fluid" style="padding: 0;">
+ <div class="layui-card" style="padding: 2px;background-color: #efefef;">
+ <div class="layui-card-body" style="padding: 1px;">
+ <form class="layui-form" action="" lay-filter="formData" style="background-color:white;">
+ <div class="maintitle">宸ヨ壓璺嚎</div>
+ <div style="padding: 10px;">
+ <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+ <i class="layui-icon layui-icon-print layuiadmin-button-btn"><span class="btn-title">棰勮</span></i>
+ </button>
+ <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+ <i class="layui-icon layui-icon-add-1 layuiadmin-button-btn"><span class="btn-title">鏂板</span></i>
+ </button>
+ <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+ <i class="layui-icon layui-icon-edit layuiadmin-button-btn"><span class="btn-title">淇敼</span></i>
+ </button>
+ <button class="layui-btn layuiadmin-btn-order main-btn" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
+ <i class="layui-icon layui-icon-delete layuiadmin-button-btn"><span class="btn-title">鍒犻櫎</span></i>
+ </button>
+ </div>
+ <div class="layui-tab" lay-filter="tab-POStockInBill">
+ <ul class="layui-tab-title" lay-filter="tab-all">
+ <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
+ <li lay-id="2" style="padding:1px;">鍏朵粬淇℃伅</li>
+ </ul>
+ <div class="layui-tab-content">
+ <!--鍩烘湰淇℃伅-->
+ <div class="layui-tab-item layui-show">
+ <div class="layui-form-item" style="padding-top: 10px;">
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍗曟嵁鍙�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">宸ヨ壓璺嚎鍚嶇О</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">浜у搧浠g爜</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">浜у搧鍚嶇О</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">瑙勬牸鍨嬪彿</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">璁¢噺鍗曚綅</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ヨ壓璺嚎澶х被</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSup" id="btnSearchSup" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label">鏃堕棿鍗曚綅</label>
+ <div class="layui-input-block" style="margin-left: 120px;width: 182px;">
+ <select name="" id="">
+ <option value="灏忔椂">灏忔椂</option>
+ <option value="澶�">澶�</option>
+ </select>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ュ簭</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">宸ヤ綔涓績</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇鐝粍</label>
+ <div class="layui-input-block" style="margin-left: 77px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;width: 61%;display: inline-block;" readonly>
+ <input type="hidden" name="" id="" value="0">
+ <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProc" id="btnSearchProc" style="padding: 0 10px;float: left;margin-right: 3px;background-color:gainsboro;">
+ <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="color:black;"></i>
+ </button>
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍔犲伐鏁伴噺</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">杩愯鏃堕棿</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" value="0">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">宸ヤ环</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" value="0">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鏍囧噯璧勬簮鏁�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍔犺祫婧愬閲�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍑忚祫婧愬噺閲�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline" style="width: 56%;">
+ <label class="layui-form-label" style="width: 85px;">澶囨敞</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <div class="layui-input-block" style="margin-left: 70px;">
+ <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="鏄惁榛樿宸ヨ壓" lay-skin="primary" lay-filter="checkboxHLastSubProc">
+ <input type="hidden" value="false" name="HLastSubProc" id="HLastSubProc">
+ <input type="checkbox" name="checkboxHLastSubProc" id="checkboxHLastSubProc" title="鏄惁鍚敤" lay-skin="primary" lay-filter="checkboxHLastSubProc">
+ <input type="hidden" value="false" name="HLastSubProc" id="HLastSubProc">
+ </div>
+ </div>
+
+ </div>
+ </div>
+ </div>
+ <!--鍏朵粬淇℃伅-->
+ <div class="layui-tab-item">
+ <div class="layui-form-item">
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍒跺崟浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">瀹℃牳浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍚敤浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍒跺崟鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">瀹℃牳鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍚敤鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="" style="background-color:#efefef4d;" readonly>
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">淇敼浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">浣滃簾浜�</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="text" class="layui-input" name="" id="">
+ </div>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">淇敼鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ <div class="layui-inline">
+ <label class="layui-form-label" style="width: 85px;">浣滃簾鏃ユ湡</label>
+ <div class="layui-input-block" style="margin-left: 120px;">
+ <input type="date" class="layui-input" name="" id="" style="padding-left: 32px;">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+
+ <script type="text/html" id="barDemo">
+ <!--<a class="layui-btn layui-btn-xs" lay-event="edit">缂栬緫</a>-->
+ <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
+ </script>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script>
+
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element;
+
+ var tableReload = table.reload;
+ var option = {
+ elem: '#mainTable'
+ , toolbar: '#toolbarDemo'
+ , height: 500
+ //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛
+ , page: true //寮�鍚垎椤�
+ , cols: [[ //琛ㄥご
+ { type: 'checkbox', fixed: 'left' }
+ , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
+ , { field: 'HWasterReasonName', title: '涓嶈壇鍘熷洜', event: "ReasonNameEvent" }
+ , { field: 'HBadReasonID', title: '涓嶈壇鍘熷洜id' }
+ , { field: 'HEmpName', title: '璐d换浜�', edit: 'text', event: "EmpNameEvent" }
+ , { field: 'HSQProcName', title: '鐢宠宸ュ簭', event: "SQProcNameEvent" }
+ , { field: 'HProcID', title: '鐢宠宸ュ簭id' }
+ , { field: 'HZRProcName', title: '璐d换宸ュ簭', event: "ZRProcNameEvent" }
+ , { field: 'HMRBChecker', title: '涓嶈壇鏁伴噺', edit: 'text', event: "BadQtyEvent" }//璇ュ瓧娈垫槸涓嶈壇鏁伴噺锛屽厛鐢℉MRBChecker瀛樻斁
+ , { field: 'HRemark', title: '澶囨敞', edit: 'text', event: "RemarkEvent" }
+ , { field: 'HPSProcName', title: '涓嶈壇纭浜�', event: "PSProcNameEvent" }
+ , { field: 'HCloseMan', title: '鍒ゅ畾缁撴灉', edit: 'text', event: "CloseManEvent" }
+ , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 150 }
+ ]]
+ , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+ };
+ //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " }
+ option.data = [{ "HWasterReasonName": " ", "HBadReasonID": 0, "HEmpName": " ", "HSQProcName": " ", "HProcID": 0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " }];
+ table.render(option);
+
+ //table.render({
+ // elem: '#mainTable'
+ // , height: 500
+ // //,url: '/demo/table/user/' //鏁版嵁鎺ュ彛
+ // , page: true //寮�鍚垎椤�
+ // , cols: [[ //琛ㄥご
+ // { field: 'ID', title: '搴忓彿', sort: true, fixed: 'left' }
+ // , { field: 'HWasterReasonName', title: '涓嶈壇鍘熷洜', event: "ReasonNameEvent" }
+ // , { field: 'HBadReasonID', title: '涓嶈壇鍘熷洜id' }
+ // , { field: 'HEmpName', title: '璐d换浜�', edit: 'text', event: "EmpNameEvent" }
+ // , { field: 'HSQProcName', title: '鐢宠宸ュ簭', event: "SQProcNameEvent" }
+ // , { field: 'HProcID', title: '鐢宠宸ュ簭id' }
+ // , { field: 'HZRProcName', title: '璐d换宸ュ簭', event: "ZRProcNameEvent" }
+ // , { field: 'HMRBChecker', title: '涓嶈壇鏁伴噺', edit: 'text', event: "BadQtyEvent" }//璇ュ瓧娈垫槸涓嶈壇鏁伴噺锛屽厛鐢℉MRBChecker瀛樻斁
+ // , { field: 'HRemark', title: '澶囨敞', edit: 'text', event: "RemarkEvent" }
+ // , { field: 'HPSProcName', title: '涓嶈壇纭浜�', event: "PSProcNameEvent" }
+ // , { field: 'HCloseMan', title: '鍒ゅ畾缁撴灉', edit: 'text', event: "CloseManEvent" }
+ // ]]
+ // , data: [
+ // { "ID": 1, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " }
+
+
+ // ]
+ // , limit: 500 //姣忛〉榛樿鏄剧ず鐨勬暟閲�
+ // //, height: 500
+ // , done: function () {
+ // layer.closeAll("loading");
+ // }
+ //});
+ //澶村伐鍏锋爮浜嬩欢
+ var rowid = 0;
+ var rows = 0;
+ table.on('toolbar(mainTable)', function (obj) {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;;
+ var AddRow = table.cache['mainTable'];
+ var NewRow = { "HWasterReasonName": " ", "HBadReasonID": 0, "HEmpName": " ", "HSQProcName": " ", "HProcID": 0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " };
+ switch (obj.event) {
+ case 'btn-AddLine':
+ //table.cache["mainTable"].push(AddRow[rows]);
+ table.cache["mainTable"].push(NewRow);
+ option.data = table.cache["mainTable"];
+ table.render(option);
+ rows++;
+ layer.msg('澧炲姞涓�琛屾寜閽紒')
+ break;
+ case 'btn-CopyLine':
+ var copydata = JSON.stringify(data);
+ if (data.length <= 0) {
+ layer.alert("璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒");
+ }
+ else if (data.length > 1) {
+ layer.alert("鍙兘閫夋嫨澶嶅埗涓�琛岋紒");
+ }
+ else {
+ var copydata2 = copydata.substring(1, copydata.length);//鍘婚櫎棣栬瀛楃'['
+ var copyrow = copydata2.substring(0, copydata2.length - 1);//鍘婚櫎鏈熬瀛楃']'
+ table.cache["mainTable"].push(JSON.parse(copyrow));//灏嗗鍒剁殑琛屽己杞垚json杩藉姞鍒拌〃鏍间笂
+ option.data = table.cache["mainTable"];//灏嗘暟鎹粦瀹氬埌data涓�
+ table.render(option);//灏嗘暟鎹覆鏌撳埌琛ㄦ牸涓�
+ //layer.alert(copyrow);
+ }
+ break;
+ }
+ });
+ //琛屽唴浜嬩欢
+ table.on('tool(mainTable)', function (obj) {
+ var data = obj.data;
+ var rowIndex = $(obj.tr).attr("data-index");
+ if (obj.event === 'del') {
+ layer.confirm('鐪熺殑鍒犻櫎琛屼箞', function (index) {
+ console.log("绱㈠紩涓�:" + rowIndex);
+ if (rowIndex === '0') {
+ layer.msg('棣栬鏃犳硶鍒犻櫎锛侊紒锛�');
+ } else {
+ obj.del();
+ layer.close(index);
+ }
+ });
+ }
+ if (obj.event === 'ReasonNameEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "1":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "2":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "3":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "4":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "5":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "6":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "7":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "8":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "9":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "10":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "11":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "12":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "13":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "14":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "15":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "16":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇鍘熷洜
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HWasterReasonName: HReasonName
+ , HBadReasonID: ReasonID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HWasterReasonName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+
+ }
+ }
+ else if (obj.event === 'EmpNameEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "1":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "2":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "3":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "4":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "5":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "6":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "7":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "8":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "9":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "10":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "11":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "12":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "13":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "14":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "15":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "16":
+ //寮瑰嚭妗嗛�夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HEmpName: EmpName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HEmpName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+
+ }
+ }
+ else if (obj.event === 'SQProcNameEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "1":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "2":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "3":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "4":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "5":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "6":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "7":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "8":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "9":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "10":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "11":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "12":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "13":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "14":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "15":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "16":
+ //寮瑰嚭妗嗛�夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HSQProcName: SQProcName
+ , HProcID: ProcID
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HSQProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+
+ }
+ }
+ else if (obj.event === 'ZRProcNameEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "1":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "2":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "3":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "4":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "5":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "6":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "7":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "8":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "9":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "10":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "11":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "12":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "13":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "14":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "15":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "16":
+ //寮瑰嚭妗嗛�夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HZRProcName: ZRProcName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HZRProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+
+ }
+ }
+ else if (obj.event === 'BadQtyEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+
+ break;
+ case "1":
+
+ break;
+ case "2":
+
+ break;
+ case "3":
+
+ break;
+ case "4":
+
+ break;
+ case "5":
+
+ break;
+ case "6":
+
+ break;
+ case "7":
+
+ break;
+ case "8":
+
+ break;
+ case "9":
+
+ break;
+ case "10":
+
+ break;
+ case "11":
+
+ break;
+ case "12":
+
+ break;
+ case "13":
+
+ break;
+ case "14":
+
+ break;
+ case "15":
+
+ break;
+ case "16":
+ //$(obj.tr).find(".layui-table-edit").keyup(function () {
+ // var $input = $(this), val = $input.val();
+ // if (!val) val = "1";
+ // $input.val(val.replace(/[^\d]/g, ''));
+ //});
+ break;
+
+ }
+ }
+ else if (obj.event === 'RemarkEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+
+ break;
+ case "1":
+
+ break;
+ case "2":
+
+ break;
+ case "3":
+
+ break;
+ case "4":
+
+ break;
+ case "5":
+
+ break;
+ case "6":
+
+ break;
+ case "7":
+
+ break;
+ case "8":
+
+ break;
+ case "9":
+
+ break;
+ case "10":
+
+ break;
+ case "11":
+
+ break;
+ case "12":
+
+ break;
+ case "13":
+
+ break;
+ case "14":
+
+ break;
+ case "15":
+
+ break;
+ case "16":
+
+ break;
+
+ }
+ }
+ else if (obj.event === 'PSProcNameEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "1":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "2":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "3":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "4":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "5":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "6":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "7":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "8":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "9":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "10":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "11":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "12":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "13":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "14":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "15":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+ case "16":
+ //寮瑰嚭妗嗛�夋嫨涓嶈壇纭浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HWorker', 'yes']
+ , resize: false
+ , end: function () {
+ _obj.update({
+ HPSProcName: QRName
+ });
+ }
+ })
+ console.log("瀛楁璧嬪��" + data.HPSProcName);
+ console.log("琛屽彿锛�" + rowIndex);
+ break;
+
+ }
+ }
+ else if (obj.event === 'CloseManEvent') {
+ var _obj = obj;
+ switch (rowIndex) {
+ case "0":
+
+ break;
+ case "1":
+
+ break;
+ case "2":
+
+ break;
+ case "3":
+
+ break;
+ case "4":
+
+ break;
+ case "5":
+
+ break;
+ case "6":
+
+ break;
+ case "7":
+
+ break;
+ case "8":
+
+ break;
+ case "9":
+
+ break;
+ case "10":
+
+ break;
+ case "11":
+
+ break;
+ case "12":
+
+ break;
+ case "13":
+
+ break;
+ case "14":
+
+ break;
+ case "15":
+
+ break;
+ case "16":
+
+ break;
+
+ }
+ }
+
+
+
+ });
+
+ //鑾峰彇鍙傛暟
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage.login != "login") {
+ layer.confirm("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛�", {
+ icon: 4, skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず", closeBtn: 0, btn: ['閲嶆柊鐧诲綍']
+ }, function () { window.location.href = "../../user/login.html"; });
+ }
+
+ var params = getUrlVars();
+ var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+ var lSourceBillType = params[params[2]]; //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+
+ function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+ {
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetPonderationBill",
+ type: "GET",
+ data: { "HInterID": linterid },
+ success: function (d) {
+ // console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+
+ }
+ })
+ }
+
+
+ var date = new Date();
+ var day = date.getDate();
+ var month = date.getMonth() + 1;
+ var year = date.getFullYear();
+ var shijian = year + "-" + month + "-" + day;
+
+ //鍒ゆ柇鏄惁鏂板
+ if (linterid == null || linterid == 0) {
+ //鑾峰彇鏈�澶у崟鎹彿 new
+ $("#HInterID").val("");
+ $("#HBillNo").val("");
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetMAXNum",
+ type: "GET",
+ data: { "HBillType": '7509' },
+ success: function (d) {
+ //console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HDate").val(shijian);
+ }
+ });
+ }
+ else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
+ RoadBillMain(linterid);
+ RoadBillSub(linterid);
+ }
+
+
+
+ //閫夋嫨涓嶈壇鍘熷洜
+ form.on('submit(HBadReasonID-BT)', function () {//閫夋嫨浠撳簱
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '涓嶈壇鍘熷洜鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_BadReasonList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨宸ュ簭璁″垝鍗�
+ form.on('submit(HPlanID-BT)', function () {//閫夋嫨宸ュ簭璁″垝鍗�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '宸ュ簭璁″垝鍗曞垪琛�'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Sc_ProcessPlanViewList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨璐d换浜�
+ form.on('submit(HEmployeeID-BT)', function () {//閫夋嫨璐d换浜�
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鑱屽憳鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨鐢宠宸ュ簭
+ form.on('submit(HSQProcID-BT)', function () {//閫夋嫨鐢宠宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '鐢宠宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //閫夋嫨璐d换宸ュ簭
+ form.on('submit(HZRProcID-BT)', function () {//閫夋嫨璐d换宸ュ簭
+ layer.open({
+ type: 2
+ , area: ['80%', '80%']
+ , title: '璐d换宸ュ簭鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_ProcList.html?Type=HZR', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ //缂栬緫
+ form.on('submit(cmdModify)', function () {//缂栬緫
+ var sSubStr = table.cache['wl-table'];
+ //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鏄庣粏鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ // }
+ });
+
+ form.on('submit(Cancel)', function () {
+ //sessionStorage["SourceFlag"] = false;
+ parent.location.href = "../../../views/index.html"
+ //window.close();//鍏抽棴褰撳墠椤�
+ })
+
+ form.on('submit(Saver)', function (data) {//淇濆瓨
+ //debugger;
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = JSON.stringify(table.cache['mainTable']);
+ var sMainSub = sMainStr + ';' + sSubStr;
+ $.ajax(
+ {
+ type: "POST",
+ url: GetWEBURL() + "SaveBadReasonList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ async: true,
+ data: { "msg": sMainSub },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ layer.msg(data.Message, { icon: 1 });
+ $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true);
+ }
+ else {
+
+ f_alert(data.Message);
+ console.log("Reason" + sMainStr + "sub:" + JSON.stringify(layui.table.cache.mainTable));
+ }
+ layer.closeAll("loading");
+ },
+ error: function (err) {
+
+ f_alert("閿欒:" + err);
+ console.log("Reason" + sMainStr);
+ }
+ });
+ });
+ function f_alert(sMsg) {
+ layer.alert(sMsg, { icon: 5 });
+
+ }
+
+ //鐩戝惉鎻愪氦
+ form.verify({
+ numberOrEmpty: function (value, item) {
+ // if (value != '') {
+ if (!/^\d+$/.test(value)) {
+ return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+ }
+ //}
+ }
+ });
+
+
+ });
+ //瀹氫箟鍏ㄥ眬鍙橀噺
+ var HReasonName, ReasonID, EmpName, SQProcName,
+ ProcID, ZRProcName, QRName
+ ;
+ function GetHReasonValue(obj) //杩斿洖涓嶈壇鍘熷洜
+ {
+ HReasonName = obj[0].HName;
+ ReasonID = obj[0].HItemID;
+ }
+ function GetHPlanValue(obj) { //杩斿洖宸ュ簭璁″垝鍗�
+ $("#HMainSourceInterID").val(obj[0].hmainid);
+ $("#HMainSourceEntryID").val(obj[0].hsubid);
+ $("#HMainSourceBillNo").val(obj[0].鍗曟嵁鍙�);
+ $("#HMaterID").val(obj[0].HMaterID);
+ $("#HMaterNumber").val(obj[0].鐗╂枡浠g爜);
+ $("#HMater").val(obj[0].鐗╂枡鍚嶇О);
+ $("#HCenterID").val(obj[0].HCenterID);
+ $("#HWorkCenterName").val(obj[0].宸ヤ綔涓績);
+ $("#HModel").val(obj[0].瑙勬牸鍨嬪彿);
+ $("#HPlanQty").val(obj[0].璁″垝鏁伴噺);
+
+
+ }
+ function GetHKeeperValue(obj) { //杩斿洖璐d换浜�
+ EmpName = obj[0].HName;
+ // $("#HEmpName").val(obj[0].HName);
+ //$("#HItemID").val(obj[0].HItemID);
+ }
+ function GetHProcValue(obj) { //杩斿洖鐢宠宸ュ簭
+ SQProcName = obj[0].宸ュ簭;
+ ProcID = obj[0].HItemID;
+ //$("#HSQProcName").val(obj[0].宸ュ簭);
+ //$("#HProcID").val(obj[0].HItemID);
+ }
+ function GetHZRValue(obj) { //杩斿洖璐d换宸ュ簭
+ ZRProcName = obj[0].宸ュ簭;
+ //$("#HZRProcName").val(obj[0].宸ュ簭);
+ //$("#HItemID").val(obj[0].HItemID);
+ }
+ //HWorker
+ function GetHWorkerValue(obj) { //杩斿洖涓嶈壇纭浜�
+ QRName = obj[0].HName;
+ //$("#HQRName").val(obj[0].HName);
+ //$("#HItemID").val(obj[0].HItemID);
+ }
+ function AllowLoadData(sSubStr) { //闈炵┖楠岃瘉
+ //if ($("#HSourceBillNo").val() == '') {
+ // layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
+ // return false;
+ //}
+ if ($("#HDeptName").val() == '') {
+ layer.msg("閮ㄩ棬娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HSecManager").val() == '') {
+ layer.msg("楠屾敹浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HKeeper").val() == '') {
+ layer.msg("淇濈浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ //if ($("#HWHNAME").val() == '') {
+ // layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 });
+ // return false;
+ //}
+ if ($("#HBillNo").val() == '') {
+ layer.msg("閿欒鐨勫崟鎹彿", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HInterID").val() == '') {
+ layer.msg("閿欒鐨勫唴鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (typeof (sSubStr) == "undefined") {
+ layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (!typeof (sSubStr) == "undefined") {
+ //for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺
+ // if (parseFloat(sSubStr[i].HQtyMust) > 0) {
+ // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
+ // {
+ // layer.msg("鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+ // return false;
+ // }
+ // }
+ //}
+ for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+ if (parseFloat(sSubStr[i].HQty) > 0) {
+ s = 1;
+ }
+ }
+ if (s == 0) {
+ layer.msg("浜у搧鍏ュ簱璁板綍鏈壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ }
+ else {
+ return true;
+ }
+ }
+ </script>
+</body>
+</html>
\ No newline at end of file
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html"
new file mode 100644
index 0000000..d96c324
--- /dev/null
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_RoutingBill_loser.html"
@@ -0,0 +1,925 @@
+锘�<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>宸ヨ壓璺嚎</title>
+ <meta name="renderer" content="webkit">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
+ <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
+ <style>
+ .layui-table-cell{
+ height:auto;
+ white-space:normal;
+ }
+ </style>
+</head>
+<body>
+ <div class="layui-fluid" style="padding:0">
+ <div class="layui-card" style="padding: 1px">
+ <div class="layui-card-body" style="padding: 5px; height:800px;">
+ <form class="layui-form" action="" lay-filter="component-form-group">
+ <div style="background-color:#0085E8;">
+ <span style="color: white;"><i class="layui-icon layui-icon-form"></i>澶栬喘鍏ュ簱鍗�</span>
+ </div>
+ <div class="layui-form-item" style="padding:15px;margin:0px">
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">MES搴撲綅</label>
+ </div>
+ <div class="layui-col-xs8">
+ <input type="text" name="HMESSPName" id="HMESSPName" autocomplete="off" class="layui-input">
+ <input type="hidden" name="HMESSPID" id="HMESSPID" value="0" autocomplete="off" class="layui-input">
+ <input type="hidden" name="HExplanation" id="HExplanation" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:40px;padding-left:0px;">鏉$爜</label>
+ </div>
+ <div class="layui-col-xs8">
+ <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ </div>
+ <div class="layui-tab layui-col-xs12" lay-filter="tab-POStockInBill">
+ <ul class="layui-tab-title" lay-filter="tab-all">
+ <li lay-id="1" style="padding:1px;" class="layui-this">婧愬崟淇℃伅</li>
+ <li lay-id="2" style="padding:1px;">鍗曟嵁淇℃伅</li>
+ <li lay-id="3" style="padding:1px;">鐗╂枡娓呭崟</li>
+ <li lay-id="4" style="padding:1px;">鍚堣淇℃伅</li>
+ </ul>
+ <div class="layui-tab-content">
+ <!--婧愬崟淇℃伅-->
+ <div class="layui-tab-item layui-show">
+ <div class="layui-form-item">
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">鍗曟嵁绫诲瀷</label>
+ </div>
+ <div class="layui-col-xs8">
+ <select name="HBillType" id="HBillType">
+ <option value="1103">鏀舵枡閫氱煡鍗�</option>
+ <option value="1102">閲囪喘璁㈠崟</option>
+ </select>
+ </div>
+ </div>
+ <div class="layui-row">
+ <div class="layui-col-xs3">
+ <label class="layui-form-label" style="width:60px;padding-left:0px;">婧愬崟鍙�</label>
+ </div>
+ <div class="layui-col-xs8">
+ <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" autocomplete="off" class="layui-input">
+ </div>
+ </div>
+ </div>
+ </div>
+ <!--鍗曟嵁淇℃伅-->
+ </div>
+ </div>
+ <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="Saver">鎻愪氦</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">缂栬緫</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">鍒犻櫎</button>
+ <button type="button" lay-submit="" class="layui-btn" lay-filter="Cancel">閫�鍑�</button>
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+ <script src="../../../layuiadmin/layui/layui.js"></script>
+ <script src="../../../layuiadmin/Scripts/json2.js"></script>
+ <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script>
+ <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
+ <script>
+ layui.config({
+ base: '../../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
+ }).extend({
+ index: 'lib/index' //涓诲叆鍙fā鍧�
+ }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
+ var $ = layui.$
+ , admin = layui.admin
+ , layer = layui.layer
+ , table = layui.table
+ , form = layui.form
+ , element = layui.element;
+ //娓呯┖鐣岄潰 new
+
+
+ //琛ㄥご鍒濆鍖栬祴鍊硷紙鏍规嵁鐧诲綍鐢ㄦ埛鑾峰彇 榛樿浠撳簱銆侀儴闂ㄣ�侀獙鏀躲�佷繚绠°�侀噾铦剁敤鎴凤級 new
+ $("#HWHID").val(sessionStorage["HWHID"]);
+ $("#HWHNAME").val(sessionStorage["HWHName"]);
+ $("#HStockPlaceID").val(sessionStorage["HSPID"]);
+ $("#HStockPlaceName").val(sessionStorage["HSPName"]);
+ //$("#HSupID").val(sessionStorage["HSupID"]);
+ //$("#HSupName").val(sessionStorage["HSupName"]);
+ $("#HDeptID").val(sessionStorage["HDeptID"]);
+ $("#HDeptName").val(sessionStorage["HDept"]);
+ $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
+ $("#HSecManager").val(sessionStorage["HSecManager"]);
+ $("#HKeeperID").val(sessionStorage["HKeeperID"]);
+ $("#HKeeper").val(sessionStorage["HKeeper"]);
+ $("#HMaker").val(sessionStorage["HUserName"]);
+ $("#HMaker").hide();
+ $("#HMakerID").hide();
+ $("#HBillerID").val(sessionStorage["HBillerID"]);
+ $("#HBillerID").hide();
+ //榛樿甯﹀叆鐨勪粨搴擄紝濡傛灉鍚敤浠撲綅鍒欎粨浣嶆湁鏁堬紝濡傛灉娌℃湁鍚敤鍒欎粨浣嶇伆搴� new
+
+
+ //鑾峰彇鍙傛暟
+ function getUrlVars() {
+ var vars = [], hash;
+ var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
+ for (var i = 0; i < hashes.length; i++) {
+ hash = hashes[i].split('=');
+ vars.push(hash[0]);
+ vars[hash[0]] = hash[1];
+ }
+ return vars;
+ }
+ var params = getUrlVars();
+ var linterid = params[params[0]]; //浠庡弬鏁颁腑鑾峰彇 鍗曟嵁鍐呯爜
+ var lSourceBillType = params[params[2]]; //浠庡崟鎹幏鍙� 婧愬崟绫诲瀷
+
+ function RoadBillMain(linterid)//鍔犺浇琛ㄥご
+ {
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetPonderationBill",
+ type: "GET",
+ data: { "HInterID": linterid },
+ success: function (d) {
+ // console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ $("#HBillType").val(d.data[0].HSourceBillType);
+ $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
+ //$("#HWHID").val(d.data[0].HWhID);
+ //$("#HKeeperID").val(d.data[0].HKeeperID);
+ //$("#HSecManagerID").val(d.data[0].HSecManagerID);
+ //$("#HDeptID").val(d.data[0].HDeptID);
+ //$("#HBarCode").val(d.data[0].HBarCode);
+ //$("#HQty").val(d.data[0].HQty);
+ RoadSup();
+ }
+ })
+ }
+
+ function RoadSup()//鏍规嵁婧愬崟绫诲瀷鍙婃簮鍗曞彿 鍔犺浇渚涘簲鍟�
+ {
+ //var sInterID = $("#HInterID").val()
+ var HSourceBillNo = $('#HSourceBillNo').val()
+ var sInterID = $("#HInterID").val()
+ var sBillNo = $("#HBillNo").val()
+ var HSourceBillType = $("#HBillType").val()
+ //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
+ if (HSourceBillNo == "" || sInterID <= 0) {
+ layer.msg($('#HSourceBillNo').val(), { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return;
+ }
+ else {
+ $.ajax({
+ url: GetWEBURL() + "/POStockInBill/get_GetCg_POOrderBillList",
+ type: "GET",
+ data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HSupID").val(result.data[0].HSupID);
+ $("#HSupName").val(result.data[0].HSupName);
+ $("#HDeptID").val(result.data[0].HDeptID);
+ $("#HDeptName").val(result.data[0].HDeptName);
+ sessionStorage["SourceFlag"] = true;
+ element.tabChange('tab-POStockInBill', '2');
+ layer.load(3);
+ }
+ else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ }
+
+ function RoadBillSub(linterid)//鍔犺浇琛ㄤ綋
+ {
+ table.render({
+ elem: '#wl-table'
+ , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+ , where: { HBillID: linterid, HBillType: '1201', sWhere: '' }
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HQty', title: '鏁伴噺', sort: true }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+ , { field: 'HBatchNo', title: '鎵规', sort: true }
+ ]]
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
+ }
+ });
+ }
+
+ //鍔ㄦ�佸姞杞芥簮鍗曠被鍨嬪垪琛� new
+
+
+
+
+
+
+
+ //鍒ゆ柇鏄惁鏂板
+ if (linterid == null || linterid == 0) {
+ //鑾峰彇鏈�澶у崟鎹彿 new
+ $("#HInterID").val("");
+ $("#HBillNo").val("");
+ $.ajax({
+ url: GetWEBURL() + "/Web/GetMAXNum",
+ //url: GetWEBURL() + "/Web/UpdatePOInStockBillPrintQty", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ type: "GET",
+ data: { "HBillType": '1201' },
+ success: function (d) {
+ //console.log(d.data);
+ $("#HInterID").val(d.data[0].HInterID);
+ $("#HBillNo").val(d.data[0].HBillNo);
+ }
+ });
+ }
+ else {//濡傛灉淇敼鍒欒蛋涓嬮潰 new
+ RoadBillMain(linterid);
+ RoadBillSub(linterid);
+ }
+ //濡傛灉淇敼鍒欒蛋涓嬮潰 new
+
+
+
+
+ //杩涘叆鐗╂枡鏄庣粏椤电銆佹潯鐮佹 鍏夋爣鐒︾偣 new
+ if (1 == 2)
+ {
+ element.tabChange('tab-POStockInBill', '3');
+ var pFocus = $("#HBarCode");
+ pFocus.focus();
+ pFocus.select();
+ }
+ else
+ {
+ element.tabChange('tab-POStockInBill', '1');
+ var pFocus = $("#HSourceBillNo");
+ pFocus.focus();
+ pFocus.select();
+ }
+ //
+ //
+ form.on('submit(HWHID-BT)', function () {//閫夋嫨璋冨叆浠撳簱
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '浠撳簱鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_WarehouseList.html?Type=HWHID', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+ form.on('submit(HSpID-BT)', function () {//閫夋嫨璋冨叆浠撲綅
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '浠撲綅鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+ form.on('submit(HSupID-BT)', function () {//閫夋嫨渚涘簲鍟�
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '渚涘簲鍟嗗垪琛�'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_SupplierList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+ form.on('submit(HKeeperID-BT)', function () {//閫夋嫨淇濈
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '淇濈鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HKeeper', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+ form.on('submit(HSecManagerID-BT)', function (data) {//閫夋嫨楠屾敹
+ var sMainStr = JSON.stringify(data.field);
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '楠屾敹鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_EmployeeList.html?Type=HSecManager', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+ form.on('submit(HDeptID-BT)', function () {//閫夋嫨閮ㄩ棬
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '閮ㄩ棬鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/Baseset/鍩虹璧勬枡/Gy_DepartmentList.html', 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ });
+
+ form.on('submit(Cancel)', function () {
+ sessionStorage["SourceFlag"] = false;
+ parent.location.href = "../../../views/index.html"
+ //window.close();//鍏抽棴褰撳墠椤�
+ })
+
+ form.on('submit(cmdModify)', function () {//缂栬緫
+ var sSubStr = table.cache['wl-table'];
+ //if (AllowLoadData(sSubStr) != false) {//闈炵┖楠岃瘉
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '鏄庣粏鍒楄〃'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: ['../../../views/鍏叡椤甸潰/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
+ , resize: false
+ , cancel: function () {
+ //$(".layui-btn").removeClass("layui-btn-disabled");
+ }
+ })
+ // }
+ });
+
+ form.on('submit(cmdDelete)', function () {//鍒犻櫎
+ var checkStatus = table.checkStatus('wl-table')
+ , data = checkStatus.data;
+ // console.log(data);
+ var sInterID = $('#HInterID').val()
+ var sMaterID = data[0].HMaterID
+ var sBillType = '1201'
+ var sAuxPropID = data[0].HAuxPropID
+ //var sMTONo = data[0].HMTONo
+ var sMTONo = ''
+ var sSourceInterID = data[0].HSourceInterID
+ var sSourceEntryID = data[0].HSourceEntryID
+ $.ajax(
+ {
+ type: "Get",
+ //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ url: GetWEBURL() + "/POStockInBill/Delete_Json",
+ async: true,
+ data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": '1103', },
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ //layer.msg(data.Message, { icon: 1 });
+ table.render({
+ elem: '#wl-table'
+ //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Mate_Webs_Json'
+ //, url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Mate_Webs_Json'
+ , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+ , cellMinWidth: 80
+ , toolbar: '#toolbarDemo'
+ , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HQty', title: '鏁伴噺', width: 80 }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', width: 80 }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', width: 100 }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 150 }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 100 }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', width: 100 }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', width: 100 }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', width: 100 }
+ , { field: 'HBatchNo', title: '鎵规', width: 100 }
+ , { field: 'HAuxPropID', title: '杈呭姪灞炴��', width: 100 }
+ , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 100 }
+ ]]
+ , height: 500
+ })
+ }
+ else {
+ layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ },
+ error: function (err) {
+ layer.msg('閿欒' + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ });
+ });
+
+ //鎻愪氦
+ form.on('submit(Saver)', function (data) {//鎻愪氦
+ if ($("#HExplanation").val() == "") {
+ if ($("#HWHNAME").val() == "瀹藉箙鎴愬搧浠揘EW" || $("#HWHNAME").val() == "鏍锋湰浠揘EW") {
+ $("#HWHNAME").val("");
+ $("#HWHID").val("");
+ layer.msg("璇锋壂MES搴撲綅鐮侊紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return;
+ }
+ }
+ var sMainStr = JSON.stringify(data.field);
+ var sSubStr = table.cache['wl-table'];
+ var sSourceType = $("#HBillType").val();
+ if (AllowLoadData(sSubStr, 'Saver') != false)//闈炵┖楠岃瘉
+ {
+ layer.load(3);
+ $.ajax(
+ {
+ type: "POST",
+ //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePOStockInBill_Json", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ url: GetWEBURL() + "/POStockInBill/set_SavePOStockInBill_Json",
+ async: true,
+ data: { "oMain": sMainStr},
+ dataType: "json",
+ success: function (data) {
+ if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜�
+ sessionStorage["SourceFlag"] = false;
+ layer.confirm("鏀舵枡" + data.Message + $("#HBillNo").val(), {
+ icon: 1,
+ skin: 'layui-layer-lan',
+ closeBtn: 0,
+ btn: ['纭'],
+ btn2: function () {
+ //parent.layui.admin.events.closeThisTabs();鍏抽棴椤电
+ //window.close();//鍏抽棴椤甸潰锛屾祻瑙堝櫒鏈夋晥锛孭DA鏃犳晥
+ //window.location.reload();//鏂板
+ parent.location.href = "../../../views/index.html"
+ }//鍏抽棴
+ }
+ , function () { parent.location.href = "../../../views/index.html"; }//鏂板
+ );
+ }
+ else {
+ //layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+ layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ layui.form.render();
+ },
+ error: function (err) {
+ //layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't' });
+ layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ });
+ return false;
+ }
+ });
+ //鐩戝惉鎻愪氦
+ form.verify({
+ numberOrEmpty: function (value, item) {
+ // if (value != '') {
+ if (!/^\d+$/.test(value)) {
+ return '涓嶈兘涓虹┖鎴栨暟瀛楁垨鑰�0';
+ }
+ //}
+ }
+ });
+
+ //鎵潯鐮�
+ $('#HBarCode').on('keydown', function (event) { //鎵潯鐮�
+ var sSubStr = table.cache['wl-table'];
+ var sBarCode = $('#HBarCode').val()
+ var sInterID = $("#HInterID").val()
+ var sBillNo = $("#HBillNo").val()
+ var sQty = $("#HQty").val()
+ var sHBillType = $("#HBillType").val() //婧愬崟绫诲瀷
+ var sBillType = '1201'
+ var sHWHID = $("#HWHID").val()
+ var sHSPID = $("#HStockPlaceID").val()
+ var sSourceBillNo = $("#HSourceBillNo").val()
+ // var Flag = sessionStorage["SourceFlag"];
+ if (sQty == "") {
+ sQty = 0;
+ }
+ if (event.keyCode == 13) {
+ //鍒ゆ柇鏉$爜鏄惁涓虹┖ new
+ if (sBarCode == '') {
+ layer.msg("鏉$爜涓虹┖锛屼笉鑳芥壂鎻忥紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (sBarCode != "") {
+ $('#HBarCode').val("");
+ }
+ if (sQty != "") {
+ $('#HQty').val("");
+ }
+ if (sHWHID == "184154") {
+ if (sHSPID == "0") {
+ layer.msg("浠撲綅涓虹┖锛岃閫夋嫨浠撲綅锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ }
+ //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//闈炵┖楠岃瘉
+ $.ajax({
+ url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
+ type: "GET",
+ data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sSourceType": '1103', "HOWNERID": 0 },
+ success: function (result) {
+ if (result.count == 1) {
+ if (result.data.HBarType == '浠撳簱鏉$爜') {
+ $("#HWHNAME").val(result.data.HWhName);
+ $("#HWHID").val(result.data.HWhID);
+ $("#HStockPlaceName").val("");
+ $("#HNote").val(";涓�閿壂鐮佷粨搴撴潯鐮�");
+ element.tabChange('tab-POStockInBill', '2'); //璺宠浆椤电
+ }
+ else if (result.data.HBarType == '浠撲綅鏉$爜') {
+ $("#HStockPlaceName").val(result.data.HSPName);
+ $("#HStockPlaceID").val(result.data.HSPID);
+ $("#HWHNAME").val(result.data.HWhName);
+ $("#HWHID").val(result.data.HWhID);
+ $("#HNote").val(";涓�閿壂鐮佷粨浣嶆潯鐮�");
+ element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
+ }
+ else if (result.data.HBarType == '閮ㄩ棬鏉$爜') {
+ $("#HDeptName").val(result.data.HDeptName);
+ $("#HDeptID").val(result.data.HDeptID);
+ $("#HNote").val(";涓�閿壂鐮侀儴闂ㄦ潯鐮�");
+ element.tabChange('tab-POStockInBill', '2');//璺宠浆椤电
+ }
+ else if (result.data.HBarType == '婧愬崟鏉$爜') {
+ $("#HSupName").val(result.data.HSupName);
+ $("#HSupID").val(result.data.HSupID);
+ $("#HDeptName").val(result.data.HDeptName);
+ $("#HDeptID").val(result.data.HDeptID);
+ $("#HSourceBillNo").val(result.data.HSourceBillNo);
+ sessionStorage["SourceFlag"] = true;
+ //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+ if (result.data.HSourceBillType == "1102") {
+ $("#HBillType").val("1102");
+
+ }
+ else if (result.data.HSourceBillType == "1103") {
+ $("#HBillType").val("1103");
+ }
+ else {
+ $("#HBillType").val("鎵嬪伐褰曞叆");
+ }
+ $("#HNote").val(";涓�閿壂鐮佹簮鍗曟潯鐮�");
+ element.tabChange('tab-POStockInBill', '3');
+ }
+ else {
+ if (sessionStorage["SourceFlag"] == "true") {
+ element.tabChange('tab-POStockInBill', '3');
+ }
+ else
+ {
+ $("#HSupName").val(result.data.hSupNameField);
+ $("#HSupID").val(result.data.hSupIDField);
+ //$("#HDeptName").val(result.data.HDept);
+ //$("#HDeptID").val(result.data.HDeptID);
+ $("#HSourceBillNo").val(result.data.hSourceBillNoField);
+ sessionStorage["SourceFlag"] = true;
+ //鑾峰彇婧愬崟绫诲瀷銆佹簮鍗曞崟鍙�
+ if (result.data.hSourceBillTypeField == "1102") {
+ $("#HBillType").val("1102");
+
+ }
+ else if (result.data.hSourceBillTypeField == "1103") {
+ $("#HBillType").val("1103");
+ }
+ else {
+ $("#HBillType").val("鎵嬪伐褰曞叆");
+ }
+ $("#HNote").val(";鐗╂枡鏉$爜");
+ element.tabChange('tab-POStockInBill', '3');
+ }
+ }
+ //$("#HSupID").val(result.data.HSupID);
+ //$("#HSupName").val(result.data.HSupName);
+ //$("#HDeptID").val(result.data.HDeptID);
+ //$("#HDeptName").val(result.data.HDeptName);
+ layer.load(3)
+ table.render({
+ elem: '#wl-table'
+ , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+ , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+ , cellMinWidth : 115
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HQty', title: '鏁伴噺', sort: true }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+ , { field: 'HBatchNo', title: '鎵规', sort: true }
+ ]]
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
+ }
+ });
+ }
+ else {
+ // $("#verifycode").click();
+ //layer.msg(result.Message, { icon: 5 });
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ //else
+ //{
+ // layer.msg(result.Message, { icon: 5 });
+ //}
+ //layer.closeAll("loading");
+ //}
+ });
+
+ //鎵簮鍗�
+ $('#HSourceBillNo').on('keydown', function (event) { //鎵簮鍗�
+ var HSourceBillNo = $('#HSourceBillNo').val()
+ var sInterID = $("#HInterID").val()
+ var sBillNo = $("#HBillNo").val()
+ var HSourceBillType = $("#HBillType").val()
+ if (event.keyCode == 13) {
+ //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
+ if (HSourceBillNo == "" || sInterID <= 0) {
+ layer.msg("婧愬崟鍙蜂负绌猴紝鎴栬�呭唴鐮佷笉瀛樺湪锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return;
+ }
+ //
+ $.ajax({
+ //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
+ url: GetWEBURL() + "/POStockInBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
+ type: "GET",
+ data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HSupID").val(result.data[0].HSupID);
+ $("#HSupName").val(result.data[0].HSupName);
+ //$("#HDeptID").val(result.data[0].HDeptID);
+ //$("#HDeptName").val(result.data[0].HDeptName);
+ sessionStorage["SourceFlag"] = true;
+ layer.load(3);
+ element.tabChange('tab-POStockInBill', '2');
+ table.render({
+ elem: '#wl-table'
+ , cellMinWidth: 80
+ //, url: 'http://61.130.49.162:9090/WMSAPI///POStockInBill/DisBillEntryList_Webs_Json'
+ , url: GetWEBURL() + '/POStockInBill/DisBillEntryList_Webs_Json'
+ //, toolbar: '#toolbarDemo'
+ , where: { HBillID: sInterID, HBillType: '1201', sWhere: '' }
+ , cols: [[
+ { type: 'radio' }
+ , { field: 'HQty', title: '鏁伴噺', sort: true }
+ , { field: 'HQtyMust', title: '搴旀敹鏁伴噺', sort: true }
+ , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', sort: true }
+ , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', sort: true }
+ , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', sort: true }
+ , { field: 'HSourceInterID', title: '婧愬崟涓诲唴鐮�', sort: true }
+ , { field: 'HSourceEntryID', title: '婧愬崟瀛愬唴鐮�', sort: true }
+ , { field: 'HSourceBillNo', title: '婧愬崟鍗曞彿', sort: true }
+ , { field: 'HBatchNo', title: '鎵规'}
+ ]]
+ // , data: [linterid]
+ // , page: true
+ , height: 500
+ , done: function () {
+ layer.closeAll("loading");
+ }
+ });
+ }
+ else {
+ // $("#verifycode").click();
+ //layer.msg(result.Message, { icon: 5 });
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+ }
+ });
+
+
+ $('#HStockPlaceName').on('keydown', function (event) { //鎵粨浣�
+ var HBarCode = $('#HStockPlaceName').val()
+ if (event.keyCode == 13) {
+ //鍒ゆ柇鏂囨湰妗嗘槸鍚︽湁鏁版嵁 new
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/getSpName_Json",
+ type: "GET",
+ data: { "HBarCode": HBarCode},
+ success: function (result) {
+ if (result.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+ $("#HStockPlaceName").val(result.data[0].HName);
+ $("#HStockPlaceID").val(result.data[0].HItemID);
+ $("#HWHID").val(result.data[0].HWHID);
+ $("#HWHNAME").val(result.data[0].HWhName);
+ element.tabChange('tab-POStockInBill', '2');
+ }
+ else {
+ // $("#verifycode").click();
+ //layer.msg(result.Message, { icon: 5 });
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ // layer.msg($('#HSourceBillNo').val(), { icon: 1 });
+ }
+ });
+ //鍒锋柊鏄庣粏椤电
+ table.render({
+ elem: '#mx-table'
+ // , url: 'http://localhost:8083/POStockInBill/GetHBarCodeShowBillSub'
+ //, toolbar: '#toolbarDemo'
+ // , where: { sMsg: linterid, sMsg2: lentryid }
+ , cols: [[
+ , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
+ ]]
+ , page: true
+ , height: 500
+ , done: function () {
+ }
+ });
+
+ //鎵玀ES浠撲綅
+ $('#HMESSPName').on('keydown', function (event) { //鎵粨浣�
+ var HBarCode = $('#HMESSPName').val();
+ if (event.keyCode == 13) {
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/getSpName_Json",
+ type: "GET",
+ data: { "HBarCode": HBarCode },
+ success: function (result) {
+ if (result.count == 1) {
+ $("#HMESSPID").val(result.data[0].HWHID);
+ $("#HMESSPName").val(result.data[0].HWhName + "-" + result.data[0].HName);
+ $("#HExplanation").val(result.data[0].HName + "-" + result.data[0].HWhName);
+ $.ajax({
+ url: GetWEBURL() + "/LookingFor/GetSpNameMES_Json",
+ type: "GET",
+ data: { "HERPWHID": result.data[0].HWHID },
+ success: function (result) {
+ if (result.count == 1) {
+ $("#HWHID").val(result.data[0].HMESWHID);
+ $("#HWHNAME").val(result.data[0].HMESWHNAME);
+ $("#HMESSPName").attr("readonly", "readonly");//MES浠撲綅鍙HExplanation
+ $("#HMESSPName").css("background-color", "#efefef4d");
+ }
+ else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ else {
+ layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ }
+ layer.closeAll("loading");
+ }
+ });
+ }
+ });
+
+ //浠ヤ笂涓簂ayui妯″潡
+ });
+
+ function GetHWHValue(obj) //杩斿洖璋冨叆浠撳簱
+ {
+ $("#HWHNAME").val(obj[0].HName);
+ //sessionStorage["HWHID"] = obj[0].HItemID;
+ $("#HWHID").val(obj[0].HItemID);
+ }
+ function GetHSpValue(obj) { //杩斿洖璋冨叆浠撲綅
+ $("#HStockPlaceName").val(obj[0].HName);
+ $("#HStockPlaceID").val(obj[0].HItemID);
+ }
+ function GetHSupValue(obj) { //杩斿洖渚涘簲鍟�
+ $("#HSupName").val(obj[0].HName);
+ $("#HSupID").val(obj[0].HItemID);
+ }
+ function GetHKeeperValue(obj) { //杩斿洖淇濈
+ $("#HKeeper").val(obj[0].HName);
+ $("#HKeeperID").val(obj[0].HItemID);
+ }
+ function GetHSecManagerValue(obj) { //杩斿洖楠屾敹
+ $("#HSecManager").val(obj[0].HName);
+ $("#HSecManagerID").val(obj[0].HItemID);
+ }
+ function GetHDeptNameValue(obj) { //杩斿洖閮ㄩ棬
+ $("#HDeptName").val(obj[0].HName);
+ $("#HDeptID").val(obj[0].HItemID);
+ }
+ function AllowLoadData(sSubStr,bnt) { //闈炵┖楠岃瘉
+ //if ($("#HSourceBillNo").val() == '') {
+ // layer.msg("璇峰厛鎵簮鍗�!", { icon: 5 });
+ // return false;
+ //}
+ if($("#HDeptName").val()=='')
+ {
+ layer.msg("閮ㄩ棬娌℃湁閫夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HSecManager").val() == '') {
+ layer.msg("楠屾敹浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HKeeper").val() == '') {
+ layer.msg("淇濈浜烘病鏈夐�夋嫨", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ //if ($("#HSupName").val() == '') {
+ // layer.msg("渚涘簲鍟嗘病鏈夐�夋嫨", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+ // return false;
+ //}
+ //if ($("#HWHNAME").val() == '') {
+ // layer.msg("浠撳簱娌℃湁閫夋嫨!", { icon: 5 });
+ // return false;
+ //}
+ if ($("#HBillNo").val() == '') {
+ layer.msg("閿欒鐨勫崟鎹彿", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if ($("#HInterID").val() == '') {
+ layer.msg("閿欒鐨勫唴鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (typeof (sSubStr) == "undefined")
+ {
+ //layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+ layer.msg("娌℃湁鐗╂枡鏄庣粏璁板綍", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ if (bnt == 'Saver') {
+ if (!typeof (sSubStr) == "undefined") {
+ //for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺
+ // if (parseFloat(sSubStr[i].HQtyMust) > 0) {
+ // if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust)) {
+ // layer.msg("鏁伴噺涓嶈兘澶т簬搴旀敹鏁伴噺", { icon: 5, btn: ['纭畾'], time: 100000, offset: 't' });
+ // return false;
+ // }
+ // }
+ //}
+ for (var i = 0; i <= sSubStr.length - 1; i++) { //鍒ゆ柇鎵爜鏁伴噺涓嶈兘涓�0
+ if (parseFloat(sSubStr[i].HQty) > 0) {
+ s = 1;
+ }
+ }
+ if (s == 0) {
+ layer.msg("澶栬喘鍏ュ簱璁板綍鏈壂鐮�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+ return false;
+ }
+ }
+ }
+ else {
+ return true;
+ }
+ }
+ </script>
+
+</body>
+</html>
--
Gitblit v1.9.1