KKbes
2023-07-26 99537f14288ecc5502dfd653f986c76d7c40700d
force-app/main/default/lwc/lexNewIntention/lexNewIntention.js
@@ -19,6 +19,7 @@
   @api recordId;
   AgencyOpportunity;
   IsLoading=true;
@@ -45,7 +46,10 @@
            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");
@@ -58,7 +62,6 @@
    async newIntention(){
      if(this.AgencyOpportunity.Is_Transformed__c == true){
         this.dispatchEvent(new CloseActionScreenEvent());
         this.dispatchEvent(event1);
         return;
      }
@@ -78,7 +81,6 @@
               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