| | |
| | | IsLoading = true; |
| | | Id; |
| | | RecordTypeId; |
| | | RecordType; |
| | | |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.RecordTypeId = result.RecordTypeId; |
| | | this.RecordType = result.RecordType; |
| | | |
| | | this.insPageBtn(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | // 报告书明细编辑 |
| | | insPageBtn() { |
| | | var url; |
| | | if (this.RecordTypeId == '01210000000aLii') { |
| | | if (this.RecordType == 'ContractInspection') { |
| | | url = '/apex/OFSInsReportLayoutForVm'; |
| | | } else { |
| | | url = '/apex/OFSInsReportLayout'; |