| | |
| | | this.opportunityCategory = result.opportunityCategory; |
| | | this.agency1Name = result.agency1Name; |
| | | console.log("1"); |
| | | if(this.closeForecastedDate == undefined){ |
| | | this.closeForecastedDate = ''; |
| | | }else{ |
| | | this.closeForecastedDate = new String(this.closeForecastedDate).replace("-","/"); |
| | | } |
| | | console.log(this.closeForecastedDate); |
| | | if(this.bidPlannedDate == undefined){ |
| | | this.bidPlannedDate = ''; |
| | | }else{ |
| | | this.bidPlannedDate = new String(this.bidPlannedDate).replace("-","/"); |
| | | } |
| | | if(this.dealerFinalPrice == undefined){ |
| | | this.dealerFinalPrice = ''; |
| | | } |
| | | console.log(this.bidPlannedDate); |
| | | console.log(this.dealerFinalPrice); |
| | | this.newOpportunityAgency(); |
| | | }).catch(error=>{ |
| | | console.log("error"); |
| | |
| | | var newflag = true; |
| | | if (this.agency1Id == undefined) { |
| | | newflag = false; |
| | | alert("经销商不存在,不能转成【经销商目标询价】。"); |
| | | this.showToast("经销商不存在,不能转成【经销商目标询价】。","error"); |
| | | } |
| | | else if (this.agencyOpportunity != undefined) { |
| | | newflag = false; |
| | | alert("已经转成过【经销商目标询价】。"); |
| | | this.showToast("已经转成过【经销商目标询价】。","error"); |
| | | } |
| | | else if (this.trade != '内貿') { |
| | | newflag = false; |
| | | alert("不是内贸,不能转成【经销商目标询价】。"); |
| | | this.showToast("不是内贸,不能转成【经销商目标询价】。","error"); |
| | | } |
| | | else { |
| | | var records = null; |
| | |
| | | records = result; |
| | | if (records == null || records.length == 0) { |
| | | newflag = false; |
| | | alert("没有有效的【经销商医院】。"); |
| | | this.showToast("没有有效的【经销商医院】。","error"); |
| | | } |
| | | if (newflag) { |
| | | console.log("5"); |
| | |
| | | console.log("6"); |
| | | var recTypeList = result; |
| | | if (recTypeList.length == 0) { |
| | | alert("没有找到,经销商询价的定义。"); |
| | | this.showToast("没有找到,经销商询价的定义。","error"); |
| | | } else { |
| | | console.log("7"); |
| | | queryForRecords2({ |
| | |
| | | console.log("10"); |
| | | console.log(records[0]); |
| | | var ahl = records[0]; |
| | | |
| | | try { |
| | | var url = "/a2Y/e?retURL=%2F" |
| | | + this.recordId |