| | |
| | | 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'; |
| | | |
| | |
| | | this.GetInspectByIdFn(paramId); |
| | | // this.CheckOwner(paramId); |
| | | this.GetIrresponsibleReasonFn(); |
| | | //20220913 you SWAG-CJ3DS5 start |
| | | this.GetproInvolvedManualFn(); |
| | | } |
| | | |
| | | CheckResult = false; |
| | |
| | | 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; |
| | |
| | | }) |
| | | |
| | | } |
| | | //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; |
| | |
| | | }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 == '') |
| | |
| | | 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(()=>{ |
| | |
| | | //输入框 未输入展示的值 |
| | | 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 == "其他(可手动填写)") { |
| | |
| | | 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; |
| | |
| | | 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)=>{ |