| | |
| | | /* |
| | | * @Description: |
| | | * @version: |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-08-24 15:52:32 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-08-24 15:54:14 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | |
| | | init({ |
| | | recordId: this.accountId |
| | | }).then(result=>{ |
| | | console.log(result); |
| | | this.hospitalId = result.hospitalId; |
| | | this.hospitalOCMCategory = result.hospitalOCMCategory; |
| | | this.hospitalSalesdepartmentHP = result.hospitalSalesdepartmentHP; |
| | |
| | | this.salesAssistant = ''; |
| | | } |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | Name: '*', |
| | | Hospital__c: this.hospitalId == undefined ? '' : this.hospitalId, |
| | | Department_Class__c: this.accountId == undefined ? '' : this.accountId, |
| | | Sales_Assistant__c: this.salesAssistant == undefined ? '' : this.salesAssistant |