| | |
| | | @api recordId;//OwnerId |
| | | IsLoading = true; |
| | | FSEOwnerId; |
| | | ServiceStatus; |
| | | userId; |
| | | JINGZHUOJISHU; |
| | | |
| | | @wire(CurrentPageReference) |
| | |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | | this.ServiceStatus = result.ServiceStatus; |
| | | this.FSEOwnerId = result.FSEOwnerId; |
| | | this.userId = result.userId; |
| | | this.JINGZHUOJISHU = result.JINGZHUOJISHU; |
| | |
| | | } |
| | | // 产品咨询单 服务跟进 |
| | | ServiceFollow (){ |
| | | if(null != this.FSEOwnerId && this.FSEOwnerId== this.userId || this.userId == this.JINGZHUOJISHU){ |
| | | if(null != this.FSEOwnerId && (this.FSEOwnerId== this.userId || this.userId == this.JINGZHUOJISHU)){ |
| | | window.open ('/apex/ServiceFollowPage?id='+this.recordId, '服务跟进', |
| | | 'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | 'height=400, width=800, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else{ |
| | | // alert("此按钮只有FSE可以点击!"); |
| | | this.showToast("此按钮只有FSE可以点击!","error") |