| | |
| | | export default class lexFinLibrary 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); |
| | | } |
| | | } |
| | | } |
| | |
| | | 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.FinLibrary().then(result=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(error =>{ |
| | | console.log("error"); |
| | | console.log(error.message); |
| | | }).finally(()=>{ |
| | | |
| | |
| | | } |
| | | |
| | | async FinLibrary(){ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | window.open(this.Bulletin_Board__c.iPad_Finlibrary__c, 'FinLibrary', '_top'); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | @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); |
| | | } |
| | | } |
| | | } |
| | |
| | | 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.FinLibrary2().then(result=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(error =>{ |
| | | console.log("error"); |
| | | console.log(error.message); |
| | | }).finally(()=>{ |
| | | |
| | |
| | | |
| | | |
| | | FinLibrary2(){ |
| | | |
| | | |
| | | window.open(this.Bulletin_Board__c.iPad_Finlibrary_2__c, 'FinLibrary', '_top'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | |
| | | 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.FinLibrary3().then(result=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | }).catch(error =>{ |
| | | console.log("error"); |
| | | console.log(error.message); |
| | | }).finally(()=>{ |
| | | |
| | |
| | | |
| | | FinLibrary3(){ |
| | | window.open(this.Bulletin_Board__c.iPad_Finlibrary_3__c, 'FinLibrary', '_top'); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | |
| | | |
| | |
| | | <template> |
| | | |
| | | <div class="Attachment" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | @api recordId; |
| | | Lead; |
| | | IsLoading=true; |
| | | |
| | | |
| | | |
| | |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | 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"); |
| | |
| | | |
| | | async QuotationRequest(){ |
| | | if( this.Lead.Status == '未跟进'){ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | window.open("/apex/NewQuoteIrai?leadid="+ this.Lead.Id +"&tenderid="+ this.Lead.Tender_information__c); |
| | | }else{ |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.dispatchEvent(event); |
| | | } |
| | | } |
| | |
| | | <template> |
| | | |
| | | <div class="Attachment" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | |
| | | @api recordId; |
| | | |
| | | |
| | | IsLoading=true; |
| | | OPDPlan__c; |
| | | currentUserProfileId; |
| | | error; |
| | |
| | | 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 : "系统管理员"}); |
| | |
| | | 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'); |
| | | |
| | |
| | | <template> |
| | | |
| | | <div class="Attachment" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | connectedCallback(){ |
| | | this.PreviewPDF().then(res=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | |
| | | <template> |
| | | |
| | | <div class="Attachment" if:true={IsLoading}> |
| | | <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner> |
| | | </div> |
| | | </template> |
| | |
| | | export default class lexProductRepairQuoteProduct extends LightningElement { |
| | | |
| | | @api recordId; |
| | | IsLoading; |
| | | IsLoading=true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |