liuyifan %!s(int64=5) %!d(string=hace) años
padre
commit
aa0619dc7f

+ 19 - 1
CallCenterWeb.UI/callScreen/call.js

@@ -673,6 +673,24 @@ function saveCustomer() {
673 673
     //     });
674 674
     //     return;
675 675
     // }
676
+    if (!$("#formComplainedUnit").val()) {
677
+        layer.confirm('请选择被投诉单位!', {
678
+            btn: ['确定']
679
+        });
680
+        return;
681
+    }
682
+    if (!$("#formComplainedUnitOffice").val()) {
683
+        layer.confirm('请选择被投诉单位所属办事处!', {
684
+            btn: ['确定']
685
+        });
686
+        return;
687
+    }
688
+    if (!$("#formComplaintUndertaker").val()) {
689
+        layer.confirm('请选择投诉案件承办人!', {
690
+            btn: ['确定']
691
+        });
692
+        return;
693
+    }
676 694
     $.ajax({
677 695
         type: "post",
678 696
         url: huayi.config.callcenter_url + "RegRecords/Save",
@@ -1047,7 +1065,7 @@ function quickReplyFloatInitTable() {
1047 1065
 }
1048 1066
 
1049 1067
 //编号
1050
-function setCode(val, row, index) {
1068
+function quickReplySetCode(val, row, index) {
1051 1069
 	return index + 1;
1052 1070
 }
1053 1071
 

+ 4 - 4
CallCenterWeb.UI/callScreen/callScreen.html

@@ -613,7 +613,7 @@
613 613
 											<table id="quickReplyFloatTable" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
614 614
 												<thead>
615 615
 													<tr>
616
-														<th data-align="center" data-formatter="setCode">编号</th>
616
+														<th data-align="center" data-formatter="quickReplySetCode">编号</th>
617 617
 														<th data-field="F_Title" data-formatter="formatterTitle" data-align="center">标题</th>
618 618
 														<th data-field="F_Description" data-align="center" data-formatter="oper">内容</th>
619 619
 														<th data-field="F_KeyWords" data-formatter="formatterKey" data-align="center">关键字</th>
@@ -702,7 +702,7 @@
702 702
                                                 </td>
703 703
                                             </tr>
704 704
                                             <tr>
705
-                                                <th>被投诉单位:</th>
705
+                                                <th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位:</th>
706 706
                                                 <td style="position: relative">
707 707
 													<div class="form-group">
708 708
 														<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
@@ -712,14 +712,14 @@
712 712
 														</ul>
713 713
 													</div>
714 714
 												</td>
715
-												<th>被投诉单位所属办事处:</th>
715
+												<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位所属办事处:</th>
716 716
                                                 <td>
717 717
                                                     <div class="form-group">
718 718
 														<select class="form-control" id="formComplainedUnitOffice">
719 719
 														</select>
720 720
                                                     </div>
721 721
 												</td>
722
-												<th>投诉案件承办人:</th>
722
+												<th><i style="color: #FF0000;">*&nbsp;</i>投诉案件承办人:</th>
723 723
                                                 <td>
724 724
                                                     <div class="form-group">
725 725
 														<select class="form-control" id="formComplaintUndertaker">

BIN
CallCenterWeb.UI/commonTpl/客户列表.xls


BIN
CallCenterWeb.UI/commonTpl/档案管理导入模板.xls


+ 3 - 3
CallCenterWeb.UI/keHuManager/archivesManage/archivesManage.html

@@ -57,10 +57,10 @@
57 57
 						<button class="btns add ">添加</button>
58 58
 						<button class="btns change" style="display: none" >修改</button>
59 59
                         <button class="btns del" style="display: none">删除</button>&nbsp;
60
-						<input id="exportButton" type="button" class="btns" value="导出" />
61
-						<input id="btndr" type="button" class="btns" value="导入"  style="display: none"/>
60
+						<input id="exportButton" type="button" class="btns" value="导出" style="display: none"/>
61
+						<input id="btndr" type="button" class="btns" value="导入" />
62 62
 						<input type="file" name="upFile" id="upFile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" style="display: none;">
63
-						<a id="excelMod" class="btns" title="点击下载模板" href="javascript:void(0)" onclick="ExcelMod()" style="text-decoration:none" style="display: none">文件模板</a>
63
+						<a id="excelMod" class="btns" title="点击下载模板" href="javascript:void(0)" onclick="ExcelMod()" style="text-decoration:none">文件模板</a>
64 64
 					</div>
65 65
 				</div>
66 66
 			</div>

+ 2 - 3
CallCenterWeb.UI/keHuManager/archivesManage/js/archivesManage.js

@@ -166,7 +166,7 @@ $("#upFile").change(function () {
166 166
 })
167 167
 
168 168
 function ExcelMod() {
169
-	window.location.href ='../../commonTpl/客户列表.xls';
169
+	window.location.href ='../../commonTpl/档案管理导入模板.xls';
170 170
 }
171 171
 
172 172
 //上传文件
@@ -244,8 +244,7 @@ function rolePermissions() {
244 244
     if (roleCode === "XTGLY") {
245 245
         $('.change').show()
246 246
         $('.del').show()
247
-        $('#btndr').show()
248
-        $('#excelMod').show()
247
+        $('#exportButton').show()
249 248
     } else {
250 249
     }
251 250
 }

+ 4 - 4
CallCenterWeb.UI/registrationManagement/registrationList/addRegistrationList.html

@@ -216,7 +216,7 @@
216 216
 				<sapn><i class="syIcon"></i>位置:
217 217
 					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
218 218
 					<a href="javaScript:;">工单管理</a>&gt;
219
-					<a href="" class="nowPosition">手工制单</a>
219
+					<a href="" class="nowPosition">手动登记</a>
220 220
 				</sapn>
221 221
 			</div>
222 222
 		</div>
@@ -312,7 +312,7 @@
312 312
                             </td>
313 313
                         </tr>
314 314
 						<tr>
315
-							<th>被投诉单位:</th>
315
+							<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位:</th>
316 316
 							<td style="position: relative">
317 317
 								<div class="form-group">
318 318
 									<input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
@@ -322,14 +322,14 @@
322 322
 									</ul>
323 323
 								</div>
324 324
 							</td>
325
-							<th>被投诉单位所属办事处:</th>
325
+							<th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位所属办事处:</th>
326 326
 							<td>
327 327
 								<div class="form-group">
328 328
 									<select class="form-control" id="formComplainedUnitOffice">
329 329
 									</select>
330 330
 								</div>
331 331
 							</td>
332
-							<th>投诉案件承办人:</th>
332
+							<th><i style="color: #FF0000;">*&nbsp;</i>投诉案件承办人:</th>
333 333
 							<td>
334 334
 								<div class="form-group">
335 335
 									<select class="form-control" id="formComplaintUndertaker">

+ 3 - 3
CallCenterWeb.UI/registrationManagement/registrationList/edit.html

@@ -143,7 +143,7 @@
143 143
                         </td>
144 144
                     </tr>
145 145
                     <tr>
146
-                        <th>被投诉单位:</th>
146
+                        <th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位:</th>
147 147
                         <td style="position: relative">
148 148
                             <div class="form-group">
149 149
                                 <input type="text" class="form-control" id="formComplainedUnit" placeholder="请输入" onkeyup="darptSearch()" autocomplete="off" />
@@ -153,14 +153,14 @@
153 153
                                 </ul>
154 154
                             </div>
155 155
                         </td>
156
-                        <th>被投诉单位所属办事处:</th>
156
+                        <th><i style="color: #FF0000;">*&nbsp;</i>被投诉单位所属办事处:</th>
157 157
                         <td>
158 158
                             <div class="form-group">
159 159
                                 <select class="form-control" id="formComplainedUnitOffice">
160 160
                                 </select>
161 161
                             </div>
162 162
                         </td>
163
-                        <th>投诉案件承办人:</th>
163
+                        <th><i style="color: #FF0000;">*&nbsp;</i>投诉案件承办人:</th>
164 164
                         <td>
165 165
                             <div class="form-group">
166 166
                                 <select class="form-control" id="formComplaintUndertaker">

+ 64 - 7
CallCenterWeb.UI/registrationManagement/registrationList/js/addRegistrationList.js

@@ -68,12 +68,25 @@ function getUserProfile() {
68 68
 
69 69
 //保存按钮
70 70
 $('.customerSubmit').click(function() {
71
-    // if (!cusid) {
72
-    //     layer.confirm('请先获取用户档案!', {
73
-    //         btn: ['确定']
74
-    //     });
75
-    //     return;
76
-    // }
71
+    if (!$("#formComplainedUnit").val()) {
72
+        layer.confirm('请选择被投诉单位!', {
73
+            btn: ['确定']
74
+        });
75
+        return;
76
+    }
77
+    if (!$("#formComplainedUnitOffice").val()) {
78
+        layer.confirm('请选择被投诉单位所属办事处!', {
79
+            btn: ['确定']
80
+        });
81
+        return;
82
+    }
83
+    if (!$("#formComplaintUndertaker").val()) {
84
+        layer.confirm('请选择投诉案件承办人!', {
85
+            btn: ['确定']
86
+        });
87
+        return;
88
+    }
89
+    judgmentFormComplainedUnit()
77 90
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
78 91
         "token": $.cookie("token"),
79 92
         id:id,
@@ -111,7 +124,7 @@ $('.customerSubmit').click(function() {
111 124
 
112 125
 //清空
113 126
 function Clean() {
114
-    cusid = ""
127
+    cusid = 0
115 128
     $('#formName').val('');
116 129
     $('#formTel').val('');
117 130
     $('#formSex').val('');
@@ -290,6 +303,50 @@ function getFormComplainedUnit() {
290 303
     });
291 304
 }
292 305
 
306
+//添加被投诉单位
307
+function addFormComplainedUnit() {
308
+    $.ajax({
309
+        type: "get",
310
+        url: huayi.config.callcenter_url + "Docking/SendAddCompany",
311
+        dataType: 'json',
312
+        async: true,
313
+        data: {
314
+            token: $.cookie("token"),
315
+            name: $("#formComplainedUnit").val(),
316
+        },
317
+        success: function(data) {
318
+            if (data.state.toLowerCase() == "success") {
319
+            } else {
320
+                layer.msg("投诉单位添加失败");
321
+            }
322
+        }
323
+    });
324
+}
325
+
326
+//判断被投诉单位
327
+function judgmentFormComplainedUnit() {
328
+    $.ajax({
329
+        type: "get",
330
+        url: huayi.config.callcenter_url + "Docking/SendGetCompanylist",
331
+        dataType: 'json',
332
+        async: true,
333
+        data: {
334
+            token: $.cookie("token"),
335
+            name: $("#formComplainedUnit").val(),
336
+            pageno: 1,
337
+            pagesize: 100,
338
+        },
339
+        success: function(data) {
340
+            if (data.state.toLowerCase() == "success") {
341
+                var content = data.data.records;
342
+                if ( content.length === 0 ) {
343
+                    addFormComplainedUnit()
344
+                }
345
+            }
346
+        }
347
+    });
348
+}
349
+
293 350
 /* 
294 351
     获取 省 市 县/区
295 352
     parameter:

+ 18 - 0
CallCenterWeb.UI/registrationManagement/registrationList/js/edit.js

@@ -21,6 +21,24 @@ $(document).ready(function() {
21 21
 
22 22
 //保存按钮
23 23
 $('.customerSubmit').click(function() {
24
+    if (!$("#formComplainedUnit").val()) {
25
+        layer.confirm('请选择被投诉单位!', {
26
+            btn: ['确定']
27
+        });
28
+        return;
29
+    }
30
+    if (!$("#formComplainedUnitOffice").val()) {
31
+        layer.confirm('请选择被投诉单位所属办事处!', {
32
+            btn: ['确定']
33
+        });
34
+        return;
35
+    }
36
+    if (!$("#formComplaintUndertaker").val()) {
37
+        layer.confirm('请选择投诉案件承办人!', {
38
+            btn: ['确定']
39
+        });
40
+        return;
41
+    }
24 42
     judgmentFormComplainedUnit();
25 43
     $.post(huayi.config.callcenter_url + 'RegRecords/Save', {
26 44
         "token": $.cookie("token"),

+ 0 - 1
CallCenterWeb.UI/registrationManagement/registrationList/registrationList.html

@@ -81,7 +81,6 @@
81 81
                                 <option value ="">请选择登记类型</option>
82 82
                                 <option value ="1">咨询</option>
83 83
                                 <option value ="2">投诉</option>
84
-                                <option value ="3">求助</option>
85 84
                                 <option value ="4">其他</option>
86 85
                             </select>
87 86
                         </div>

+ 1 - 2
CallCenterWeb.UI/registrationManagement/registrationList/registrationListReceive.html

@@ -40,7 +40,7 @@
40 40
 				<sapn><i class="syIcon"></i>位置:
41 41
 					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
42 42
 					<a href="javaScript:;">登记信息</a>&gt;
43
-					<a href="" class="nowPosition">登记信息</a>
43
+					<a href="" class="nowPosition">已接收登记</a>
44 44
 				</sapn>
45 45
 			</div>
46 46
 			<div class="dhRight">
@@ -81,7 +81,6 @@
81 81
                                 <option value ="">请选择登记类型</option>
82 82
                                 <option value ="1">咨询</option>
83 83
                                 <option value ="2">投诉</option>
84
-                                <option value ="3">求助</option>
85 84
                                 <option value ="4">其他</option>
86 85
                             </select>
87 86
                         </div>

+ 1 - 2
CallCenterWeb.UI/registrationManagement/registrationList/registrationListWaitingReceive.html

@@ -40,7 +40,7 @@
40 40
 				<sapn><i class="syIcon"></i>位置:
41 41
 					<a href="javaScript:;" id="ReIndex">首页</a>&gt;
42 42
 					<a href="javaScript:;">登记信息</a>&gt;
43
-					<a href="" class="nowPosition">登记信息</a>
43
+					<a href="" class="nowPosition">待接收登记</a>
44 44
 				</sapn>
45 45
 			</div>
46 46
 			<div class="dhRight">
@@ -81,7 +81,6 @@
81 81
                                 <option value ="">请选择登记类型</option>
82 82
                                 <option value ="1">咨询</option>
83 83
                                 <option value ="2">投诉</option>
84
-                                <option value ="3">求助</option>
85 84
                                 <option value ="4">其他</option>
86 85
                             </select>
87 86
                         </div>

+ 6 - 5
CallCenterWeb.UI/zhiShiKu/js/zhiShiKuManger.js

@@ -213,21 +213,22 @@ function addCunTree(addPid, addTitle, addKey, addCon, addindividualBusiness) {
213 213
 			token: token
214 214
 		},
215 215
 		success: function(data) {
216
-			console.log(data)
217
-			console.log(data.state);
218 216
 			if(data.state == "success") {
219 217
 				layer.msg("添加成功!");
220
-				//				tree();
218
+				clear()
221 219
 				getTree()
222 220
 				initTable(token, id, keyWord);
223 221
 			}
224 222
 		}
225 223
 
226 224
 	});
227
-
228 225
 }
229 226
 //***********************添加功能结束=============================
230 227
 
228
+function clear() {
229
+	$('.addIndividualBusiness input[name="individualBusinessInput"][value="0"]').prop("checked","checked");
230
+}
231
+
231 232
 //=======================修改功能开始==============================
232 233
 var chanId, //修改弹出框内 下拉框当前节点ID
233 234
 	changeName, //修改弹出框内 下拉框当前节点name
@@ -332,7 +333,7 @@ function getChangeBox(changeGetid) {
332 333
 			$('.inps4').val(con.F_Expand1);
333 334
 			$('.changeTitle').val(con.F_Title);
334 335
 			$('.changeKey').val(con.F_KeyWords);
335
-			$('.editIndividualBusiness input[name="individualBusinessInputEdit"][value="' + con.F_KeyWords  + '"]').prop("checked","checked");
336
+			$('.editIndividualBusiness input[name="individualBusinessInputEdit"][value="' + con.F_isorPerson  + '"]').prop("checked","checked");
336 337
 			changeEditor.html(con.F_Content);
337 338
 			cunId = con.F_CategoryId;
338 339
 			chanCunId = cunId;