|
|
@@ -56,10 +56,6 @@
|
|
56
|
56
|
#TreeDemo li {
|
|
57
|
57
|
float: initial;
|
|
58
|
58
|
}
|
|
59
|
|
- #ce,
|
|
60
|
|
- #ces {
|
|
61
|
|
- display: none;
|
|
62
|
|
- }
|
|
63
|
59
|
.E73 {
|
|
64
|
60
|
background: #87eebf;
|
|
65
|
61
|
color: #000;
|
|
|
@@ -186,7 +182,6 @@
|
|
186
|
182
|
<input class="form-control" type="text" id="searchTouser" placeholder="处理人">
|
|
187
|
183
|
</div>
|
|
188
|
184
|
</div>
|
|
189
|
|
- <!--<span style="display:none">登录时间:<input type="text" class="laydate-icon loginTime" id="startTime"/></span>-->
|
|
190
|
185
|
</div>
|
|
191
|
186
|
|
|
192
|
187
|
<div class="pull-right">
|
|
|
@@ -194,79 +189,10 @@
|
|
194
|
189
|
</div>
|
|
195
|
190
|
</div>
|
|
196
|
191
|
</div>
|
|
197
|
|
-
|
|
198
|
|
- <div style="width: 100%;padding: 10px;" id="ce" class="customerService">
|
|
199
|
|
- <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
200
|
|
- <thead>
|
|
201
|
|
- <tr style="position: relative;">
|
|
202
|
|
- <!--<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
|
|
203
|
|
- <th data-field="F_CreateTime" data-align="center">创建时间</th>
|
|
204
|
|
- <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
|
|
205
|
|
- <th data-field="F_Area" data-formatter="characterFive" data-align="center" >区域</th>
|
|
206
|
|
- <th data-field="F_Province" data-formatter="characterFive" data-align="center">省</th>
|
|
207
|
|
- <th data-field="F_City" data-formatter="characterFive" data-align="center">市</th>
|
|
208
|
|
- <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
|
|
209
|
|
- <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">姓名</th>
|
|
210
|
|
- <th data-field="F_CusPhone" data-align="center">客户电话</th>
|
|
211
|
|
- <th data-field="ProductTypeName" data-formatter="characterFive" data-align="center">产品类别</th>
|
|
212
|
|
- <th data-field="F_ProductName" data-formatter="characterFive" data-align="center">产品名称</th>
|
|
213
|
|
- <th data-field="F_BatchNumber" data-align="center">生产批号</th>
|
|
214
|
|
- <th data-field="SourceName" data-formatter="characterFive" data-align="center">来源</th>
|
|
215
|
|
- <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>-->
|
|
216
|
|
- <th data-field="F_SerialNumber" data-align="center">序号</th>
|
|
217
|
|
- <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
|
|
218
|
|
- <th data-field="F_Source" data-formatter="workOrderSourceJudge" data-align="center">工单来源</th>
|
|
219
|
|
- <th data-field="F_Type" data-align="center">工单类别</th>
|
|
220
|
|
- <th data-field="F_State" data-align="center">工单状态</th>
|
|
221
|
|
- <th data-field="F_AreaName" data-align="center">区域</th>
|
|
222
|
|
- <th data-field="F_OfficName" data-align="center">办事处</th>
|
|
223
|
|
- <th data-field="F_CreateTime" data-align="center">创建时间</th>
|
|
224
|
|
- <!--<th data-field="F_DealTimely" data-align="center">重要级别</th>-->
|
|
225
|
|
- <th data-field="F_Reason" data-align="center">原因</th>
|
|
226
|
|
- <th data-field="F_CusName" data-align="center">来电人姓名</th>
|
|
227
|
|
- <th data-field="F_CusPhone" data-align="center">来电人电话</th>
|
|
228
|
|
- <th data-field="F_AddRess" data-align="center">地址</th>
|
|
229
|
|
- <th data-field="F_ProductType" data-align="center">产品代码</th>
|
|
230
|
|
- <th data-field="F_ProductName" data-align="center">产品名称</th>
|
|
231
|
|
- <th data-field="F_Specifications" data-align="center">规格</th>
|
|
232
|
|
- <th data-field="F_ProductDate" data-align="center">生产日期</th>
|
|
233
|
|
- <th data-field="F_BatchNumber" data-align="center">产品编码</th>
|
|
234
|
|
- <th data-field="F_Manufacturer" data-align="center">生产厂家</th>
|
|
235
|
|
- <th data-field="F_ProblemCode" data-align="center">问题代码</th>
|
|
236
|
|
- <th data-field="F_QualityProblem" data-align="center">质量问题</th>
|
|
237
|
|
- <th data-field="F_Notifications" data-align="center">通知人</th>
|
|
238
|
|
- <th data-field="F_ReceivingPerson" data-align="center">接听人</th>
|
|
239
|
|
- <th data-field="F_ImplementationSituation" data-align="center">落实情况</th>
|
|
240
|
|
- <th data-field="F_Duplicate" data-align="center">重复工单</th>
|
|
241
|
|
- <th data-field="F_DealResult" data-align="center">处理结果</th>
|
|
242
|
|
- <th data-field="F_DealUser" data-align="center">处理人</th>
|
|
243
|
|
- <th data-field="F_DealTime" data-align="center">处理时间</th>
|
|
244
|
|
- <th data-field="F_Returnnote" data-align="center">退回说明</th>
|
|
245
|
|
- <!--<th data-field="F_Content" data-align="center">备注</th>-->
|
|
246
|
|
- <th data-field="F_WorkOrderId" data-class="workOprate workOprate4 W220" data-formatter="Appoint" data-align="center">操作</th>
|
|
247
|
|
- </tr>
|
|
248
|
|
- </thead>
|
|
249
|
|
- </table>
|
|
250
|
|
- </div>
|
|
251
|
192
|
<div style="width: 100%;padding: 10px;" id="ces">
|
|
252
|
|
- <table id="workorderlist_" class="market" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
|
193
|
+ <table id="workorderlist" class="market" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
|
|
253
|
194
|
<thead>
|
|
254
|
195
|
<tr>
|
|
255
|
|
- <!--<th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单编号</th>
|
|
256
|
|
- <th data-field="F_CreateTime" data-align="center">创建时间</th>
|
|
257
|
|
- <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
|
|
258
|
|
- <th data-field="F_Area" data-formatter="characterFive" data-align="center">区域</th>
|
|
259
|
|
- <th data-field="F_Province" data-formatter="characterFive" data-align="center">省</th>
|
|
260
|
|
- <th data-field="F_City" data-formatter="characterFive" data-align="center">市</th>
|
|
261
|
|
- <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
|
|
262
|
|
- <th data-field="F_CusName" data-formatter="characterFive" data-align="center" data-class="E73">姓名</th>
|
|
263
|
|
- <th data-field="F_CusPhone" data-align="center">客户电话</th>
|
|
264
|
|
- <th data-field="ProductTypeName" data-formatter="characterFive" data-align="center">产品类别</th>
|
|
265
|
|
- <th data-field="F_ProductName" data-formatter="characterFive" data-align="center">产品名称</th>
|
|
266
|
|
- <th data-field="F_BatchNumber" data-align="center">生产批号</th>
|
|
267
|
|
- <th data-field="SourceName" data-formatter="characterFive" data-align="center">来源</th>
|
|
268
|
|
- <th data-field="F_WorkOrderId" data-formatter="Appoint" data-align="center">操作</th>-->
|
|
269
|
|
-
|
|
270
|
196
|
<th data-field="F_SerialNumber" data-class="W100" data-align="center">序号</th>
|
|
271
|
197
|
<th data-field="F_WorkOrderId" data-class="W160" data-formatter="View" data-align="center">工单编号</th>
|
|
272
|
198
|
<th data-field="F_Source" data-class="W100" data-formatter="workOrderSourceJudge" data-align="center">工单来源</th>
|
|
|
@@ -569,18 +495,14 @@
|
|
569
|
495
|
</div>
|
|
570
|
496
|
</div>
|
|
571
|
497
|
</div>
|
|
|
498
|
+
|
|
572
|
499
|
<script src="../js/zTree/jquery.ztree.core.js"></script>
|
|
573
|
500
|
<script src="../js/laydate/laydate.js"></script>
|
|
574
|
|
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
|
|
575
|
501
|
<script src="../js/comboSelect/jquery.combo.select.js"></script>
|
|
576
|
502
|
<script src="../js/kindeditor/kindeditor.js"></script>
|
|
577
|
503
|
<script src="../js/kindeditor/lang/zh_CN.js"></script>
|
|
578
|
504
|
<script src="../js/WorkOrder/WorkOrder.js"></script>
|
|
579
|
505
|
<script>
|
|
580
|
|
- var selid;
|
|
581
|
|
- var zpid;
|
|
582
|
|
- var stype = 1;
|
|
583
|
|
-
|
|
584
|
506
|
$(document).ready(function() {
|
|
585
|
507
|
laydate.render({
|
|
586
|
508
|
elem: '#greetingTimes',
|
|
|
@@ -591,118 +513,6 @@
|
|
591
|
513
|
//max : 31,
|
|
592
|
514
|
//min: 0,
|
|
593
|
515
|
});
|
|
594
|
|
-// alert(ns)
|
|
595
|
|
- //处理工单
|
|
596
|
|
- hideDiv();
|
|
597
|
|
- function hideDiv(){
|
|
598
|
|
- if(ns==2){
|
|
599
|
|
- $(".ns-2").remove();
|
|
600
|
|
- }
|
|
601
|
|
- }
|
|
602
|
|
- $.ajax({
|
|
603
|
|
- type: "get",
|
|
604
|
|
- url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
|
|
605
|
|
- dataType: 'json',
|
|
606
|
|
- async: false,
|
|
607
|
|
- data: {
|
|
608
|
|
- token: $.cookie("token")
|
|
609
|
|
- },
|
|
610
|
|
- success: function(data) {
|
|
611
|
|
- if(data.state.toLowerCase() == 'success') {
|
|
612
|
|
- if(data.data.groname == '思念组') {
|
|
613
|
|
- $(".snRmove").remove();
|
|
614
|
|
- $(".dkRmove").show();
|
|
615
|
|
- } else {
|
|
616
|
|
- $(".snRmove").show();
|
|
617
|
|
- $(".dkRmove").remove();
|
|
618
|
|
- }
|
|
619
|
|
- }
|
|
620
|
|
- }
|
|
621
|
|
- });
|
|
622
|
|
- //处理状态
|
|
623
|
|
- dealState();
|
|
624
|
|
- function dealState() {
|
|
625
|
|
- $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
|
|
626
|
|
- "token": $.cookie("token"),
|
|
627
|
|
- flag: "CLZT"
|
|
628
|
|
- }, function(result) {
|
|
629
|
|
- result = $.parseJSON(result);
|
|
630
|
|
- var Count = result.data;
|
|
631
|
|
- $(Count).each(function(i, n) {
|
|
632
|
|
- $('<label style="font-weight: normal; margin-right: 15px;">'+
|
|
633
|
|
- '<input type="radio" value="' + n.F_DictionaryValueId
|
|
634
|
|
- + '" name="ltype"/>' + n.F_Name
|
|
635
|
|
- + '</label>').appendTo($(".disposeST"));
|
|
636
|
|
- })
|
|
637
|
|
- $('.disposeST input:radio:first').attr('checked', 'checked');
|
|
638
|
|
- });
|
|
639
|
|
- }
|
|
640
|
|
- //响应状态
|
|
641
|
|
- responseState();
|
|
642
|
|
- function responseState() {
|
|
643
|
|
- $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
|
|
644
|
|
- "token": $.cookie("token"),
|
|
645
|
|
- flag: "XYZT"
|
|
646
|
|
- }, function(result) {
|
|
647
|
|
- result = $.parseJSON(result);
|
|
648
|
|
- var Count = result.data;
|
|
649
|
|
- $(Count).each(function(i, n) {
|
|
650
|
|
- $('<label style="font-weight: normal; margin-right: 15px;">'+
|
|
651
|
|
- '<input type="radio" value="' + n.F_DictionaryValueId
|
|
652
|
|
- + '" name="response"/>' + n.F_Name
|
|
653
|
|
- + '</label>').appendTo($(".responseST"));
|
|
654
|
|
- })
|
|
655
|
|
- $('.responseST input:radio:first').attr('checked', 'checked');
|
|
656
|
|
- });
|
|
657
|
|
- }
|
|
658
|
|
- $("#clgd").click(function() {
|
|
659
|
|
- var val = $("input[name='ltype']:checked").val();
|
|
660
|
|
-
|
|
661
|
|
- var valRes = $("input[name='response']:checked").val();
|
|
662
|
|
-
|
|
663
|
|
- var dealCost;
|
|
664
|
|
- if (isNaN($("#dealCost").val())) {
|
|
665
|
|
- dealCost="";
|
|
666
|
|
-
|
|
667
|
|
- }else{
|
|
668
|
|
- dealCost=$("#dealCost").val();
|
|
669
|
|
- }
|
|
670
|
|
- if(!val) {
|
|
671
|
|
- layer.confirm('请选择处理方式!', {
|
|
672
|
|
- btn: ['确定']
|
|
673
|
|
- });
|
|
674
|
|
- return;
|
|
675
|
|
- }
|
|
676
|
|
- if(val == '0') {
|
|
677
|
|
- if(!$("#clbm").val()) {
|
|
678
|
|
- layer.confirm('请选择接收部门!', {
|
|
679
|
|
- btn: ['确定']
|
|
680
|
|
- });
|
|
681
|
|
- return;
|
|
682
|
|
- }
|
|
683
|
|
- }
|
|
684
|
|
- $.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
|
|
685
|
|
- workid: zpid,
|
|
686
|
|
- dealcost: dealCost*1, //处理费用
|
|
687
|
|
- dealresult:$("#dealCont").val(),//处理结果
|
|
688
|
|
- dealdes: $("#cont").val(), //客诉进展详述
|
|
689
|
|
- dealstate:val, //处理状态
|
|
690
|
|
- dealtimely:valRes, //及时响应
|
|
691
|
|
- "token": $.cookie("token")
|
|
692
|
|
- }, function(result) {
|
|
693
|
|
- result = $.parseJSON(result);
|
|
694
|
|
- if(result.state.toLowerCase() == "success") {
|
|
695
|
|
- layer.msg("处理工单成功");
|
|
696
|
|
- $(".t-shade").removeClass("cx");
|
|
697
|
|
- $(".clgd").removeClass("cx");
|
|
698
|
|
- if(ns == 1) {
|
|
699
|
|
- $('#workorderlist').bootstrapTable('refresh');
|
|
700
|
|
- } else {
|
|
701
|
|
- $('#workorderlist_').bootstrapTable('refresh');
|
|
702
|
|
- }
|
|
703
|
|
- }
|
|
704
|
|
- })
|
|
705
|
|
- })
|
|
706
|
516
|
})
|
|
707
|
517
|
|
|
708
|
518
|
function initTable() {
|
|
|
@@ -717,77 +527,6 @@
|
|
717
|
527
|
pagination: true, //启动分页
|
|
718
|
528
|
pageSize: 10, //每页显示的记录数
|
|
719
|
529
|
pageNumber: 1, //当前第几页
|
|
720
|
|
- pageList: [5, 10, 20, 50, 100], //记录数可选列表
|
|
721
|
|
- search: false, //是否启用查询
|
|
722
|
|
- showColumns: false, //显示下拉框勾选要显示的列
|
|
723
|
|
- showRefresh: false, //显示刷新按钮
|
|
724
|
|
- fixedColumns: true,
|
|
725
|
|
- fixedNumber: 14,
|
|
726
|
|
- columns:[{class:'W100'},{class:'W160'},{class:'W100'}
|
|
727
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
728
|
|
- ,{class:'W100'},{class:'W160'},{class:'W100'}
|
|
729
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
730
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
731
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
732
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
733
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
734
|
|
- ,{class:'W100'},{class:'W100'},{class:'W100'}
|
|
735
|
|
- ,{class:'W100'},{class:'W220'}],//{class:'W60margin'}
|
|
736
|
|
- sidePagination: "server", //表示服务端请求
|
|
737
|
|
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
738
|
|
- //设置为limit可以获取limit, offset, search, sort, order
|
|
739
|
|
- queryParamsType: "undefined",
|
|
740
|
|
- queryParams: function queryParams(params) { //设置查询参数
|
|
741
|
|
- var param = {
|
|
742
|
|
-// source: $('#orderSource').val(), //工单来源
|
|
743
|
|
-// producttype:$('#productTypeFilt').val(), //产品类别
|
|
744
|
|
-// province:$(".inps2").val(),
|
|
745
|
|
-// city:$("#cityName").val(),
|
|
746
|
|
-// type:$("#orderType").val(), //工单类型
|
|
747
|
|
-// key:$('#keyWord').val(), //内容关键字
|
|
748
|
|
-// workid:$('#orderNum').val(), //工单号
|
|
749
|
|
-// userid: $('#userid').val() //坐席
|
|
750
|
|
-
|
|
751
|
|
- state: 3,
|
|
752
|
|
- token: $.cookie("token"),
|
|
753
|
|
- code: $("#searchCode").val(), //工单编号
|
|
754
|
|
- cusname: $("#searchCusName").val(), // 来电人姓名
|
|
755
|
|
- cusphone: $("#searchCusPhone").val(), //来电人电话
|
|
756
|
|
- createby: $("#searchCreateBy").val(),// 创建人
|
|
757
|
|
- dealTimely: $("#searchDealTimely").val(), // 重要级别
|
|
758
|
|
- starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
|
|
759
|
|
- endtime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[1], //结束时间
|
|
760
|
|
- keywords: $("#searchKeyWords").val(), // 模糊搜索
|
|
761
|
|
- touser: $("#searchTouser").val(), // 处理人
|
|
762
|
|
- see: $("#searchSee").val(), // 处理专员是否只查看负责区域单子
|
|
763
|
|
- source: $("#searchOrderSource").val(), //工单来源
|
|
764
|
|
- type: $("#searchOrderType").val(), //工单类型
|
|
765
|
|
- pagesize: params.pageSize,
|
|
766
|
|
- page: params.pageNumber,
|
|
767
|
|
- };
|
|
768
|
|
- return param;
|
|
769
|
|
- },
|
|
770
|
|
- onLoadSuccess: function() { //加载成功时执行
|
|
771
|
|
- //layer.msg("加载成功");
|
|
772
|
|
- },
|
|
773
|
|
- onLoadError: function() { //加载失败时执行
|
|
774
|
|
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
775
|
|
- }
|
|
776
|
|
- });
|
|
777
|
|
- }
|
|
778
|
|
-
|
|
779
|
|
- function initTables() {
|
|
780
|
|
- //先销毁表格
|
|
781
|
|
- $('#workorderlist_').bootstrapTable('destroy');
|
|
782
|
|
- //初始化表格,动态从服务器加载数据
|
|
783
|
|
- $("#workorderlist_").bootstrapTable({
|
|
784
|
|
- method: "get", //使用get请求到服务器获取数据
|
|
785
|
|
- url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
|
|
786
|
|
- contentType: 'application/x-www-form-urlencoded',
|
|
787
|
|
- striped: true, //表格显示条纹
|
|
788
|
|
- pagination: true, //启动分页
|
|
789
|
|
- pageSize: 10, //每页显示的记录数
|
|
790
|
|
- pageNumber: 1, //当前第几页
|
|
791
|
530
|
pageList: [10, 20, 50, 100], //记录数可选列表
|
|
792
|
531
|
search: false, //是否启用查询
|
|
793
|
532
|
showColumns: false, //显示下拉框勾选要显示的列
|
|
|
@@ -828,40 +567,6 @@
|
|
828
|
567
|
}
|
|
829
|
568
|
});
|
|
830
|
569
|
}
|
|
831
|
|
-
|
|
832
|
|
- function De() {
|
|
833
|
|
- return '<div class="warning" onclick="CL()">调转</div>'
|
|
834
|
|
- }
|
|
835
|
|
-
|
|
836
|
|
- function CL() {
|
|
837
|
|
- top.$("iframe:visible")[0].src = "WorkOrder/AddWorkOrder.html?id=" + id + "phone=" + phone;
|
|
838
|
|
-
|
|
839
|
|
- }
|
|
840
|
|
-
|
|
841
|
|
- var ns;
|
|
842
|
|
- $.ajax({
|
|
843
|
|
- type: "get",
|
|
844
|
|
- url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
|
|
845
|
|
- dataType: 'json',
|
|
846
|
|
- async: true,
|
|
847
|
|
- data: {
|
|
848
|
|
- token: $.cookie("token")
|
|
849
|
|
- },
|
|
850
|
|
- success: function(data) {
|
|
851
|
|
- if(data.state.toLowerCase() == 'success') {
|
|
852
|
|
- if(data.data.groname == '思念组') {
|
|
853
|
|
- $('#ce').show();
|
|
854
|
|
- ns = 1;
|
|
855
|
|
- $('.BZ').removeClass("Hidens");
|
|
856
|
|
- } else {
|
|
857
|
|
- $('#ces').show();
|
|
858
|
|
- ns = 2;
|
|
859
|
|
- initTables();
|
|
860
|
|
- $('.BZ').addClass("Hidens");
|
|
861
|
|
- }
|
|
862
|
|
- }
|
|
863
|
|
- }
|
|
864
|
|
- });
|
|
865
|
570
|
</script>
|
|
866
|
571
|
</body>
|
|
867
|
572
|
</html>
|