From c3c2431e3f1f11ad7e977be35c604cd2bd98f5d3 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 18 一月 2024 16:38:32 +0800
Subject: [PATCH] 客户应收账款明细分析报表:增加根据用户关联客户 过滤

---
 WebTM/Properties/PublishProfiles/JFTM.pubxml.user        |    2 +-
 WebTM/views/应收管理/报表分析/YS_CusShouldIncomeEntryReport.html |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
index aa42352..c8060c0 100644
--- a/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
+++ b/WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -3255,7 +3255,7 @@
       <publishTime>11/03/2023 21:45:51</publishTime>
     </File>
     <File Include="views/搴旀敹绠$悊/鎶ヨ〃鍒嗘瀽/YS_CusShouldIncomeEntryReport.html">
-      <publishTime>01/18/2024 10:59:58</publishTime>
+      <publishTime>01/18/2024 16:29:25</publishTime>
     </File>
     <File Include="views/搴旀敹绠$悊/鎶ヨ〃鍒嗘瀽/YS_CusShouldIncomeReport.html">
       <publishTime>01/18/2024 16:02:39</publishTime>
diff --git "a/WebTM/views/\345\272\224\346\224\266\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/YS_CusShouldIncomeEntryReport.html" "b/WebTM/views/\345\272\224\346\224\266\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/YS_CusShouldIncomeEntryReport.html"
index 4268eb0..937c485 100644
--- "a/WebTM/views/\345\272\224\346\224\266\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/YS_CusShouldIncomeEntryReport.html"
+++ "b/WebTM/views/\345\272\224\346\224\266\347\256\241\347\220\206/\346\212\245\350\241\250\345\210\206\346\236\220/YS_CusShouldIncomeEntryReport.html"
@@ -314,6 +314,11 @@
 
                 sWhere = "'" + HBeginDate + "','" + HEndDate + "'," + HCusID + ",'" + HCustomer + "'," + HStockOrgID;
 
+                //鏍规嵁鐢ㄦ埛杩囨护鐢ㄦ埛鍏宠仈瀹㈡埛鐨勮褰�
+                sWhere += ",'";
+                sWhere += getSWhereByHUser();
+                sWhere += "'";
+
                 var ajaxLoad = layer.load();
                 $.ajax({
                     type: "GET",
@@ -525,6 +530,30 @@
             }
             //#endregion
 
+
+            //#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 });
+                    }
+                });
+                return res;
+            }
+            //#endregion
         //#endregion
 
 

--
Gitblit v1.9.1