| | |
| | | |
| | | @api recordId; |
| | | AgencyOpportunity; |
| | | IsLoading=true; |
| | | |
| | | |
| | | |
| | |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.AgencyOpportunity = result; |
| | | this.newIntention(); |
| | | this.newIntention().then(result=>{ |
| | | IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(error => { |
| | | console.log("error"); |
| | |
| | | |
| | | async newIntention(){ |
| | | if(this.AgencyOpportunity.Is_Transformed__c == true){ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.dispatchEvent(event1); |
| | | return; |
| | | } |
| | |
| | | console.log('shortName return size 》 0') |
| | | } |
| | | } |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | var url = '/apex/NewAndEditLead?' + '00N10000009HKSP=' + this.AgencyOpportunity.Id |
| | | + '&LeadSource=经销商' + '&00N10000006qOFb=' + this.AgencyOpportunity.StageName__c |
| | | + '&00N10000006qOF0=' + this.AgencyOpportunity.Close_Forecasted_Date__c |