liangxiaozhen
2023-08-06 7454e4fe769b5148309b8a932fbf2bc03b41b376
force-app/main/default/lwc/lexSubmitForApproval/lexSubmitForApproval.js
@@ -30,7 +30,6 @@
    }
    connectedCallback() {
        console.log(this.recordId);
        init({
            recordId: this.recordId
        }).then(result => {
@@ -44,26 +43,21 @@
            }
        }).catch(error => {
            console.log(error);
        }).finally(() => {
        });
        })
    }
    // 关闭询价/关闭续签
    SubmitForApproval() {
        var url = '';
        selectRecords({
            recordId: this.Id
            mcId: this.Id
        }).then(result => {
            console.log(result);
            if (result.length > 0) {
                url = "/apex/SubmitForApprovalPage?id=" + result[0].Id;
            } else {
                url = "/apex/SubmitForApprovalPage?mcId=" + this.Id;
            }
            window.open(url, '', 'height=350, width=600, top=200, left=350,location=no');
        }).catch(error => {
            console.log("error");
        })
    }
}