| | |
| | | } |
| | | } |
| | | if (dc != '' || purpose_type != '') { |
| | | |
| | | var action = component.get('c.getProductList'); |
| | | action.setParams({ |
| | | "dc" : dc, |
| | |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | alert(state); |
| | | if(state == 'SUCCESS'){ |
| | | |
| | | var res = response.getReturnValue(); |
| | | component.find('select_Product1').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | component.find('select_Product2').set("v.options", JSON.parse(JSON.stringify(res))); |
| | |
| | | if (select_data['Department_Cateogy__c'] != '') { |
| | | this.set_selected(component, 'select_department', select_data['Department_Cateogy__c']); |
| | | } |
| | | |
| | | // 拜访人 |
| | | component.set('v.default_select_doctor_id', select_data['doctor2__c']); |
| | | this.set_doctor_list(component); |
| | |
| | | var result = component.find('result'); |
| | | $A.util.addClass(result, 'disp_none'); |
| | | } |
| | | |
| | | this.select_department(component, null, null); |
| | | }, |
| | | |
| | |
| | | }, |
| | | showExportDate : function(component,objectRecords){ |
| | | console.log('进入showexceportdate'+objectRecords); |
| | | alert(777); |
| | | var keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c']; |
| | | var headers = ['周','担当','活动日','医院','科室','拜访人','职位','产品区分1','产品区分2','产品区分3','活动区分','结果'] |
| | | var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">"; |