| | |
| | | |
| | | //#region 快速过滤 |
| | | handleQuery() { |
| | | var params = this.get_UrlVars(); |
| | | var HSourceInterID = params[params[1]]; |
| | | var HSourceEntryID = params[params[2]]; |
| | | var HSEQ = params[params[3]]; |
| | | this.sWhere = '' |
| | | if (this.queryParams.ColName && this.queryParams.Comparator) { |
| | | var com = ""; |
| | |
| | | if (this.queryParams.HMaterName) { |
| | | this.sWhere += " and 物料名称 like ''%" + this.queryParams.HMaterName + "%''"; |
| | | } |
| | | if(HSEQ!=''&&HSEQ!=null){ |
| | | this.sWhere += " and 源单行号 = ''" + HSEQ + "''"; |
| | | } |
| | | if(HSourceInterID!=''&&HSourceInterID!=null){ |
| | | this.sWhere += " and HSourceInterID = ''" + HSourceInterID + "''"; |
| | | } |
| | | if(HSourceEntryID!=''&&HSourceEntryID!=null){ |
| | | this.sWhere += " and HSourceEntryID = ''" + HSourceEntryID + "''"; |
| | | } |
| | | if (this.queryParams.HOrgID) { |
| | | this.sWhere += " and HStockOrgID = ''" + this.queryParams.HOrgID + "''"; |
| | | } |
| | | if(sessionStorage["HMainSourceBillNo"] &&sessionStorage["HMainSourceBillNo"].length>0){ |
| | | this.sWhere += " and 源单单号 like ''%" + sessionStorage["HMainSourceBillNo"] + "%''"; |
| | | } |
| | | if (sessionStorage["HSourceBillSEQ"] &&sessionStorage["HSourceBillSEQ"].length>0) { |
| | | this.sWhere += " and 源单行号 = ''" + sessionStorage["HSourceBillSEQ"] + "''"; |
| | | } |
| | | //如果是自动登录,则只能查看供应商自己的条码。 |
| | | if (sessionStorage["HAutoLogin"] == "1") { |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#region 获取参数 |
| | | get_UrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | }, |
| | | //#endregion |
| | | //#region 删除 |
| | | handleDrop() { |
| | | }, |