From 7f7179d00825d06ec064f8bbbccdf406424a4609 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期五, 12 四月 2024 17:42:14 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/设备管理/Sb_EquipDotCheckBillEdit.html |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)

diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
index 789007e..71cf943 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_EquipDotCheckBillEdit.html"
@@ -156,6 +156,7 @@
         <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
     </script>
     <script>
+        var OptionData = [];
         //鑾峰彇鍙傛暟
         var params = get_UrlVars();
         if (typeof (params[params[0]]) == "undefined") {
@@ -347,7 +348,7 @@
                     }
                 });
             });
-            function get_DocCheckItem2() {
+            window.get_DocCheckItem2 = function () {
                 $.ajax({
                     url: GetWEBURL() + "/Web/GetDotCheckRuleItemByDotCheckRuleID",
                     type: "GET",
@@ -673,6 +674,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HDotCheckItemID: OptionData[0].HItemID,
+                                            HDotCheckCode: OptionData[0].鐐规椤圭洰浠g爜,
+                                            HDotCheckItem: OptionData[0].鐐规椤圭洰鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -687,7 +697,7 @@
                                 shift: 2,
                                 area: ['90%', '90%'],
                                 maxmin: true
-                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?type=HManager', 'yes']
                                 , btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
                                     //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
@@ -709,6 +719,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HManagerID: OptionData[0].HItemID,
+                                            HManagerCode: OptionData[0].鑱屽憳浠g爜,
+                                            HManagerName: OptionData[0].鑱屽憳鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -867,6 +886,26 @@
             //#endregion
 
         });
+
+        //璁惧
+        function GetEquipFileValue(obj) {
+            $("#HEquipName").val(obj[0].璁惧鍚嶇О);
+            $("#HEquipID").val(obj[0].hmainid);
+        }
+        //鐐规瑙勭▼
+        function GetSb_EquipDotCheckRuleListValue(obj) {
+            $("#HEquipDotCheckRuleInterNo").val(obj.鍗曟嵁鍙�);
+            $("#HEquipDotCheckRuleInterID").val(obj.hmainid);
+            get_DocCheckItem2();
+        }
+        //鐐规椤圭洰
+        function GetDotCheckListValue(obj) {
+            OptionData[0] = obj;
+        }
+        //璐d换浜�
+        function GetHManagerValue(obj) {
+            OptionData = obj;
+        }
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1