| | |
| | | /* |
| | | * @Author: zhangchunxu |
| | | * @Date: 2023-05-29 10:16:02 |
| | | * @LastEditors: zhangchunxu |
| | | * @LastEditTime: 2023-08-02 10:27:43 |
| | | * |
| | | */ |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | @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=890, top=200, left=230, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); |
| | | }else{ |
| | | // alert("此按钮只有FSE可以点击!"); |
| | | this.showToast("此按钮只有FSE可以点击!","error") |