From 8fc3522a72ffb05e8edd4e186f3ab41d64359516 Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期四, 10 十月 2024 14:33:55 +0800
Subject: [PATCH] PDA调用的班组模块取值调用方法修改,考勤汇报单优化

---
 WebTM/views/Baseset/基础资料/Gy_GetProductionTeamList.html |    8 +++++---
 WebTM/views/工资管理/考勤汇报单/Pay_WorkTimesBillEdit.html      |   16 ++++++++++++----
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
index ff83d3c..5e8e3b1 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_GetProductionTeamList.html"
@@ -105,9 +105,11 @@
                 }
                 $.ajax({
                     type: "get",
-                    url: GetWEBURL() + "/Web/GetProductionTeamList_Json",
-                    async: true,
-                    data: { "sWhere": Value },
+                    //url: GetWEBURL() + "/Web/GetProductionTeamList_Json",     //鍘熻繑鍥炴暟鎹皟鐢ㄦ柟娉�
+                    url: GetWEBURL() + "/Web/GetGroupListByUser_Json",
+                    async: false,
+                    //data: { "sWhere": Value },
+                    data: { "sWhere": Value, "user": sessionStorage["HUserName"] },
                     success: function (result) {
                         ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                         table.reload('mainTable', {
diff --git "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html" "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
index cd9c57c..b0ca9f2 100644
--- "a/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
+++ "b/WebTM/views/\345\267\245\350\265\204\347\256\241\347\220\206/\350\200\203\345\213\244\346\261\207\346\212\245\345\215\225/Pay_WorkTimesBillEdit.html"
@@ -592,8 +592,10 @@
                         }
                         $("#HGroupName").val(checkStatus.data[0].鐝粍鍚嶇О);
                         $("#HGroupID").val(checkStatus.data[0].HItemID);
-                        $("#HDeptID").val(checkStatus.data[0].HDeptID);//閮ㄩ棬浠g爜
-                        $("#HDeptName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);//閮ㄩ棬鍚嶇О
+                        if (checkStatus.data[0].HDeptID != 0) {
+                            $("#HDeptID").val(checkStatus.data[0].HDeptID);
+                            $("#HDeptName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);
+                        }
                         layer.close(index); //鍏抽棴寮圭獥  瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) { }
@@ -614,6 +616,10 @@
             }
 
             function GetEmployee() {
+                if ($("#HGroupName").val() == '') {
+                    return;
+                }
+
                 $.ajax({
                     type: "GET",
                     url: GetWEBURL() + "/Gy_EmployeeController/GetEmpInfoByGroup_Json",
@@ -1531,8 +1537,10 @@
         {
             $("#HGroupName").val(obj[0].鐝粍鍚嶇О);
             $("#HGroupID").val(obj[0].HItemID);
-            $("#HDeptID").val(obj[0].HDeptID);//閮ㄩ棬浠g爜
-            $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);//閮ㄩ棬鍚嶇О
+            if (obj[0].HDeptID != 0) {
+                $("#HDeptID").val(obj[0].HDeptID);
+                $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);
+            }
         }
         //鍙屽嚮杩斿洖鍩虹璧勬枡鏁版嵁    鍒楄〃
         function GetHEmpListValue(data)  //杩斿洖鑱屽憳

--
Gitblit v1.9.1