| | |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { CurrentPageReference } from 'lightning/navigation'; |
| | | |
| | | import init from '@salesforce/apex/RentalApplyFaultController.init'; |
| | | import updateRentalApplyFaultStatus from '@salesforce/apex/RentalApplyFaultController.updateRentalApplyFaultStatus'; |
| | | import init from '@salesforce/apex/LexRentalApplyFaultController.init'; |
| | | import updateRentalApplyFaultStatus from '@salesforce/apex/LexRentalApplyFaultController.updateRentalApplyFaultStatus'; |
| | | export default class lexFeedbackReport extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference){ |
| | | if(currentPageReference) { |
| | |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(res=>{ |
| | | if(res){ |
| | | if(res.status__c!='已发送'){ |
| | | this.showToast('只有已发送的检测分析报告才能发送','warning'); |
| | | return; |
| | |
| | | this.showToast(res,'error'); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.showToast('未查询到数据','warning'); |
| | | } |
| | | }) |
| | | } |
| | | |