| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-07 09:02:03 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-04-11 11:26:11 |
| | | * @LastEditTime: 2023-05-15 09:17:27 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | |
| | | export default class LexOCSMToReport extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | | OCSMAdministrativeReportStatus; |
| | | theOCSMAdministrativeReportStatus; |
| | | awareDate; |
| | | |
| | | |
| | |
| | | }).then(result => { |
| | | console.log(result); |
| | | if (result != null) { |
| | | this.OCSMAdministrativeReportStatus = result.OCSMAdministrativeReportStatus; |
| | | this.theOCSMAdministrativeReportStatus = result.theOCSMAdministrativeReportStatus; |
| | | this.awareDate = result.awareDate; |
| | | this.toReport(); |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | if(this.OCSMAdministrativeReportStatus == undefined && this.awareDate != undefined ){ |
| | | if(this.theOCSMAdministrativeReportStatus == undefined && this.awareDate != undefined ){ |
| | | updateForOCSMToReportButton({ |
| | | recordId: this.recordId |
| | | }).then(result =>{ |