FUYU
2023-12-18 b329ab986e250bb27e46ace97cf208f3b26d145a
force-app/main/default/lwc/tBidding/tBidding.js
@@ -3,6 +3,7 @@
import SaveDataYB from '@salesforce/apex/InspectCheckController.SaveDataYB';
import ChangeDataYB from '@salesforce/apex/InspectCheckController.ChangeDataYB';
import GetIrresponsibleReason from '@salesforce/apex/InspectCheckController.GetIrresponsibleReason';
import GetproInvolvedManual from '@salesforce/apex/InspectCheckController.GetproInvolvedManual';
import CheckOwnerRequest from '@salesforce/apex/InspectCheckController.CheckOwner';
@@ -67,6 +68,8 @@
        this.GetInspectByIdFn(paramId);
        // this.CheckOwner(paramId);
        this.GetIrresponsibleReasonFn();
        //20220913 you SWAG-CJ3DS5 start
        this.GetproInvolvedManualFn();
    }
    CheckResult = false;
@@ -85,6 +88,10 @@
                this.InspectData.IsBid__c = '是';
                this.InspectData.irresponsibleReason__c = '';
                this.InspectData.irresponsibleReasonOther__c = '';
                //20220914 you SWAG-CJ3DS5 start
                this.InspectData.proInvolvedManual__c = '';
                this.InspectData.proInvolved__c = '';
                //20220914 you SWAG-CJ3DS5 end
                this.irresponsibleReasonShow = false;
                this.otherShow = false;
                this.IsBC= false;
@@ -108,6 +115,19 @@
        })
    }
    //20220913 you SWAG-CJ3DS5 start
    GetproInvolvedManuals = [];  //选项列表展示的列
    GetproInvolvedManualFn()
    {
        GetproInvolvedManual().then(result=>{
            var response=JSON.parse(result);
            this.GetproInvolvedManuals = response;
        })
    }
    //20220913 you SWAG-CJ3DS5 end
    @track InspectData = {}; //数据
    IsSQZ = false; //申请中的标识
    IsSQZButton = false;
@@ -133,13 +153,24 @@
                }else{
                    tempData.proInvolved__c = '';
                }
                //20220913 you SWAG-CJ3DS5 start
                // if (tempData.irresponsibleReason__c == "招标产品与我司不匹配") {
                //     this.SJCPIsShow = true;
                // }else{
                //     this.SJCPIsShow = false;
                // }GetproInvolvedManualShow
                if (tempData.irresponsibleReason__c == "招标产品与我司不匹配") {
                    this.GetproInvolvedManualShow = true;
                }else{
                    this.GetproInvolvedManualShow = false;
                }
                 if (tempData.proInvolvedManual__c == "其他") {
                    this.SJCPIsShow = true;
                }else{
                    this.SJCPIsShow = false;
                }
                 //20220913 you SWAG-CJ3DS5 end
                tempData.InvolveBudgetAmount__c =    this.YSJEIsContent ;
                if(this.YSJEIsContent == 0 || this.YSJEIsContent == '')
@@ -172,6 +203,14 @@
                if (tempData.irresponsibleReasonOther__c  == undefined) {
                    tempData.irresponsibleReasonOther__c = '';
                }
                //20220914 you SWAG-CJ3DS5 start
                if (tempData.proInvolvedManual__c  == undefined) {
                    tempData.proInvolvedManual__c = '';
                }
                if (tempData.proInvolved__c  == undefined) {
                    tempData.proInvolved__c = '';
                }
                //20220914 you SWAG-CJ3DS5 end
                debugger;
                if (tempData.NotBidApprovalStatus__c == '申请中') {
                    setTimeout(()=>{
@@ -227,10 +266,11 @@
      //输入框 未输入展示的值
    bxgLy ="slds-form-element"; //error = slds-form-element slds-has-error 
    bxgLyFlag = false;
    otherShow = false;  //是否是其他输入
    handleIrresponsibleReasonsFn(event)
    {
        this.SJCPIsShow =false;//20220914 you SWAG-CJ3DS5
        var value = event.target.value;
        this.InspectData.irresponsibleReason__c = value;
        if (value == "其他(可手动填写)") {
@@ -240,17 +280,44 @@
            this.otherShow = false;
            debugger;
        }
        //20220913 you SWAG-CJ3DS5 start
        // if (value == "招标产品与我司不匹配") {
        //     this.SJCPIsShow = true;
        // }else{
        //     this.SJCPIsShow = false;
        // }
        //20220913 you SWAG-CJ3DS5 start
        if (value == "招标产品与我司不匹配") {
            this.GetproInvolvedManualShow = true;
        }else{
            this.InspectData.proInvolvedManual__c = '';
            this.InspectData.proInvolved__c = '';
            this.GetproInvolvedManualShow = false;
        }
        //20220913 you SWAG-CJ3DS5 end
    }
     //20220913 you SWAG-CJ3DS5 start
    bxgLy1 ="slds-form-element"; //error = slds-form-element slds-has-error
    handleIrresponsibleReasonsFn1(event)
    {
        var value = event.target.value;
        this.InspectData.proInvolvedManual__c = value;
        if (value == "其他") {
            this.SJCPIsShow = true;
        }else{
            this.InspectData.proInvolved__c = '';
            this.SJCPIsShow = false;
            debugger;
        }
    }
 //20220913 you SWAG-CJ3DS5 end
     //输入框 未输入展示的值
    qtLy="slds-form-element";
    qtLyFlag = false;
    //20220914 you SWAG-CJ3DS5 start
    qtLy1="slds-form-element";
    qtLyFlag1 = false;
    //20220914 you SWAG-CJ3DS5 end
    handleOtherIrrelevantFn(event)
    {
        var value = event.target.value;
@@ -316,7 +383,16 @@
            this.qtLy = "slds-form-element"
            this.qtLyFlag = false;
        }
        //20220913 you SWAG-CJ3DS5 start
        if (this.InspectData.proInvolvedManual__c == "其他" &&  (this.InspectData.proInvolved__c == undefined || this.InspectData.proInvolved__c == "" )) {
            this.qtLy1 = "slds-form-element slds-has-error"
            this.qtLyFlag1 = true;
            flag = false;
        }else{
            this.qtL1y = "slds-form-element"
            this.qtLyFlag1 = false;
        }
        //20220913 you SWAG-CJ3DS5 end
        if (flag) {
            if (temp == 1) {
                ChangeDataYB({JsonData:JSON.stringify(this.InspectData)}).then((response)=>{