yxj
2024-08-14 334e62cc24d65f0432d41b4f0572f01b00a7cdea
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_RoutingBillList.html
@@ -67,9 +67,11 @@
            }
            var HMaterID = "";
            var HProID = 0;
            var params = getUrlVars();
            if (params[params[0]] != "undefined") {
                HMaterID = params[params[0]]; //从参数中获取
                HProID = params[params[1]]; //从参数中获取
            }
            RoadQuery($('#Value').val());
@@ -83,20 +85,23 @@
                    { type: 'radio' }
                    , { field: 'hmainid', title: '工艺路线ID', hide: true }
                    , { field: '单据号', title: '单据号' }
                    , { field: '工艺名称', title: '工艺路线名称' }
                    , { field: '物料代码', title: '物料代码' }
                    , { field: '物料名称', title: '物料名称', sort: true }
                    , { field: '规格型号', title: '规格型号' }
                    , { field: '组织', title: '组织' }
                ]]
                , page: true
                , limits: [50, 500, 5000, 50000],
                limit: 50
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = Where;
                if (Value == null) {
                    Value = " and HMaterID=" + HMaterID + " and HOrgID = " + sessionStorage["OrganizationID"];
                    Value = " and HMaterID=" + HMaterID + " and HMainProcID=" + HProID+" and HOrgID = " + sessionStorage["OrganizationID"];
                } else {
                    Value = " and HMaterID=" + HMaterID + " and HOrgID = " + sessionStorage["OrganizationID"] + " and ( å•据号 like '%" + Where + "%' or å•据号 like '%" + Where + "%' ) "
                    Value = " and HMaterID=" + HMaterID + " and HMainProcID=" + HProID +" and HOrgID = " + sessionStorage["OrganizationID"] + " and ( å•据号 like '%" + Where + "%' or å•据号 like '%" + Where + "%' ) "
                }
                var index = layer.load();
                $.ajax({