liuzhen лет назад: 5
Родитель
Сommit
95c5e4320e

+ 6 - 1
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -190,6 +190,7 @@
190 190
     <script src="../js/appeal/index1.js"></script>
191 191
     <script>
192 192
         var submit;
193
+        var CallId = helper.request.queryString("CallId");
193 194
         $(document).ready(function () {
194 195
             QY($("#sourcearea"));
195 196
             LY($("#source"));
@@ -229,6 +230,9 @@
229 230
         function Add() {
230 231
             var value = $(' input[name="banli"]:checked ').val();
231 232
             var content = $("#content").val(); 
233
+            if(!CallId){
234
+            	CallId=''
235
+            }
232 236
             if (!$("#cusname").val()) {
233 237
                 layer.msg("请输入姓名");
234 238
             } else if (!$("#cusphone").val()) {
@@ -281,7 +285,8 @@
281 285
                         isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
282 286
                         level: $('#level').val(), //=(1普通2紧急)
283 287
                         issubmit: submit, //=(0保存1保存并提交)
284
-                        token: $.cookie("token")
288
+                        token: $.cookie("token"),
289
+                        F_CallId: CallId, //通话记录id
285 290
                     },
286 291
                     success: function (data) {
287 292
                     	debugger

+ 17 - 0
WebUI/CallCenterWeb.UI/Business/WorkDC_EJ.html

@@ -918,6 +918,23 @@
918 918
                 area: ['60%', '80%'], //宽高
919 919
             });
920 920
         }
921
+        //撤回
922
+        function withdraw(str) {
923
+            layer.confirm('确定要撤回吗?', {
924
+                btn: ['是', '否'] //按钮
925
+            }, function () {
926
+                $.post(huayi.config.callcenter_url + "WorkOrder/WithdrawWorkOrder", {
927
+                    workorderid: str,
928
+                    token: $.cookie("token")
929
+                }, function (result) {
930
+                    result = JSON.parse(result);
931
+                    if (result.state.toLowerCase() == "success") {
932
+                        layer.msg("撤回成功");
933
+                        load();
934
+                    }
935
+                })
936
+            });
937
+        }
921 938
         //结案
922 939
         function Lawsuit(str) {
923 940
             layer.open({

+ 10 - 11
WebUI/CallCenterWeb.UI/TelCall/CallRecord.html

@@ -238,7 +238,7 @@
238 238
                         <th data-field="TalkLongTime" data-align="center" data-formatter="ftime">通话时长</th>
239 239
                         <th data-field="RingLongTime" data-align="center" data-formatter="ftime">振铃时长</th>
240 240
                         <th data-field="LongTime" data-align="center" data-formatter="ftime">总时长</th>
241
-                        <th data-field="WorkOrderId" data-align="center" data-formatter="formatWorkOrderNum">操作</th>
241
+                        <th data-field="IsWorkeorder" data-align="center" data-formatter="formatWorkOrderNum">操作</th>
242 242
                     </tr>
243 243
                 </thead>
244 244
             </table>
@@ -526,10 +526,11 @@
526 526
         }
527 527
         //格式化工单号
528 528
         function formatWorkOrderNum(val, row) {
529
-            if (val == null) {
530
-                return '<a class="xg" onclick="add(' + val + ')" title="添加工单">添加工单</a>'
531
-            } else {
532
-                return '<a class="xg" onclick="ckxq(' + val + ')" title="查看工单">查看工单</a>';
529
+             var html = '';
530
+            if (row.IsWorkeorder <= 0) {
531
+                return '<div class="warning" onclick="CL(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\')"><a class="warning">添加工单</a></div>'
532
+            } else if (row.IsWorkeorder > 0) {
533
+                return '<div class="warning" onclick="viewWorkOrder(\'' + row.CusName + '\',\'' + row.CallNumber + '\',\'' + val + '\',\'' + row.CallId + '\',\'1\' )"><a class="warning">查看工单</a></div>'
533 534
             }
534 535
         }
535 536
         //获取通话类型
@@ -550,19 +551,17 @@
550 551
         }
551 552
 
552 553
         //查看工单详情
553
-        function ckxq(str) {
554
-            if (str) {
554
+        function viewWorkOrder(name, phone, id, CallId, callRecordType) {
555 555
                 layer.open({
556 556
                     type: 2,
557
-                    content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
557
+                    content: "../WorkOrder/Xga.html?CallId=" + CallId + "&callRecordType=" + callRecordType, //iframe的url,no代表不显示滚动条
558 558
                     title: '工单详情',
559 559
                     area: ['87%', '80%'], //宽高
560 560
                 });
561
-            }
562 561
         }
563 562
 		//添加工单
564
-		function add(){
565
-			top.$("iframe:visible")[0].src = './Appeal/AddAppeal.html'
563
+		function CL(name, phone, id, CallId){
564
+			top.$("iframe:visible")[0].src = "./Appeal/AddAppeal.html?name=" + name + "&phone=" + phone + "&id=" + id + "&CallID=" + CallId
566 565
 		}
567 566
     </script>
568 567
 

+ 361 - 0
WebUI/CallCenterWeb.UI/WorkOrder/Xga.html

@@ -0,0 +1,361 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <link href="../css/init.css" rel="stylesheet" />
8
+    <script src="../Script/Common/huayi.load.js"></script>
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
11
+    <!--<link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />-->
12
+    <link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
13
+    <link rel="stylesheet" href="../css/init.css" />
14
+    <link rel="stylesheet" href="../css/WorkOrder/NewAddWorkOrder.css" />
15
+    <title>手工制单</title>
16
+    <style>
17
+        ul li {
18
+            float: initial;
19
+            list-style: none;
20
+        }
21
+
22
+        .common {
23
+            width: 100%;
24
+            text-align: center;
25
+            padding: 10px 15px;
26
+        }
27
+
28
+        .common table {
29
+            width: 100%;
30
+        }
31
+
32
+        .common table th {
33
+            padding: 5px 8px 5px 0;
34
+            text-align: right;
35
+        }
36
+
37
+	    .common table td {
38
+            padding: 6px 0 5px 10px;
39
+            text-align: left;
40
+            color: #717171;
41
+            line-height: 200%;
42
+        }
43
+
44
+        .common table td textarea {
45
+            width: 100%;
46
+            vertical-align: middle;
47
+            resize: none;
48
+            outline: none;
49
+        }
50
+
51
+        .time-box {
52
+            display: inline-block;
53
+            position: relative;
54
+            width: 100%;
55
+        }
56
+
57
+        i.tub {
58
+            position: absolute;
59
+            right: 8px;
60
+            top: 8px;
61
+            font-size: 18px;
62
+            color: #00a0ca;
63
+        }
64
+
65
+        .treeList {
66
+            top: 34px !important;
67
+            border: 1px solid #e5e6e7 !important;
68
+            border-top: 0;
69
+            height: auto !important;
70
+        }
71
+
72
+        #TreeDemo li {
73
+            float: initial;
74
+        }
75
+
76
+        .addTree1 {
77
+            background: #fff;
78
+            position: absolute;
79
+            width: 100%;
80
+            border: 1px solid darkgrey;
81
+            right: 0;
82
+            top: 26px;
83
+            z-index: 10;
84
+            display: none;
85
+            height: 100px;
86
+            overflow-y: auto;
87
+        }
88
+
89
+        .form-group {
90
+            margin-bottom: 0;
91
+        }
92
+
93
+        .filter-option {
94
+            color: #676b6d;
95
+        }
96
+
97
+        .testInput-list {
98
+            position: absolute;
99
+            z-index: 999;
100
+            border: 1px solid rgb(204, 204, 204);
101
+            background-color: rgb(255, 255, 255);
102
+            z-index: 99999;
103
+            padding-left: 0;
104
+            width: 97.6%;
105
+            display: none;
106
+            height: 400px;
107
+            overflow-y: auto;
108
+        }
109
+
110
+	    .testInput-list li {
111
+            padding: 5px;
112
+        }
113
+
114
+        .testInput-list li:hover {
115
+            background-color: #E43926;
116
+            color: #fff;
117
+        }
118
+
119
+        .ke-container {
120
+            width: 100% !important;
121
+        }
122
+
123
+        button[disabled] {
124
+            background-color: #999;
125
+        }
126
+        .complainDiv2{
127
+			display: none;
128
+		}
129
+		.deal{
130
+			display: none;
131
+		}
132
+		
133
+		.r_order_type {
134
+			text-align: left;
135
+		}
136
+		
137
+		.radio-inline {
138
+			padding-left: 2px;
139
+		}
140
+		.radio-input{
141
+			vertical-align: -2px;
142
+		}
143
+		
144
+		#order_isover{
145
+			width: 100%;
146
+		}
147
+		
148
+		#isAssign{
149
+			width: 100%;
150
+		}
151
+		
152
+		#duplicate{
153
+			width: 100%;
154
+		}
155
+    </style>
156
+</head>
157
+
158
+<body class="gray-bg">
159
+    <!--<div class="daoHang clearfix" style="margin-bottom: 20px;">
160
+        <div class="dhLeft">
161
+            <sapn>
162
+                <i class="syIcon"></i>位置:
163
+                <a href="javaScript:;" id="ReIndex">首页</a>&gt;
164
+                <a href="javaScript:;">工单管理</a>&gt;
165
+                <a href="" class="nowPosition">手工制单</a>
166
+            </sapn>
167
+        </div>
168
+    </div>-->
169
+    <div class="clearfix wrapper wrapper-content animated fadeInRight">
170
+        <div class="common">
171
+            <table class="customerService">
172
+            	<tbody>
173
+        			<tr>
174
+                        <th>工单来源:</th>
175
+                        <td>
176
+                            <div class="form-group">
177
+                                <input type="text" class="form-control" id="workOrderSource" disabled="disabled"/>
178
+                            </div>
179
+                        </td>
180
+                        <th>工单编号:</th>
181
+                        <td>
182
+                            <div class="form-group">
183
+                                <input type="text" class="form-control" id="workOrderId"  disabled="disabled"/>
184
+                            </div>
185
+                        </td>
186
+                    </tr>
187
+                	<tr>
188
+						<th>工单类型:</th>
189
+                        <td>
190
+                        	<div id="order_isover" class="col-md-6 r_order_type">
191
+                        		<input class="radio-input" id="workOrderRadioAdvisory" type="radio" name="type" value="1" checked="checked">
192
+								<label class="radio-inline" for="workOrderRadioAdvisory">
193
+					   				咨询
194
+								</label>
195
+								<input class="radio-input" id="workOrderRadioComplaint" type="radio" name="type" value="2" >
196
+								<label class="radio-inline" for="workOrderRadioComplaint">
197
+					   				投诉
198
+								</label>
199
+								<input class="radio-input" id="workOrderRadioRepeat" type="radio" name="type" value="3" />
200
+								<label class="radio-inline" for="workOrderRadioRepeat">
201
+									重复
202
+								</label>
203
+							</div>
204
+                        </td>
205
+					</tr>
206
+                    <tr>
207
+                        <th><i style="color: #FF0000">*&nbsp;</i>姓名:</th>
208
+                        <td>
209
+                            <div class="form-group">
210
+                                <input type="text" class="form-control" id="name" maxlength="8" />
211
+                            </div>
212
+                        </td>
213
+                        <th><i style="color: #FF0000">*&nbsp;</i>电话:</th>
214
+                        <td>
215
+                            <div class="form-group">
216
+                                <input type="text" class="form-control" id="tel" />
217
+                            </div>
218
+                        </td>
219
+                    </tr>
220
+                    <tr>
221
+                    	<th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>省:</th>
222
+                    	<td style="position: relative;">
223
+                    		<div class="form-group">
224
+								<select class="form-control" id="source">
225
+	       							<option value ="">请选择</option>
226
+								</select>
227
+							</div>
228
+                        </td>
229
+                        <th>市:</th>
230
+                        <td style="position: relative;">
231
+                        	<div class="form-group">
232
+								<select class="form-control" id="type">
233
+	       							<option value ="">请选择</option>
234
+								</select>
235
+							</div>
236
+                        </td>
237
+                        <th>区/县:</th>
238
+                        <td style="position: relative;">
239
+                        	<!-- <div class="form-group">
240
+								<select class="form-control" id="keyid">
241
+	       							<option value ="">请选择</option>
242
+								</select>
243
+                            </div> -->
244
+                            <div class="form-group">
245
+                                <input type="text" class="form-control" id="keyid" list="keyidDataList" placeholder="请输入"/>
246
+                                <datalist id="keyidDataList">
247
+                                </datalist>
248
+                            </div>
249
+                        </td>
250
+                        <th>详细地址:</th>
251
+                        <td>
252
+                            <div class="form-group">
253
+                                <input type="text" class="form-control" id="addressDescription" />
254
+                            </div>
255
+                        </td>
256
+                    </tr>
257
+                    <tr></tr>
258
+					<tr>
259
+						<th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>产品代码:</th>
260
+                        <td>
261
+                            <div class="form-group">
262
+								<select class="form-control" id="productType">
263
+	       							<option value ="">请选择</option>
264
+								</select>
265
+							</div>
266
+                        </td>
267
+                        <th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>产品名称:</th>
268
+                        <td>
269
+                            <div class="form-group">
270
+                                <input type="text" class="form-control" id="productName" />
271
+                            </div>
272
+                        </td>
273
+                        <th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>规格:</th>
274
+                        <td>
275
+                            <div class="form-group">
276
+                                <input type="text" class="form-control" id="specification" />
277
+                            </div>
278
+                        </td>
279
+                        <th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>生产日期:</th>
280
+                        <td>
281
+                            <div class="form-group">
282
+                                <input type="text" class="form-control" id="productDate"  placeholder="时间格式YYYY.MM.DD"/>
283
+                            </div>
284
+                        </td>
285
+					</tr>
286
+					<tr>
287
+						<th>产品编码:</th>
288
+                        <td>
289
+                            <div class="form-group">
290
+                                <input type="text" class="form-control" id="productNumber" />
291
+                            </div>
292
+                        </td>
293
+						<th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>生产厂家:</th>
294
+                        <td>
295
+                            <div class="form-group">
296
+								<input type="text" class="form-control" id="productFactory" list="productFactoryDataList" placeholder="请输入"/>
297
+								<datalist id="productFactoryDataList">
298
+								</datalist>
299
+							</div>
300
+                        </td>
301
+                        <th><i class="complaintWorkOrderRequired" style="display: none; color: #FF0000;">*&nbsp;</i>问题代码:</th>
302
+                        <td>
303
+                        	<div class="form-group">
304
+								<select class="form-control" id="problemCode">
305
+	       							<option value ="">请选择</option>
306
+								</select>
307
+							</div>
308
+                        </td>
309
+                        <th><i style="color: #FF0000">*&nbsp;</i>质量问题:</th>
310
+                        <td>
311
+							<div class="form-group">
312
+                                <input type="text" class="form-control" id="qualityProblem" />
313
+                            </div>
314
+                        </td>
315
+					</tr>
316
+					<tr></tr>
317
+					<tr>
318
+						<th>工单级别:</th>
319
+                        <td>
320
+                        	<div class="form-group">
321
+								<select class="form-control" id="dealTimely">
322
+	       							<option value ="">请选择</option>
323
+								</select>
324
+							</div>
325
+                        </td>
326
+                        <th class="reasonTitle">原因:</th>
327
+                        <td class="reasonInput">
328
+                        	<div class="form-group">
329
+								<select class="form-control" id="reason">
330
+	       							<option value ="">请选择</option>
331
+								</select>
332
+							</div>
333
+                        </td>
334
+					</tr>
335
+					<tr></tr>
336
+                    <tr></tr>
337
+                    <tr>
338
+                        <th>备注:</th>
339
+                        <td colspan="7">
340
+                            <textarea name="" rows="5" cols="" placeholder="" id="remark" style="margin-top:10px;"></textarea>
341
+                        </td>
342
+                    </tr>
343
+                    <tr>
344
+                        <td colspan="8" style="text-align: center;">
345
+                            <button class="btns customerSubmit">保&nbsp;存</button>
346
+                        </td>
347
+                    </tr>
348
+                </tbody>
349
+            </table>
350
+        </div>
351
+    </div>
352
+
353
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
354
+    <!--<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>-->
355
+    <!--<script src="../js/WorkOrder/jquery.editable-select.js"></script>-->
356
+    <script src="../js/comboSelect/jquery.combo.select.js"></script>
357
+    <script src="../js/laydate/laydate.js"></script>
358
+    <script src="../js/WorkOrder/XgWork.js"></script>
359
+</body>
360
+
361
+</html>

+ 3 - 0
WebUI/CallCenterWeb.UI/css/WorkOrder/NewAddWorkOrder.css

@@ -0,0 +1,3 @@
1
+.inps2,.inps3,.inps4{
2
+	display: none;
3
+}

+ 43 - 0
WebUI/CallCenterWeb.UI/index.html

@@ -1195,6 +1195,37 @@
1195 1195
 		.operation_bj{
1196 1196
 			float: right;
1197 1197
 		}
1198
+		.Reminder{
1199
+        	display: none;
1200
+		    position: fixed;
1201
+		    bottom: 50px;
1202
+		    right: 80px;
1203
+		    background: #fff;
1204
+		    border: 1px solid #e7eaec;
1205
+		    width: 350px;
1206
+		    height: 200px;
1207
+		    border-radius: 4px;
1208
+		    box-shadow: 1px 1px 50px rgba(0, 0, 0, 0.3);
1209
+		    z-index: 1001;
1210
+        }
1211
+        .Reminder .heading {
1212
+        	background: #2f4050;
1213
+		    padding: 8px 15px;
1214
+		    font-weight: 700;
1215
+		    color: #fff;
1216
+        }
1217
+        .Reminder_btns{
1218
+        	position: absolute;
1219
+        	bottom: 5px;
1220
+        	left: 50%;
1221
+        	transform: translateX(-50%);
1222
+        	
1223
+        }
1224
+        .Reminder_content{
1225
+        	white-space:normal; 
1226
+        	word-break:break-all;
1227
+        	overflow:hidden;
1228
+        }
1198 1229
     </style>
1199 1230
 </head>
1200 1231
 
@@ -2201,6 +2232,18 @@
2201 2232
         </a>
2202 2233
     </div>
2203 2234
     <!--右下角消息弹出结束-->
2235
+     <!--催单提示开始-->
2236
+    <div class="Reminder fadeInRight animated">
2237
+
2238
+        <div class="heading">催单消息</div>
2239
+        <div class="Reminder_content">
2240
+        </div>
2241
+        <div class="Reminder_btns">
2242
+        	<button class="btns" style="width: 65px;height: 35px;">确定</button>
2243
+        </div>
2244
+        <input type="hidden" name="" id="infoid" value="" />
2245
+    </div>
2246
+    <!--催单提示结束-->
2204 2247
      <div class="open_chat">
2205 2248
     	<div class="before"></div>
2206 2249
     	<i class="iconfont">&#xe669;</i>

+ 1 - 0
WebUI/CallCenterWeb.UI/js/Questions/QuestionsManagement.js

@@ -243,6 +243,7 @@ $tableLeft.on("click-row.bs.table", function(e, row, ele) {
243 243
 });
244 244
 //增加
245 245
 $(".rightAdd").click(function() {
246
+	debugger
246 247
 	layer.open({
247 248
 		type: 2,
248 249
 		content: "../Questionnaire/AddRight.html?str=" + Left_Cids, //iframe的url,no代表不显示滚动条

+ 386 - 0
WebUI/CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -0,0 +1,386 @@
1
+var typeSmall;
2
+var id = helper.request.queryString("id");
3
+var CallId = "";
4
+var callRecordType = helper.request.queryString("callRecordType");
5
+$(document).ready(function () {
6
+    var groupcode = $('#groupcode', top.document).val();
7
+    if (groupcode == 'SCZ') {
8
+        $("#usedate").text("饮用日期:");
9
+        $("#vipid").text("对接人:");
10
+        $("#vipphone").text("对接人电话:");
11
+    }
12
+    $.ajaxSettings.async = false;
13
+/* 
14
+1 通话记录 修改工单
15
+else 工单管理修改工单
16
+*/
17
+    if (callRecordType === "1") {
18
+		CallId = helper.request.queryString("CallId");
19
+    	getWorkOrderCallRecordId();
20
+    } else {
21
+		getWorkOrderDetails();
22
+    }
23
+	//普通工单禁止选择原因
24
+    $('#reason').attr("disabled", "disabled");
25
+	
26
+    //保存
27
+    $('.customerSubmit').click(function() {
28
+        saveCustomer();
29
+    });
30
+
31
+    $.ajaxSettings.async = true;
32
+
33
+    //获取专员手机号
34
+    $("#vipName").change(function() {
35
+        $("#vipTel").val($("#vipName option:selected").attr("index"));
36
+        //$("#areaInps").val($("#vipName option:selected").attr("areaText"));
37
+        $("#typeclass").val($("#vipName option:selected").attr("province") + "/" + $("#vipName option:selected").attr("city"));
38
+        $(".inps2").val($("#vipName option:selected").attr("province"));
39
+        $(".inps3").val($("#vipName option:selected").attr("city"));
40
+    });
41
+
42
+})
43
+
44
+// 通话记录获取工单详情
45
+function getWorkOrderCallRecordId() {
46
+	$.ajax({
47
+        type: "get",
48
+        url: huayi.config.callcenter_url + "WorkOrder/GetCallidDetails",
49
+        dataType: 'json',
50
+        async: true,
51
+        cache: false,
52
+        data: {
53
+            callid: CallId,
54
+            token: $.cookie("token")
55
+        },
56
+        success: function(result) {
57
+            if (result.data.data.length > 0) {
58
+            	var data = result.data.data[0];
59
+				$("#workOrderId").val(data.F_WorkOrderId); //工单编号
60
+//				$("#order_isover").val(data.F_Type); // 工单类别
61
+				$("#name").val(data.F_CusName); // 姓名
62
+				$("#tel").val(data.F_CusPhone); // 电话
63
+				$("#productName").val(data.F_ProductName); // 产品名称
64
+				$('#specification').val(data.F_Specifications); // 规格
65
+				$("#productDate").val(data.F_ProductDate); // 生产日期
66
+				$("#productNumber").val(data.F_BatchNumber); // 产品编码
67
+				$("#productFactory").val(data.F_Manufacturer); // 产品厂家
68
+				$("#problemCode option:selected").text(data.F_ProblemCode); // 问题代码
69
+				$("#problemCode option:selected").val(data.F_ProblemCode); // 问题代码
70
+				$("#productType option:selected").text(data.F_ProductType) //产品代码
71
+				$("#productType option:selected").val(data.F_ProductType); // 产品代码
72
+				$("#qualityProblem").val(data.F_QualityProblem); // 质量问题
73
+				$("#remark").val(data.F_Content); // 备注
74
+				$("#dealTimely option:selected").text(data.F_DealTimely); //重要级别
75
+				$("#dealTimely option:selected").val(data.F_DealTimely); //重要级别
76
+				$("#reason option:selected").text(data.F_Reason); //原因
77
+				$("#reason option:selected").val(data.F_Reason); //原因
78
+				//工单类型
79
+				$("#order_isover input[type=radio][name=type][value="+data.F_Type+"]").attr("checked",'checked');
80
+				//重复工单
81
+				$("#duplicate input[type=radio][name=duplicate][value="+data.F_Duplicate+"]").attr("checked",'checked');
82
+				//获取工单id
83
+				id = data.F_Id;
84
+            } else {
85
+				layer.msg('没有查询到工单');
86
+            }
87
+        }
88
+    });
89
+}
90
+
91
+// 工单来源显示
92
+function workOrderSourceDisplay(data) {
93
+	if (data.F_Source === 1) {
94
+		$("#workOrderSource").val("PC")
95
+	} else if (data.F_Source === 2){
96
+		$("#workOrderSource").val("APP")
97
+	} else if (data.F_Source === 3) {
98
+		$("#workOrderSource").val("微信")
99
+	} else {
100
+		$("#workOrderSource").val("")
101
+	}
102
+}
103
+
104
+
105
+
106
+// 提交人
107
+function getSubmitter(obj) {
108
+	obj.empty();
109
+	obj.append('<option selected="selected" value="" deptId="">请选择</option>');
110
+	$.getJSON(huayi.config.callcenter_url + "UserAccount/GetList", {
111
+		"token": $.cookie("token"),
112
+		type: 1,
113
+		dptid: $("#customer_comaddress").val(),
114
+	}, function (data) {
115
+			var content = data.rows;
116
+			$(content).each(function (i, n) {
117
+				$("<option value='" + n.F_UserId + "'deptId='" + n.F_DeptId + "'>" + n.F_UserName + "</option>").appendTo(obj);
118
+			})
119
+	})
120
+}
121
+
122
+// 获取提交人
123
+$('#customer_comaddress').on('change',function(){
124
+	getSubmitter($('#customer_submitter'));
125
+});
126
+
127
+
128
+
129
+
130
+// 重要级别显示原因
131
+$('#dealTimely').on('change',function(){
132
+	if ($('#dealTimely').val() === 'Ⅰ级' || $('#dealTimely').val() === '1类问题'){
133
+		$('#reason').val('');
134
+		$('#reason').removeAttr("disabled");
135
+		getReasonOne();
136
+	} else if ($('#dealTimely').val() === 'Ⅱ级' || $('#dealTimely').val() === '2类问题'){
137
+		$('#reason').val('');
138
+		$('#reason').removeAttr("disabled");
139
+		getReasonTwo();
140
+	} else {
141
+		$('#reason').val('');
142
+		$('#reason').attr("disabled", "disabled");
143
+	}
144
+})
145
+
146
+// 工单类型(投诉) 隐藏立即办理
147
+$("#order_isover").on("change", function() {
148
+    if($("#order_isover input[name='type']:checked").val() === "2") {
149
+        $(".complaintWorkOrderRequired").show();
150
+    } else {
151
+        $(".complaintWorkOrderRequired").hide();
152
+    }
153
+})
154
+
155
+// 指派事件
156
+$('#isAssign').on('change', function(){
157
+	if($('#isAssign input[name="isAssign"]:checked').val() === '1'){
158
+		$('.comaddressTitle').show();
159
+		$('.comaddressSelect').show();
160
+		$('.submitterTitle').show();
161
+		$('.submitterSelect').show();
162
+	} else if ($('#isAssign input[name="isAssign"]:checked').val() === '2'){
163
+		$('.comaddressTitle').hide();
164
+		$('.comaddressSelect').hide();
165
+		$('.submitterTitle').hide();
166
+		$('.submitterSelect').hide();
167
+	}
168
+})
169
+
170
+// 地址(省+市+区/县)
171
+function detailedAddress() {
172
+	if($('#source').val() === ""){
173
+		var province = '';
174
+	} else {
175
+		var province = $('#source').find("option:selected").text()
176
+	}
177
+	if($('#type').val() === ""){
178
+		var city = '';
179
+	} else {
180
+		var city = "-" + $('#type').find("option:selected").text()
181
+	}
182
+	if($('#keyid').val() === ""){
183
+		var county = '';
184
+	} else {
185
+		var county = "-" + $('#keyid').val();
186
+	}
187
+	if($('#addressDescription').val() === ""){
188
+		var addressDescription = '';
189
+	} else {
190
+		var addressDescription = "-" + $('#addressDescription').val();
191
+	}
192
+	var address = province + city + county + addressDescription;
193
+	return address;
194
+}
195
+
196
+var setting = {
197
+    data: {
198
+        key: {
199
+            name: "F_AreaName"
200
+        },
201
+        simpleData: {
202
+            enable: true,
203
+            idKey: "F_Id",
204
+            pIdKey: "F_ParentId",
205
+            rootPId: 0
206
+        }
207
+    },
208
+    callback: {
209
+        onClick: changeTreeClick
210
+    }
211
+}
212
+
213
+function changeTreeClick(event, treeId, treeNode) {
214
+
215
+    var areaParent = treeNode.getPath();
216
+    if (areaParent[1]) {
217
+        areaParent1 = areaParent[0].F_AreaName
218
+        areaParent2 = areaParent[1].F_AreaName
219
+
220
+        $('#typeclass').val(areaParent1 + "/" + areaParent2);
221
+        $('.inps2').val(areaParent1);
222
+        $('.inps3').val(areaParent2);
223
+        ComplaintVip();
224
+
225
+    } else {
226
+        layer.msg("请选择最下级菜单");
227
+    }
228
+    $('.addTree1').hide();
229
+
230
+};
231
+
232
+
233
+//客诉专员
234
+function ComplaintVip() {
235
+    $.ajax({
236
+        type: "get",
237
+        url: huayi.config.callcenter_url + "Customer/GetAllList",
238
+        dataType: 'json',
239
+        async: true,
240
+        data: {
241
+            token: $.cookie("token"),
242
+            type: 2,
243
+            province: $('.inps2').val(), //省
244
+            city: $('.inps3').val() //市
245
+        },
246
+        success: function(data) {
247
+            $("#vipName").empty();
248
+            var Count = data.data;
249
+            $('<option value="">请选择专员</option>').appendTo($("#vipName"));
250
+            $(Count).each(function(i, n) {
251
+                $('<option value="' + n.F_Id
252
+                    + '"  index="' + n.F_Phone
253
+                    + '" areaText="' + n.F_Area
254
+                    + '" province="' + n.F_Province
255
+                    + '" city="' + n.F_City + '">' + n.F_Name
256
+                    + '</option>').appendTo($("#vipName"));
257
+            })
258
+        }
259
+    });
260
+}
261
+
262
+//保存
263
+function saveCustomer() {
264
+	var val = $("input[name='ltype']:checked").val();
265
+	var valRes = $("input[name='response']:checked").val();
266
+	var dealCost;
267
+	if (isNaN($("#dealCost").val())) {
268
+		dealCost="";
269
+		
270
+	}else{
271
+		dealCost=$("#dealCost").val();
272
+	}
273
+    if (!$('#name').val()) {
274
+        layer.confirm('请输入姓名!', {
275
+            icon: 2,
276
+            btn: ['确定']
277
+        });
278
+        return;
279
+    }
280
+    if (!$('#tel').val()) {
281
+        layer.confirm('请输入电话!', {
282
+            icon: 2,
283
+            btn: ['确定']
284
+        });
285
+        return;
286
+    }
287
+    if(!$('#qualityProblem').val()) {
288
+		layer.confirm('请输入质量问题!', {
289
+			icon: 2,
290
+			btn: ['确定']
291
+		});
292
+		return;
293
+	}
294
+	if ($('#order_isover input[name="type"]:checked').val() === "2") {
295
+        if (detailedAddress() === "---") {
296
+		    layer.confirm('请选择地址!', {
297
+		        icon: 2,
298
+		        btn: ['确定']
299
+		    });
300
+		    return;
301
+        } else if (!$('#productType').val()) {
302
+		    layer.confirm('请输入产品代码!', {
303
+		        icon: 2,
304
+		        btn: ['确定']
305
+		    });
306
+		    return;
307
+        } else if (!$('#productName').val()) {
308
+		    layer.confirm('请输入产品名称!', {
309
+		        icon: 2,
310
+		        btn: ['确定']
311
+		    });
312
+		    return;
313
+		} else if (!$('#specification').val()) {
314
+		    layer.confirm('请输入规格!', {
315
+		        icon: 2,
316
+		        btn: ['确定']
317
+		    });
318
+		    return;
319
+		} else if (!$('#productDate').val()) {
320
+		    layer.confirm('请输入生产日期!', {
321
+		        icon: 2,
322
+		        btn: ['确定']
323
+		    });
324
+		    return;
325
+		} else if (!$('#productFactory').val()) {
326
+		    layer.confirm('请输入生产厂家!', {
327
+		        icon: 2,
328
+		        btn: ['确定']
329
+		    });
330
+		    return;
331
+		} else if (!$('#problemCode').val()) {
332
+		    layer.confirm('请输入问题代码!', {
333
+		        icon: 2,
334
+		        btn: ['确定']
335
+		    });
336
+		    return;
337
+		} 
338
+    }
339
+
340
+    $.ajax({
341
+        type: "post",
342
+        url: huayi.config.callcenter_url + "WorkOrder/UpdateWorkOrder",
343
+        dataType: 'json',
344
+        async: true,
345
+        beforeSend: function() { //触发ajax请求开始时执行
346
+            $('.customerSubmit').attr("disabled", true);
347
+            $('.customerSubmit').text('保存中...');
348
+        },
349
+        data: {
350
+            token: $.cookie("token"),
351
+            F_Id: id,
352
+            F_Type: $('#order_isover input[name="type"]:checked').val(), //工单类型
353
+            F_DealTimely: $('#dealTimely').val(), //重要级别
354
+            F_Reason: $('#reason').val(), //原因
355
+            F_CusName: $('#name').val(), //姓名
356
+            F_CusPhone: $('#tel').val(), //号码
357
+            F_AddRess: detailedAddress(),//地址
358
+            F_ProductType: $('#productType').val(), //产品代码
359
+            F_ProductName: $('#productName').val(), //产品名称
360
+            F_Specifications: $('#specification').val(), //规格
361
+            F_ProductDate: $('#productDate').val(), //生产日期
362
+            F_BatchNumber: $('#productNumber').val(), //产品编码
363
+            F_Manufacturer: $('#productFactory').val(), //产品厂家
364
+            F_ProblemCode: $('#problemCode').val(), //问题代码
365
+            F_QualityProblem: $('#qualityProblem').val(), //质量问题
366
+            F_Content: $('#remark').val(), //备注
367
+            F_Duplicate: $('#duplicate input[name="duplicate"]:checked').val(), //重复工单
368
+            F_CallId: CallId,
369
+        },
370
+        success: function(data) {
371
+            if (data.state.toLowerCase() == 'success') {
372
+                $('.customerSubmit').attr("disabled", false);
373
+	            $('.customerSubmit').text('保存');
374
+            	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
375
+				parent.layer.close(index); //再执行关闭
376
+				parent.layer.msg("保存成功!");
377
+				parent.$('#workorderlist').bootstrapTable('refresh');
378
+				parent.$('#orderlist').bootstrapTable('refresh');
379
+            } else {
380
+            	$('.customerSubmit').attr("disabled", false);
381
+	            $('.customerSubmit').text('保存');
382
+            }
383
+        }
384
+    });
385
+
386
+}

+ 301 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/css/bootstrap-select.css

@@ -0,0 +1,301 @@
1
+/*!
2
+ * Bootstrap-select v1.12.4 (https://silviomoreto.github.io/bootstrap-select)
3
+ *
4
+ * Copyright 2013-2017 bootstrap-select
5
+ * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
6
+ */
7
+
8
+select.bs-select-hidden,
9
+select.selectpicker {
10
+  display: none !important;
11
+}
12
+.bootstrap-select {
13
+  width: 220px \0;
14
+  /*IE9 and below*/
15
+}
16
+.bootstrap-select > .dropdown-toggle {
17
+  width: 100%;
18
+  padding-right: 25px;
19
+  z-index: 1;
20
+}
21
+.bootstrap-select > .dropdown-toggle.bs-placeholder,
22
+.bootstrap-select > .dropdown-toggle.bs-placeholder:hover,
23
+.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
24
+.bootstrap-select > .dropdown-toggle.bs-placeholder:active {
25
+  color: #555;
26
+  border-radius: 1px;
27
+}
28
+.bootstrap-select > select {
29
+  position: absolute !important;
30
+  bottom: 0;
31
+  left: 50%;
32
+  display: block !important;
33
+  width: 0.5px !important;
34
+  height: 100% !important;
35
+  padding: 0 !important;
36
+  opacity: 0 !important;
37
+  border: none;
38
+}
39
+.bootstrap-select > select.mobile-device {
40
+  top: 0;
41
+  left: 0;
42
+  display: block !important;
43
+  width: 100% !important;
44
+  z-index: 2;
45
+}
46
+.has-error .bootstrap-select .dropdown-toggle,
47
+.error .bootstrap-select .dropdown-toggle {
48
+  border-color: #b94a48;
49
+}
50
+.bootstrap-select.fit-width {
51
+  width: auto !important;
52
+}
53
+.bootstrap-select:not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
54
+  width: 220px;
55
+}
56
+.bootstrap-select .dropdown-toggle:focus {
57
+  outline: thin dotted #333333 !important;
58
+  outline: 5px auto -webkit-focus-ring-color !important;
59
+  outline-offset: -2px;
60
+}
61
+.bootstrap-select.form-control {
62
+  margin-bottom: 0;
63
+  padding: 0;
64
+  border: none;
65
+}
66
+.bootstrap-select.form-control:not([class*="col-"]) {
67
+  width: 100%;
68
+}
69
+.bootstrap-select.form-control.input-group-btn {
70
+  z-index: auto;
71
+}
72
+.bootstrap-select.form-control.input-group-btn:not(:first-child):not(:last-child) > .btn {
73
+  border-radius: 0;
74
+}
75
+.bootstrap-select.btn-group:not(.input-group-btn),
76
+.bootstrap-select.btn-group[class*="col-"] {
77
+  float: none;
78
+  display: inline-block;
79
+  margin-left: 0;
80
+}
81
+.bootstrap-select.btn-group.dropdown-menu-right,
82
+.bootstrap-select.btn-group[class*="col-"].dropdown-menu-right,
83
+.row .bootstrap-select.btn-group[class*="col-"].dropdown-menu-right {
84
+  float: right;
85
+}
86
+.form-inline .bootstrap-select.btn-group,
87
+.form-horizontal .bootstrap-select.btn-group,
88
+.form-group .bootstrap-select.btn-group {
89
+  margin-bottom: 0;
90
+}
91
+.form-group-lg .bootstrap-select.btn-group.form-control,
92
+.form-group-sm .bootstrap-select.btn-group.form-control {
93
+  padding: 0;
94
+}
95
+.form-group-lg .bootstrap-select.btn-group.form-control .dropdown-toggle,
96
+.form-group-sm .bootstrap-select.btn-group.form-control .dropdown-toggle {
97
+  height: 100%;
98
+  font-size: inherit;
99
+  line-height: inherit;
100
+  border-radius: inherit;
101
+}
102
+.form-inline .bootstrap-select.btn-group .form-control {
103
+  width: 100%;
104
+}
105
+.bootstrap-select.btn-group.disabled,
106
+.bootstrap-select.btn-group > .disabled {
107
+  cursor: not-allowed;
108
+}
109
+.bootstrap-select.btn-group.disabled:focus,
110
+.bootstrap-select.btn-group > .disabled:focus {
111
+  outline: none !important;
112
+}
113
+.bootstrap-select.btn-group.bs-container {
114
+  position: absolute;
115
+  height: 0 !important;
116
+  padding: 0 !important;
117
+}
118
+.bootstrap-select.btn-group.bs-container .dropdown-menu {
119
+  z-index: 1060;
120
+}
121
+.bootstrap-select.btn-group .dropdown-toggle .filter-option {
122
+  display: inline-block;
123
+  overflow: hidden;
124
+  width: 100%;
125
+  text-align: left;
126
+}
127
+.bootstrap-select.btn-group .dropdown-toggle .caret {
128
+  position: absolute;
129
+  top: 50%;
130
+  right: 12px;
131
+  margin-top: -2px;
132
+  vertical-align: middle;
133
+}
134
+.bootstrap-select.btn-group[class*="col-"] .dropdown-toggle {
135
+  width: 100%;
136
+}
137
+.bootstrap-select.btn-group .dropdown-menu {
138
+  min-width: 100%;
139
+  -webkit-box-sizing: border-box;
140
+     -moz-box-sizing: border-box;
141
+          box-sizing: border-box;
142
+}
143
+.bootstrap-select.btn-group .dropdown-menu.inner {
144
+  position: static;
145
+  float: none;
146
+  border: 0;
147
+  padding: 0;
148
+  margin: 0;
149
+  border-radius: 0;
150
+  -webkit-box-shadow: none;
151
+          box-shadow: none;
152
+}
153
+.bootstrap-select.btn-group .dropdown-menu li {
154
+  position: relative;
155
+}
156
+.bootstrap-select.btn-group .dropdown-menu li.active small {
157
+  color: #fff;
158
+}
159
+.bootstrap-select.btn-group .dropdown-menu li.disabled a {
160
+  cursor: not-allowed;
161
+}
162
+.bootstrap-select.btn-group .dropdown-menu li a {
163
+  cursor: pointer;
164
+  -webkit-user-select: none;
165
+     -moz-user-select: none;
166
+      -ms-user-select: none;
167
+          user-select: none;
168
+}
169
+.bootstrap-select.btn-group .dropdown-menu li a.opt {
170
+  position: relative;
171
+  padding-left: 2.25em;
172
+}
173
+.bootstrap-select.btn-group .dropdown-menu li a span.check-mark {
174
+  display: none;
175
+}
176
+.bootstrap-select.btn-group .dropdown-menu li a span.text {
177
+  display: inline-block;
178
+}
179
+.bootstrap-select.btn-group .dropdown-menu li small {
180
+  padding-left: 0.5em;
181
+}
182
+.bootstrap-select.btn-group .dropdown-menu .notify {
183
+  position: absolute;
184
+  bottom: 5px;
185
+  width: 96%;
186
+  margin: 0 2%;
187
+  min-height: 26px;
188
+  padding: 3px 5px;
189
+  background: #f5f5f5;
190
+  border: 1px solid #e3e3e3;
191
+  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
192
+          box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
193
+  pointer-events: none;
194
+  opacity: 0.9;
195
+  -webkit-box-sizing: border-box;
196
+     -moz-box-sizing: border-box;
197
+          box-sizing: border-box;
198
+}
199
+.bootstrap-select.btn-group .no-results {
200
+  padding: 3px;
201
+  background: #f5f5f5;
202
+  margin: 0 5px;
203
+  white-space: nowrap;
204
+}
205
+.bootstrap-select.btn-group.fit-width .dropdown-toggle .filter-option {
206
+  position: static;
207
+}
208
+.bootstrap-select.btn-group.fit-width .dropdown-toggle .caret {
209
+  position: static;
210
+  top: auto;
211
+  margin-top: -1px;
212
+}
213
+.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark {
214
+  position: absolute;
215
+  display: inline-block;
216
+  right: 15px;
217
+  margin-top: 5px;
218
+}
219
+.bootstrap-select.btn-group.show-tick .dropdown-menu li a span.text {
220
+  margin-right: 34px;
221
+}
222
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle {
223
+  z-index: 1061;
224
+}
225
+.bootstrap-select.show-menu-arrow .dropdown-toggle:before {
226
+  content: '';
227
+  border-left: 7px solid transparent;
228
+  border-right: 7px solid transparent;
229
+  border-bottom: 7px solid rgba(204, 204, 204, 0.2);
230
+  position: absolute;
231
+  bottom: -4px;
232
+  left: 9px;
233
+  display: none;
234
+}
235
+.bootstrap-select.show-menu-arrow .dropdown-toggle:after {
236
+  content: '';
237
+  border-left: 6px solid transparent;
238
+  border-right: 6px solid transparent;
239
+  border-bottom: 6px solid white;
240
+  position: absolute;
241
+  bottom: -4px;
242
+  left: 10px;
243
+  display: none;
244
+}
245
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:before {
246
+  bottom: auto;
247
+  top: -3px;
248
+  border-top: 7px solid rgba(204, 204, 204, 0.2);
249
+  border-bottom: 0;
250
+}
251
+.bootstrap-select.show-menu-arrow.dropup .dropdown-toggle:after {
252
+  bottom: auto;
253
+  top: -3px;
254
+  border-top: 6px solid white;
255
+  border-bottom: 0;
256
+}
257
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:before {
258
+  right: 12px;
259
+  left: auto;
260
+}
261
+.bootstrap-select.show-menu-arrow.pull-right .dropdown-toggle:after {
262
+  right: 13px;
263
+  left: auto;
264
+}
265
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle:before,
266
+.bootstrap-select.show-menu-arrow.open > .dropdown-toggle:after {
267
+  display: block;
268
+}
269
+.bs-searchbox,
270
+.bs-actionsbox,
271
+.bs-donebutton {
272
+  padding: 4px 8px;
273
+}
274
+.bs-actionsbox {
275
+  width: 100%;
276
+  -webkit-box-sizing: border-box;
277
+     -moz-box-sizing: border-box;
278
+          box-sizing: border-box;
279
+}
280
+.bs-actionsbox .btn-group button {
281
+  width: 50%;
282
+}
283
+.bs-donebutton {
284
+  float: left;
285
+  width: 100%;
286
+  -webkit-box-sizing: border-box;
287
+     -moz-box-sizing: border-box;
288
+          box-sizing: border-box;
289
+}
290
+.bs-donebutton .btn-group button {
291
+  width: 100%;
292
+}
293
+.bs-searchbox + .bs-actionsbox {
294
+  padding: 0 8px 4px;
295
+}
296
+.bs-searchbox .form-control {
297
+  margin-bottom: 0;
298
+  width: 100%;
299
+  float: none;
300
+}
301
+/*# sourceMappingURL=bootstrap-select.css.map */

Разница между файлами не показана из-за своего большого размера
+ 6 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/css/bootstrap-select.min.css


Разница между файлами не показана из-за своего большого размера
+ 1872 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/js/bootstrap-select.js


Разница между файлами не показана из-за своего большого размера
+ 9 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/js/bootstrap-select.min.js


+ 37 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/js/i18n/defaults-zh_CN.js

@@ -0,0 +1,37 @@
1
+/*!
2
+ * Bootstrap-select v1.12.4 (https://silviomoreto.github.io/bootstrap-select)
3
+ *
4
+ * Copyright 2013-2017 bootstrap-select
5
+ * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
6
+ */
7
+
8
+(function (root, factory) {
9
+  if (typeof define === 'function' && define.amd) {
10
+    // AMD. Register as an anonymous module unless amdModuleId is set
11
+    define(["jquery"], function (a0) {
12
+      return (factory(a0));
13
+    });
14
+  } else if (typeof module === 'object' && module.exports) {
15
+    // Node. Does not work with strict CommonJS, but
16
+    // only CommonJS-like environments that support module.exports,
17
+    // like Node.
18
+    module.exports = factory(require("jquery"));
19
+  } else {
20
+    factory(root["jQuery"]);
21
+  }
22
+}(this, function (jQuery) {
23
+
24
+(function ($) {
25
+  $.fn.selectpicker.defaults = {
26
+    noneSelectedText: '没有选中任何项',
27
+    noneResultsText: '没有找到匹配项',
28
+    countSelectedText: '选中{1}中的{0}项',
29
+    maxOptionsText: ['超出限制 (最多选择{n}项)', '组选择超出限制(最多选择{n}组)'],
30
+    multipleSeparator: ', ',
31
+    selectAllText: '全选',
32
+    deselectAllText: '取消全选'
33
+  };
34
+})(jQuery);
35
+
36
+
37
+}));

Разница между файлами не показана из-за своего большого размера
+ 7 - 0
WebUI/CallCenterWeb.UI/js/bootstrap-select/js/i18n/defaults-zh_CN.min.js


+ 39 - 1
WebUI/CallCenterWeb.UI/js/index.js

@@ -2046,6 +2046,44 @@ function Read(signid, e) {
2046 2046
 			}
2047 2047
 		});
2048 2048
 }
2049
-
2049
+//获取催单内容
2050
+function getReminder(){
2051
+	$.ajax({
2052
+		type:"get",
2053
+		url:huayi.config.callcenter_url + "InternalMessages/GetMsg",
2054
+		async:true,
2055
+		data:{
2056
+			smstype:4,
2057
+			token: $.cookie("token"),
2058
+		},
2059
+		success:function(res){
2060
+			var res=JSON.parse(res);
2061
+			if(res.data.length>0){
2062
+				$('#infoid').val(res.data[0].SMS_Id)
2063
+				$('.Reminder').show();
2064
+				$('.Reminder_content').text(res.data[0].SMS_Content);
2065
+			}else{
2066
+				$('.Reminder').hide();
2067
+			}
2068
+		}
2069
+	});
2070
+}
2071
+//催单消息提醒
2072
+$('.Reminder_btns').click('.btns',function(){
2073
+	$.ajax({
2074
+		type:"get",
2075
+		url:huayi.config.callcenter_url + "InternalMessages/UpdateInfo",
2076
+		async:true,
2077
+		data:{
2078
+			infoid:$('#infoid').val(),
2079
+			token: $.cookie("token")
2080
+		},
2081
+		success:function(){
2082
+			$('#Reminder').hide();
2083
+			getReminder();
2084
+		}
2085
+	});
2086
+})
2087
+//setInterval(getReminder,10000)
2050 2088
 //获取知识库消息
2051 2089
 setInterval(getnew,15000)

+ 322 - 0
WebUI/CallCenterWeb.UI/questionnaire/detailReportForm.html

@@ -0,0 +1,322 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>详情报表</title>
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+		<link href="../css/init.css" rel="stylesheet" />
9
+		<script src="../Script/Common/huayi.load.js"></script>
10
+		<script src="../Script/Common/huayi.config.js"></script>
11
+		<link href="../css/Table/table1.css" rel="stylesheet" />
12
+		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
13
+		<style>
14
+			.LY:hover {
15
+				color: #fff;
16
+			}
17
+			
18
+			.LY:active {
19
+				color: #fff!important;
20
+			}
21
+			
22
+			#Task thead td {
23
+				color: #fff;
24
+				background-color: #1ab394;
25
+				text-align: center;
26
+			}
27
+			
28
+			.table-head table thead {
29
+				width: calc( 100% - 5px);
30
+			}
31
+			
32
+			table thead,
33
+			tbody tr {
34
+				display: table;
35
+				width: 100%;
36
+				table-layout: fixed;
37
+				text-align: center;
38
+			}
39
+			
40
+			.table {
41
+				margin-bottom: 0;
42
+			}
43
+			
44
+			.table-body {
45
+				width: 100%;
46
+				height: 515px;
47
+				overflow-y: scroll;
48
+				overflow-x: scroll;
49
+			}
50
+			
51
+			.seach-box ul {
52
+				overflow: inherit;
53
+			}
54
+			
55
+			.dropdown-menu li {
56
+				float: none;
57
+			}
58
+		</style>
59
+	</head>
60
+
61
+	<body class="gray-bg">
62
+		<div class="wrapper wrapper-content animated fadeInRight">
63
+			<div class="daoHang clearfix">
64
+				<div class="dhLeft">
65
+					<sapn><i class="syIcon"></i>位置:
66
+						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
67
+						<a href="javaScript:;">外呼管理</a>&gt;
68
+						<a href="javaScript:;">外呼报表</a>&gt;
69
+						<a href="" style="color: #000;">详情报表</a>
70
+					</sapn>
71
+				</div>
72
+			</div>
73
+			<div class="th-box">
74
+				<div class="th-bar">
75
+					<div class="seach-box">
76
+						<ul class="clearfix">
77
+							<li>
78
+								<select class="form-control selectpicker" id="taskList" data-live-search="true"></select>
79
+							</li>
80
+							<li>
81
+								<select class="form-control selectpicker" id="questionList" data-live-search="true"></select>
82
+							</li>
83
+							<li>
84
+								<!--<select id="" multiple class="x-color select"></select>-->
85
+								<select class="form-control selectpicker" id="optionsList" multiple data-live-search="true"></select>
86
+							</li>
87
+							<li>
88
+								<input type="text" id="stime" class="photo size-14 laydate-icon" placeholder="请选择开始时间和结束时间" />
89
+							</li>
90
+							<li>
91
+								<a class="sc_btn seach">搜索</a>
92
+							</li>
93
+							<li>
94
+								<a class="sc_btn export">导出</a>
95
+							</li>
96
+						</ul>
97
+					</div>
98
+				</div>
99
+			</div>
100
+			<div style="width: 100%;padding: 10px;">
101
+				<div class="table-head">
102
+					<table id="Task" class="table table-hover table-striped table-bordered table-condensed">
103
+						<colgroup>
104
+							<col style="width: 80px;" />
105
+							<col/>
106
+						</colgroup>
107
+						<thead>
108
+
109
+						</thead>
110
+					</table>
111
+				</div>
112
+				<div class="table-body">
113
+					<table class="thTable hwbb table table-hover table-striped table-bordered table-condensed">
114
+						<colgroup>
115
+							<col style="width: 80px;" />
116
+							<col/>
117
+						</colgroup>
118
+						<tbody>
119
+
120
+						</tbody>
121
+					</table>
122
+				</div>
123
+			</div>
124
+		</div>
125
+		<script src="../js/laydate/laydate.js"></script>
126
+		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
127
+		<script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
128
+		<script>
129
+			$(document).ready(function() {
130
+				getProLocations($('#taskList'), $('#questionList'), $('#optionsList'));
131
+				laydate.render({
132
+					elem: '#stime',
133
+					range: '~',
134
+					calendar: true,
135
+					theme: '#1ab394',
136
+				});
137
+				// getDataLists();
138
+				$(".seach").click(function() {
139
+					//if(!$.trim($('#taskList').val())) {
140
+					//	layer.msg('请选择任务');
141
+					//	return;
142
+					//}
143
+					if(!$.trim($('#questionList').val())) {
144
+						layer.msg('请选择问题');
145
+						return;
146
+					}
147
+					$("#Task thead").empty();
148
+					$(".thTable tbody").empty();
149
+					getDataLists();
150
+				})
151
+				//导出功能
152
+				$('.export').click(function() {
153
+					if(!$.trim($('#questionList').val())) {
154
+						layer.msg('请选择任务');
155
+						return;
156
+					}
157
+					dcexcels(this);
158
+				})
159
+
160
+			});
161
+			//获取表头 和 数据
162
+			function getDataLists() {
163
+				$.ajax({
164
+						type: "get",
165
+						url: huayi.config.callcenter_url + "CallOutReport/GetColoumnBMY",
166
+						dataType: 'json',
167
+						data: {
168
+							TaskID: $("#taskList").val(), //任务id(必选)
169
+							quesid: $("#questionList").val(), //问题id(必选)
170
+							token: $.cookie("token")
171
+						},
172
+						success: function(data) {
173
+							$("#Task thead").empty();
174
+							if(data.state.toLowerCase() == "success") {
175
+								data = data.data;
176
+								if(data && data.length > 0) {
177
+									var $tr = $('<tr></tr>');
178
+									for(var i = 0; i < data.length; i++) {
179
+										$tr.append('<td>' + data[i] + '</td>');
180
+										$("#Task thead").append($tr);
181
+									}
182
+								}
183
+							}
184
+						}
185
+					})
186
+					.then(function() {
187
+						$.ajax({
188
+							type: "get",
189
+							url: huayi.config.callcenter_url + "CallOutReport/GetReportBMY",
190
+							dataType: 'json',
191
+							data: {
192
+								TaskID: $("#taskList").val(), //任务id(必选)
193
+								quesid: $("#questionList").val(), //问题id(必选)
194
+								ansids: $("#optionsList").val() && $("#optionsList").val().join(','), //选项id(多选,默认可以不选,随着选中的问题id做联动)
195
+								sdate: $("#stime").val() && $("#stime").val().split(' ~ ')[0], // 开始时间
196
+								edate: $("#stime").val() && $("#stime").val().split(' ~ ')[1], // 结束时间
197
+								token: $.cookie("token")
198
+							},
199
+							success: function(data) {
200
+								$(".thTable tbody").empty();
201
+								if(data.state.toLowerCase() == "success") {
202
+									data = data.data;
203
+									if(data && data.length > 0) {
204
+										for(var i = 0; i < data.length; i++) {
205
+											$('<tr><td>' + data[i].name + ' </td>' +
206
+												'<td> ' + data[i].phone + ' </td>' +
207
+												'<td> ' + data[i].answer + ' </td>' +
208
+												'</tr>').appendTo(".hwbb tbody");
209
+										}
210
+									} else {
211
+										$(".thTable tbody").html('<p class="text-center">没有找到您想要的记录呢!我会努力的...</p>');
212
+									}
213
+								} else {
214
+									$(".thTable tbody").html('<p class="text-center">没有找到您想要的记录呢!我会努力的...</p>');
215
+								}
216
+							}
217
+						});
218
+					});
219
+			}
220
+
221
+			function dcexcels(obj) {
222
+				var url = huayi.config.callcenter_url + "CallOutReport/GetReportBMYExpt?token=" + $.cookie("token");
223
+				url += "&TaskID=" + $("#taskList").val();
224
+				url += "&quesid=" + $("#questionList").val();
225
+				url += "&ansids=" + ($("#optionsList").val()  && $("#optionsList").val().join(','));
226
+				url += "&sdate=" + ($("#stime").val() && $("#stime").val().split(' ~ ')[0]); // string 否 开始时间
227
+				url += "&edate=" + ($("#stime").val() && $("#stime").val().split(' ~ ')[1]); // string 否 开始时间
228
+				obj.href = url;
229
+			}
230
+
231
+			//任务列表 问题列表 问题选项 三级联动
232
+			function getProLocations(obj, obj1, obj2) {
233
+				obj.empty();
234
+				obj1.empty();
235
+				obj2.empty();
236
+				obj.append('<option selected="selected" value="">全部</option>');
237
+				obj1.append('<option selected="selected" value="0">请选择问题</option>');
238
+				obj2.append('<option selected="selected" value="">请选择选项</option>');
239
+
240
+				$.ajax({
241
+					type: "get",
242
+					url: huayi.config.callcenter_url + "CallOutReport/GetTaskDDL",
243
+					dataType: 'json',
244
+					data: {
245
+						token: $.cookie('token')
246
+					},
247
+					success: function(data) {
248
+						var content = data.data; //任务列表
249
+						//初始化 任务列表
250
+						if(content && content.length > 0) {
251
+							$(content).each(function(i, n) {
252
+								$("<option value='" + n.F_TaskID + "'>" + n.F_TaskName + "</option>").appendTo(obj);
253
+							});
254
+							obj.selectpicker('refresh');
255
+						}
256
+
257
+						//问题列表
258
+						obj.change(function() {
259
+							obj1.empty();
260
+							//获取问题列表
261
+							$.ajax({
262
+								type: "get",
263
+								url: huayi.config.callcenter_url + "CallOutReport/GetQuesDDL",
264
+								dataType: 'json',
265
+								data: {
266
+									taskid: obj.val(), //任务id(默认显示全部)
267
+									token: $.cookie("token")
268
+								},
269
+								success: function(data) {
270
+									if(data.state.toLowerCase() == "success") {
271
+										var Count = data.data;
272
+										if(Count && Count.length > 0) {
273
+											for(var i = 0; i < Count.length; i++) {
274
+												$(Count[i]).each(function(j, v) {
275
+													$("<option value='" + v.F_QuestionId + "'>" + v.F_Title + "</option>").appendTo(obj1);
276
+												});
277
+											}
278
+										}
279
+										obj1.selectpicker('refresh');
280
+										obj1.trigger('change');
281
+									}
282
+								}
283
+							});
284
+						});
285
+
286
+						//选项
287
+						obj1.change(function() {
288
+							obj2.empty();
289
+							//获取选项列表
290
+							$.ajax({
291
+								type: "get",
292
+								url: huayi.config.callcenter_url + "CallOutReport/GetQuesItemDDL",
293
+								dataType: 'json',
294
+								data: {
295
+									quesid: obj1.val(), //问题id(需选中问题后显示)
296
+									token: $.cookie("token")
297
+								},
298
+								success: function(data) {
299
+									if(data.state.toLowerCase() == "success") {
300
+										var Count = data.data;
301
+										if(Count && Count.length > 0) {
302
+											for(var i = 0; i < Count.length; i++) {
303
+												$(Count[i]).each(function(j, v) {
304
+													$("<option value='" + v.F_ItemId + "'>" + v.F_ItemName + "</option>").appendTo(obj2);
305
+												});
306
+											}
307
+											obj2.selectpicker('refresh');
308
+										}
309
+									}
310
+								}
311
+							});
312
+
313
+						});
314
+
315
+					},
316
+				});
317
+			}
318
+		</script>
319
+
320
+	</body>
321
+
322
+</html>

+ 132 - 0
WebUI/CallCenterWeb.UI/questionnaire/wxQueResult.html

@@ -0,0 +1,132 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>微信问卷结果</title>
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+		<script src="../Script/Common/huayi.load.js"></script>
9
+		<script src="../Script/Common/huayi.config.js"></script>
10
+		<link href="../css/Table/table1.css" rel="stylesheet" />
11
+		<link href="../css/init.css" rel="stylesheet" />
12
+		
13
+	</head>
14
+
15
+	<body class="gray-bg">
16
+		<div class="wrapper wrapper-content animated fadeInRight">
17
+			<div class="daoHang clearfix">
18
+				<div class="dhLeft">
19
+					<sapn><i class="syIcon"></i>位置:
20
+						<a id="ReIndex">首页</a>&gt;
21
+						<a href="javaScript:;">外呼管理</a>&gt;
22
+						<a href="" style="color: #000;">微信问卷结果</a>
23
+					</sapn>
24
+				</div>
25
+			</div>
26
+			<div class="th-box">
27
+				<div class="th-bar">
28
+					<div class="seach-box ">
29
+						<ul>
30
+							<li style="position: relative;">
31
+								提交时间:
32
+								<i class="tub fa fa-calendar"></i>
33
+								<input type="text" id="s_time" class="photo laydate-icon" placeholder="请选择提交时间" />
34
+							</li>
35
+							<li>关键字:<input class="photo x-color laydate-icon" type="text" id="key" placeholder="请输入姓名、手机号、号码" /></li>
36
+							<li>
37
+								<a class="sc_btn  Block" id="sc_btns">搜索</a>
38
+							</li>
39
+						</ul>
40
+					</div>
41
+				</div>
42
+			</div>
43
+			<div style="width: 100%;padding: 10px;">
44
+				<table id="list" data-click-to-select="true" data-row-style="rowStyle" data-query-params="queryParams">
45
+					<thead>
46
+						<tr>
47
+							<th data-field="F_TelPhone" data-align="center" data-formatter="formatterPhone">手机/固话</th>
48
+							<th data-field="F_CusName" data-align="center">姓名</th>
49
+							<th data-field="F_Country" data-align="center">乡镇或单位</th>
50
+							<th data-field="F_Address" data-align="center">地址</th>
51
+							<th data-field="F_CreateTime" data-align="center">提交时间</th>
52
+						</tr>
53
+					</thead>
54
+				</table>
55
+			</div>
56
+		</div>
57
+		
58
+		<script src="../js/laydate/laydate.js"></script>
59
+		<script>
60
+			$(document).ready(function() {
61
+				laydate.render({
62
+					elem: '#s_time',
63
+					range: '~',
64
+					theme: '#1ab394',
65
+					calendar: true,
66
+				});
67
+				initTable();
68
+				$("#sc_btns").click(function() {
69
+					initTable();
70
+				});
71
+			})
72
+
73
+			function initTable() {
74
+				//先销毁表格
75
+				$('#list').bootstrapTable('destroy');
76
+				//初始化表格,动态从服务器加载数据
77
+				$("#list").bootstrapTable({
78
+					method: "get", //使用get请求到服务器获取数据
79
+					url: huayi.config.callcenter_url + "PagerAnswerWX/GetWJList", //获取数据的Servlet地址
80
+					contentType: 'application/x-www-form-urlenformatterPhoned',
81
+					striped: true, //表格显示条纹
82
+					pagination: true, //启动分页
83
+					pageSize: 10, //每页显示的记录数
84
+					pageNumber: 1, //当前第几页
85
+					pageList: [10, 20, 50, 100], //记录数可选列表
86
+					search: false, //是否启用查询
87
+					showColumns: false, //显示下拉框勾选要显示的列
88
+					showRefresh: false, //显示刷新按钮
89
+					sidePagination: "server", //表示服务端请求
90
+					//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
91
+					//设置为limit可以获取limit, offset, search, sort, order
92
+					queryParamsType: "undefined",
93
+					queryParams: function queryParams(params) { //设置查询参数
94
+						var param = {
95
+							pageindex: params.pageNumber,//页码
96
+							pagesize: params.pageSize,//条数
97
+							sdate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[0],//开始时间
98
+		        			edate: $('#s_time').val() && $('#s_time').val().split(' ~ ')[1],//结束时间
99
+							key: $("#key").val(), //关键字(可根据姓名、手机号、号码进行模糊查询)
100
+							token: $.cookie("token")
101
+						};
102
+						return param;
103
+					},
104
+					onLoadSuccess: function() { //加载成功时执行
105
+						//layer.msg("加载成功");
106
+					},
107
+					onLoadError: function() { //加载失败时执行
108
+						//layer.msg("加载数据失败", { time: 1500, icon: 2 });
109
+					}
110
+				});
111
+			}
112
+
113
+
114
+			function formatterPhone(val, row) {
115
+				return '<div><a onclick="btn_detail(' + row.F_Id + ')">' + val + '</a></div>'
116
+			}
117
+			//详情
118
+			function btn_detail(tid) {
119
+				layer.open({
120
+					type: 2,
121
+					content: "../OutboundMessage/LookMessagesWX.html?tid=" + tid, //iframe的url,no代表不显示滚动条
122
+					title: '详情信息',
123
+					maxmin: true, //开启最大化最小化按钮
124
+					id: 'LAY_layuipro1', //防止重复弹出
125
+					area: ['86%', '88%'], //宽高
126
+				});
127
+			}
128
+		</script>
129
+
130
+	</body>
131
+
132
+</html>

+ 22 - 2
WebUI/CallCenterWeb.UI/zhiShiKu/newRepositoryDetail.html

@@ -203,10 +203,18 @@
203 203
 						<td colspan="3"> <input type="text" id="title" readonly="readonly" /></td>
204 204
 					</tr>
205 205
 					<tr>
206
-						<td width="100" height="100"> 参考答案</td>
206
+						<td width="100" height="100"> 参考答案(修改后)</td>
207 207
 						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="endanswer" readonly="readonly"></textarea></td>
208 208
 					</tr>
209 209
 					<tr>
210
+						<td width="100" height="100"> 参考答案(修改前)</td>
211
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="change" readonly="readonly"></textarea></td>
212
+					</tr>
213
+					<tr>
214
+						<td width="100" height="100"> 参考答案(修改前后结果对比)</td>
215
+						<td colspan="3" height="100"> <textarea name="" rows="" cols="" id="diff1" readonly="readonly"></textarea></td>
216
+					</tr>
217
+					<tr>
210 218
 						<td width="100">单位</td>
211 219
 						<td colspan="3"> <input type="text" id="maindept" readonly="readonly" /></td>
212 220
 					</tr>
@@ -488,7 +496,19 @@
488 496
 							
489 497
 						}
490 498
 					});
491
-				
499
+					$.ajax({
500
+						type:"get",
501
+						url:huayi.config.callcenter_url +"Knowledge/GetAuditCompareInfo",
502
+						async:true,
503
+						dataType:'json',
504
+						data:{
505
+							token: $.cookie("token"),
506
+							auditid:ids
507
+						},
508
+						success:function(res){
509
+							console.log(res)
510
+						}
511
+					})	
492 512
 				$('#error_record').bootstrapTable('destroy').bootstrapTable({ striped: true });
493 513
 				
494 514