From be7d738131c8cf9c8e00c6abfde469f2d82cbfb0 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期五, 15 三月 2024 16:48:45 +0800
Subject: [PATCH] 1
---
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