| | |
| | | import { LightningElement,wire,track,api} from 'lwc'; |
| | | import { CurrentPageReference, NavigationMixin} from "lightning/navigation"; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import init from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.rentalApp'; |
| | | import rentalApp from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/lexEquipmentRentalApply_FromQISCtl.UserInfo_Owner'; |
| | | import init from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.rentalApp'; |
| | | import rentalApp from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.init'; |
| | | import UserInfo_Owner from '@salesforce/apex/LexEquipmentRentalApply_FromQISCtl.UserInfo_Owner'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils'; |
| | | |
| | |
| | | }else{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | QIS_Report__c: this.recordId, |
| | | Hospital: result.hospital, |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.hospitalDepartment, |
| | | Demo_purpose1:'维修代用', |
| | | demo_purpose2:'索赔QIS', |
| | | Hospital__c: result.hospital, |
| | | Strategic_dept__c: result.departmentClass, |
| | | Account__c:result.hospitalDepartment, |
| | | Demo_purpose1__c:'维修代用', |
| | | demo_purpose2__c:'索赔QIS', |
| | | Name:'*', |
| | | Person_In_Charge:res.lastName + res.firstName, |
| | | applyUser:res.lastName + res.firstName, |
| | | Loaner_received_staff:res.lastName + res.firstName, |
| | | QIS_number:result.name, |
| | | QISRepair:result.repair |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | QIS_number__c:result.name, |
| | | QISRepair__c:result.repair |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |
| | |
| | | return; |
| | | }else{ |
| | | const defaultValues = encodeDefaultFieldValues({ |
| | | Statu_Achievements: result.achievement, |
| | | Statu_Achievements__c: result.achievement, |
| | | retURL:this.recordId, |
| | | Hospital: result.hospital, |
| | | Hospital__c: result.hospital, |
| | | Name:'*', |
| | | Strategic_dept: result.departmentClass, |
| | | Account:result.oppClassName, |
| | | Demo_purpose1:'产品试用', |
| | | demo_purpose2:'已购待货', |
| | | Person_In_Charge:res.lastName + res.firstName, |
| | | applyUser:res.lastName + res.firstName, |
| | | Loaner_received_staff:res.lastName + res.firstName, |
| | | Follow_UP_Opp:result.opportunity |
| | | Strategic_dept__c: result.departmentClass, |
| | | Account__c:result.oppClassName, |
| | | Demo_purpose1__c:'产品试用', |
| | | demo_purpose2__c:'已购待货', |
| | | Person_In_Charge__c:res.lastName + res.firstName, |
| | | applyUser__c:res.lastName + res.firstName, |
| | | Loaner_received_staff__c:res.lastName + res.firstName, |
| | | Follow_UP_Opp__c:result.opportunity |
| | | }); |
| | | |
| | | this[NavigationMixin.Navigate]({ |