liuzhen лет назад: 6
Родитель
Сommit
ea3f60629e

+ 77 - 0
CallCenterWeb.UI/commonTpl/Yijianzhuanjiebianji.html

@@ -0,0 +1,77 @@
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="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" /> -->
9
+		<link rel="stylesheet" type="text/css" href="../js/bootstrap-treeview/bootstrap-treeview.min.css" />
10
+		<script src="../Script/Common/huayi.load.js"></script>
11
+		<script src="../Script/Common/huayi.config.js"></script>
12
+		<link rel="stylesheet" href="../css/customer.css" />
13
+	</head>
14
+
15
+	<body>
16
+		<div class="container">
17
+			<div class="tab_contents" id="tab_user_contents">
18
+				<ul class="project_items form-horizontal showtabs">
19
+					<!--<h3 class="col-md-12 project_items_title">基本信息</h3>-->
20
+	<!-- 				<li class="form-group">
21
+						<label for="customer_key" class="col-md-2"><b class="text_require">*</b>关键词</label>
22
+						<div class="col-md-9">
23
+							<input id="customer_key" class="form-control" type="text" autocomplete="off" placeholder="请输入关键词" />
24
+						</div>
25
+					</li> -->
26
+					<li class="form-group">
27
+						<label for="customer_code" class="col-md-2">部门</label>
28
+						<div class="col-md-9">
29
+							<input id="customer_code" class="form-control" type="text" autocomplete="off" value="" />
30
+						</div>
31
+					</li>
32
+					<li class="form-group">
33
+						<label for="customer_legalName" class="col-md-2">科室</label>
34
+						<div class="col-md-9">
35
+							<input id="customer_legalName" class="form-control" type="text" autocomplete="off" placeholder="请输入科室" />
36
+						</div>
37
+					</li>
38
+					
39
+					<li class="form-group">
40
+						<label for="customer_lehalTel" class="col-md-2">电话</label>
41
+						<div class="col-md-9">
42
+							<input id="customer_lehalTel" class="form-control" type="text" autocomplete="off" placeholder="请输入电话" />
43
+						</div>
44
+					</li>
45
+					
46
+					<li class="form-group">
47
+						<label for="customer_comaddress" class="col-md-2">医师</label>
48
+						<div class="col-md-9">
49
+							<input id="customer_comaddress" class="form-control" type="text" autocomplete="off" placeholder="请输入医师" />
50
+						</div>
51
+					</li>
52
+					<li class="form-group">
53
+						<label for="customer_keshi" class="col-md-2">科室</label>
54
+						<div class="col-md-9">
55
+							<input id="customer_keshi" class="form-control" type="text" autocomplete="off" placeholder="请输入科室" />
56
+						</div>
57
+					</li>
58
+					
59
+				
60
+					
61
+				</ul>
62
+				<div class="form-group clearfix">
63
+					<div class="col-md-offset-3 col-md-10">
64
+						<button class="project_save btn btn-primary " id="save_edit"  type="button" >保存</button>
65
+					</div>
66
+				</div>
67
+			</div>
68
+		</div>
69
+		<script src="../js/laydate/laydate.js"></script>
70
+		<script src="../js/bootstrap-treeview/bootstrap-treeview.min.js"></script>
71
+		<!-- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script> -->
72
+		<!-- <script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script> -->
73
+		<script src="../Script/Common/regexs.js"></script>
74
+		<script src="../keHuManager/js/Yjzhuanjiebianji.js"></script>
75
+	</body>
76
+
77
+</html>

+ 2 - 2
CallCenterWeb.UI/commonTpl/Yjianzhuanjie.html

@@ -43,7 +43,7 @@
43 43
 						</div>
44 44
 					</li>
45 45
 					
46
-					<!--<li class="form-group">
46
+					<li class="form-group">
47 47
 						<label for="customer_comaddress" class="col-md-2">医师</label>
48 48
 						<div class="col-md-9">
49 49
 							<input id="customer_comaddress" class="form-control" type="text" autocomplete="off" placeholder="请输入医师" />
@@ -54,7 +54,7 @@
54 54
 						<div class="col-md-9">
55 55
 							<input id="customer_keshi" class="form-control" type="text" autocomplete="off" placeholder="请输入科室" />
56 56
 						</div>
57
-					</li>-->
57
+					</li>
58 58
 					
59 59
 				
60 60
 					

+ 6 - 6
CallCenterWeb.UI/commonTpl/Yjzhuanxiangqing.html

@@ -33,18 +33,18 @@
33 33
 							<span id="customer_companyname"></span>
34 34
 						</li>
35 35
 						<li class="col-md-3 col-sm-4">
36
-							<label for="customer_comaddress">内线电话:</label>
36
+							<label for="customer_comaddress">电话:</label>
37 37
 							<span id="customer_comaddress"></span>
38 38
 						</li>
39
-						<!--<li class="col-md-3 col-sm-4">
40
-							<label for="customer_legalName">地址:</label>
39
+						<li class="col-md-3 col-sm-4">
40
+							<label for="customer_legalName">医师:</label>
41 41
 							<span id="customer_legalName"></span>
42 42
 						</li>
43 43
 						<li class="col-md-3 col-sm-4">
44
-							<label for="customer_subtrade">性别:</label>
45
-							<span id="customer_subtrade"></span>
44
+							<label for="customer_lehalTel">科室:</label>
45
+							<span id="customer_lehalTel"></span>
46 46
 						</li>
47
-						<li class="col-md-3 col-sm-4">
47
+						<!--<li class="col-md-3 col-sm-4">
48 48
 							<label for="customer_lehalTel">创建时间:</label>
49 49
 							<span id="customer_lehalTel"></span>
50 50
 						</li>-->

+ 206 - 2
CallCenterWeb.UI/index.html

@@ -1260,7 +1260,7 @@
1260 1260
 			<!--top-->
1261 1261
 			<div class="clearflow Color">
1262 1262
 				<div class="WH-top">
1263
-					<span>一键转接</span>
1263
+					<span>三方通话</span>
1264 1264
 					<span class="closes"><a>X</a></span>
1265 1265
 				</div>
1266 1266
 				<div class="Cotent_box clearflow">
@@ -1459,6 +1459,211 @@
1459 1459
 				</div>
1460 1460
 			</div>
1461 1461
 		</div>
1462
+			<!--一键转接-->
1463
+		<div class="WH animated fadeInDown hidens">
1464
+			<!--top-->
1465
+			<div class="clearflow Color">
1466
+				<div class="WH-top">
1467
+					<span>一键转接</span>
1468
+					<span class="closes"><a>X</a></span>
1469
+				</div>
1470
+				<div class="Cotent_box clearflow">
1471
+					<!--左边键盘-->
1472
+					<div class="KeyWord col-sm-4">
1473
+						<div class="WH_input  clearflow">
1474
+							<div class="clearflow WH_Itop">
1475
+								<input id="Result" type="text" class="fl connect" value="" maxlength="18" autofocus="autofocus" style='text-align:center; vertical-align:middel;' />
1476
+								<input id="hidwhtype" type="hidden" value="" />
1477
+								<i class="img fl hidens"></i>
1478
+							</div>
1479
+						</div>
1480
+						<div class="Num_box clearflow">
1481
+							<ul class="Num_ul clearflow">
1482
+								<li>
1483
+									<div>
1484
+										<a>1</a>
1485
+									</div>
1486
+								</li>
1487
+								<li>
1488
+									<div>
1489
+										<a>2</a>
1490
+									</div>
1491
+								</li>
1492
+								<li>
1493
+									<div>
1494
+										<a>3</a>
1495
+									</div>
1496
+								</li>
1497
+								<li>
1498
+									<div>
1499
+										<a>4</a>
1500
+									</div>
1501
+								</li>
1502
+								<li>
1503
+									<div>
1504
+										<a>5</a>
1505
+									</div>
1506
+								</li>
1507
+								<li>
1508
+									<div>
1509
+										<a>6</a>
1510
+									</div>
1511
+								</li>
1512
+								<li>
1513
+									<div>
1514
+										<a>7</a>
1515
+									</div>
1516
+								</li>
1517
+								<li>
1518
+									<div>
1519
+										<a>8</a>
1520
+									</div>
1521
+								</li>
1522
+								<li>
1523
+									<div>
1524
+										<a>9</a>
1525
+									</div>
1526
+								</li>
1527
+								<li>
1528
+									<div>
1529
+										<a>*</a>
1530
+									</div>
1531
+								</li>
1532
+								<li>
1533
+									<div>
1534
+										<a>0</a>
1535
+									</div>
1536
+								</li>
1537
+								<li>
1538
+									<div>
1539
+										<a>#</a>
1540
+									</div>
1541
+								</li>
1542
+								<li class="Last_phone">
1543
+									<div>
1544
+										<a class="CallOut"></a>
1545
+									</div>
1546
+								</li>
1547
+
1548
+							</ul>
1549
+						</div>
1550
+					</div>
1551
+					<!--右边图表-->
1552
+					<div class="col-sm-8 Rbg">
1553
+						<div class="bg bg_cotent">
1554
+							<ul class="bg_titleZJ clearflow">
1555
+								<li class="lactive" itemid="0">转接记录</li>
1556
+								<li itemid="1">内线电话</li>
1557
+								<!--<li itemid="2">客户电话</li>-->
1558
+							</ul>
1559
+							<div class="bg_box phonediv1" >
1560
+								<div class="cx">
1561
+									<span class="blanks">
1562
+                                    电话号码:
1563
+                                    <input type="text" id="lastphone" />
1564
+                                </span>
1565
+									<span class="ty">搜索</span>
1566
+								</div>
1567
+								<div class="phone_bg" style="width: 100%;padding: 10px;">
1568
+									<table class="phonelistZJ fixed-table-container" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true" data-height="400">
1569
+										<thead>
1570
+											<tr>
1571
+												<th data-field="ID" data-align="center">编号</th>
1572
+												<th data-field="F_Telephone" data-formatter="view" data-align="center">转接电话</th>
1573
+												<!--<th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
1574
+												<th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>-->
1575
+												<th data-field="F_Department" data-align="center">部门</th>		
1576
+												<th data-field="F_Section" data-align="center">科室</th>
1577
+												<th data-field="F_Type" data-align="center">转接时间</th>
1578
+												<!--<th data-field="F_Physician">医师姓名</th>-->
1579
+												<!--<th data-field="F_Physician">职称</th>-->
1580
+												<!--<th data-field="F_Physician">呼叫状态</th>-->
1581
+												<!--<th data-field="TalkStartTime">通话开始时间</th>-->
1582
+												<!--<th data-field="TalkEndTime">通话结束时间</th>-->
1583
+												<!--<th data-field="TalkLongTime">通话时长(s)</th>-->
1584
+												
1585
+												
1586
+												<!--<th data-field="UserName">坐席姓名</th>
1587
+												<th data-field="BeginTime">开始时间</th>
1588
+												-->
1589
+												
1590
+											</tr>
1591
+										</thead>
1592
+									</table>
1593
+								</div>
1594
+							</div>
1595
+							<div class="bg_box phonediv1 connect_list" style="display:none;">
1596
+								<div class="cx">
1597
+									<span class="blanks">
1598
+                                   	 部门:
1599
+                                    <select id="s_department">
1600
+                                    	<option value="">请选择</option>
1601
+                                    </select>
1602
+                                </span>
1603
+									<span class="blanks">
1604
+                                   	 电话号码:
1605
+                                    <input type="text" id="gsphone" />
1606
+                                </span>
1607
+									<span class="blanks">
1608
+                                    	名称:
1609
+                                    <input type="text" id="gsname" />
1610
+                                </span>
1611
+									<span class="ty">搜索</span>
1612
+									<span class="ty Tiana">添加</span>
1613
+									<span class="ty DaoRu">导入</span>
1614
+									<span class="ty Pilsan">批量删除</span>
1615
+								</div>
1616
+								<div class="phone_bg" style="width: 100%;padding: 10px;">
1617
+									<table class="phonelistZJ" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
1618
+										<thead>
1619
+											<tr>
1620
+												<th data-checkbox="true" data-align="center"></th>
1621
+												<th data-field="ID" data-align="center">编号</th>
1622
+												<!--<th data-field="F_Physician">医师</th>-->
1623
+												<th data-field="F_Department" data-align="center">部门</th>
1624
+												<th data-field="F_Section" data-align="center">科室</th>
1625
+												<th data-field="F_Telephone" data-formatter="view" data-align="center">内线电话</th>
1626
+												<th data-field="ID" data-formatter="formatterOprate">操作</th>
1627
+												
1628
+											</tr>
1629
+										</thead>
1630
+									</table>
1631
+								</div>
1632
+							</div>
1633
+							<div class="bg_box phonediv1" style="display:none;">
1634
+								<div class="cx">
1635
+									<span class="blanks">
1636
+                                    电话号码:
1637
+                                    <input type="text" id="khphone" />
1638
+                                </span>
1639
+									<span class="blanks">
1640
+                                    名称:
1641
+                                    <input type="text" id="khname" />
1642
+                                </span>
1643
+									<span class="ty">搜索</span>
1644
+								</div>
1645
+								<div class="phone_bg" style="width: 100%;padding: 10px;">
1646
+									<table class="phonelistZJ" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
1647
+										<thead>
1648
+											<tr>
1649
+												<th data-field="F_Telephone" data-formatter="view" >电话号码</th>
1650
+												<th data-field="F_Physician">医师</th>
1651
+												<th data-field="F_Title">科室</th>
1652
+												<!--<th data-field="F_CustomerName">名称</th>
1653
+												<th data-field="F_Telephone" data-formatter="view">电话号码1</th>
1654
+												<th data-field="F_Mobile" data-formatter="view">电话号码2</th>
1655
+												<th data-field="F_ChargeTelephone" data-formatter="view">电话号码3</th>-->
1656
+											</tr>
1657
+										</thead>
1658
+									</table>
1659
+								</div>
1660
+							</div>
1661
+						</div>
1662
+					</div>
1663
+				</div>
1664
+			</div>
1665
+		</div>	
1666
+
1462 1667
 		<!--修改密码开始-->
1463 1668
 		<div class="personal" id="dialogMove">
1464 1669
 			<div class="ptop clearFix" id="dialogDrag">
@@ -1576,7 +1781,6 @@
1576 1781
 		<script src="./js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
1577 1782
 		<script src="./js/hplus.min.js?v=4.1.0"></script>
1578 1783
 		<script src="./js/contabs.min.js"></script>
1579
-
1580 1784
 	</body>
1581 1785
 
1582 1786
 </html>

+ 164 - 1
CallCenterWeb.UI/js/index.js

@@ -1,6 +1,5 @@
1 1
 var isFirstShowTopMsg = true;
2 2
 $(document).ready(function() {
3
-
4 3
 	if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) {
5 4
 		$(".title-box").hide();
6 5
 	}
@@ -178,6 +177,11 @@ $(document).ready(function() {
178 177
 		$(this).addClass("lactive").siblings().removeClass("lactive");
179 178
 		loadWH();
180 179
 	})
180
+	//外呼电话列表
181
+	$(".bg_titleZJ li").click(function() {
182
+		$(this).addClass("lactive").siblings().removeClass("lactive");
183
+		loadYJZJ();
184
+	})
181 185
 	$(".ty").click(function() {
182 186
 		loadWH();
183 187
 	});
@@ -420,6 +424,19 @@ function whtp() {
420 424
 
421 425
 	loadWH();
422 426
 }
427
+//三方通话弹出
428
+//function three_phone() {
429
+//	$("#Result").val("");
430
+//	if ($(".three_call").hasClass("fadeOutUp")) {
431
+//		$(".three_call").removeClass("fadeOutUp").addClass("fadeInDown");
432
+//	}
433
+//	$(".three_call").removeClass("hidens");
434
+//
435
+//	$('.first').removeClass('first');
436
+//	$('three_call').addClass('first');
437
+//
438
+//	loadWH();
439
+//}
423 440
 //加载外呼电话列表
424 441
 function loadWH() {
425 442
 	$(".phonediv").hide();
@@ -554,6 +571,139 @@ function loadWH() {
554 571
 			break;
555 572
 	}
556 573
 }
574
+function loadYJZJ() {
575
+	$(".phonediv1").hide();
576
+	var n = $(".bg_titleZJ .lactive").attr("itemid");
577
+	switch (n) {
578
+		case '0':
579
+			var obj = $(".phonediv1").eq(0);
580
+			obj.show();
581
+
582
+			//先销毁表格
583
+			var table = obj.find(".phonelistZJ");
584
+			table.bootstrapTable('destroy');
585
+			//初始化表格,动态从服务器加载数据
586
+			table.bootstrapTable({
587
+				method: "get", //使用get请求到服务器获取数据
588
+				url: huayi.config.callcenter_url + "Conversation/GetList", //获取数据的Servlet地址
589
+				contentType: 'application/x-www-form-urlencoded',
590
+				striped: true, //表格显示条纹
591
+				pagination: true, //启动分页
592
+				pageSize: 10, //每页显示的记录数
593
+				pageNumber: 1, //当前第几页
594
+				pageList: [10, 20, 50, 100], //记录数可选列表
595
+				search: false, //是否启用查询
596
+				showColumns: false, //显示下拉框勾选要显示的列
597
+				showRefresh: false, //显示刷新按钮
598
+				sidePagination: "server", //表示服务端请求
599
+				//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
600
+				//设置为limit可以获取limit, offset, search, sort, order
601
+				queryParamsType: "undefined",
602
+				queryParams: function queryParams(params) { //设置查询参数
603
+					var param = {
604
+						type:1,
605
+//						page: params.pageNumber,
606
+//						pagesize: params.pageSize,
607
+//						tel: $("#lastphone").val(),
608
+						token: $.cookie("token")
609
+					};
610
+					return param;
611
+				},
612
+				onLoadSuccess: function() { //加载成功时执行
613
+					//layer.msg("加载成功");
614
+				},
615
+				onLoadError: function() { //加载失败时执行
616
+					//layer.msg("加载数据失败", { time: 1500, icon: 2 });
617
+				}
618
+			});
619
+			break;
620
+		case '1':
621
+			var obj = $(".phonediv1").eq(1);
622
+			obj.show();
623
+			getDepts(); //获取部门下拉
624
+
625
+			var table = obj.find(".phonelistZJ");
626
+			table.bootstrapTable('destroy');
627
+			//初始化表格,动态从服务器加载数据
628
+			table.bootstrapTable({
629
+				method: "get", //使用get请求到服务器获取数据
630
+				url: huayi.config.callcenter_url + "Conversation/GetList", //获取数据的Servlet地址
631
+				contentType: 'application/x-www-form-urlencoded',
632
+				striped: true, //表格显示条纹
633
+				pagination: true, //启动分页
634
+				pageSize: 10, //每页显示的记录数
635
+				pageNumber: 1, //当前第几页
636
+				pageList: [10, 20, 50, 100], //记录数可选列表
637
+				search: false, //是否启用查询
638
+				showColumns: false, //显示下拉框勾选要显示的列
639
+				showRefresh: false, //显示刷新按钮
640
+				sidePagination: "server", //表示服务端请求
641
+				//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
642
+				//设置为limit可以获取limit, offset, search, sort, order
643
+				queryParamsType: "undefined",
644
+				queryParams: function queryParams(params) { //设置查询参数
645
+					var param = {
646
+						type:1,
647
+						page: params.pageNumber,
648
+						pagesize: params.pageSize,
649
+						zxzid: $('#s_department').val(),
650
+						tel: $("#gsphone").val(),
651
+						name: $("#gsname").val(),
652
+						token: $.cookie("token")
653
+					};
654
+					return param;
655
+				},
656
+				onLoadSuccess: function() { //加载成功时执行
657
+					//layer.msg("加载成功");
658
+				},
659
+				onLoadError: function() { //加载失败时执行
660
+					//layer.msg("加载数据失败", { time: 1500, icon: 2 });
661
+				}
662
+			});
663
+			break;
664
+		case '2':
665
+			var obj = $(".phonediv1").eq(2);
666
+			obj.show();
667
+
668
+			var table = obj.find(".phonelistZJ");
669
+			table.bootstrapTable('destroy');
670
+			//初始化表格,动态从服务器加载数据
671
+			table.bootstrapTable({
672
+				method: "get", //使用get请求到服务器获取数据
673
+				url: huayi.config.callcenter_url + "CallOutScreen/GetCustomerList", //获取数据的Servlet地址
674
+				contentType: 'application/x-www-form-urlencoded',
675
+				striped: true, //表格显示条纹
676
+				pagination: true, //启动分页
677
+				pageSize: 10, //每页显示的记录数
678
+				pageNumber: 1, //当前第几页
679
+				pageList: [10, 20, 50, 100], //记录数可选列表
680
+				search: false, //是否启用查询
681
+				showColumns: false, //显示下拉框勾选要显示的列
682
+				showRefresh: false, //显示刷新按钮
683
+				sidePagination: "server", //表示服务端请求
684
+				//设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
685
+				//设置为limit可以获取limit, offset, search, sort, order
686
+				queryParamsType: "undefined",
687
+				queryParams: function queryParams(params) { //设置查询参数
688
+					var param = {
689
+						page: params.pageNumber,
690
+						pagesize: params.pageSize,
691
+						tel: $("#khphone").val(),
692
+						name: $("#khname").val(),
693
+						token: $.cookie("token")
694
+					};
695
+					return param;
696
+				},
697
+				onLoadSuccess: function() { //加载成功时执行
698
+					//layer.msg("加载成功");
699
+				},
700
+				onLoadError: function() { //加载失败时执行
701
+					//layer.msg("加载数据失败", { time: 1500, icon: 2 });
702
+				}
703
+			});
704
+			break;
705
+	}
706
+}
557 707
 //格式化最近电话处理方式
558 708
 function formatterDealType(val, row) {
559 709
 	//处理方式0:IVR处理1骚扰电话2自助服务3转值班电话4留言5呼损6人工处理
@@ -607,7 +757,9 @@ function view(val) {
607 757
 }
608 758
 
609 759
 function call(val) {
760
+	console.log(val)
610 761
 	$("#Result").val(val);
762
+	$('.connect').val(val);
611 763
 	$(".img").removeClass("hidens");
612 764
 }
613 765
 
@@ -616,6 +768,7 @@ function call(val) {
616 768
 function formatterOprate(val, row) {
617 769
 	return '<ul class="tool_downs">' +
618 770
 		'<li><a href="javascript:;" class="aBtn" authorize="yes"  id="HY_details_' + row.ID + '" onclick="btn_details(\'' + row.ID + '\')" title="详情">详情</a></li>' +
771
+		'<li><a href="javascript:;" class="aBtn" style="margin-left:20px;" authorize="yes"  id="HY_details_' + row.ID + '" onclick="btn_edit(\'' + row.ID + '\')" title="编辑">编辑</a></li>' +
619 772
 		'<li><a href="javascript:;" class="aBtn hide_btn" style="margin-left:20px;" authorize="yes" id="HY_delete_' + row.ID + '" onclick="btn_delete(' + row.ID + ')" title="删除">删除</a></li>' +
620 773
 		'</ul>';
621 774
 }
@@ -651,6 +804,16 @@ function btn_details(editId) {
651 804
 		content: './commonTpl/Yjzhuanxiangqing.html?edit_id=' + editId
652 805
 	});
653 806
 }
807
+//编辑页面
808
+function btn_edit(editId){
809
+	layer.open({
810
+		type: 2,
811
+		title: '客户信息详情',
812
+		maxmin: true, //开启最大化最小化按钮
813
+		area: ['60%', '80%'],
814
+		content: './commonTpl/Yijianzhuanjiebianji.html?edit_id=' + editId
815
+	});
816
+}
654 817
 //一键转接导入
655 818
 function btn_export() {
656 819
 	layer.open({

+ 1 - 1
CallCenterWeb.UI/keHuManager/js/Yjianzhuanjie.js

@@ -124,7 +124,7 @@ function saveCustomer() {
124 124
 			if (data.state === "success") {
125 125
 				var index = parent.layer.getFrameIndex(window.name);
126 126
 				parent.layer.close(index);
127
-				parent.$('.phonelist').bootstrapTable('refresh');
127
+				parent.$('.phonelistZJ').bootstrapTable('refresh');
128 128
 				parent.layer.msg("保存成功");
129 129
 			} else {
130 130
 				$('#save_btns').attr("disabled", false);

+ 109 - 0
CallCenterWeb.UI/keHuManager/js/Yjzhuanjiebianji.js

@@ -0,0 +1,109 @@
1
+$(function(){
2
+	var edit_id = helper.request.queryString("edit_id");
3
+	getEditInfo(edit_id);
4
+	//点击编辑保存
5
+	$('#save_edit').click(function(){
6
+//		var F_Department=$('#customer_code').val();
7
+//		var F_Section=$('#customer_legalName').val();
8
+//		var F_Telephone=$('#customer_lehalTel').val();
9
+//		var F_Physician=$('#customer_comaddress').val();
10
+//		var F_Title=$('#customer_keshi').val();
11
+//		$.post(huayi.config.callcenter_url + "Conversation/Update",{
12
+//			id:edit_id,
13
+//			F_Type:1,
14
+//			F_Department:F_Department,
15
+//			F_Section:F_Section,
16
+//			F_Telephone:F_Telephone,
17
+//			F_Physician:F_Physician,
18
+//			F_Title:F_Title,
19
+//			"token": $.cookie("token")
20
+//		},function(res){
21
+//			if (res.state == "success") {
22
+//				var index = parent.layer.getFrameIndex(window.name);
23
+//				parent.layer.close(index);
24
+//				parent.$('.phonelistZJ').bootstrapTable('refresh');
25
+//				parent.layer.msg("保存成功");
26
+//			} else {
27
+//				$('#save_edit').attr("disabled", false);
28
+//				$('#save_edit').text('保存');
29
+//			}
30
+//		})
31
+$.ajax({
32
+		type: 'post',
33
+		url: huayi.config.callcenter_url + "Conversation/Update",
34
+		dataType: 'json',
35
+		async: true,
36
+		beforeSend: function() { //触发ajax请求开始时执行
37
+			$('#save_edit').attr("disabled", true);
38
+			$('#save_edit').text('保存中...');
39
+			loadIndex = layer.load();
40
+		},
41
+		data: {
42
+			id:edit_id,
43
+			F_Type: 1, //	否	string	id
44
+			F_Department:$('#customer_code').val(), //string 
45
+			F_Section:$('#customer_legalName').val(), //string 
46
+			F_Telephone:$('#customer_lehalTel').val(), //string 客户电话
47
+			F_Physician:$('#customer_comaddress').val(), //string 客户地址 
48
+			F_Title: $('#customer_keshi').val(), // string 是否需要去银行拿回单(一般纳税人)	
49
+			token: $.cookie("token")
50
+		},
51
+		success: function(data) {
52
+			layer.close(loadIndex);
53
+			if (data.state === "success") {
54
+				var index = parent.layer.getFrameIndex(window.name);
55
+				parent.layer.close(index);
56
+				parent.$('.phonelistZJ').bootstrapTable('refresh');
57
+				parent.layer.msg("保存成功");
58
+			} else {
59
+				$('#save_edit').attr("disabled", false);
60
+				$('#save_edit').text('保存');
61
+			}
62
+		},
63
+		error: function(textStatus) {
64
+			layer.close(loadIndex);
65
+			layer.confirm('网络繁忙,请稍后再试...', {
66
+				icon: 7,
67
+				closeBtn: 0,
68
+				btn: ['确定'] //按钮
69
+			});
70
+			$('#save_edit').attr("disabled", false);
71
+			$('#save_edit').text('保存');
72
+		},
73
+		complete: function(XMLHttpRequest, textStatus) {
74
+			layer.close(loadIndex);
75
+			if (textStatus == 'timeout') {
76
+				var xmlhttp = window.XMLHttpRequest ? new window.XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHttp");
77
+				xmlhttp.abort();
78
+				layer.confirm('网络超时,请稍后再试...', {
79
+					icon: 7,
80
+					closeBtn: 0,
81
+					btn: ['确定'] //按钮
82
+				});
83
+			}
84
+			$('#save_edit').attr("disabled", false);
85
+			$('#save_edit').text('保存');
86
+		},
87
+	});
88
+	})
89
+})
90
+function getEditInfo(edit_id){
91
+	$.getJSON(huayi.config.callcenter_url + "Conversation/GetDetails", {
92
+		id: edit_id, //客户id
93
+		token: $.cookie("token")
94
+	}, function(data) {
95
+		if(data.state=='success'){
96
+			var F_Department=data.data.F_Department;//部门
97
+			var F_Section=data.data.F_Section;//科室
98
+			var F_Telephone=data.data.F_Telephone;//电话
99
+			var F_Physician=data.data.F_Physician;//医师
100
+			var F_Title=data.data.F_Title;//科室
101
+			$('#customer_code').val(F_Department);
102
+			$('#customer_legalName').val(F_Section);
103
+			$('#customer_lehalTel').val(F_Telephone);
104
+			$('#customer_comaddress').val(F_Physician);
105
+			$('#customer_keshi').val(F_Title);
106
+		}
107
+		
108
+	})
109
+}

+ 2 - 2
CallCenterWeb.UI/keHuManager/js/Yjzhuanxiangqing.js

@@ -24,8 +24,8 @@ function getCustomer(ids) {
24 24
 				$('#customer_code').text(cusBase.F_Department); //string 客户编号
25 25
 				$('#customer_companyname').text(cusBase.F_Section); //string 客户姓名
26 26
 				$('#customer_comaddress').text(cusBase.F_Telephone); //string 客户电话
27
-//				$('#customer_legalName').text(cusBase.F_Address); //string 客户地址 
28
-//				$('#customer_lehalTel').text(cusBase.F_CreatedOn); //string 创建时间  
27
+				$('#customer_legalName').text(cusBase.F_Physician); //string 医师姓名 
28
+				$('#customer_lehalTel').text(cusBase.F_Title); //string 创建时间  
29 29
 //			    $('#customer_subtrade').text(cusBase.F_Gender); //string 客户地址 
30 30
 			var cusLists = data.data && data.data.ContactList;
31 31
 			if (cusLists && cusLists.length > 0) {