From 3de6a9eb5d6c00a756831fbab13da264c198ece7 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期四, 25 四月 2024 16:16:50 +0800
Subject: [PATCH] 用户编辑页面添加 IC卡号 自动;异常反馈单刷卡签到

---
 WebTM/views/生产管理/异常反馈单/Sc_Add_MESExecptFeedBackBillList.html |   27 ++++++++++++++++++++++++---
 1 files changed, 24 insertions(+), 3 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/Sc_Add_MESExecptFeedBackBillList.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/Sc_Add_MESExecptFeedBackBillList.html"
index fd39727..3a82337 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/Sc_Add_MESExecptFeedBackBillList.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/Sc_Add_MESExecptFeedBackBillList.html"
@@ -410,6 +410,8 @@
                 , form = layui.form
                 , laydate = layui.laydate
                 , element = layui.element;
+
+            window.HDeptType = 0;
             //#endregion
 
             //鍒濆鍖栬〃鍗曟彃浠�
@@ -600,7 +602,7 @@
                     data: { "HBillType": '4502' },
                     success: function (d) {
                         $("#HBillNo").val(d.data[0].HBillNo);
-                        $("#HInterID").val(0);
+                        $("#HInterID").val(d.data[0].HInterID);
                     }
                 });
             }
@@ -646,7 +648,7 @@
                     dataType: "json",
                     success: function (data) {
                         if (data.count == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            $("#HInterID").val(data.HInterID);//鑾峰彇鎻愪氦鎴愬姛杩斿洖鐨勫崟鎹富ID
+                            //$("#HInterID").val(data.HInterID);//鑾峰彇鎻愪氦鎴愬姛杩斿洖鐨勫崟鎹富ID
                             layer.confirm(data.Message, {
                                 btn: ['纭']
                             }, function (index) {
@@ -731,7 +733,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) {
 
@@ -759,6 +761,8 @@
 
             //鍙戦�侀儴闂�
             form.on('submit(HDeptList)', function () {
+                HDeptType = 1;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -798,6 +802,8 @@
             
             //鎺ユ敹閮ㄩ棬
             form.on('submit(HRecDeptList)', function () {
+                HDeptType = 2;
+
                 //椤甸潰灞�-鑷畾涔�
                 layer.open({
                     type: 2,
@@ -1038,6 +1044,21 @@
 
             return [year, month, day].join('-');
         }
+
+        function GetHEmpValue(obj) {  //鍙戦�佷汉
+            $("#HSendMan").val(obj[0].鑱屽憳鍚嶇О);
+        }
+
+        function GetHDeptNameValue(obj) {  //閮ㄩ棬
+            if (HDeptType == 1) {
+                $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HDeptID").val(obj[0].HItemID);
+            } else if (HDeptType == 2) {
+                $("#HRecDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+                $("#HRecDeptID").val(obj[0].HItemID);
+            }
+        }
+
     </script>
 </body>
 </html>

--
Gitblit v1.9.1