From 3425237a2b54ca28fc3e3c5f7c35a7fbef4e15fa Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 29 十二月 2025 09:19:29 +0800
Subject: [PATCH] 1

---
 WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBill.html |  554 +++++++++++++++++++++++++++++++-----------------------
 1 files changed, 316 insertions(+), 238 deletions(-)

diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
index 9ca519b..0c75c29 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\346\265\201\350\275\254\345\215\241/Sc_ProcessExchangeBill.html"
@@ -15,6 +15,7 @@
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../../layuiadmin/PubCustom.js"></script>
     <script src="../../../layuiadmin/PageTitle.js"></script>
+    <script src="../../../layuiadmin/MESLanguage.js"></script>
     <style>
         .main-btn { /*澶撮儴涓绘寜閽�*/
             padding: 0 2px; /*璋冩暣鎸夐挳宸﹀彸绌洪殭澶у皬*/
@@ -55,19 +56,19 @@
                     <div class="layui-card-header">
                         <div class="layui-btn-group">
                             <button type="button" id="set_SaveBill" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btnSave">淇濆瓨</button>
-                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel">閫�鍑�</button>
-                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btn_print">鎵撳嵃</button>
+                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="Cancel" id="Cancel">閫�鍑�</button>
+                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit="" lay-filter="btn_print" id="btn_print">鎵撳嵃</button>
                             <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="HideColumn" id="HideColumn">闅愯棌鍒楄缃�</button>
                         </div>
                     </div>
                     <div class="layui-tab" lay-filter="tab-POStockInBill">
-                        <h1 style="text-align:center;"><b>宸ュ簭娴佽浆鍗�</b></h1>
+                        <h1 style="text-align:center;" id="BT_GXLZK"><b>宸ュ簭娴佽浆鍗�</b></h1>
                         <ul class="layui-tab-title" lay-filter="tab-all">
-                            <li lay-id="1" style="padding:1px;" class="layui-this">鍩烘湰淇℃伅</li>
-                            <li lay-id="5" style="padding:1px;">缇婃瘺淇℃伅</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>
+                                <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>
+                                <li lay-id="5" style="padding:1px;">鍒跺崟淇℃伅</li>
                         </ul>
                         <div class="layui-tab-content">
                             <!--鍩烘湰淇℃伅-->
@@ -75,7 +76,7 @@
                                 <div class="layui-form-item" style="padding-top: 3px;">
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍗曟嵁鍙�</label>
+                                            <label class="layui-form-label" id="BT_HBillNo">鍗曟嵁鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="background-color:#efefef4d;" readonly>
                                                 <input type="hidden" name="HInterID" id="HInterID" value="0">
@@ -83,19 +84,19 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏃ユ湡</label>
+                                            <label class="layui-form-label" id="BT_HDate">鏃ユ湡</label>
                                             <div class="layui-input-inline">
                                                 <input type="datetime" class="layui-input" name="HDate" id="HDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏌撹壊瑕佹眰</label>
+                                            <label class="layui-form-label" id="BT_HColorRemark">鏌撹壊瑕佹眰</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HColorRemark" id="HColorRemark" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label">閿�鍞鍗曠被鍨�</label>
+                                            <label class="layui-form-label" id="BT_HMainSourceBillSubType">閿�鍞鍗曠被鍨�</label>
                                             <div class="layui-input-inline">
                                                 <select name="HMainSourceBillSubType" id="HMainSourceBillSubType" lay-filter="HMainSourceBillSubType" disabled="disabled" style="width: 180px; ">
                                                     <option style="color:blue;" selected="selected" value=""></option>
@@ -119,7 +120,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">浜у搧鍚嶇О</label>
+                                            <label class="layui-form-label" id="BT_HMaterName2">浜у搧鍚嶇О</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterName2" id="HMaterName2" onmouseover="this.title=this.value" style="float: left; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" name="HMaterID2" id="HMaterID2" value="0">
@@ -129,19 +130,19 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">浜у搧浠g爜</label>
+                                            <label class="layui-form-label" id="BT_HMaterNumber2">浜у搧浠g爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterNumber2" id="HMaterNumber2" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">浜у搧瑙勬牸</label>
+                                            <label class="layui-form-label"  id="BT_HMaterModel2">浜у搧瑙勬牸</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterModel2" id="HMaterModel2" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">椤圭洰缂栧彿</label>
+                                            <label class="layui-form-label" id="BT_HProjectNum">椤圭洰缂栧彿</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HProjectNum" id="HProjectNum">
                                             </div>
@@ -155,31 +156,37 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鐢熶骇璁㈠崟鍙�</label>
+                                            <label class="layui-form-label" id="BT_HICMOBillNo">鐢熶骇璁㈠崟鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;" readonly>
                                                 <input type="hidden" name="HICMOInterID" id="HICMOInterID" value="0">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">娴佽浆鍗℃暟閲�</label>
+                                            <label class="layui-form-label" id="BT_HQty">娴佽浆鍗℃暟閲�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HQty" id="HQty">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍗曚綅</label>
+                                            <label class="layui-form-label" id="BT_HUnitName">鍗曚綅</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HUnitName" id="HUnitName" style="background-color:#efefef4d;" readonly>
                                                 <input type="hidden" name="HUnitID" id="HUnitID" value="0">
                                             </div>
                                         </div>
-                                        <!--<div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏉愯川</label>
+                                        <div class="layui-col-xs3 layui-inline">
+                                            <label class="layui-form-label" id="BT_HBatchNo">鎵规鍙�</label>
                                             <div class="layui-input-inline">
-                                                <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture">
+                                                <input type="text" class="layui-input" name="HBatchNo" id="HBatchNo" value="">
                                             </div>
-                                        </div>-->
+                                        </div>
+                                        <!--<div class="layui-col-xs3 layui-inline">
+        <label class="layui-form-label">鏉愯川</label>
+        <div class="layui-input-inline">
+            <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture">
+        </div>
+    </div>-->
                                     </div>
                                     <div class="layui-row">
                                         <!--<div class="layui-col-xs3 layui-inline">
@@ -196,7 +203,7 @@
                                         </div>-->
 
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">閫夊崟鍙�</label>
+                                            <label class="layui-form-label" id="BT_textBox2">閫夊崟鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="textBox2" id="textBox2" style="float: left; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <!--<button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="width: 40px;">
@@ -205,7 +212,7 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">宸ヨ壓璺嚎</label>
+                                            <label class="layui-form-label" id="BT_RoutingBill">宸ヨ壓璺嚎</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="RoutingBill" id="RoutingBill" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HRoutingBillID" id="HRoutingBillID">
@@ -215,13 +222,13 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">骞呭</label>
+                                            <label class="layui-form-label" id="BT_HWidth">骞呭</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HWidth" id="HWidth" style="background-color: #efefef4d; float: left;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鐢熶骇骞呭</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HWidth_New">鐢熶骇骞呭</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HWidth_New" lay-verify="HWidth_New" id="HWidth_New" value="0" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -237,49 +244,54 @@
 
                                     <div class="layui-row">
                                         <!--<div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">澶囨敞</label>
-                                            <div class="layui-input-inline">
-                                                <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width:610px;">
-                                            </div>
-                                        </div>
+        <label class="layui-form-label" style="width:12.5%">澶囨敞</label>
+        <div class="layui-input-inline">
+            <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width:610px;">
+        </div>
+    </div>
+    <div class="layui-col-xs3 layui-inline">
+        <label class="layui-form-label">鏃ヨ鍒掑伐鍗曢�夊崟鍙�</label>
+        <div class="layui-input-inline">
+            <input type="text" class="layui-input" name="HWorkBillSortNo" id="HWorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
+            <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;">
+                <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+            </button>
+        </div>
+    </div>-->
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏃ヨ鍒掑伐鍗曢�夊崟鍙�</label>
-                                            <div class="layui-input-inline">
-                                                <input type="text" class="layui-input" name="HWorkBillSortNo" id="HWorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
-                                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;">
-                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
-                                                </button>
-                                            </div>
-                                        </div>-->
-                                        <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">杈呮暟閲�</label>
+                                            <label class="layui-form-label" id="BT_HAuxQty">杈呮暟閲�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HAuxQty" id="HAuxQty" style="float: left;" value="0">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鎷嗗垎鍙�</label>
+                                            <label class="layui-form-label" id="BT_HSplitNo">鎷嗗垎鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HSplitNo" id="HSplitNo" style="float: left;" value="0">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍒嗙几鍙�</label>
+                                            <label class="layui-form-label" id="BT_HSplitColorQty">鍒嗙几鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HSplitColorQty" id="HSplitColorQty" style="float: left;" value="0">
                                             </div>
                                         </div>
-
+                                        <div class="layui-col-xs3 layui-inline">
+                                            <label class="layui-form-label" id="BT_HMouldNum">妯$┐鍙�</label>
+                                            <div class="layui-input-inline">
+                                                <input type="text" class="layui-input" name="HMouldNum" id="HMouldNum" style="float: left;" value="">
+                                            </div>
+                                        </div>
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鎷嗗垎鎬婚噺</label>
+                                            <label class="layui-form-label" id="BT_HSplitSumQty">鎷嗗垎鎬婚噺</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HSplitSumQty" id="HSplitSumQty" style="float: left;" value="0">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">杈呭姪鍗曚綅</label>
+                                            <label class="layui-form-label" id="BT_HAuxUnitName">杈呭姪鍗曚綅</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HAuxUnitName" id="HAuxUnitName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HAuxUnit" id="HAuxUnit" value="0">
@@ -301,13 +313,13 @@
                                             </div>
                                         </div>-->
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍏嬮噸</label>
+                                            <label class="layui-form-label" id="BT_HWeight">鍏嬮噸</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HWeight" id="HWeight" style="float: left;background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鐢熶骇鍏嬮噸</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HWeight_New">鐢熶骇鍏嬮噸</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HWeight_New" lay-verify="HWeight_New" id="HWeight_New" value="0" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -315,29 +327,35 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">涓氬姟鍛�</label>
+                                            <label class="layui-form-label" id="BT_HEmpName">涓氬姟鍛�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float: left; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HEmpID" id="HEmpID">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">瀹㈡埛</label>
+                                            <label class="layui-form-label" id="BT_HCusNames">瀹㈡埛</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HCusNames" id="HCusNames" style="float: left; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HCusID" id="HCusID">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label"> 鏉愭枡瑙勬牸</label>
+                                            <label class="layui-form-label" id="BT_HMaterModel"> 鏉愭枡瑙勬牸</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterModel" id="HMaterModel" style="float: left;">
+                                            </div>
+                                        </div>
+                                        <div class="layui-col-xs3 layui-inline">
+                                            <label class="layui-form-label" id="BT_HMateOutBatchNo">鍘熸枡鎵规</label>
+                                            <div class="layui-input-inline">
+                                                <input type="text" class="layui-input" name="HMateOutBatchNo" id="HMateOutBatchNo">
                                             </div>
                                         </div>
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">璁㈠崟绛夌骇</label>
+                                            <label class="layui-form-label" id="BT_HName">璁㈠崟绛夌骇</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HName" id="HName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HOrderLevID" id="HOrderLevID" value="0">
@@ -347,13 +365,13 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">杈呮暟閲�2</label>
+                                            <label class="layui-form-label" id="BT_HAuxQty2">杈呮暟閲�2</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HAuxQty2" id="HAuxQty2" style="float: left;" value="0">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">杈呭姪鍗曚綅2</label>
+                                            <label class="layui-form-label" id="BT_HAuxUnitName2">杈呭姪鍗曚綅2</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HAuxUnitName2" id="HAuxUnitName2" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" class="layui-input" name="HAuxUnit2" id="HAuxUnit2" value="0">
@@ -365,7 +383,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">澶囨敞</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HRemark">澶囨敞</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width: 610px;">
                                             </div>
@@ -373,13 +391,13 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">鐧藉澂瑕佹眰</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HRemark2">鐧藉澂瑕佹眰</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HRemark2" id="HRemark2" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width: 610px; background-color: #efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鐢熶骇瑙勬牸</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HRemark_New">鐢熶骇瑙勬牸</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HRemark_New" lay-verify="HRemark_New" id="HRemark_New" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -387,7 +405,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">搴曢儴澶囨敞</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HRemark3">搴曢儴澶囨敞</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HRemark3" id="HRemark3" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width: 610px;">
                                             </div>
@@ -400,19 +418,19 @@
                                 <div class="layui-form-item">
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">姣涢珮</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HHeight">姣涢珮</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HHeight" id="HHeight">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀵告暟缁勭粐</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HInches">瀵告暟缁勭粐</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HInches" id="HInches">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍏ㄦ瘺闀�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HAl1Long">鍏ㄦ瘺闀�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HAl1Long" id="HAl1Long">
                                             </div>
@@ -420,19 +438,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍧竷瀵嗗害</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HDensity">鍧竷瀵嗗害</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HDensity" id="HDensity">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">姣涚罕鍚嶇О鍙婅鏍�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HTela">姣涚罕鍚嶇О鍙婅鏍�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HTela" id="HTela">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">搴曚笣</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HUnderTela">搴曚笣</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HUnderTela" id="HUnderTela">
                                             </div>
@@ -440,13 +458,13 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀹氬瀷娴嗘枡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HSizing">瀹氬瀷娴嗘枡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HSizing" id="HSizing">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">浜よ揣鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HSellDate">浜よ揣鏃ユ湡</label>
                                             <div class="layui-input-inline">
                                                 <input type="date" class="layui-input" name="HSellDate" id="HSellDate" style="padding-left: 32px;">
                                             </div>
@@ -459,7 +477,7 @@
                                 <div class="layui-form-item">
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鐢熶骇杞﹂棿</label>
+                                            <label class="layui-form-label" id="BT_HWorkShopName">鐢熶骇杞﹂棿</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HWorkShopName" id="HWorkShopName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" name="HWorkShopID" id="HWorkShopID" value="0">
@@ -476,7 +494,7 @@
                                         </div>-->
 
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">濮斿鍔犲伐鍗曚綅</label>
+                                            <label class="layui-form-label"  id="BT_HSupName">濮斿鍔犲伐鍗曚綅</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HSupName" id="HSupName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" name="HSupID" id="HSupID" value="0">
@@ -486,7 +504,7 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">璁㈠崟璺熻釜鍙�</label>
+                                            <label class="layui-form-label" id="BT_HOrderProcNO">璁㈠崟璺熻釜鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HOrderProcNO" id="HOrderProcNO" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -494,7 +512,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">瀛愪欢鍚嶇О</label>
+                                            <label class="layui-form-label" id="BT_HMaterName">瀛愪欢鍚嶇О</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterName" id="HMaterName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" name="HMaterID" id="HMaterID" value="0">
@@ -504,19 +522,19 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">瀛愪欢浠g爜</label>
+                                            <label class="layui-form-label" id="BT_HMaterNumber">瀛愪欢浠g爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">瀛愪欢瑙勬牸</label>
+                                            <label class="layui-form-label" id="BT_HMaterModel1">瀛愪欢瑙勬牸</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterModel1" id="HMaterModel1" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍥惧彿鐗堟湰</label>
+                                            <label class="layui-form-label" id="BT_HPicNumVer">鍥惧彿鐗堟湰</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HPicNumVer" id="HPicNumVer" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -524,26 +542,26 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍗曚綅浠g爜</label>
+                                            <label class="layui-form-label" id="BT_HUnitNumber">鍗曚綅浠g爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HUnitNumber" id="HUnitNumber" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">涓昏鏉愭枡</label>
+                                            <label class="layui-form-label" id="BT_HMainMaterID">涓昏鏉愭枡</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMainMaterID" id="HMainMaterID" value="0" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鐢熶骇鏁伴噺</label>
+                                            <label class="layui-form-label" id="BT_HPlanQty">鐢熶骇鏁伴噺</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HPlanQty" id="HPlanQty" value="0" style=" background-color: #efefef4d; width: 90px; float: left; margin-right: 4px;" readonly>
                                                 <input type="text" class="layui-input" name="HprocExQty" id="HprocExQty" style="background-color:#efefef4d; width: 90px;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鎬昏鍥惧彿</label>
+                                            <label class="layui-form-label" id="BT_HPicNumAssemble">鎬昏鍥惧彿</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -551,25 +569,20 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍏抽敭鏉愭枡</label>
+                                            <label class="layui-form-label" id="BT_HKeyMaterID">鍏抽敭鏉愭枡</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HKeyMaterID" id="HKeyMaterID" value="0" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">HICMOEntryID</label>
+                                            <label class="layui-form-label" id="BT_HICMOEntryID">HICMOEntryID</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HICMOEntryID" id="HICMOEntryID" value="0" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
+                                       
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鍘熸枡鎵规</label>
-                                            <div class="layui-input-inline">
-                                                <input type="text" class="layui-input" name="HMateOutBatchNo" id="HMateOutBatchNo" style="background-color:#efefef4d;" readonly>
-                                            </div>
-                                        </div>
-                                        <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏉愯川</label>
+                                            <label class="layui-form-label" id="BT_HMaterTexture">鏉愯川</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HMaterTexture" id="HMaterTexture">
                                             </div>
@@ -587,7 +600,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鐗堟湰</label>
+                                            <label class="layui-form-label" id="BT_HVerNum">鐗堟湰</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HVerNum" id="HVerNum" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -605,7 +618,7 @@
                                             </div>
                                         </div>-->
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鑺綋鐗╂枡浠g爜</label>
+                                            <label class="layui-form-label" id="BT_HXTNumber">鑺綋鐗╂枡浠g爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HXTNumber" id="HXTNumber">
                                             </div>
@@ -614,25 +627,25 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">璁″垝寮�宸ユ棩鏈�</label>
+                                            <label class="layui-form-label" id="BT_HPlanBeginDate">璁″垝寮�宸ユ棩鏈�</label>
                                             <div class="layui-input-inline">
                                                 <input type="date" class="layui-input" name="HPlanBeginDate" id="HPlanBeginDate" style="padding-left: 32px;">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">璁″垝瀹屽伐鏃ユ湡</label>
+                                            <label class="layui-form-label" id="BT_HPlanEndDate">璁″垝瀹屽伐鏃ユ湡</label>
                                             <div class="layui-input-inline">
                                                 <input type="date" class="layui-input" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 32px;">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">琛ユ枡鍘熷洜</label>
+                                            <label class="layui-form-label" id="BT_HExplanation">琛ユ枡鍘熷洜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HExplanation" id="HExplanation" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鑺綋瑙勬牸鍨嬪彿</label>
+                                            <label class="layui-form-label" id="BT_HXTModel">鑺綋瑙勬牸鍨嬪彿</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HXTModel" id="HXTModel">
                                             </div>
@@ -640,7 +653,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">妯″叿璁惧</label>
+                                            <label class="layui-form-label" id="BT_HEquipMentName">妯″叿璁惧</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HEquipMentName" id="HEquipMentName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <input type="hidden" name="HEquipMentID" id="HEquipMentID" value="0">
@@ -652,7 +665,7 @@
 
 
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">鏃ヨ鍒掑伐鍗曢�夊崟鍙�</label>
+                                            <label class="layui-form-label" id="BT_HWorkBillSortNo">鏃ヨ鍒掑伐鍗曢�夊崟鍙�</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HWorkBillSortNo" id="HWorkBillSortNo" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly>
                                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchWorkBillSort" id="btnSearchWorkBillSort" style="width: 40px;">
@@ -661,7 +674,7 @@
                                             </div>
                                         </div>
                                         <div class="layui-col-xs3 layui-inline">
-                                            <label class="layui-form-label">琛ユ枡鏍囪</label>
+                                            <label class="layui-form-label" id="BT_isHBLFlag">琛ユ枡鏍囪</label>
                                             <div class="layui-input-inline">
                                                 <input type="checkbox" name="isHBLFlag" id="isHBLFlag" value="false" lay-skin="primary" lay-filter="isHBLFlag">
                                                 <input type="hidden" name="HBLFlag" id="HBLFlag" value="false" lay-skin="primary" lay-filter="HBLFlag">
@@ -670,25 +683,25 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">婧愬崟瀹㈡埛浠g爜</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HCusNumber">婧愬崟瀹㈡埛浠g爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HCusNumber" id="HCusNumber" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width:610px;">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">鍖呰鏍囪瘑</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HPickLabel">鍖呰鏍囪瘑</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HPickLabel" id="HPickLabel" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width:610px;">
                                             </div>
                                         </div>
                                         <div class="layui-col-xs6 layui-inline">
-                                            <label class="layui-form-label" style="width:12.5%">鍖呰鏍囪瘑缂栫爜</label>
+                                            <label class="layui-form-label" style="width:12.5%" id="BT_HPickLabelNumber">鍖呰鏍囪瘑缂栫爜</label>
                                             <div class="layui-input-inline">
                                                 <input type="text" class="layui-input" name="HPickLabelNumber" id="HPickLabelNumber" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="width:610px;">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">璁㈠崟璺熻釜鍙�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HPlanOrderProcNo">璁㈠崟璺熻釜鍙�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HPlanOrderProcNo" id="HPlanOrderProcNo" value="" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -701,13 +714,13 @@
                                 <div class="layui-form-item">
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">浜у搧CODE</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HProdMaterCode">浜у搧CODE</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HProdMaterCode" id="HProdMaterCode">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">閿�鍞鍗曞彿</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HSeOrderBillNo">閿�鍞鍗曞彿</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HSeOrderBillNo" id="HSeOrderBillNo">
                                                 <!--<input type="hidden" class="layui-input" name="HSeOrderEntryID" id="HSeOrderEntryID">
@@ -715,7 +728,7 @@
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀹㈡埛绠�绉�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HCusShortName">瀹㈡埛绠�绉�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCusShortName" id="HCusShortName">
                                             </div>
@@ -723,19 +736,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 115px;padding: 9px 0px;">瀹㈡埛瑕佹眰鏉愭枡鎴愬垎</label>
+                                            <label class="layui-form-label" style="width: 115px;padding: 9px 0px;" id="BT_HCusNeedMaterial">瀹㈡埛瑕佹眰鏉愭枡鎴愬垎</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCusNeedMaterial" id="HCusNeedMaterial">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">棰勮鍑鸿揣鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HPlanSendGoodsDate">棰勮鍑鸿揣鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="date" class="layui-input" name="HPlanSendGoodsDate" id="HPlanSendGoodsDate" style="padding-left: 32px;">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">浜у搧鍚嶇О</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HProdMaterName">浜у搧鍚嶇О</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HProdMaterName" id="HProdMaterName">
                                             </div>
@@ -743,19 +756,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀹㈡埛鍚嶇О</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HCusName">瀹㈡埛鍚嶇О</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCusName" id="HCusName">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鐢熶骇澶囨敞</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HWorkRemark">鐢熶骇澶囨敞</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HWorkRemark" id="HWorkRemark">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">閲嶈鎻愮ず</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HImportNote">閲嶈鎻愮ず</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HImportNote" id="HImportNote">
                                             </div>
@@ -763,19 +776,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欑紪鍙稟</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterNumber_A">鍘熸潗鏂欑紪鍙稟</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterNumber_A" id="HMaterNumber_A">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欑紪鍙稡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterNumber_B">鍘熸潗鏂欑紪鍙稡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterNumber_B" id="HMaterNumber_B">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欑紪鍙稢</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterNumber_C">鍘熸潗鏂欑紪鍙稢</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterNumber_C" id="HMaterNumber_C">
                                             </div>
@@ -783,19 +796,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欑紪鍙稤</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterNumber_D">鍘熸潗鏂欑紪鍙稤</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterNumber_D" id="HMaterNumber_D">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鐢熶骇绫诲瀷</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HProdType">鐢熶骇绫诲瀷</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HProdType" id="HProdType">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欑畝绉�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterShortName">鍘熸潗鏂欑畝绉�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterShortName" id="HMaterShortName">
                                             </div>
@@ -803,19 +816,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欏唴鐮丄</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterIDA">鍘熸潗鏂欏唴鐮丄</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterIDA" id="HMaterIDA">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欏唴鐮丅</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterIDB">鍘熸潗鏂欏唴鐮丅</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterIDB" id="HMaterIDB">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欏唴鐮丆</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterIDC">鍘熸潗鏂欏唴鐮丆</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterIDC" id="HMaterIDC">
                                             </div>
@@ -823,7 +836,7 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍘熸潗鏂欏唴鐮丏</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaterIDD">鍘熸潗鏂欏唴鐮丏</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaterIDD" id="HMaterIDD">
                                             </div>
@@ -836,19 +849,19 @@
                                 <div class="layui-form-item">
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍒跺崟浜�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMaker">鍒跺崟浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMaker" id="HMaker" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀹℃牳浜�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HChecker">瀹℃牳浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HChecker" id="HChecker" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍏抽棴浜�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HCloseMan">鍏抽棴浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCloseMan" id="HCloseMan" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -856,19 +869,19 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍒跺崟鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HMakeDate">鍒跺崟鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HMakeDate" id="HMakeDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">瀹℃牳鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HCheckDate">瀹℃牳鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCheckDate" id="HCheckDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">鍏抽棴鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HCloseDate">鍏抽棴鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HCloseDate" id="HCloseDate" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -876,13 +889,13 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">淇敼浜�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HUpDater">淇敼浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HUpDater" id="HUpDater" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">浣滃簾浜�</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HDeleteMan">浣滃簾浜�</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HDeleteMan" id="HDeleteMan" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -890,13 +903,13 @@
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">淇敼鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HUpDateDate">淇敼鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HUpDateDate" id="HUpDateDate" style="background-color:#efefef4d;" readonly>
                                             </div>
                                         </div>
                                         <div class="layui-inline">
-                                            <label class="layui-form-label" style="width: 85px;">浣滃簾鏃ユ湡</label>
+                                            <label class="layui-form-label" style="width: 85px;" id="BT_HDeleteDate">浣滃簾鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
                                                 <input type="text" class="layui-input" name="HDeleteDate" id="HDeleteDate" style="background-color:#efefef4d;" readonly>
                                             </div>
@@ -931,8 +944,8 @@
 
                     <script type="text/html" id="toolbarDemo">
                         <div class="layui-btn-container">
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>澧炲姞涓�琛�</button>
-                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine" id="BT_AddLine"><i class="layui-icon layui-icon-form"></i>澧炲姞涓�琛�</button>
+                            <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine" id="BT_CopyLine"><i class="layui-icon layui-icon-form"></i>澶嶅埗涓�琛�</button>
                         </div>
                     </script>
                     <input id="HItemID" name="HItemID" type="hidden" />
@@ -1024,7 +1037,7 @@
             //鍒ゆ柇鎿嶄綔绫诲瀷
             if (OperationType == 1 ) {//鏃犳簮鍗曟柊澧�
                 $.ajax({
-                    url: GetWEBURL() + "/Web/GetMAXNum",
+                    url: GetWEBURL() + "/Web/GetMAXNumPDA",
                     type: "GET",
                     data: { "HBillType": '3772' },
                     success: function (d) {
@@ -1043,7 +1056,8 @@
                     "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
                     "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
                     "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
-                    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": ""
+                    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "",
+                    "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0
                 }];
                 table.render(option);
             }
@@ -1062,7 +1076,7 @@
                             layer.alert(result.Message, { icon: 5 });
                         } else {
                             $.ajax({
-                                url: GetWEBURL() + "/Web/GetMAXNum",
+                                url: GetWEBURL() + "/Web/GetMAXNumPDA",
                                 type: "GET",
                                 data: { "HBillType": '3772' },
                                 success: function (d) {
@@ -1096,7 +1110,8 @@
                                 "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
                                 "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
                                 "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
-                                "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": ""
+                                "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "",
+                                "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0
                             }];
                             table.render(option);
                         }
@@ -1106,6 +1121,7 @@
             }
             else if (OperationType == 3) {//缂栬緫
                 $("#HItemID").val(linterid);//淇敼鏃朵富琛↖D
+                $("#btnRoutingBill").addClass("layui-btn-disabled").attr("disabled", true);
                 set_EditFromGrid();
 
             }
@@ -1151,6 +1167,9 @@
             else {
                 layer.alert("鏈煡鎿嶄綔绫诲瀷锛�", { icon: 5 });
             }
+
+
+            initFunction(1,HModName, sessionStorage["HTranSlate"]);
             //#endregion
 
 
@@ -1175,7 +1194,8 @@
                     , { field: 'HSupFlag', title: '鏄惁濮斿', templet: '#HSupFlag' }
                     , { field: 'HQty', title: '娴佽浆鍗℃暟閲�', totalRow: true, edit: 'text', width:120 }
                     , { field: 'HSNCtrl', title: 'SN杩囩珯鎺у埗', templet: "#HSNCtrl", width: 120  }
-
+                    , { field: 'HRoutingBillMainID', title: '宸ヨ壓璺嚎ID', hide: true }
+                    , { field: 'HRoutingBillEntryID', title: '宸ヨ壓璺嚎瀛怚D', hide: true }
                     //, { field: 'HWorkRemark', title: '鍔犲伐璇存槑', edit: 'text' }
                     //, { field: 'HDeptID', title: '閮ㄩ棬ID', hide: true }
                     //, { field: 'HDeptNumber', title: '閮ㄩ棬浠g爜', edit: 'text', event: "HDeptCheck" }
@@ -1237,7 +1257,8 @@
                     "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
                     "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
                     "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
-                    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": ""
+                    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "",
+                    "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0
                 };
                 switch (obj.event) {
                     case 'btn-AddLine':
@@ -1258,10 +1279,10 @@
                     case 'btn-CopyLine':
                         var copydata = JSON.stringify(data);
                         if (data.length <= 0) {
-                            layer.msg("璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒");
+                            layer.msg(get_MessageError("[0000-2-001]璇烽�夋嫨闇�瑕佸鍒剁殑涓�琛岋紒", sessionStorage["HTranSlate"]));
                         }
                         else if (data.length > 1) {
-                            layer.msg("鍙兘閫夋嫨澶嶅埗涓�琛岋紒");
+                            layer.msg(get_MessageError("[0000-2-002]鍙兘閫夋嫨澶嶅埗涓�琛岋紒", sessionStorage["HTranSlate"]));
                         }
                         else {
                             var copydata2 = copydata.substring(1, copydata.length);//鍘婚櫎棣栬瀛楃'['
@@ -1283,6 +1304,7 @@
                         }
                         break;
                 }
+                initFunction(1,HModName, sessionStorage["HTranSlate"]);
             });
 
             //琛屽唴浜嬩欢
@@ -1290,9 +1312,9 @@
                 var data = obj.data;
                 var rowIndex = $(obj.tr).attr("data-index");
                 if (obj.event === 'del') {
-                    layer.confirm('鐪熺殑鍒犻櫎琛屽悧锛�', function (index) {
+                    layer.confirm(get_MessageError('[0000-1-003]鐪熺殑鍒犻櫎琛屽悧锛�', sessionStorage["HTranSlate"]), function (index) {
                         if (rowIndex === '0') {
-                            layer.msg('棣栬鏃犳硶鍒犻櫎锛侊紒锛�');
+                            layer.msg(get_MessageError('[0000-2-003]棣栬鏃犳硶鍒犻櫎锛侊紒锛�', sessionStorage["HTranSlate"]));
                         } else {
                             obj.del();
                             option.data = table.cache["mainTable"];//灏嗘暟鎹粦瀹氬埌data涓�
@@ -1320,7 +1342,7 @@
                                     var iframeWindow = window['layui-layer-iframe' + index];
                                     var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                     if (checkStatus.data.length === 0) {
-                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                        return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                                     }
                                     obj.update({
                                         HProcName: checkStatus.data[0].宸ュ簭鍚嶇О
@@ -1359,7 +1381,7 @@
                                     var iframeWindow = window['layui-layer-iframe' + index];
                                     var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                     if (checkStatus.data.length === 0) {
-                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                        return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                                     }
                                     obj.update({
                                         HCenterName: checkStatus.data[0].宸ヤ綔涓績鍚嶇О
@@ -1391,7 +1413,7 @@
                                     var iframeWindow = window['layui-layer-iframe' + index];
                                     var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                     if (checkStatus.data.length === 0) {
-                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                        return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                                     }
                                     obj.update({
                                         HSupName: checkStatus.data[0].渚涘簲鍟嗗悕绉�
@@ -1423,7 +1445,7 @@
                                     var iframeWindow = window['layui-layer-iframe' + index];
                                     var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');
                                     if (checkStatus.data.length === 0) {
-                                        return layer.msg('璇烽�夋嫨鏁版嵁');
+                                        return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                                     }
                                     obj.update({
                                         HDeptName: checkStatus.data[0].閮ㄩ棬鍚嶇О
@@ -1466,30 +1488,41 @@
                 }
             });
 
-            $("#HQty").on("input", function (e) {
-                //鑾峰彇input杈撳叆鐨勫��
-                if (parseInt(e.delegateTarget.value)> parseInt($("#HPlanQty").val())) {
-                    return layer.msg("鎷嗗垎鏁伴噺涓嶈兘瓒呰繃鍙媶鍒嗘暟閲�!");
-                }
-                else {
+            $(document).ready(function () {
+                var currentValue = $("#HQty").val();                             // 瀛樺偍褰撳墠鍊肩殑鍙橀噺
+
+                $("#HQty").on("input", function (e) {
+                    var previousValue = currentValue; // 鍙樻洿鍓嶇殑鍊�
+                    currentValue = $(this).val(); // 鏇存柊褰撳墠鍊�
+
+                    //鑾峰彇input杈撳叆鐨勫��
+                    if (parseInt(e.delegateTarget.value) > parseInt($("#HPlanQty").val())) {
+                        $("#HQty").val(previousValue);
+                        currentValue = previousValue;
+                        return layer.msg(get_MessageError("[3772-2-004]鎷嗗垎鏁伴噺涓嶈兘瓒呰繃鍙媶鍒嗘暟閲�!", sessionStorage["HTranSlate"]));
+                    }
+                    else {
+                        for (var i = 0; i < option.data.length; i++) {
+                            option.data[i]["HQty"] = e.delegateTarget.value;
+                        }
+                    }
+                    table.render(option);
+
                     for (var i = 0; i < option.data.length; i++) {
-                        option.data[i]["HQty"] = e.delegateTarget.value;
+                        $('#HSupFlag' + (i + 1)).find("option[value='" + (option.data[i].HSupFlag == "false" ? "false" : "true") + "']").attr("selected", true);
+
+                        if (option.data[i].HSNCtrl.toString() == "true") {
+                            $('#HSNCtrl' + (i + 1)).attr("checked", true);
+                        }
                     }
-                }
-                table.render(option);
 
-                for (var i = 0; i < option.data.length; i++) {
-                    $('#HSupFlag' + (i + 1)).find("option[value='" + (option.data[i].HSupFlag == "false" ? "false" : "true") + "']").attr("selected", true);
+                    form.render('select');
+                    form.render('checkbox');
 
-                    if (option.data[i].HSNCtrl.toString() == "true") {
-                        $('#HSNCtrl' + (i + 1)).attr("checked", true);
-                    }
-                }
-
-                form.render('select');
-                form.render('checkbox');
-
+                });
             });
+
+            
 
             //鐩戝惉鍗曞厓鏍肩紪杈�  鍗曞厓鏍肩紪杈戝悗 鍙樻洿
             table.on('edit(mainTable)', function (obj) {
@@ -1553,7 +1586,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HMaterName2").val(checkStatus.data[0].HName);
                         $("#HMaterID2").val(checkStatus.data[0].HItemID);
@@ -1617,19 +1650,19 @@
                                         }
                                     }, error: function () {
                                         layer.close(ajaxLoad);
-                                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                                     }
                                 })
 
                             } else {
-                                layer.msg("璇峰厛淇濆瓨,鍦ㄨ繘琛屾墦鍗�!");
+                                layer.msg(get_MessageError("[3772-2-005]璇峰厛淇濆瓨,鍦ㄨ繘琛屾墦鍗�!", sessionStorage["HTranSlate"]));
                             }
                         } else {
                             layer.close(ajaxLoad);
                         }
                     }, error: function () {
                         layer.close(ajaxLoad);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 });
 
@@ -1654,7 +1687,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HMaterModel1").val(checkStatus.data[0].瑙勬牸鍨嬪彿);
                         $("#HMaterNumber").val(checkStatus.data[0].鐗╂枡浠g爜);
@@ -1694,7 +1727,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HEquipMentName").val(checkStatus.data[0].璁惧鍚嶇О);
                         $("#HEquipMentID").val(checkStatus.data[0].hmainid);
@@ -1737,7 +1770,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HWorkShopName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);
                         $("#HWorkShopID").val(checkStatus.data[0].HItemID);
@@ -1775,7 +1808,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HSupName").val(checkStatus.data[0].渚涘簲鍟嗗悕绉�);
                         $("#HSupID").val(checkStatus.data[0].HItemID);
@@ -1808,7 +1841,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
 
                         GetICMOBillValue(checkStatus.data[0].hmainid, checkStatus.data[0].HEntryID)
@@ -1832,7 +1865,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         $("#HWorkBillSortNo").val(checkStatus.data[0].鍗曟嵁鍙�);
                         GetICMOBillValue(checkStatus.data[0].婧愬崟涓诲唴鐮�, checkStatus.data[0].婧愬崟瀛愬唴鐮�)
@@ -1860,7 +1893,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         getRoutingBill(checkStatus.data[0].鍗曟嵁鍙�);
 
@@ -1879,7 +1912,7 @@
                 }
                 $.ajax({
                     type: "get",
-                    url: GetWEBURL() + "LEMS/MES_Gy_RoutingBillList_Json",
+                    url: GetWEBURL() + "/LEMS/MES_Gy_RoutingBillList_Json",
                     async: true,
                     data: { "sWhere": " and 鍗曟嵁鍙�='" + HBillNo + "'" + " and 宸ュ簭浠g爜 !='" + 9999 + "'", "user": sessionStorage["HUserName"], "HBillSubType": HRoutType },
                     success: function (result) {
@@ -1887,7 +1920,7 @@
                         var Tablerow = [];
 
                         if (result.data.length == 0) {
-                            return layer.msg("璇风粦瀹氬搴旂殑宸ヨ壓璺嚎!");
+                            return layer.msg(get_MessageError("[3772-2-006]璇风粦瀹氬搴旂殑宸ヨ壓璺嚎!", sessionStorage["HTranSlate"]));
                         }
 
                         $("#RoutingBill").val(data[0].鍗曟嵁鍙�)
@@ -1895,14 +1928,14 @@
 
                         for (var i = 0; i < data.length; i++) {
                             Tablerow.push({
-                                "HProcNo": data[i].宸ュ簭鍙�, "HProcID": data[i].hprocid, "HProcNumber": data[i].宸ュ簭浠g爜, "HProcName": data[i].宸ュ簭, "HWorkRemark": data[i].琛ㄤ綋澶囨敞,
+                                "HProcNo": data[i].宸ュ簭鍙�, "HProcID": data[i].HProcID, "HProcNumber": data[i].宸ュ簭浠g爜, "HProcName": data[i].宸ュ簭, "HWorkRemark": data[i].琛ㄤ綋澶囨敞,
                                 "HCenterID": data[i].HCenterID, "HCenterNumber": data[i].宸ヤ綔涓績浠g爜, "HCenterName": data[i].宸ヤ綔涓績鍚嶇О,
                                 "HDeptID": 0, "HDeptNumber": "", "HDeptName": "",
                                 "HSupID": data[i].HSupID, "HSupNumber": data[i].渚涘簲鍟嗕唬鐮�, "HSupName": data[i].渚涘簲鍟�, "HSupFlag": data[i].濮斿鏍囪 == 0 ? "false" : "true",
                                 "HQty": HLZQty, "HSNCtrl": data[i].SN杩囩珯鎺у埗 == 0 ? "false" : "true", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
                                 "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
                                 "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": data[i].宸ヨ壓鍙傛暟, "HPicNum": data[i].鍥剧焊缂栧彿, "HProcCheckNote": data[i].鏈伐搴忕‘璁よ褰�,
-                                "HRelationQty_OutBad": "0"
+                                "HRelationQty_OutBad": "0", "HRoutingBillMainID": data[i].hmainid, "HRoutingBillEntryID": data[i].hsubid
                             });
                         }
                         option.data = Tablerow;
@@ -1918,7 +1951,7 @@
                         form.render('checkbox');
                     },
                     error: function (result) {
-                        layer.close(index);
+                        //layer.close(index);
                         console.log(result);
                         //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
                     }
@@ -1929,94 +1962,97 @@
             //淇濆瓨鎻愪氦
             form.on('submit(btnSave)', function (data) {//鎻愪氦
                 if ($("#HICMOInterID").val() == 0) {
-                    layer.msg("璇烽�夋嫨浠诲姟鍗曪紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    layer.msg(get_MessageError("[3772-2-007]璇烽�夋嫨浠诲姟鍗曪紒", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"])});
                     return;
                 }
+                //if ($("#HBatchNo").val() == "" ) {
+                //    layer.msg("璇疯緭鍏ユ壒娆″彿锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                //    return;
+                //}
                 if ($("#HQty").val() == "" || $("#HQty").val() <= 0) {
-                    layer.msg("鍩烘湰淇℃伅涓祦杞崱鏁伴噺涓嶈兘涓虹┖涓斾笉鑳藉皬浜庣瓑浜�0锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    layer.msg(get_MessageError("[3772-2-010]鍩烘湰淇℃伅涓祦杞崱鏁伴噺涓嶈兘涓虹┖涓斾笉鑳藉皬浜庣瓑浜�0锛�", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                     return;
                 }
                 if (!$("#HPlanBeginDate").val()) {
-                    layer.msg("璇烽�夋嫨璁″垝寮�宸ユ棩鏈燂紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    layer.msg(get_MessageError("[3772-2-011]璇烽�夋嫨璁″垝寮�宸ユ棩鏈燂紒", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                     return;
                 }
                 if (!$("#HPlanEndDate").val()) {
-                    layer.msg("璇烽�夋嫨璁″垝瀹屽伐鏃ユ湡锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    layer.msg(get_MessageError("[3772-2-012]璇烽�夋嫨璁″垝瀹屽伐鏃ユ湡锛�", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                     return;
                 }
 
                 var HAuxQty = $('#HAuxQty').val();
                 if (HAuxQty.substring(HAuxQty.length - 1, HAuxQty.length) == ".") {
-                    layer.msg("杈呮暟閲忕殑缁撳熬涓嶈兘鏄�.锛�");
+                    layer.msg(get_MessageError("[3772-2-013]杈呮暟閲忕殑缁撳熬涓嶈兘鏄�.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+\.?[0-9]*$/;
                     if (!ref.test(HAuxQty)) {
-                        layer.msg("杈呮暟閲忚杈撴纭叆鏁板瓧锛�");
+                        layer.msg(get_MessageError("[3772-2-014]杈呮暟閲忚杈撴纭叆鏁板瓧锛�", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
 
                 var HWidth = $('#HWidth').val();
                 if (HWidth.substring(HWidth.length - 1, HWidth.length) == ".") {
-                    layer.msg("骞呭鐨勭粨灏句笉鑳芥槸.锛�");
+                    layer.msg(get_MessageError("[3772-2-015]骞呭鐨勭粨灏句笉鑳芥槸.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+$/;
                     if (!ref.test(HWidth)) {
-                        layer.msg("骞呭璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                        layer.msg(get_MessageError("[3772-2-016]骞呭璇疯緭姝g‘鍏ユ暟瀛楋紒", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
 
                 var HWeight = $('#HWeight').val();
                 if (HWeight.substring(HWeight.length - 1, HWeight.length) == ".") {
-                    layer.msg("鍏嬮噸鐨勭粨灏句笉鑳芥槸.锛�");
+                    layer.msg(get_MessageError("[3772-2-017]鍏嬮噸鐨勭粨灏句笉鑳芥槸.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+$/;
                     if (!ref.test(HWeight)) {
-                        layer.msg("鍏嬮噸璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                        layer.msg(get_MessageError("[3772-2-018]鍏嬮噸璇疯緭姝g‘鍏ユ暟瀛楋紒", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
 
                 var HSplitNo = $('#HSplitNo').val();
                 if (HSplitNo.substring(HSplitNo.length - 1, HSplitNo.length) == ".") {
-                    layer.msg("鎷嗗垎鍙风殑缁撳熬涓嶈兘鏄�.锛�");
+                    layer.msg(get_MessageError("[3772-2-019]鎷嗗垎鍙风殑缁撳熬涓嶈兘鏄�.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+$/;
                     if (!ref.test(HSplitNo)) {
-                        layer.msg("鎷嗗垎鍙疯杈撴纭叆鏁板瓧锛�");
+                        layer.msg(get_MessageError("[3772-2-020]鎷嗗垎鍙疯杈撴纭叆鏁板瓧锛�", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
 
                 var HSplitSumQty = $('#HSplitSumQty').val();
                 if (HSplitSumQty.substring(HSplitSumQty.length - 1, HSplitSumQty.length) == ".") {
-                    layer.msg("鎷嗗垎鎬婚噺鐨勭粨灏句笉鑳芥槸.锛�");
+                    layer.msg(get_MessageError("[3772-2-021]鎷嗗垎鎬婚噺鐨勭粨灏句笉鑳芥槸.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+$/;
                     if (!ref.test(HSplitSumQty)) {
-                        layer.msg("鎷嗗垎鎬婚噺璇疯緭姝g‘鍏ユ暟瀛楋紒");
+                        layer.msg(get_MessageError("[3772-2-022]鎷嗗垎鎬婚噺璇疯緭姝g‘鍏ユ暟瀛楋紒", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
 
                 var HSplitColorQty = $('#HSplitColorQty').val();
                 if (HSplitColorQty.substring(HSplitColorQty.length - 1, HSplitColorQty.length) == ".") {
-                    layer.msg("鍒嗙几鍙风殑缁撳熬涓嶈兘鏄�.锛�");
+                    layer.msg(get_MessageError("[3772-2-023]鍒嗙几鍙风殑缁撳熬涓嶈兘鏄�.锛�", sessionStorage["HTranSlate"]));
                     return;
                 } else {
                     var ref = /^[0-9]+$/;
                     if (!ref.test(HSplitColorQty)) {
-                        layer.msg("鍒嗙几鍙疯杈撴纭叆鏁板瓧锛�");
+                        layer.msg(get_MessageError("[3772-2-024]鍒嗙几鍙疯杈撴纭叆鏁板瓧锛�", sessionStorage["HTranSlate"]));
                         return;
                     }
                 }
-
 
 
                 //鍒犻櫎瀛愯〃鏁版嵁鏃� 浼氬崰鐢ㄦ暟缁勭殑浣嶇疆,闇�瑕侀噸鏂版帓涓�涓嬮『搴�
@@ -2025,38 +2061,44 @@
                     if (table.cache["mainTable"][i] != "") {
                         table.cache["mainTable"][i].LAY_TABLE_INDEX = i;
                         sSubTable.push(table.cache["mainTable"][i])
-                    }
+                    }                    
                 }
                 for (var i = 0; i < sSubTable.length; i++) {
                     if (!sSubTable[i].HProcNo) {
                         var indexRow = i + 1;
-                        layer.msg("绗�" + indexRow + "琛岋紝娴佹按鍙蜂笉鑳戒负绌猴紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        layer.msg(get_MessageError("[3772-2-025]绗�" + indexRow + "琛岋紝娴佹按鍙蜂笉鑳戒负绌猴紒", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         return;
                     }
                     if (sSubTable[i].HProcNo == 0) {
                         var indexRow = i + 1;
-                        layer.msg("绗�" + indexRow + "琛岋紝娴佹按鍙蜂笉鑳戒负0锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        layer.msg(get_MessageError("[3772-2-026]绗�" + indexRow + "琛岋紝娴佹按鍙蜂笉鑳戒负0锛�", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         return;
                     }
                     if (!sSubTable[i].HProcID) {
                         var indexRow = i + 1;
-                        layer.msg("绗�" + indexRow + "琛岋紝宸ュ簭涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        layer.msg(get_MessageError("[3772-2-027]绗�" + indexRow + "琛岋紝宸ュ簭涓嶈兘涓虹┖锛�", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         return;
                     }
-                    if (!sSubTable[i].HCenterID) {
-                        var indexRow = i + 1;
-                        layer.msg("绗�" + indexRow + "琛岋紝宸ヤ綔涓績涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
-                        return;
-                    }
+                    //if (!sSubTable[i].HCenterID) {
+                    //    var indexRow = i + 1;
+                    //    layer.msg("绗�" + indexRow + "琛岋紝宸ヤ綔涓績涓嶈兘涓虹┖锛�", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    //    return;
+                    //}
                     if (sSubTable[i].HSupFlag == "true") {
                         if (!sSubTable[i].HSupID) {
                             var indexRow = i + 1;
-                            layer.msg("绗�" + indexRow + "琛岋紝渚涘簲鍟嗕笉鑳戒负绌猴紒", { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            layer.msg(get_MessageError("[3772-2-028]绗�" + indexRow + "琛岋紝渚涘簲鍟嗕笉鑳戒负绌猴紒", sessionStorage["HTranSlate"]), { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                             return;
                         }
                     }
                 }
                 data.field.HPRDORGID = sessionStorage["OrganizationID"];//缁勭粐
+
+                data.field.HMaterNumber2 = data.field.HMaterNumber2.replace("\"", "鈥�").replace(";", "锛�");
+                data.field.HMaterName2 = data.field.HMaterName2.replace("\"", "鈥�").replace(";", "锛�");
+                data.field.HMaterNumber = data.field.HMaterNumber.replace("\"", "鈥�").replace(";", "锛�");
+                data.field.HMaterName = data.field.HMaterName.replace("\"", "鈥�").replace(";", "锛�");
+              
                 //var HBLFlag = data.field.HBLFlag;
                 //HBLFlag == "on" ? data.field.HBLFlag = 'true' : data.field.HBLFlag = 'false';//灏嗘暟缁勫悎骞舵垚瀛楃涓�
                 var sMainStr = JSON.stringify(data.field);
@@ -2075,19 +2117,25 @@
                     data: { "sMainSub": sMainSub },
                     dataType: "json",
                     success: function (data) {
-                        if (data.count == 1) {
+                        if (data.count == 1) {                        
+                            layer.msg(data.Message, { icon: 1 });
+                            $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);
+                            if (data.Verify == "Y") //鑷姩瀹℃牳
+                            {
+                                $("#HInterID").val(data.HInterID);//鑾峰彇鎻愪氦鎴愬姛杩斿洖鐨勫崟鎹富ID
+                                set_CheckBill(1); //瀹℃牳
+                            }
                             layer.close(index);
-                            layer.msg("鎻愪氦鎴愬姛");
-                            $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true);//淇濆瓨鎸夐挳绂佺敤
+
                         }
                         else {
                             layer.close(index);
-                            layer.msg(data.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            layer.msg(data.Message, { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         }
                     },
                     error: function (err) {
                         layer.close(index);
-                        layer.msg("閿欒:" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        layer.msg("閿欒:" + err, { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                     }
                 });
             });
@@ -2125,6 +2173,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList',
                     type: "GET",
+                    async: false,
                     data: { "HModName": HModName, "user": sessionStorage["HUserName"] },
                     success: function (data1) {
                         if (data1.data.length != 0) {
@@ -2192,7 +2241,7 @@
                             table.render(option);
                         }
                     }, error: function () {
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 })
             }
@@ -2216,16 +2265,18 @@
                 set_EditGrid(linterid);  //缂栬緫鑾峰彇琛ㄤ綋
                 get_DisplayHMainID(linterid);  //缂栬緫鑾峰彇琛ㄤ綋(鍣ㄥ叿娓呭崟)
                 get_Display3(linterid);  //缂栬緫鑾峰彇琛ㄤ綋(宸ヨ壓鍙傛暟娓呭崟)
-                option.data = [{
-                    "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "",
-                    "HCenterID": 0, "HCenterNumber": "", "HCenterName": "",
-                    "HDeptID": 0, "HDeptNumber": "", "HDeptName": "",
-                    "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
-                    "HQty": 0, "HSNCtrl": "false", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
-                    "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
-                    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": ""
-                }];
-                table.render(option);
+
+                //option.data = [{
+                //    "HProcNo": "", "HProcID": 0, "HProcNumber": "", "HProcName": "", "HWorkRemark": "",
+                //    "HCenterID": 0, "HCenterNumber": "", "HCenterName": "",
+                //    "HDeptID": 0, "HDeptNumber": "", "HDeptName": "",
+                //    "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
+                //    "HQty": 0, "HSNCtrl": "false", "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
+                //    "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
+                //    "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "",
+                //    "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0,"HSourceID":0
+                //}];
+                //table.render(option);
             }
             //缂栬緫鑾峰彇琛ㄥご
             function set_EditForm(linterid) {
@@ -2269,6 +2320,7 @@
                                 , "HMaterModel": data.鏉愭枡瑙勬牸
                                 , "HWidth": data.骞呭
                                 , "HWeight": data.鍏嬮噸
+                                , "HBatchNo": data.鎵瑰彿
 
                                 , "HAuxQty": data.杈呮暟閲�
                                 , "HAuxUnit": data.HAuxUnit
@@ -2277,6 +2329,7 @@
                                 , "HAuxQty2": data.杈呮暟閲�2
                                 , "HAuxUnit2": data.HAuxUnit2
                                 , "HAuxUnitName2": data.杈呭姪鍗曚綅2
+                                , "HMouldNum": data.妯$┐鍙�
 
 
                                 , "HName": data.璁㈠崟绛夌骇
@@ -2381,10 +2434,10 @@
                             form.render("checkbox");
 
                         } else {
-                            layer.alert(result.msg, { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
+                            layer.alert(get_MessageError(result.msg, sessionStorage["HTranSlate"]), { icon: 5, btn: ['閫�鍑�'], time: 100000, offset: 't' });
                         }
                     }, error: function () {
-                        layer.alert("鍙戠敓閿欒!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鍙戠敓閿欒!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 });
             }
@@ -2407,6 +2460,7 @@
                 $.ajax({
                     url: GetWEBURL() + 'Sc_ProcessExchangeBill/GetProcessExchangeBillSub',
                     type: "GET",
+                    async: false,
                     data: { "HInterID": linterid },
                     success: function (result) {
                         if (result.count == 1) {
@@ -2423,11 +2477,11 @@
                             form.render('checkbox');
 
                         } else {
-                            layer.alert(result.code + result.Message, { icon: 5 });
+                            layer.alert(get_MessageError(result.code + result.Message, sessionStorage["HTranSlate"]), { icon: 5 });
                         }
                     }, error: function () {
                         layer.close(index0);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 });
             }
@@ -2446,7 +2500,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         //鑾峰彇鏁版嵁
                         $("#HAuxUnit").val(checkStatus.data[0].HItemID);
@@ -2471,7 +2525,7 @@
                         var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
                         var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
                         if (checkStatus.data.length === 0) {
-                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         //鑾峰彇鏁版嵁
                         $("#HAuxUnit2").val(checkStatus.data[0].HItemID);
@@ -2501,7 +2555,7 @@
                         var checkStatus = iframeWindow.layui.table.checkStatus("mainTable");//鑾峰彇閫変腑鐨勬暟鎹�
 
                         if (checkStatus.data.length != 1) {
-                            return layer.msg("璇烽�夋嫨涓�鏉℃暟鎹�");
+                            return layer.msg(get_MessageError('[0000-1-020]璇烽�夋嫨鏁版嵁', sessionStorage["HTranSlate"]));
                         }
                         //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
                         $("#HName").val(checkStatus.data[0].璁㈠崟绛夌骇);
@@ -2521,6 +2575,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Sc_ProcessExchangeBillList/QJQD',
                     type: "GET",
+                    async: false,
                     data: { "HProcExchHinteID": linterid },
                     success: function (data1) {
                         if (data1.count == 1) {
@@ -2568,7 +2623,7 @@
                         }
                     }, error: function () {
                         layer.close(ajaxLoad);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 });
             }
@@ -2580,6 +2635,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Sc_ProcessExchangeBill/GetProcessExchangeBillSubTech',
                     type: "GET",
+                    async: false,
                     data: { "HInterID": linterid},
                     success: function (data1) {
                         if (data1.count == 1) {
@@ -2626,7 +2682,7 @@
                         }
                     }, error: function () {
                         layer.close(ajaxLoad);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.alert(get_MessageError("[0000-1-002]鎺ュ彛璇锋眰澶辫触!", sessionStorage["HTranSlate"]), { icon: 5 });
                     }
                 });
             }
@@ -2655,7 +2711,7 @@
                             $("#HMaterNumber2").val(data.鐗╂枡浠g爜);
                             $("#HMaterModel").val(data.瑙勬牸鍨嬪彿);
                             $("#HMaterModel2").val(data.瑙勬牸鍨嬪彿);
-                            $("#HBatchNo").val(data.鎵瑰彿);
+                            $("#HBatchNo").val();
                             $("#HUnitID").val(data.hunitid);
                             $("#HUnitName").val(data.璁¢噺鍗曚綅鍚嶇О);
                             $("#HUnitNumber").val(data.璁¢噺鍗曚綅浠g爜);
@@ -2726,7 +2782,7 @@
 
                         }
                         else {
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            layer.msg(result.Message, { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         }
                     }
                 })
@@ -2739,7 +2795,7 @@
             function getRoutingBillList(sWhere) {
                 $.ajax({
                     type: "get",
-                    url: GetWEBURL() + "LEMS/Gy_RoutingBillList",
+                    url: GetWEBURL() + "/LEMS/Gy_RoutingBillList",
                     async: false,
                     data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
                     success: function (result) {
@@ -2756,13 +2812,14 @@
                                 "HSupID": 0, "HSupNumber": "", "HSupName": "", "HSupFlag": "false",
                                 "HQty": 0, "HSNCtrl": false, "HOutPrice": 0, "HRemark": "", "HRelationQty_In": 0, "HRelationQty_Out": 0,
                                 "HRelationQty_WWOrder": 0, "HRelationQty_Bad": 0, "HOverRate": 0, "HMaxQty": 0,
-                                "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": ""
+                                "HPassRate": 0, "HSumPassRate": 0, "HTechnologyParameter": "", "HPicNum": "", "HProcCheckNote": "",
+                                "HRoutingBillMainID": 0, "HRoutingBillEntryID": 0
                             }];
                             table.render(option);
                         }
                     },
                     error: function (result) {
-                        layer.close(index);
+                        //layer.close(index);
                         console.log(result);
                         //layer.msg('鑾峰彇閲囪喘璁㈠崟鍑虹幇寮傚父', { icon: 2, time: 2000 });
                     }
@@ -2789,7 +2846,7 @@
                             form.render('checkbox');
                         }
                         else {
-                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                            layer.msg(result.Message, { icon: 5, btn: [get_MessageError('[0000-2-008]纭', sessionStorage["HTranSlate"])], time: 100000, offset: 't', skin: 'layui-layer-lan', title: get_MessageError("[0000-2-009]娓╅Θ鎻愮ず", sessionStorage["HTranSlate"]) });
                         }
                     }
                 })
@@ -2818,6 +2875,27 @@
                     }
                 });
             });
+
+            function set_CheckBill(num) {
+                $.ajax({
+                    url: GetWEBURL() + '/Sc_ProcessExchangeBill/CheckSc_ProcessExchangeBill',
+                    type: "GET",
+                    data: { "HInterID": $("#HInterID").val(), "Type": num, "user": sessionStorage["HUserName"], "HBillSubType": "3772" },
+                    success: function (result) {
+                        if (result.count == 1) {                         
+                            layer.msg(result.Message, { icon: 1 });
+                            layer.close(wait);
+                        } else {
+                            layer.alert(result.code + result.Message, { icon: 5 });
+                            layer.close(wait);
+                        }
+                    }, error: function () {
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                        layer.close(wait);
+                    }
+                });
+            }
+
             //浠ヤ笂涓簂ayui妯″潡
         });
 

--
Gitblit v1.9.1