| | |
| | | ownerId; |
| | | status; |
| | | userId; |
| | | recordTypeId = '01210000000Qekj'; |
| | | errorMsg; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | | console.log(currentPageReference); |
| | | |
| | | if (currentPageReference) { |
| | | const urlValue = currentPageReference.state.recordId; |
| | | if (urlValue) { |
| | | let str = `${urlValue}`; |
| | | console.log("str"); |
| | | console.log(str); |
| | | this.recordId = str; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | connectedCallback(){ |
| | | console.log(this.recordId); |
| | |
| | | SIStoOPD () { |
| | | if(this.ownerId == this.userId && this.status == "草案中") { |
| | | updateForSIStoOPDButton({ |
| | | recordId: this.recordId, |
| | | recordTypeId: this.recordTypeId |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | if(result){ |
| | | this.showToast(result,"error"); |