| | |
| | | import start from '@salesforce/apex/StartTradingController2.start'; |
| | | |
| | | |
| | | export default class LexStartTrading extends LightningElement { |
| | | export default class LexStartTrading extends NavigationMixin(LightningElement) { |
| | | @api recordId; |
| | | IsLoading=true; |
| | | Hospital_Name__c; |
| | |
| | | console.log('start result==========',result); |
| | | if(result!=null){ |
| | | this.showToast('已成功转化询价','success'); |
| | | window.open('/lightning/r/Opportunity/'+result+'/view','_parent'); |
| | | // this[NavigationMixin.GenerateUrl]({ |
| | | // type: "standard_recordPage", |
| | | // attributes: { |
| | | // recordId: result, |
| | | // objectApiName:"Opportunity", |
| | | // actionName:"edit" |
| | | // } |
| | | // }).then(url => { |
| | | // window.open(url,"_blank"); |
| | | // }); |
| | | // window.open('/lightning/r/Opportunity/'+result+'/view','_parent'); |
| | | this[NavigationMixin.GenerateUrl]({ |
| | | type: "standard__recordPage", |
| | | attributes: { |
| | | recordId: result, |
| | | objectApiName:"Opportunity", |
| | | actionName:"edit" |
| | | } |
| | | }) |
| | | } |
| | | }); |
| | | // .catch(err=>{ |
| | |
| | | // console.log(err); |
| | | // }).finally(()=>{}); |
| | | } |
| | | |
| | | } |
| | | comparDate(dateValue) { |
| | | return new Date().getTime() >= new Date(dateValue).getTime() + 3600 * 1000 * 24; |
| | |
| | | |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.IsLoading = false; |
| | | this.dispatchEvent(event); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |