| | |
| | | } |
| | | |
| | | connectedCallback() { |
| | | console.log(this.recordId); |
| | | init({ |
| | | recordId: this.recordId |
| | | }).then(result => { |
| | |
| | | } |
| | | }).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"); |
| | | }) |
| | | } |
| | | } |