1
wangbin
2024-07-08 3dfe7dfe993869c8a44e9ccf177849abe98ca8d0
WebTM/views/³µ¼ä¹ÜÀí/±¨±í·ÖÎö/Kf_ProdProcessSumReport_DyeColor_third.html
@@ -413,6 +413,10 @@
                    sWhere += " and " + ColName2 + " " + com2;
                }
                com += com + com1 + com2;
                //根据用户过滤用户关联客户的记录
                var OtherSearch = getSWhereByHUser();
                sWhere = {
                    HBeginDate: HBeginDate
                    , HEndDate: HEndDate
@@ -421,6 +425,7 @@
                    , HProductName: HProductName
                    , HProductModel: HProductModel
                    , RandomSearch: com
                    , OtherSearch: (OtherSearch == null || OtherSearch == "undefine") ? " and 1=1 " : OtherSearch
                }
                sWhere = JSON.stringify(sWhere);
@@ -679,6 +684,10 @@
                    sWhere += " and " + ColName2 + " " + com2;
                }
                com += com + com1 + com2;
                //根据用户过滤用户关联客户的记录
                var OtherSearch = getSWhereByHUser();
                sWhere = {
                    HBeginDate: HBeginDate
                    , HEndDate: HEndDate
@@ -687,6 +696,7 @@
                    , HProductName: HProductName
                    , HProductModel: HProductModel
                    , RandomSearch: com
                    , OtherSearch: (OtherSearch == null || OtherSearch == "undefine") ? " and 1=1 " : OtherSearch
                }
                //set_InitGrid(JSON.stringify(sWhere));
                get_Display(JSON.stringify(sWhere));
@@ -864,7 +874,31 @@
                })
            }
            //#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.replaceAll("'", "''");
                return res;
            }
            //#endregion
            //#endregion
        });
    </script>