From 370e2aa3aa67f99b2ccfe495d2cd1450f79c8a0d Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 24 九月 2024 11:41:44 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/Baseset/基础资料/Gy_CustomerList.html |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CustomerList.html" "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CustomerList.html"
index b87b51d..8f28cd8 100644
--- "a/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CustomerList.html"
+++ "b/WebTM/views/Baseset/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CustomerList.html"
@@ -144,7 +144,7 @@
                     Value = '';
                 }
 
-                Value = "Where HStopFlag=0 and ( HNumber like '%" + Value + "%' or HName like '%" + Value + "%' ) " + getSWhereByHUser();
+                Value = "Where HStopFlag=0 and ( HNumber like '%" + Value + "%' or HName like '%" + Value + "%' ) " + getSWhereByHUser() + addSWhereByOpenType();
 
                 $.ajax({
                     type: "get",
@@ -199,6 +199,22 @@
                 return res;
             }
             //#endregion
+
+            //#region 鍒ゆ柇鏄洿鎺ユ墦寮�椤甸潰杩樻槸鍏跺畠椤甸潰閫氳繃閫夋嫨鎸夐挳鎵撳紑锛屽苟鏄剧ず鐩稿簲鏁版嵁
+            function addSWhereByOpenType() {
+                //鑾峰彇鍙傛暟
+                var params = getUrlVars();
+
+                var openType = params[params[1]]; //浠庡弬鏁颁腑鑾峰彇 鎵撳紑鏂瑰紡  1鐩存帴鎵撳紑 2鍏跺畠椤甸潰閫氳繃閫夋嫨鎸夐挳鎵撳紑 3鏍规嵁閫掑叆鐨勮亴鍛樺唴鐮侊紝鏄剧ず缁戝畾璇ヨ亴鍛樼殑鐢ㄦ埛鎵�鍏宠仈鐨勫鎴�
+                var HEmpID = params[params[2]];     //鑱屽憳ID
+                var addSWhere = "";
+
+                if (openType == 3 && HEmpID!=0) {
+                    addSWhere = " and HItemID in (select b.HCusID HItemID from Gy_Czygl as a inner join Gy_UserCustomerRelation as b on a.Czybm = b.HUserID where a.HEmpID = " + HEmpID + ") "
+                }
+                return addSWhere;
+            }
+            //#endregion
         });
     </script>
 

--
Gitblit v1.9.1