unknown
2023-05-11 be8ca3316a9afeec26434b5eb359012aa0633d06
Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
15个文件已修改
418 ■■■■ 已修改文件
force-app/main/default/classes/LightingButtonConstant.cls 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/QISReportController.cls 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/TenderingButtonController.cls 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js 49 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingLogicButton/lexTenderingLogicButton.js 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/NewOnCall.page 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/NewPaymentPlanLoad.page 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/PAEDecisionRecord.page 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/classes/LightingButtonConstant.cls
@@ -86,6 +86,11 @@
    public static final String CN_NO = '否';
    public static final String VOC_NAME = 'VOC';
    public static final String OK = 'OK';
    public static final String LU_SHENG_NAME = '陆 胜';
    public static final String HU_DI_AN_NAME = '胡 迪安';
    public static final String SYSTEM_PROFILE_NAME = '系统管理员';
    public static final String TwoS1_Sales_Hospital = '2S1_销售医院担当';
    public static final String TwoS4_Sales_Manager = '2S4_销售管理者';
    public static final String SOBJECT_NAME_OF_REPORT_SHARE ='Report__Share';
    public static final String  SOBJECT_NAME_OF_VOC_SHARE = 'VOCShare__c';
    public static final String REPAIR_FIELD_DOJ_STATUS_NOT_OBJECT = '非对象';
force-app/main/default/classes/QISReportController.cls
@@ -19,8 +19,8 @@
        
        String recordTypeId = LightingButtonConstant.DEVELOPER_NAME_ASAC_DECISION;
        try{
            PAE_DecisionRecord__c RCPAEDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId limit 1];
            res.pAEid = RCPAEDIdList.id;
            PAE_DecisionRecord__c rCPAEDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId limit 1];
            res.pAEid = rCPAEDIdList.id;
            System.debug(LoggingLevel.INFO, '*** res: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -48,8 +48,8 @@
        
        String recordTypeId = LightingButtonConstant.DEVELOPER_NAME_ASRC_DECISION;
        try{
            PAE_DecisionRecord__c ASRCDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId Limit 1];
            res.pAEid = ASRCDIdList.id;
            PAE_DecisionRecord__c aSRCDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId Limit 1];
            res.pAEid = aSRCDIdList.id;
            System.debug(LoggingLevel.INFO, '*** res: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
force-app/main/default/classes/TenderingButtonController.cls
@@ -11,6 +11,9 @@
            res.opportunityNum = String.valueOf(report.OpportunityNum__c);
            res.isRelateProject = report.IsRelateProject__c;
            res.profileId = UserInfo.getProfileId();
            res.systemProfileId = getProfileIdByName(LightingButtonConstant.SYSTEM_PROFILE_NAME);
            res.SalesManagerId = getProfileIdByName(LightingButtonConstant.SYSTEM_PROFILE_NAME);
            res.SalesHospitalId = getProfileIdByName(LightingButtonConstant.SYSTEM_PROFILE_NAME);
            res.Environment_Url = System.Label.Environment_Url;
            System.debug(LoggingLevel.INFO, '*** xu: ' + res);
        }catch(Exception e){
@@ -19,6 +22,16 @@
        return res;
    }
    @AuraEnabled
    public static string getProfileIdByName(String name){
        Profile profile = null;
        try {
            profile = [select Id from Profile where Name =:name];
        } catch (Exception e) {
            throw new AuraHandledException(e.getMessage());
        }
        return profile.Id;
    }
    // var sql = "select id from Tender_Opportunity_Link__c where Tender_information__c='" + '{!Tender_information__c.Id}'+ "'";
    // var sqlResult = sforce.connection.query(sql);
    @AuraEnabled
@@ -49,6 +62,12 @@
        @AuraEnabled
        public String profileId;
        @AuraEnabled
        public String systemProfileId;
        @AuraEnabled
        public String SalesManagerId;
        @AuraEnabled
        public String SalesHospitalId;
        @AuraEnabled
        public String Environment_Url;
    }
}
force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
@@ -1,5 +1,5 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CurrentPageReference } from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
force-app/main/default/lwc/lexTenderingAntiLogicButton/lexTenderingAntiLogicButton.js
@@ -1,9 +1,7 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import  ContraryLogicalDel  from '@salesforce/apex/TenderWebService.ContraryLogicalDel';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class LexTenderingAntiLogicButton extends LightningElement {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
@@ -19,47 +17,11 @@
           }
         }
     }
    //招标项目反逻辑删除
    connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result => {
                this.IsLoading = false;
                this.id = result.Id;
                this.AntiLogicButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(() => {
        }).finally(() => {
        });
    }
    //反逻辑删除
    AntiLogicButton(){
        ContraryLogicalDel({DTenId : this.id}).then(result =>{
            console.log(result,'成功与否');
            if(result == 'OK'){
                this.showToast("反逻辑删除成功","success");
            }
        ContraryLogicalDel({DTenId : this.recordId}).then(result =>{
            this.dispatchEvent(new CloseActionScreenEvent());
        })
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
    }
}
// /var ContraryL = function(){
//     var DTenId = "{!Tender_information__c.Id}";//删除的招投标
//     var rtn = sforce.apex.execute("TenderWebService", "ContraryLogicalDel", {DTenId : DTenId } );
//     //重新加载页面
//     window.location.reload();
//     }
//     ContraryL();
force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js
@@ -2,7 +2,6 @@
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexTenderingAttachmentButton extends LightningElement {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
@@ -18,37 +17,16 @@
           }
         }
     }
    //招标项目查看附件
    connectedCallback(){
        init({
            recordId: this.recordId
        }).then(result => {
            this.IsLoading = false;
            this.id = result.Id;
            this.AttachmentButton();
            window.open(`/apex/TenderInformationUploadPdf?id=${this.id}`);
            this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
        })
    }
    
    //查看附件
    AttachmentButton(){
        window.open(`/apex/TenderInformationUploadPdf?id=${this.id}`);
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
    }
}
// var From= function(){
//     window.open( "/apex/TenderInformationUploadPdf?id={!URLENCODE(Tender_information__c.Id)}");
//     }
//     From();
}
force-app/main/default/lwc/lexTenderingEnquiryButton/lexTenderingEnquiryButton.js
@@ -1,7 +1,6 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import  updateOpportunityInformation  from '@salesforce/apex/UpdateTenderInformationBatch.updateOpportunityInformation';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
@@ -26,35 +25,29 @@
        init({
            recordId: this.recordId
        }).then(result => {
            if (result != null) {
                this.IsLoading = false;
                this.id = result.Id;
                this.isRelateProject = result.isRelateProject;
                this.EnquiryButton();
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
            console.log(result);
            this.IsLoading = false;
            this.id = result.Id;
            this.isRelateProject = result.isRelateProject;
            this.EnquiryButton();
        })
    }
    //招标项目 反应询价状态
    EnquiryButton(){
        if(this.isRelateProject == "否"){
            this.showToast('招投标项目不相关后不能反应询价状态!','error');
            this.dispatchEvent(new CloseActionScreenEvent());
            return;
        }
        var listss = [];
        listss.push(this.id);
        updateOpportunityInformation({TenderIdList : listss}).then(result=>{
            console.log(result,'走开了吗?')
            if(result != 'OK'){
                this.showToast(result,'error');
                this.dispatchEvent(new CloseActionScreenEvent());
            }else {
                console.log('烦')
                // alert('反映完了');
                this.showToast('反映完了','success');
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        })
    }
@@ -65,28 +58,6 @@
            message: msg,
            variant: type
        });
        console.log('提示框不能用了吗?');
        this.dispatchEvent(event);
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
// var foo = function(){
//     if('{!Tender_information__c.IsRelateProject__c}'== "否"){
//     alert('招投标项目不相关后不能反应询价状态!');
//     return;
//     }
//     var listss = [];
//     listss.push('{!Tender_information__c.Id}');
//     var rtn = sforce.apex.execute("UpdateTenderInformationBatch", "updateOpportunityInformation", {TenderIdList : listss } );
//     if(rtn != 'OK'){
//     alert(rtn);
//     }else {
//     alert('反映完了');
//     }
//     //重新加载页面
//     window.location.reload();
//     }
//     foo();
}
force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
@@ -24,46 +24,22 @@
        init({
            recordId: this.recordId
        }).then(result => {
            console.log(result)
                this.IsLoading = false;
                this.id = result.Id;
                this.name = result.name;
                this.Environment_Url = result.Environment_Url
                this.HospitalButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
        })
    }
    //新建医院
    //招标项目新建医院
    HospitalButton(){
        var url = this.Environment_Url+'001/e?CF00N10000009I0o7='+encodeURIComponent(this.name)
        +'&CF00N10000009I0o7_lkid='+encodeURIComponent(this.id)
        +'&00N10000009HFQT='+encodeURIComponent('招标项目')
        +'&RecordType=01210000000QemG'
        +'&retURL='+ encodeURIComponent(this.id);
        console.log('url',url)
        window.location.href = url;
    }
}
// var foo = function() {
//     var TenderId = '{!Tender_information__c.Id}';
//     var Tendername = '{!Tender_information__c.Name}';
//     var HospitalSource= '招标项目';
//     var url = '{!$Label.Environment_Url}'+'001/e?CF00N10000009I0o7='+encodeURIComponent(Tendername)
//     +'&CF00N10000009I0o7_lkid='+encodeURIComponent(TenderId)
//     +'&00N10000009HFQT='+encodeURIComponent(HospitalSource)
//     +'&RecordType=01210000000QemG'
//     +'&retURL='+ encodeURIComponent(TenderId);
//     window.top.location.href = url;
//     }
//     foo();
}
force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
@@ -1,15 +1,12 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import { updateRecord } from 'lightning/uiRecordApi';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexTenderingIntentionButton extends LightningElement {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
    IsLoading = true;
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
         if (currentPageReference) {
@@ -21,8 +18,7 @@
           }
         }
     }
    //招标项目新建意向
    connectedCallback(){
        init({
            recordId: this.recordId
@@ -30,46 +26,20 @@
            if (result != null) {
                this.IsLoading = false;
                this.id = result.Id;
                this.IntentionButton();
                alert('填写失单报告请直接点击招标页面【失单】按钮');
                // this.showToast('填写失单报告请直接点击招标页面【失单】按钮','success');
                var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + this.id
                + '&LeadSource=招标网' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + this.id ;
                window.open(url);
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
        })
    }
    //招标项目新建意向
    IntentionButton(){
            // alert('填写失单报告请直接点击招标页面【失单】按钮');
            this.showToast('填写失单报告请直接点击招标页面【失单】按钮','success');
            var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + this.id
            + '&LeadSource=招标网' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + this.id ;
            window.open(url);
    }
    updateRecordView() {
        updateRecord({fields: { Id: this.recordId }});
    }
    showToast(msg,type) {
        console.log(msg,type);
        const event = new ShowToastEvent({
            // title: title,
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
    }
}
// var foo = function(){
//     alert('填写失单报告请直接点击招标页面【失单】按钮');
//     var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + '{!Tender_information__c.Id}'
//     + '&LeadSource=招标网' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + '{!Tender_information__c.Id}' ;
//     window.open(url);
//     }
//     foo();
}
force-app/main/default/lwc/lexTenderingLogicButton/lexTenderingLogicButton.js
@@ -18,7 +18,7 @@
         }
     }
    
     //招标项目逻辑删除
    connectedCallback(){
        init({
            recordId: this.recordId
@@ -26,24 +26,9 @@
            if (result != null) {
                this.IsLoading = false;
                this.id = result.Id;
                this.LogicButton();
                window.open (`/apex/TenderDeletePagelwc?id=${this.id}`, '', 'height=350, width=600, top=200, left=350');
                this.dispatchEvent(new CloseActionScreenEvent());
            }
        }).catch(() => {
        }).finally(() => {
        });
        })
    }
    //逻辑删除
    LogicButton(){
        window.open (`/apex/TenderDeletePagelwc?id=${this.id}`, '', 'height=350, width=600, top=200, left=350');
    }
}
// function IfResponse(){
//     window.open ('/apex/TenderDeletePagelwc?id={!Tender_information__c.Id}', '', 'height=350, width=600, top=200, left=350');
//     }
//     IfResponse();
}
force-app/main/default/lwc/lexTenderingLostButton/lexTenderingLostButton.js
@@ -6,9 +6,11 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexTenderingLostButton extends LightningElement {
    @api recordId;//当前这条数据的id
    id;//返回值的id  Tender_information__c招标项目的id
    status;//状态
    profileId;//profileId id
    systemProfileId;
    SalesManagerId;
    SalesHospitalId;
    IsLoading = true;
    @wire(CurrentPageReference)
@@ -28,29 +30,26 @@
            recordId: this.recordId
        }).then(result => {
                this.IsLoading = false;
                this.id = result.Id;
                this.status = result.status;
                this.profileId = result.profileId.slice(0,15);
                this.profileId = result.profileId;
                this.systemProfileId = result.systemProfileId;
                this.SalesManagerId = result.SalesManagerId;
                this.SalesHospitalId = result.SalesHospitalId;
                this.LoseButton();
                this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
        })
    }
    //失单
    //招标项目 失单
    LoseButton(){
        sqlResult({id: this.id}).then(result=>{
        sqlResult({id: this.recordId}).then(result=>{
            //简档权限 2S1_销售医院担当 2S4_销售管理者 系统管理员
            if (this.profileId != '00e10000000xnp2' && this.profileId != '00e10000000xnpH' && this.profileId != '00e10000000Y3o5') {
            if (this.profileId != this.SalesManagerId  && this.profileId != this.SalesHospitalId && this.profileId != this.systemProfileId) {
                this.showToast("您没有权限,无法创建询价提交失单。","error");
                return;
            }
            // 判断内部确认状态
            if(this.status == '01.待确认'|| this.status == '02.不相关'){ 
                console.log('没走吗');
                this.showToast("状态为待确认或不相关,不可以做失单。","error");
                return;
            }
@@ -62,7 +61,7 @@
                    return;
                }
            }
            window.open(`/apex/TenderLostPage?id=${this.id}`,'','height=500,width=800,top=200,left=250,location=no');
            window.open(`/apex/TenderLostPage?id=${this.recordId}`,'','height=500,width=800,top=200,left=250,location=no');
        })
    }
    showToast(msg,type) {
@@ -73,36 +72,3 @@
        this.dispatchEvent(event);
    }
}
// var sql = "select id from Tender_Opportunity_Link__c where Tender_information__c='" + '{!Tender_information__c.Id}'+ "'";
// var sqlResult = sforce.connection.query(sql);
// //简档权限 2S1_销售医院担当 2S4_销售管理者 系统管理员
// if ('{!$Profile.Id}' != '00e10000000xnp2' && '{!$Profile.Id}' != '00e10000000xnpH' && '{!$Profile.Id}' != '00e10000000Y3o5') {
// alert("您没有权限,无法创建询价提交失单。");
// return;
// }
// // 判断内部确认状态
// if({!Tender_information__c.status__c == '01.待确认'|| Tender_information__c.status__c == '02.不相关'}){
// alert('状态为待确认或不相关,不可以做失单。');
// return;
// }
// // 判断是否需要新建询价
// if({!Tender_information__c.status__c == '05.询价中'|| Tender_information__c.status__c == '06.成交' || Tender_information__c.status__c == '07.部分成交' || Tender_information__c.status__c == '08.失单'} || sqlResult.size > 0){
// if(!confirm('此项目已关联询价,请确实是否新建询价提交失单。')) {
// return;
// }
// }
// // 判断是否需要新建询价
// //if(sqlResult.size > 0){
// //if(!confirm('已有关联询价,是否创建新的询价。')) {
// //return;
// //}
// //}
// window.open('/apex/TenderLostPage?id={!Tender_information__c.Id}','','height=500,width=800,top=200,left=250,location=no');
force-app/main/default/lwc/lexTenderingNoStandardButton/lexTenderingNoStandardButton.js
@@ -1,9 +1,7 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
import { updateRecord } from 'lightning/uiRecordApi';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
export default class lexTenderingNoStandardButton extends LightningElement {
    @api recordId;//当前这条数据的id
@@ -22,7 +20,7 @@
         }
     }
    
    //招标项目不应标申请
    connectedCallback(){
        init({
            recordId: this.recordId
@@ -30,21 +28,13 @@
                this.IsLoading = false;
                this.id = result.Id;
                this.opportunityNum = result.opportunityNum;
                this.NoStandardButton();
                if(this.opportunityNum > 0) {
                    this.showToast('项目已关联过询价,请到询价里做不应标申请','error');
                    return;
                }
                window.open ('/apex/Bidding?id='+this.id, '', 'height=350, width=600, top=200, left=350,location=no');
                this.dispatchEvent(new CloseActionScreenEvent());
        }).catch(error => {
            console.log("error"+error);
        }).finally(() => {
        });
    }
    //招标项目不应标申请
    NoStandardButton(){
        if(Number(this.opportunityNum) > 0) {
            this.showToast('项目已关联过询价,请到询价里做不应标申请','error');
            return;
        }
        window.open ('/apex/Bidding?id='+this.id, '', 'height=350, width=600, top=200, left=350,location=no');
        })
    }
    showToast(msg,type) {
@@ -53,20 +43,6 @@
            variant: type
        });
        this.dispatchEvent(event);
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
// function IfResponse(){
//     // 关联询价之后不能在招标里申请不应标
//     if('{!Tender_information__c.OpportunityNum__c}' > 0) {
//     alert('项目已关联过询价,请到询价里做不应标申请');
//     return;
//     }
//     window.open ('/apex/Bidding?id={!Tender_information__c.Id}', '', 'height=350, width=600, top=200, left=350,location=no');
//     }
//     IfResponse();
}
force-app/main/default/pages/NewOnCall.page
@@ -234,7 +234,7 @@
        //Alert Error Message
        function alertErrorMessage(errorMsg) {
            let errorMsgNode = document.getElementById("page:form:block:msgContent");
            errorMsg = '错误:无效数据。' + '\n' + errorMsg;
            // errorMsg = '错误:无效数据。' + '\n' + errorMsg;
            errorMsgNode.innerText = errorMsg;
            errorMsgNode.className = 'pbError';
            unblockUI();
force-app/main/default/pages/NewPaymentPlanLoad.page
@@ -21,8 +21,8 @@
</style>    
<script type="text/javascript">
    j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).attr('disabled',true);
    function init() {
    window.onload = function init() {
        console.log('执行了init');
        Convert_All_Amount();
        // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star
        AllChecktime();
@@ -43,6 +43,7 @@
    }
    function Initdisabled() {
        var Status = '{!PageMCEElement.Status__c}';
        if(Status != '引合中'){
        j$(escapeVfId('allPage:allForm:allBlock:Is_Standard_Contract')).attr("disabled", true);
@@ -66,28 +67,30 @@
        j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_6')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Small_Repair_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Live_Technical_Support_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Tour_Check__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Engineer_Name__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Phone_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Inspection_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Small_Repair_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Big_Repair_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Live_Technical_Support_Time__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Tour_Check__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Engineer_Name__c')).attr("disabled", true);
        console.log('disabled');
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Phone_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__c')).attr("disabled", true);
        // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star
        j$(escapeVfId('allPage:allForm:allBlock:Contract_Limit_Times__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).attr("disabled", true);
        // 新增点检总次数(只在页面中显示)fxk 2021/9/2 End
        j$(escapeVfId('allPage:allForm:allBlock:Dedust__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:First_Party_Contract_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Second_Party_Contract_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:Negotiate_Mean__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Dedust__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:First_Party_Contract_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Second_Party_Contract_Number__c')).attr("disabled", true);
        j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Negotiate_Mean__c')).attr("disabled", true);
        }
        //XLIU-CEP8WW LY 20220905 start
        var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}';
        var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val();
        if (saveBT =='true' && payment=='多次付款'){
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", 'btnDisabled');
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", 'btnDisabled');
        }
        //XLIU-CEP8WW LY 20220905 end
        
@@ -226,15 +229,15 @@
        var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val();
        if (saveBT =='true' && payment=='多次付款'){
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true);
        }
        if (saveBT =='true' && payment=='一次性付款') {
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", false);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", false);
            j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false);
            // j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false);
        }
        //XLIU-CEP8WW LY 20220905 end
        ChangeTermofPaymentPlan();
force-app/main/default/pages/PAEDecisionRecord.page
@@ -1,4 +1,4 @@
<apex:page action="{!init}" extensions="PAEDecisionRecordController" id="allPage" showheader="false" sidebar="false" standardcontroller="PAE_DecisionRecord__c" title="PAE判定记录" lightningStylesheets="true">
<apex:page action="{!init}" extensions="PAEDecisionRecordController" id="allPage" showheader="false" sidebar="false" standardcontroller="PAE_DecisionRecord__c" title="PAE判定记录" lightningStylesheets="true" >
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}">
    </apex:stylesheet>
    <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}">
@@ -70,23 +70,6 @@
            blockme();
            InsertRow();
            
        }
        var selectedSize = 0;
        var pageLimit = {!pageLimit};
        function CheckSize(j){
            var a = j.id;
            var productCount = j$(escapeVfId(a)).attr('checked');
            if (productCount == 'checked') {
                if(selectedSize >= pageLimit){
                    window.alert("页面所选数据不能超过500条");
                    j$(escapeVfId(a)).attr('checked',false);
                    return;
                }
                selectedSize ++;
            } else {
                selectedSize --;
            }
            //alert(selectedSize);
        }
        // 保存并关闭
        function SaveAndCloses(onlySave) {
@@ -424,7 +407,7 @@
                                    <!-- 20200810 Gzw 修改保存并关闭按钮,Final时显示
                                <apex:commandButton value="保存并关闭" disabled="{!editFlag}"  rendered="{!IF(((repa != null && !((repa.Repair_Determine__c = '要' && isOSH)||repa.Repair_Determine__c != '要')) || (RecordTypeName = 'ASACDecision')),true,false)}" style="margin-left:30px;width:80px;float:left"  onclick="SaveAndCloses(2);return false;"  rerender="unEditable,message" oncomplete="unblockUI();" /> -->
                                <td>
                                    <apex:commandbutton disabled="{!editFlag}" onclick="SaveAndCloses(2);return false;" oncomplete="unblockUI();" rendered="{!IF(repa != null && RecordTypeName = 'ASACDecision',true,false)}" rerender="unEditable,message" style="margin-left:30px;width:80px;float:left" value="保存并关闭">
                                    <apex:commandbutton disabled="{!editFlag}" onclick="SaveAndCloses(2);return false;" oncomplete="unblockUI();" rendered="{!IF(repa != null && RecordTypeName = 'ASACDecision',true,false)}" rerender="unEditable,message" style="margin-left:30px;width:100px;float:left" value="保存并关闭">
                                    </apex:commandbutton>
                                </td>
                                    <!-- When 要不要进行修理的判定=要 -->