unknown
2023-08-23 dfff58b7cd897b824a129edba6b5cdae20bb1e5c
force-app/main/default/lwc/lexInquiryFormServiceFollow/lexInquiryFormServiceFollow.js
@@ -1,3 +1,10 @@
/*
 * @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';
@@ -7,7 +14,7 @@
    @api recordId;//OwnerId
    IsLoading = true;
    FSEOwnerId;
    ServiceStatus;
    userId;
    JINGZHUOJISHU;
    @wire(CurrentPageReference)
@@ -25,7 +32,6 @@
        init({
            recordId: this.recordId
        }).then(result => {
            this.ServiceStatus = result.ServiceStatus;
            this.FSEOwnerId = result.FSEOwnerId;
            this.userId = result.userId;
            this.JINGZHUOJISHU = result.JINGZHUOJISHU;
@@ -36,9 +42,9 @@
    }
    // 产品咨询单 服务跟进
    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")