KKbes
2023-06-28 d5d810af942c23a1009857477a545a9a2dc134b5
button selfReview
3个文件已删除
11个文件已修改
295 ■■■■ 已修改文件
force-app/main/default/lwc/lexFinLibrary/lexFinLibrary.js 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFinLibrary2/lexFinLibrary2.js 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFinLibrary3/lexFinLibrary3.js 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLeadQuotationRequest/lexLeadQuotationRequest.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexLeadQuotationRequest/lexLeadQuotationRequest.js 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewIntention/lexNewIntention.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewIntention/lexNewIntention.js 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNewIntention/lexNewIntention.js-meta.xml 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNoReportApplication/lexNoReportApplication.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexNoReportApplication/lexNoReportApplication.js 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexProductRepairQuoteProduct/lexProductRepairQuoteProduct.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexProductRepairQuoteProduct/lexProductRepairQuoteProduct.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexFinLibrary/lexFinLibrary.js
@@ -6,21 +6,18 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexFinLibrary extends LightningElement {
        @api recordId;
        IsLoading;
        Bulletin_Board__c;
    @api recordId;
    IsLoading=true;
    Bulletin_Board__c;
        @wire(CurrentPageReference)
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference){
            console.log(currentPageReference);
            console.log("进入获取page参数")
            const IdValue=currentPageReference.state.recordId;
            if(IdValue){
                let str=`${IdValue}`;
                this.recordId=str;
                console.log("recordId="+str);
            }
        }
    }
@@ -29,20 +26,13 @@
    connectedCallback(){
        getBulletinBoard({recordId:this.recordId}).then(res=>{
            if(res!=null){
            this.IsLoading=false;
            console.log("res");
            console.log(res);
            console.log("进入初始化对象其他属性");
            this.Bulletin_Board__c=res;
            console.log(this.Bulletin_Board__c);
            this.FinLibrary();
        }
        else{
             var a="没进方法";
             console.log(a);
                this.Bulletin_Board__c=res;
                this.FinLibrary().then(result=>{
                    this.IsLoading=false;
                    this.dispatchEvent(new CloseActionScreenEvent());
                });
        }
    }).catch(error =>{
        console.log("error");
        console.log(error.message);
    }).finally(()=>{
@@ -50,7 +40,6 @@
    }
    async FinLibrary(){
        this.dispatchEvent(new CloseActionScreenEvent());
        window.open(this.Bulletin_Board__c.iPad_Finlibrary__c, 'FinLibrary', '_top');    
    }
force-app/main/default/lwc/lexFinLibrary2/lexFinLibrary2.js
@@ -6,20 +6,17 @@
    @api recordId;
    IsLoading;
    IsLoading=true;
    Bulletin_Board__c;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference){
            console.log(currentPageReference);
            console.log("进入获取page参数")
            const IdValue=currentPageReference.state.recordId;
            if(IdValue){
                let str=`${IdValue}`;
                this.recordId=str;
                console.log("recordId="+str);
            }
        }
    }
@@ -30,20 +27,14 @@
    connectedCallback(){
    getBulletinBoard({recordId:this.recordId}).then(res=>{
        if(res!=null){
        this.IsLoading=false;
        console.log("res");
        console.log(res);
        console.log("进入初始化对象其他属性");
        this.Bulletin_Board__c=res;
        console.log(this.Bulletin_Board__c);
        this.FinLibrary2();
        }
        else{
             var a="没进方法";
             console.log(a);
            this.Bulletin_Board__c=res;
            console.log(this.Bulletin_Board__c);
            this.FinLibrary2().then(result=>{
                this.IsLoading=false;
                this.dispatchEvent(new CloseActionScreenEvent());
            });
        }
    }).catch(error =>{
        console.log("error");
        console.log(error.message);
    }).finally(()=>{
@@ -52,11 +43,7 @@
    FinLibrary2(){
        window.open(this.Bulletin_Board__c.iPad_Finlibrary_2__c, 'FinLibrary', '_top');
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
force-app/main/default/lwc/lexFinLibrary3/lexFinLibrary3.js
@@ -5,19 +5,16 @@
export default class lexFinLibrary3 extends LightningElement {
    @api recordId;
    IsLoading;
    IsLoading=true;
    Bulletin_Board__c;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference){
            console.log(currentPageReference);
            console.log("进入获取page参数")
            const IdValue=currentPageReference.state.recordId;
            if(IdValue){
                let str=`${IdValue}`;
                this.recordId=str;
                console.log("recordId="+str);
            }
        }
    }
@@ -28,20 +25,14 @@
    connectedCallback(){
    getBulletinBoard({recordId:this.recordId}).then(res=>{
        if(res!=null){
        this.IsLoading=false;
        console.log("res");
        console.log(res);
        console.log("进入初始化对象其他属性");
        this.Bulletin_Board__c=res;
        console.log(this.Bulletin_Board__c);
        this.FinLibrary3();
        }
        else{
             var a="没进方法";
             console.log(a);
            this.Bulletin_Board__c=res;
            console.log(this.Bulletin_Board__c);
            this.FinLibrary3().then(result=>{
                this.IsLoading=false;
                this.dispatchEvent(new CloseActionScreenEvent());
            });
        }
    }).catch(error =>{
        console.log("error");
        console.log(error.message);
    }).finally(()=>{
@@ -51,7 +42,6 @@
    FinLibrary3(){
        window.open(this.Bulletin_Board__c.iPad_Finlibrary_3__c, 'FinLibrary', '_top');
        this.dispatchEvent(new CloseActionScreenEvent());
    }
force-app/main/default/lwc/lexLeadQuotationRequest/lexLeadQuotationRequest.html
@@ -1,3 +1,5 @@
<template>
    <div class="Attachment" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexLeadQuotationRequest/lexLeadQuotationRequest.js
@@ -19,6 +19,7 @@
    @api recordId;
    Lead;
    IsLoading=true;
@@ -30,8 +31,6 @@
          const urlValue = currentPageReference.state.recordId;
          if (urlValue) {
            let str = `${urlValue}`;
            console.log("str");
            console.log(str);
            this.recordId = str;
          }
        }
@@ -40,16 +39,15 @@
    connectedCallback(){
        console.log(this.recordId);
        init({
            recordId: this.recordId
        }).then(result => {
            console.log(result);
            if (result != null) {
                this.Lead = result;
                console.log(this.Lead);
                console.log(this.Lead.Status == '未跟进');
                this.QuotationRequest();
                this.QuotationRequest().then(result=>{
                    this.IsLoading=false;
                    this.dispatchEvent(new CloseActionScreenEvent());
                });
            }
        }).catch(error => {
            console.log("error");
@@ -60,13 +58,11 @@
    async QuotationRequest(){
        if( this.Lead.Status == '未跟进'){
        this.dispatchEvent(new CloseActionScreenEvent());
        window.open("/apex/NewQuoteIrai?leadid="+ this.Lead.Id +"&tenderid="+ this.Lead.Tender_information__c);
        if( this.Lead.Status == '未跟进'){
            window.open("/apex/NewQuoteIrai?leadid="+ this.Lead.Id +"&tenderid="+ this.Lead.Tender_information__c);
        }else{
        this.dispatchEvent(new CloseActionScreenEvent());
        this.dispatchEvent(event);
        }
            this.dispatchEvent(event);
        }
    }
force-app/main/default/lwc/lexNewIntention/lexNewIntention.html
File was deleted
force-app/main/default/lwc/lexNewIntention/lexNewIntention.js
File was deleted
force-app/main/default/lwc/lexNewIntention/lexNewIntention.js-meta.xml
File was deleted
force-app/main/default/lwc/lexNoReportApplication/lexNoReportApplication.html
@@ -1,3 +1,5 @@
<template>
    <div class="Attachment" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexNoReportApplication/lexNoReportApplication.js
@@ -18,8 +18,7 @@
    @api recordId;
    IsLoading=true;
    OPDPlan__c;
    currentUserProfileId;
    error;
@@ -53,39 +52,42 @@
    
    async connectedCallback(){
       await init({
        await init({
            recordId: this.recordId
        }).then(result=>{
            this.OPDPlan__c=result;
            this.NoReportApplication();
            this.NoReportApplication().then(result=>{
                this.IsLoading=false;
                this.dispatchEvent(new CloseActionScreenEvent());
            });
        }).catch(error=>{
            console.log("error");
            console.log(error);
            const eventError = new ShowToastEvent({
                title: '页面初始化错误',
                message:
                error.message,
            });
            this.dispatchEvent(eventError);
        });
    }
    async NoReportApplication() {
    //OPD计划状态
    var status = this.OPDPlan__c.Status__c;
    this.NotSupportProfileId= await getProfileIdByName({Name : "系统管理员"});
    //当前用户简档id
    var ProfileId = this.currentUserProfileId;
    //跳过系统管理员
    if(status !='待提交报告'&& ProfileId != this.NotSupportProfileId){
        this.dispatchEvent(new CloseActionScreenEvent());
        this.dispatchEvent(event);
        return;
    }
    else{
        this.dispatchEvent(new CloseActionScreenEvent());
        window.open ('/apex/OPDNoReportApplication?id='+this.OPDPlan__c.Id+'&name='+this.OPDPlan__c.Name, '无报告申请',
        'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no');
    }
    }
        //OPD计划状态
        var status = this.OPDPlan__c.Status__c;
        this.NotSupportProfileId= await getProfileIdByName({Name : "系统管理员"});
        //当前用户简档id
        var ProfileId = this.currentUserProfileId;
        //跳过系统管理员
        if(status !='待提交报告'&& ProfileId != this.NotSupportProfileId){
            this.dispatchEvent(event);
            return;
        }
        else{
            window.open ('/apex/OPDNoReportApplication?id='+this.OPDPlan__c.Id+'&name='+this.OPDPlan__c.Name, '无报告申请',
            'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no');
        }
    }
}
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.html
@@ -1,3 +1,5 @@
<template>
    <div class="Attachment" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexPreviewPDF/lexPreviewPDF.js
@@ -4,18 +4,17 @@
export default class lexPreviewPDF extends LightningElement {
    @api recordId;
    IsLoading=true;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference){
        if(currentPageReference){
            console.log(currentPageReference);
            const IdValue=currentPageReference.state.recordId;
            if(IdValue){
                let str=`${IdValue}`;
                this.recordId=str;
                console.log("recordId="+str);
            }
        }
    }
@@ -23,6 +22,7 @@
    connectedCallback(){
        this.PreviewPDF().then(res=>{
            this.IsLoading=false;
            this.dispatchEvent(new CloseActionScreenEvent());
        });
    }
force-app/main/default/lwc/lexProductRepairQuoteProduct/lexProductRepairQuoteProduct.html
@@ -1,3 +1,5 @@
<template>
    <div class="Attachment" if:true={IsLoading}>
        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
    </div>
</template>
force-app/main/default/lwc/lexProductRepairQuoteProduct/lexProductRepairQuoteProduct.js
@@ -7,7 +7,7 @@
export default class lexProductRepairQuoteProduct extends LightningElement {
    @api recordId;
    IsLoading;
    IsLoading=true;
    @wire(CurrentPageReference)
    getStateParameters(currentPageReference) {