| | |
| | | import { |
| | | CloseActionScreenEvent |
| | | } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/otherButtonMaintenanceContractCtl.init'; |
| | | import init from '@salesforce/apex/buttonAccountCtl.init'; |
| | | |
| | | export default class LexCreateNewServiceContract extends LightningElement { |
| | | @api recordId; |
| | |
| | | if (result != null) { |
| | | this.IsLoading = false; |
| | | this.Id = result.Id; |
| | | this.HospitalC = result.HospitalC; |
| | | this.HospitalIdC = result.HospitalIdC; |
| | | this.DepartmentClassC = result.DepartmentClassC; |
| | | this.DepartmentClassIdC = result.DepartmentClassIdC; |
| | | this.HospitalC = result.HospitalC == undefined ? "" : result.HospitalC;; |
| | | this.HospitalIdC = result.HospitalIdC == undefined ? "" : result.HospitalIdC;; |
| | | this.DepartmentClassC = result.DepartmentClassC == undefined ? "" : result.DepartmentClassC;; |
| | | this.DepartmentClassIdC = result.DepartmentClassIdC == undefined ? "" : result.DepartmentClassIdC;; |
| | | this.Name = result.Name; |
| | | |
| | | this.PrintInspectupReport(); |
| | | this.CreateNewServiceContract(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | }).catch(error => { |
| | |
| | | }) |
| | | } |
| | | |
| | | // 报告书明细编辑 |
| | | PrintInspectupReport() { |
| | | // 新建新服务合同 |
| | | CreateNewServiceContract() { |
| | | var Hospital = this.HospitalC; |
| | | var Hospitalid = this.HospitalIdC; |
| | | var Department = this.DepartmentClassC; |
| | |
| | | |
| | | console.log(url); |
| | | |
| | | // window.top.location.href = url; |
| | | window.top.location.href = url; |
| | | } |
| | | } |