From 419abee55428d596b8eb20d5b1ecf5e775a5ae82 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 15 十一月 2023 20:10:08 +0800
Subject: [PATCH] 信用管理:客户弹窗根据用户关联客户获取可查看的客户
---
WebTM/views/Baseset/基础资料/Gy_CustomerList.html | 36 ++++++++++++++++++++++++++++++++++--
1 files changed, 34 insertions(+), 2 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 3cf0b4e..991bb5f 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"
@@ -74,12 +74,16 @@
if (Value == null) {
Value = '';
}
+
+ Value = "Where HStopFlag=0 and ( HNumber like '%" + Value + "%' or HName like '%" + Value + "%' ) " + getSWhereByHUser();
+
$.ajax({
type: "get",
//url: "http://61.130.49.162:9090/WMSAPI///Web/GetCustomerList_Json",
- url: GetWEBURL() + "/Web/GetCustomerList_Json",
+ //url: GetWEBURL() + "/Web/GetCustomerList_Json",
+ url: GetWEBURL() + "/Web/GetCustomerList_Json_New1",
async: true,
- data: { "Customer": Value },
+ data: { "sWhere": Value },
//data: { "Value": Value },
success: function (result) {
ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
@@ -98,6 +102,34 @@
}
});
};
+
+
+ //#region 鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈瀹㈡埛鐨勮繃婊ゆ潯浠�
+ function getSWhereByHUser() {
+ var res = "";
+ $.ajax({
+ type: "GET",
+ async: false,
+ url: GetWEBURL() + "/Xs_SeOrderBill/getCusIDListByUser", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ data: { "CurUserID": sessionStorage["Czybm"], "CurUserName": sessionStorage["HUserName"] },
+ success: function (result) {
+ if (result.count == 1) {
+ res = result.data;
+ } else {
+ res = result.data;
+ layer.alert(result.code + result.Message, { icon: 5 });
+ }
+ }, error: function (err) {
+ res = " and 1 = 0";
+ layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+ }
+ });
+
+ res = res.replace("HCusID", "HItemID");
+
+ return res;
+ }
+ //#endregion
});
</script>
--
Gitblit v1.9.1