| | |
| | | } |
| | | } |
| | | |
| | | connectedCallback(){ |
| | | connectedCallback(){ |
| | | this.ProductRepairQuoteAsset() |
| | | .then(result => { |
| | | this.closeScreen(); |
| | | |
| | | }).catch(error => { |
| | | const event3 = new ShowToastEvent({ |
| | | const event3 = new ShowToastEvent({ |
| | | title: '按钮跳转错误', |
| | | message: |
| | | error.message, |
| | | variant : 'error' |
| | | }); |
| | | this.dispatchEvent(event3); |
| | | }); |
| | | this.dispatchEvent(event3); |
| | | }); |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | async ProductRepairQuoteAsset(){ |
| | | window.open ('/apex/ProductRepairQuote?productid='+this.recordId+'&flag=asset', '', 'height=250, width=500, top=300, left=350,location=no') |
| | | window.open ('/apex/ProductRepairQuote?productid='+this.recordId+'&flag=asset', '', 'height=250, width=500, top=300, left=350,location=no') |
| | | } |
| | | |
| | | closeScreen(){ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | } |