From b20b97efa20d7ba4f5cdfcb927974bbb2d5478ea Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 29 八月 2024 11:21:09 +0800
Subject: [PATCH] 异常反馈单 增加页签,显示斯莫尔不需要的,职员增加一个部门参数过滤,在其他页面打开可以根据登录人的部门传参带出对应人

---
 WebTM/views/设备管理/Sb_Add_EqpMaintenanceBillList.html |  114 ++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 101 insertions(+), 13 deletions(-)

diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
index c4ce9b3..ba77c7e 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/Sb_Add_EqpMaintenanceBillList.html"
@@ -8,7 +8,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
     <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
     <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
-    <script src="../../../layuiadmin/PageTitle.js"></script>
+    <script src="../../layuiadmin/PageTitle.js"></script>
     <style type="text/css">
         .layui-form-label {
             width: 95px;
@@ -113,7 +113,7 @@
                                                 <label class="layui-form-label">缁翠慨椤圭洰<label style="color:red"> * </label></label>
                                                 <div class="layui-input-inline">
                                                     <input type="text" name="HRepairName" id="HRepairName" class="layui-input" value="" style="float:left;width:150px;">
-                                                    <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input" value="" style="float:left;width:150px;">
+                                                    <input type="hidden" name="HRepairID" id="HRepairID" class="layui-input" value="0" style="float:left;width:150px;">
                                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="RepairItemList" style="width:40px;">
                                                         <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                     </button>
@@ -252,6 +252,7 @@
     <script src="../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../layuiadmin/PubCustom.js"></script>
     <script>
+        var OptionData = [];
         //鑾峰彇鍙傛暟
         var params = get_UrlVars();
         if (typeof (params[params[0]]) == "undefined") {
@@ -393,7 +394,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true
-                    , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?type=HEmp', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -469,7 +470,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true
-                    , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                    , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?type=HManager', 'yes']
                     , btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -518,7 +519,7 @@
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
                         $("#HRepairName").val(checkStatus.data[0].缁翠慨椤圭洰);
-                        $("#HRepairID").val(checkStatus.data[0].HItemID);
+                        $("#HRepairID").val(checkStatus.data[0].hitemid);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) {
@@ -583,7 +584,7 @@
                         title: '璁惧鏁呴殰鐧昏鍗�',
                         shift: 2,
                         area: ['90%', '90%'],
-                        content: ['../璁惧绠$悊/Sb_EqpConkBookBillList.html', 'yes'],
+                        content: ['../璁惧绠$悊/Sb_EqpConkBookBillList.html?type=2', 'yes'],
                         btn: ['纭畾', '鍙栨秷']
                         , btn1: function (index, layero) {
                             //var NewRow = { "HRepairID": 0, "HRepairCode": "", "HRepairName": "", "HManagerID": 0, "HManagerCode": "", "HManagerName": "", "HRepairExplanation": "", "HRemark": "", "HSourceInterID": 0, "HSourceEntryID": 0, "HSourceBillNo": " ", "HSourceBillType": " " };
@@ -998,7 +999,7 @@
                                 shift: 2,
                                 area: ['80%', '80%'],
                                 maxmin: true
-                                , content: ['../鍩虹璧勬枡/鍩虹璧勬枡/Gy_RepairList.html', 'yes']
+                                , content: ['../鍩虹璧勬枡/鍩虹璧勬枡/Gy_RepairList.html?type=service', 'yes']
                                 , btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -1022,7 +1023,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
-
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HRepairID: OptionData[0].hitemid,
+                                            HRepairCode: OptionData[0].缁翠慨椤圭洰浠g爜,
+                                            HRepairName: OptionData[0].缁翠慨椤圭洰,
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -1038,7 +1047,7 @@
                                 shift: 2,
                                 area: ['80%', '80%'],
                                 maxmin: true
-                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?type=HSecManager', 'yes']
                                 , btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -1063,7 +1072,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
-
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HManagerID: OptionData[0].HItemID,
+                                            HManagerCode: OptionData[0].鑱屽憳浠g爜,
+                                            HManagerName: OptionData[0].鑱屽憳鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -1133,6 +1150,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HUnitID: OptionData[0].HItemID,
+                                            HUnitNumber: OptionData[0].璁¢噺鍗曚綅浠g爜,
+                                            HUnitName: OptionData[0].璁¢噺鍗曚綅鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -1169,6 +1195,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HMaterID: OptionData[0].HItemID,
+                                            HMaterNumber: OptionData[0].鐗╂枡浠g爜,
+                                            HMaterName: OptionData[0].鐗╂枡鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -1183,7 +1218,7 @@
                                 shift: 2,
                                 area: ['90%', '90%'],
                                 maxmin: true
-                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes']
+                                , content: ['../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?type=HKeeper', 'yes']
                                 , btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -1208,7 +1243,15 @@
                                     //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
                                 },
                                 end: function () {
-
+                                    if (OptionData.length > 0) {
+                                        //鏇存柊琛ㄦ牸缂撳瓨鐨勬暟鎹�
+                                        obj.update({
+                                            HManagerID: OptionData[0].HItemID,
+                                            HManagerNumber: OptionData[0].鑱屽憳浠g爜,
+                                            HManagerName: OptionData[0].鑱屽憳鍚嶇О
+                                        });
+                                        OptionData = [];
+                                    }
                                 }
                             });
                         }
@@ -1360,7 +1403,52 @@
             //#endregion
 
         });
-
+        //杩斿洖缁翠慨浜�
+        function GetHEmpValue(obj) {
+            $("#HEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HEmpID").val(obj[0].HItemID);
+        }
+        //杩斿洖璁惧
+        function GetEquipFileValue(obj) {
+            $("#HEquipName").val(obj[0].璁惧鍚嶇О);
+            $("#HEquipID").val(obj[0].hmainid);
+        }
+        //杩斿洖璐d换浜�
+        function GetHManagerValue(obj) {  //杩斿洖璐d换浜�
+            $("#HManagerName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HManagerID").val(obj[0].HItemID);
+        }
+        //杩斿洖缁翠慨椤圭洰
+        function GetRepairValue(obj) {
+            $("#HRepairName").val(obj[0].缁翠慨椤圭洰); //缁翠慨椤圭洰鍚嶇О
+            $("#HRepairID").val(obj[0].hitemid); //缁翠慨椤圭洰ID
+        }
+        //杩斿洖閮ㄩ棬
+        function GetHDeptNameValue(obj) {
+            $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+            $("#HDeptID").val(obj[0].HItemID);
+        }
+        //杩斿洖璐d换浜�
+        function GetHSecManagerValue(obj) {  //杩斿洖璐d换浜�
+            OptionData = obj;
+        }
+        //杩斿洖缁翠慨椤圭洰
+        function GetRepairServiceValue(obj) {
+            OptionData = obj;
+        }
+        //鐗╂枡
+        function GetMaterValue(obj) {
+            OptionData = obj;
+        }
+        //璁¢噺鍗曚綅
+        function GetUnitValue(obj) {
+            OptionData = obj;
+        }
+        //璐熻矗浜�
+        function GetHKeeperValue(obj) {
+            OptionData = obj;
+        }
+        
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1