|
|
@@ -66,6 +66,9 @@
|
|
66
|
66
|
#TreeDemo li {
|
|
67
|
67
|
float: initial;
|
|
68
|
68
|
}
|
|
|
69
|
+ #ce,#ces{
|
|
|
70
|
+ display: none;
|
|
|
71
|
+ }
|
|
69
|
72
|
</style>
|
|
70
|
73
|
</head>
|
|
71
|
74
|
|
|
|
@@ -142,8 +145,8 @@
|
|
142
|
145
|
</div>
|
|
143
|
146
|
</div>
|
|
144
|
147
|
|
|
145
|
|
- <div style="width: 100%;padding: 10px;">
|
|
146
|
|
- <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
148
|
+ <div style="width: 100%;padding: 10px;" id="ce" class="customerService">
|
|
|
149
|
+ <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
147
|
150
|
<thead>
|
|
148
|
151
|
<tr>
|
|
149
|
152
|
<th data-field="WorkOrderID" data-formatter="View" data-align="center">工单编号</th>
|
|
|
@@ -166,6 +169,26 @@
|
|
166
|
169
|
</tr>
|
|
167
|
170
|
</thead>
|
|
168
|
171
|
</table>
|
|
|
172
|
+
|
|
|
173
|
+ </div>
|
|
|
174
|
+ <div style="width: 100%;padding: 10px;" id="ces" >
|
|
|
175
|
+ <table id="workorderlist_" class="market" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
176
|
+ <thead>
|
|
|
177
|
+ <tr>
|
|
|
178
|
+ <th data-field="WorkOrderID" data-formatter="View" data-align="center">工单编号</th>
|
|
|
179
|
+ <th data-field="State" data-formatter="GetStateName" data-align="center">工单状态</th>
|
|
|
180
|
+ <th data-field="Address" data-align="center">来电单位</th>
|
|
|
181
|
+ <th data-field="Source" data-align="center">反馈单位</th>
|
|
|
182
|
+ <th data-field="TypeClassName" data-align="center">工单类型</th>
|
|
|
183
|
+ <th data-field="Customer" data-align="center">姓名</th>
|
|
|
184
|
+ <th data-field="CustomerTel" data-align="center">客户电话</th>
|
|
|
185
|
+ <th data-field="Detail" data-align="center" data-formatter="Detail">反馈内容及处理结果</th>
|
|
|
186
|
+ <th data-field="CBCount" data-align="center">催办</th>
|
|
|
187
|
+ <th data-field="WorkOrderID" data-formatter="OverTime" data-align="center">工单超时</th>
|
|
|
188
|
+ <th data-field="WorkOrderID" data-formatter="Dispose" data-align="center">操作</th>
|
|
|
189
|
+ </tr>
|
|
|
190
|
+ </thead>
|
|
|
191
|
+ </table>
|
|
169
|
192
|
</div>
|
|
170
|
193
|
<!--查看详情-->
|
|
171
|
194
|
<div class="ckxq Hidens">
|
|
|
@@ -574,6 +597,59 @@
|
|
574
|
597
|
}
|
|
575
|
598
|
});
|
|
576
|
599
|
}
|
|
|
600
|
+ function initTables() {
|
|
|
601
|
+ //先销毁表格
|
|
|
602
|
+ $('#workorderlist_').bootstrapTable('destroy');
|
|
|
603
|
+ //初始化表格,动态从服务器加载数据
|
|
|
604
|
+ $("#workorderlist_").bootstrapTable({
|
|
|
605
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
606
|
+ url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
|
|
|
607
|
+ striped: true, //表格显示条纹
|
|
|
608
|
+ pagination: true, //启动分页
|
|
|
609
|
+ pageSize: 5, //每页显示的记录数
|
|
|
610
|
+ pageNumber: 1, //当前第几页
|
|
|
611
|
+ pageList: [10, 20, 50, 100], //记录数可选列表
|
|
|
612
|
+ search: false, //是否启用查询
|
|
|
613
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
614
|
+ showRefresh: false, //显示刷新按钮
|
|
|
615
|
+ sidePagination: "server", //表示服务端请求
|
|
|
616
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
617
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
618
|
+ queryParamsType: "undefined",
|
|
|
619
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
620
|
+ var param = {
|
|
|
621
|
+ page: params.pageNumber,
|
|
|
622
|
+ pagesize: params.pageSize,
|
|
|
623
|
+ ltype: 471,
|
|
|
624
|
+ token: $.cookie("token"),
|
|
|
625
|
+ type: $('#orderSource').val(), //工单来源
|
|
|
626
|
+ typeclass: $('#typeclassId').val(), //工单类型
|
|
|
627
|
+ starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[0], //开始时间
|
|
|
628
|
+ endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split('~')[1], //结束时间
|
|
|
629
|
+ lddep: $('#comeCall_dep').val(), //来电单位
|
|
|
630
|
+ userid: $('#userid').val() //坐席
|
|
|
631
|
+
|
|
|
632
|
+ };
|
|
|
633
|
+ // if (stype == '1') {
|
|
|
634
|
+ // param.name = $("#name").val();
|
|
|
635
|
+ // param.tel = $("#tel").val();
|
|
|
636
|
+ // } else if (stype == '2') {
|
|
|
637
|
+ // param.name = $("#ss_khxm").val();
|
|
|
638
|
+ // param.tel = $("#ss_khdh").val();
|
|
|
639
|
+ // param.key = $("#ss_gdnr").val();
|
|
|
640
|
+ // param.type = $("#ss_gdlx").val();
|
|
|
641
|
+ // param.orderid = $("#ss_gdbh").val();
|
|
|
642
|
+ // }
|
|
|
643
|
+ return param;
|
|
|
644
|
+ },
|
|
|
645
|
+ onLoadSuccess: function() { //加载成功时执行
|
|
|
646
|
+ //layer.msg("加载成功");
|
|
|
647
|
+ },
|
|
|
648
|
+ onLoadError: function() { //加载失败时执行
|
|
|
649
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
650
|
+ }
|
|
|
651
|
+ });
|
|
|
652
|
+ }
|
|
577
|
653
|
//导出
|
|
578
|
654
|
function dcexcel(obj) {
|
|
579
|
655
|
var url = huayi.config.callcenter_url + "WorkOrder/ExportList?ltype=2&token=" + $.cookie("token");
|
|
|
@@ -590,9 +666,31 @@
|
|
590
|
666
|
return '<div class="warning" onclick="CL()">调转</div>'
|
|
591
|
667
|
}
|
|
592
|
668
|
function CL(){
|
|
593
|
|
- top.$("iframe:visible")[0].src = "./WorkOrder/AddWorkOrder.html";
|
|
|
669
|
+ top.$("iframe:visible")[0].src = "WorkOrder/AddWorkOrder.html?id="+id+"phone="+phone;
|
|
594
|
670
|
|
|
595
|
671
|
}
|
|
|
672
|
+
|
|
|
673
|
+ var ns;
|
|
|
674
|
+ $.ajax({
|
|
|
675
|
+ type:"get",
|
|
|
676
|
+ url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
|
|
|
677
|
+ dataType: 'json',
|
|
|
678
|
+ async: true,
|
|
|
679
|
+ data: {
|
|
|
680
|
+ token: $.cookie("token")
|
|
|
681
|
+ },
|
|
|
682
|
+ success: function(data) {
|
|
|
683
|
+ if(data.state.toLowerCase()=='success'){
|
|
|
684
|
+ if(data.data.groname=='客服组'){
|
|
|
685
|
+ $('#ce').show();
|
|
|
686
|
+ ns=1;
|
|
|
687
|
+ }else{
|
|
|
688
|
+ $('#ces').show();
|
|
|
689
|
+ ns=2;
|
|
|
690
|
+ }
|
|
|
691
|
+ }
|
|
|
692
|
+ }
|
|
|
693
|
+ });
|
|
596
|
694
|
</script>
|
|
597
|
695
|
</body>
|
|
598
|
696
|
|