| | |
| | | var opportunityid = getParam('CF00N10000004lbGT_lkid'); |
| | | console.log(opportunityid); |
| | | var str = '/apex/PCLLostReportPage?pageStatus=Create' +'&oppId='+opportunityid +'&lostType=' + '失单'; |
| | | window.open(str,'_self'); |
| | | // window.open(str,'_self'); |
| | | |
| | | } |
| | | //部分失单 |
| | |
| | | var opportunityid = getParamFromUrl('CF00N10000004lbGT_lkid'); |
| | | console.log(opportunityid); |
| | | var str = '/apex/PCLLostReportPage?pageStatus=Create' +'&oppId='+opportunityid +'&lostType=' + '部分失单'; |
| | | window.open(str,'_self'); |
| | | // window.open(str,'_self'); |
| | | |
| | | } |
| | | |
| | | function getParam(paramName) { |
| | | paramValue = "", isFound = !1; |
| | | console.log('11111'); |
| | | console.log(this.location.search); |
| | | console.log('22222'); |
| | | if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) { |
| | | arrSource = decodeURI(this.location.search).substring(1, this.location.search.length).split("&"), i = 0; |
| | | while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++ |