Procházet zdrojové kódy

工单列表增加导出

zhengbingbing %!s(int64=6) %!d(string=před) roky
rodič
revize
69bc591adb

+ 46 - 0
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -343,6 +343,7 @@
343 343
                                 </td>
344 344
                                 <td colspan="7" style="text-align: center;" >
345 345
                                     <botton class="btns Seach">搜索</botton>
346
+                                    <botton class="btns Export">导出</botton>
346 347
                                 </td>
347 348
                             </tr>
348 349
                         </table>
@@ -428,6 +429,11 @@
428 429
             $(".Seach").click(function () {
429 430
               	load();
430 431
             })
432
+            //导出
433
+            $('.Export').click(function () {
434
+                dcexcel(this);
435
+            })
436
+            
431 437
             //所属分类下拉
432 438
             $('.inps').focus(function () {
433 439
                 $('.xlAdd').css('display', 'block')
@@ -540,6 +546,46 @@
540 546
                 }
541 547
             });
542 548
         }
549
+        function dcexcel(obj) {
550
+            //坐席
551
+            var usercodeID = "";
552
+            var usercode_ = $("#ZX").val(); //坐席
553
+            if (usercode_ != null) {
554
+                $(usercode_).each(function (i, n) {
555
+                    var obj1 = '';
556
+                    obj1 = n + ",";
557
+                    usercodeID += obj1;
558
+                })
559
+            } else {
560
+                usercodeID = ""
561
+            }
562
+            //      	调度员
563
+            var ddusercodeID = "";
564
+            var ddusercode_ = $("#yardman").val(); //坐席
565
+            if (ddusercode_ != null) {
566
+                $(ddusercode_).each(function (i, n) {
567
+                    var obj2 = '';
568
+                    obj2 = n + ",";
569
+                    ddusercodeID += obj2;
570
+                })
571
+            } else {
572
+                ddusercodeID = ""
573
+            }
574
+            //var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
575
+            //url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
576
+            var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token") + "&isdc=1";
577
+                //url += "&starttime=" + $('#starttime').val() && $('#starttime').val().split(' ~ ')[0]
578
+                //    + "&endtime=" + $('#starttime').val() && $('#starttime').val().split(' ~ ')[1]
579
+                //    + "&workid=" + $("#wids").val() + "&state=" + $("#state").val()
580
+                //    + "&type=" + $("#type").val()//+ "&bigtype=" + ("#bigtype").val()
581
+                //    + "&smalltype=" + $("#smalltype").val() + "&key=" + $("#key").val()
582
+                //    + "&tel=" + $("#tel").val() + "&name=" + $("#name").val()
583
+                //    + "&usercode=" + usercodeID + "&ddusercode=" + ddusercodeID
584
+                //    + "&keyid=" + $("#keyid").val() + "&source=" + $("#source").val()
585
+                //    + "&deptid=" + $("#PID").val() + "&type=" + $("#type").val() + "&dealtype=" + $("#dealtype").val()
586
+                //    + "&sourcearea=" + $('#sourceAreas').val() + "&isdc=1";
587
+            obj.href = url;
588
+        }
543 589
         //状态
544 590
         function States(val, row) {
545 591
             var html = '';

+ 43 - 15
WebUI/CallCenterWeb.UI/YeWu/Number.html

@@ -10,7 +10,8 @@
10 10
     <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
11 11
     <link href="../css/WorkOrder/Search.css" rel="stylesheet">
12 12
     <link href="../css/init.css" rel="stylesheet" />
13
-    <script src="../js/laydate/laydate.js"></script>
13
+    <script src="../css/laydate/laydate.js"></script>
14
+    <!--<script src="../js/laydate/laydate.js"></script>-->
14 15
 
15 16
     <style>
16 17
         table td {
@@ -86,7 +87,11 @@
86 87
                             <ul>
87 88
                                 <li>
88 89
                                     月份:
89
-                                    <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" /></span>
90
+                                    <span class="time-box"><i class="tub fa fa-calendar"></i>
91
+                                    <!--<input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" />-->
92
+                                        <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
93
+                                        <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
94
+                                    </span>
90 95
                                 </li>
91 96
                                 <li>
92 97
                                     <a class="sc_btn btns db">搜索</a>
@@ -102,6 +107,14 @@
102 107
                         <thead>
103 108
                             <tr>
104 109
                                 <th data-field="deptname" data-align="center">单位名称</th>
110
+                                <th data-field="acceptcount" data-align="center">受理量</th>
111
+                                <th data-field="dealcount" data-align="center">处理量</th>
112
+                                <th data-field="delaycount" data-align="center">延期量</th>
113
+                                <th data-field="reloadcount" data-align="center">重办量</th>
114
+                                <th data-field="endcount" data-align="center">办结量</th>
115
+                                <th data-field="dealrate" data-align="center">办理率</th>
116
+                                <th data-field="endrate" data-align="center">办结率</th>
117
+                                <!--<th data-field="deptname" data-align="center">单位名称</th>
105 118
                                 <th data-field="acceptcount" data-align="center">当月受理量</th>
106 119
                                 <th data-field="dealcount" data-align="center">当月处理量</th>
107 120
                                 <th data-field="beforedealcount" data-align="center">往月处理量</th>
@@ -111,7 +124,7 @@
111 124
                                 <th data-field="beforereloadcount" data-align="center">往月重办量</th>
112 125
                                 <th data-field="endcount" data-align="center">当月办结量</th>
113 126
                                 <th data-field="dealrate" data-align="center">当月办理率</th>
114
-                                <th data-field="endrate" data-align="center">当月办结率</th>
127
+                                <th data-field="endrate" data-align="center">当月办结率</th>-->
115 128
                             </tr>
116 129
                         </thead>
117 130
                     </table>
@@ -126,29 +139,42 @@
126 139
 
127 140
         $(document).ready(function () {
128 141
 
129
-            laydate.render({
130
-                theme: '#00a1cb',
131
-                trigger: 'click',
132
-                elem: '#monthDateTimes',
133
-                format: 'yyyy-MM',
134
-                type: 'month',
135
-                value: new Date()
142
+            laydate.skin('blue');
143
+            laydate({
144
+                elem: '#startTimes',
145
+                event: 'focus',
136 146
             });
147
+
148
+            laydate({
149
+                elem: '#endTimes',
150
+                event: 'focus',
151
+            });
152
+            //laydate.render({
153
+            //    theme: '#00a1cb',
154
+            //    trigger: 'click',
155
+            //    elem: '#monthDateTimes',
156
+            //    format: 'yyyy-MM',
157
+            //    type: 'month',
158
+            //    value: new Date()
159
+            //});
137 160
             initTable();
138 161
         })
139 162
         function initTable() {
140 163
             $.ajax({
141
-                url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptMonthReport',
164
+                //url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptMonthReport',
165
+                url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptDayReport',
142 166
                 type: 'get',
143 167
                 data: {
144
-                    date: $("#monthDateTimes").val(),
168
+                    sdate: $("#startTimes").val(),
169
+                    edate: $("#endTimes").val(),
170
+                    //date: $("#monthDateTimes").val(),
145 171
                     token: $.cookie("token")
146 172
                 },
147 173
                 dataType: "json",
148 174
                 async: true,
149 175
                 success: function (returnValue) {
150 176
                     //异步获取数据
151
-                    var resultData1 = returnValue.data.DeptMonthReport;
177
+                    var resultData1 = returnValue.data.DeptDayReport;
152 178
                     $('#workorderlist').bootstrapTable('load', resultData1);
153 179
                 }
154 180
             });
@@ -164,8 +190,10 @@
164 190
         		dcexcel(this);
165 191
         })
166 192
 	   function dcexcel(obj) {
167
-           var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
168
-           url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
193
+           //var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptMonthReport?token=" + $.cookie("token");
194
+	       //url += "&date=" + $("#monthDateTimes").val() + "&isExport=true";
195
+	       var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptDayReport?token=" + $.cookie("token");
196
+	       url += "&sdate=" + $("#startTimes").val() + "&edate=" + $("#endTimes").val() + "&isExport=true";
169 197
             obj.href = url;
170 198
    		 }
171 199