黄千龙
2022-03-01 9eb2c9b4c0759dbdb6cf2b3be46b65f41e822d98
force-app/main/default/aura/WeeklyReport/WeeklyReportHelper.js
@@ -46,6 +46,7 @@
            }
        }
        if (dc != '' || purpose_type != '') {
            var action = component.get('c.getProductList');
            action.setParams({
                "dc" : dc,
@@ -53,8 +54,8 @@
            });
            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)));
@@ -201,7 +202,6 @@
                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);
@@ -979,7 +979,6 @@
            var result = component.find('result');
           $A.util.addClass(result, 'disp_none');
        }
        this.select_department(component, null, null);
    },
    
@@ -1538,7 +1537,6 @@
    },
    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\">";