温红权 7 лет назад
Родитель
Сommit
949ffe1187
1 измененных файлов с 16 добавлено и 13 удалено
  1. 16 13
      VisualInspection/js/statistics/business_promotion_feedback.js

+ 16 - 13
VisualInspection/js/statistics/business_promotion_feedback.js

@@ -334,8 +334,11 @@ function filterByZeroHandle(value, default_display_value) {
 
 function exportExcel() {
     var dept_id = $("#fsList").val();
-    var start_date = $("#start-time").val();
-    var end_date = $("#end-time").val();
+    var t = getTimeByMonth($("#month_date").val());
+    var start_date = getMomentTimeFormat(t.starttime);
+    var end_date = getMomentTimeFormat(t.endtime);
+    // var start_date = $("#start-time").val();
+    // var end_date = $("#end-time").val();
     var start_score = $("#start-score").val();
     var end_score = $("#end-score").val();
     var parent_dept_id = $("#center-manager").val();
@@ -348,17 +351,17 @@ function exportExcel() {
     if (flag == false) {
         return;
     }
-    if (start_date == '' || end_date == '') {
-        tip("请选择起止日期");
-        return;
-    } else {
-        start_date += " 23:00:00";
-        end_date += " 23:00:00";
-        var start = new Date(start_date);
-        //开始日期取前一天的23:00
-        start.setDate(start.getDate() - 1);
-        start_date = start.Format("yyyy-MM-dd HH:mm:ss");
-    }
+    // if (start_date == '' || end_date == '') {
+    //     tip("请选择起止日期");
+    //     return;
+    // } else {
+    //     start_date += " 23:00:00";
+    //     end_date += " 23:00:00";
+    //     var start = new Date(start_date);
+    //     //开始日期取前一天的23:00
+    //     start.setDate(start.getDate() - 1);
+    //     start_date = start.Format("yyyy-MM-dd HH:mm:ss");
+    // }
     if (!dept_id) dept_id = "";
     window.open(getserveraddr() + "/file/business/feedback?dept_id=" + dept_id +
         "&start_date=" + start_date + "&end_date=" + end_date + "&start_score=" + start_score + "&end_score=" + end_score + "&parent_dept_id=" + parent_dept_id +