19626
2023-04-04 5d155accb594089737a0b4edd753152a1ea66bc4
force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
@@ -12,24 +12,7 @@
    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);
@@ -73,8 +56,7 @@
    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");