duhe
2023-07-12 3cc56ff5b45dc78ce5ad9c50d466cfa2e4e9c1f7
WebTM/views/PublicPage/PartInformation.html
@@ -177,11 +177,18 @@
            //查询按钮
            form.on('submit(btnSearch)', function (data) {
                var HNumber = $("#HNumber").val();
                var HName = $("#HName").val();
                if (HNumber) {
                    sWhere += " and HNumber like '%" + HNumber + "%'";
                }
                if (HName) {
                    sWhere += " and HName like '%" + HName + "%'";
                }
                $.ajax({
                    url: GetWEBURL() + '/PublicPageMethod/PartList',
                    type: "GET",
                    data: { "sWhere": SeachFilter(sWhere1) },
                    data: { "sWhere": sWhere},
                    success: function (data1) {
                        if (data1.count == 1) {
                            option.data = data1.data;
@@ -194,7 +201,7 @@
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
                sWhere = "";//调用接口后清空sWhere缓存
                sWhere = "where 1=1 ";//调用接口后清空sWhere缓存
            });
            //以上是layui模块