| | |
| | | |
| | | doInit : function(component, event, helper) { |
| | | let rid = component.get('v.recordId'); |
| | | let isClone = component.get('v.isClone'); |
| | | if(!rid || isClone){ |
| | | component.set('v.title',$A.get("$Label.c.New")+'经销商询价'); |
| | | }else{ |
| | | component.set('v.title',$A.get("$Label.c.Edit")+'经销商询价'); |
| | | let pid = null; |
| | | if(!rid){ |
| | | pid = window.location.href.replace("https://","").split("/")[4]; |
| | | } |
| | | |
| | | let record_type_id = ''; |
| | |
| | | if(!record_type_id && pageref){ |
| | | record_type_id = pageref.state.recordTypeId ? pageref.state.recordTypeId : ''; |
| | | } |
| | | |
| | | let isClone = component.get('v.isClone'); |
| | | if(!rid || isClone){ |
| | | component.set('v.title',$A.get("$Label.c.New")+'经销商询价'); |
| | | component.set("v.recordTypeId", record_type_id); |
| | | }else{ |
| | | component.set('v.title',$A.get("$Label.c.Edit")+'经销商询价'); |
| | | } |
| | | console.log('rid: ' + rid); |
| | | // console.log('pid: ' + pid); |
| | | console.log('pid: ' + pid); |
| | | console.log('record_type_id: ' + record_type_id); |
| | | component.set("v.recordTypeId", record_type_id); |
| | | component.set("v.showSpinner", true); |
| | | helper.CallBackAction(component,'Init',{ |
| | | rid : rid, |
| | | // pid : pid, |
| | | pid : pid, |
| | | //rid : component.get('v.recordId'), |
| | | record_type_id : record_type_id |
| | | },function(data){ |
| | |
| | | helper.preparePayloadForSearchAgencyContact(component, event, helper); |
| | | }, |
| | | initContactTable : function(component, event, helper){ |
| | | let cols = ['Name','AgencyHospital', 'DepartmentClass', 'DoctorDivision1','Type']; |
| | | let cols = ['Name','AgencyHospital', 'DoctorDivision1','Type']; |
| | | let contactInfoList = []; |
| | | let awsDataIds = []; |
| | | let data = component.get('v.result'); |