From 07cf94734c36d4eae6ddbc4dd338bf5af81a2193 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 28 十月 2024 16:11:39 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/生产管理/异常反馈单/OA_ErrMsgBackReceiveBillMain.html |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 53 insertions(+), 4 deletions(-)

diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
index e787ebc..1977202 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackReceiveBillMain.html"
@@ -415,6 +415,8 @@
                 , form = layui.form
                 , laydate = layui.laydate
                 , element = layui.element;
+
+            window.HDeptType = 0;
             //#endregion
 
             //鑾峰彇鍙傛暟
@@ -530,7 +532,8 @@
                         data: {
                             "HInterID": linterid,
                             "HEntryID": HEntryID,
-                            "user": sessionStorage["HUserName"]
+                            "user": sessionStorage["HUserName"],
+                            "num": 1
                         },
                         dataType: "json",
                         success: function (data) {
@@ -539,6 +542,8 @@
                                 var LoadData = data.data;
                                 $("#HDeptID").val(LoadData[0].HDeptID); //閮ㄩ棬ID
                                 $("#HDeptName").val(LoadData[0].鍙戦�侀儴闂�); //鍙戦�侀儴闂�
+                                $("#HErrMsgBackTypeID").val(LoadData[0].HErrMsgBackTypeID); //寮傚父绫诲瀷鍚嶇ОID
+                                $("#HErrMsgBackTypeName").val(LoadData[0].寮傚父绫诲瀷鍚嶇О); //寮傚父绫诲瀷鍚嶇О
                                 $("#HSendMan").val(LoadData[0].鍙戦�佷汉); //鍙戦�佷汉
                                 $("#HReceiveMan").val(LoadData[0].鎺ユ敹浜�); //鎺ユ敹浜�
                                 $("#HCopyMan").val(LoadData[0].鎶勯��); //鎶勯��
@@ -757,6 +762,8 @@
 
             //鍙戦�侀儴闂�
             form.on('submit(HDeptList)', function () {
+                HDeptType = 1;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -795,6 +802,8 @@
 
             //鎺ユ敹閮ㄩ棬
             form.on('submit(HReceiveList)', function () {
+                HDeptType = 2;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -842,7 +851,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) {
 
@@ -1094,7 +1103,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) {
 
@@ -1133,7 +1142,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) {
 
@@ -1205,6 +1214,46 @@
 
             return [year, month, day].join('-');
         }
+
+        function GetHDeptNameValue(obj) {  //閮ㄩ棬
+            if (HDeptType == 1) {
+                $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HDeptID").val(obj[0].HItemID);
+            } else if (HDeptType == 2) {
+                $("#HReceiveName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HReceiveID").val(obj[0].HItemID);
+            }
+        } 
+
+        function GetErrMsgBackTypeValue(obj) {  //寮傚父鍙嶉
+            $("#HErrMsgBackTypeName").val(obj[0].寮傚父鍙嶉绫诲瀷鍚嶇О);
+            $("#HErrMsgBackTypeID").val(obj[0].HItemID);
+        }
+
+        function GetHEmpValue(obj) { //鍏宠仈浜�
+            $("#HRelationEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HRelationEmpID").val(obj[0].HItemID);
+        }
+
+        function GetHManagerValue(obj) { //鎸囨淳澶勭悊浜�
+            $("#HandleEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HHandleEmpID").val(obj[0].HItemID);
+        }
+
+        function GetHSecManagerValue(obj) {  //鍙戦�佷汉
+            $("#HSendMan").val(obj[0].鑱屽憳鍚嶇О);
+        }
+
+        function GetEquipFileValue(obj) {  //璁惧妗f
+            $("#HEquipName").val(obj[0].璁惧鍚嶇О);
+            $("#HEquipID").val(obj[0].hmainid);
+        }
+
+        function GetMouldFileValue(obj) {  //鍣ㄥ叿妗f
+            $("#HMouldName").val(obj[0].妯″叿鍚嶇О);
+            $("#HMouldID").val(obj[0].hmainid);
+        }
+
     </script>
 </body>
 </html>

--
Gitblit v1.9.1