liangxiaozhen
2023-08-08 c69e36a64e4954b0b7e818843e8a833b3201ec29
force-app/main/default/lwc/lexSubmitApprovalProcess/lexSubmitApprovalProcess.js
@@ -43,8 +43,11 @@
   }
   
   cancelSubmit(){
      if (this.transferApplyPermission == false) {
         this.showToast('','没有提交申请的权限','warning');
         this.IsLoading=false;
         this.dispatchEvent(new CloseActionScreenEvent());
      } else{
         LightningConfirm.open({
               message: '一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?',
@@ -55,14 +58,22 @@
                submitApply({taId:this.recordId}).then(submitRes=>{
                  if(submitRes == '1'){
                     this.showToast('','提交成功','success');
                     window.location.href = window.location;
                     setTimeout(function(){
                        window.location.href = window.location;
                     }, 1500 );
                  }else{
                     this.showToast("",submitRes,"warning");
                  }
                  this.IsLoading=false;
                  this.dispatchEvent(new CloseActionScreenEvent());
               });   
               this.IsLoading=false;
               this.dispatchEvent(new CloseActionScreenEvent());
              } else{
                 this.IsLoading=false;
               this.dispatchEvent(new CloseActionScreenEvent());
              }
           });
         
      }