| | |
| | | } |
| | | |
| | | cancelSubmit(){ |
| | | |
| | | if (this.transferApplyPermission == false) { |
| | | this.showToast('','没有提交申请的权限','warning'); |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } else{ |
| | | LightningConfirm.open({ |
| | | message: '一旦提交此记录以待批准,根据您的设置您可能不再能够编辑此记录或将他从批准过程中调回。是否继续?', |
| | |
| | | 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()); |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | } |