Browse Source

来电弹屏 省市赋值到工单事发地省市

jinquanwu 6 years ago
parent
commit
dd0a077246
2 changed files with 35 additions and 31 deletions
  1. 17 8
      CallCenterWeb.UI/callScreen/call.js
  2. 18 23
      CallCenterWeb.UI/callScreen/callScreen.html

+ 17 - 8
CallCenterWeb.UI/callScreen/call.js

@@ -1541,6 +1541,7 @@ function screen() {
1541 1541
 		   F_LegalPhone:$('#head_form_customTel').val(),//客户电话
1542 1542
 		   F_AddressProvince:$('#laisheng').val(),//省份
1543 1543
 		   F_AddressCity:$('#laishi').val(),//市区
1544
+		  
1544 1545
 		   F_AddressCountry:$('#laiquxian').val(),//县区
1545 1546
 		   F_AddressTownship:$('#laixiang').val(),   //乡镇
1546 1547
 		   F_AddressFull:$('#laixiangxi').val(),//详细地址
@@ -1558,19 +1559,27 @@ function screen() {
1558 1559
 			result = $.parseJSON(result);
1559 1560
 			if(result.state.toLowerCase() == "success") {
1560 1561
 				debugger
1562
+				 alert($('#laishi').val());
1561 1563
 				// top.workcount();
1562 1564
 				$('#kehudian').val($('#head_form_customTel').val()); //客户电话
1563 1565
 				$('#kehuxing').val($('#head_form_custom').val()); //公司姓名
1564 1566
 				$('#gonsi').val($('#company_name').val()); //公司名称
1565 1567
 				// $('#sheng').val($('#laisheng').val()); //省 赋值到工单事发地
1566
-				$('#sheng').val($("#laisheng option:selected").val()); //省 赋值到工单事发地
1567
-				$('#sheng').text($("#laisheng option:selected").val()); 
1568
-				$('#shi').val($("#laishi option:selected").val()); // 市
1569
-				$('#shi').text($("#laishi option:selected").val()); 
1570
-				$('#quxian').val($("#laiquxian option:selected").val()); // 县/区
1571
-				$('#quxian').text($("#laiquxian option:selected").val()); 
1572
-				$('#xiang').val($("#laixiang option:selected").val()); // 乡
1573
-				$('#xiang').text($("#laixiang option:selected").val()); 
1568
+				
1569
+				$("#sheng option:selected").text($("#laisheng option:selected").text()); //省 赋值到工单事发地
1570
+				$('#sheng option:selected').val($("#laisheng option:selected").val());
1571
+				
1572
+				$('#shi option:selected').text($("#laishi option:selected").text()); // 市
1573
+				$('#shi option:selected').val($("#laishi option:selected").val()); 
1574
+				alert($('#shi').val());
1575
+				// alert($('#shi').val($("#laishi option:selected").val()));
1576
+				
1577
+				$('#quxian option:selected').text($("#laiquxian option:selected").text()); // 县/区
1578
+				$('#quxian option:selected').val($("#laiquxian option:selected").val()); 
1579
+				
1580
+				$('#xiang option:selected').text($("#laixiang option:selected").text()); // 乡
1581
+				$('#xiang option:selected').val($("#laixiang option:selected").val()); 
1582
+				
1574 1583
 				$('#xiangxi').val($('#laixiangxi').val()); //详细地址
1575 1584
 				layer.msg("保存成功");
1576 1585
 				

+ 18 - 23
CallCenterWeb.UI/callScreen/callScreen.html

@@ -456,7 +456,7 @@
456 456
 											<label for="order_name">问题数量:</label>
457 457
 											<input type="text" class="form-control input-sm" id="Product_Quantity" placeholder="请输入问题数量" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')">
458 458
 										</div>
459
-										<div class="form-group col-md-4" id="sanjiliandong">
459
+										<div class="form-group col-md-4" id="">
460 460
 											<label for="order_name">销售基地:</label>
461 461
 											<select class="form-control input-sm" id="xiaoshou">
462 462
 											</select>
@@ -497,7 +497,7 @@
497 497
 												<label for="order_tel">问题数量:</label>
498 498
 												<input type="text" class="form-control input-sm" id="quantity" placeholder="请输入问题数量(吨)" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')">
499 499
 											</div>
500
-											<div class="form-group col-md-4" id="sanjiliandong">
500
+											<div class="form-group col-md-4" id="">
501 501
 												<label for="order_name">销售基地:</label>
502 502
 												<select class="form-control input-sm" id="Sales_base">
503 503
 												</select>
@@ -622,11 +622,6 @@
622 622
 												</div>
623 623
 											</div>
624 624
 										</div>
625
-										
626
-										
627
-										
628
-										
629
-
630 625
 							
631 626
 									<!-- 建议及其他模块 -->
632 627
 									<div class="form-group col-md-12" id="Page" style="border-bottom:1px dashed #00A1CB;">
@@ -649,7 +644,7 @@
649 644
 											<label for="order_name">问题数量:</label>
650 645
 											<input type="text" class="form-control input-sm" id="Product_Quan" placeholder="请输入问题数量" onkeyup="this.value=this.value.replace(/[^0-9\.]/g,'')">
651 646
 										</div>
652
-										<div class="form-group col-md-4" id="sanjiliandong">
647
+										<div class="form-group col-md-4" id="">
653 648
 											<label for="order_name">销售基地:</label>
654 649
 											<select class="form-control input-sm" id="xiaosh">
655 650
 											</select>
@@ -839,26 +834,26 @@
839 834
 								 </div>
840 835
 							
841 836
 								 <div class="form-group col-md-12" id="" style="border-bottom:1px dashed #00A1CB;" >
842
-								 	<div class="form-group col-md-4" id="sanjiliandong">
837
+								 	<div class="form-group col-md-4" id="">
843 838
 								 		<label for="order_name">事发地:</label>
844 839
 								 		<select class="form-control input-sm" id="sheng">
845 840
 								 			<option selected="selected" value="">请选择</option>
846 841
 								 		</select>
847 842
 								 	</div>
848 843
 								 									
849
-								 	<div class="form-group col-md-4" id="sanjiliandong">
844
+								 	<div class="form-group col-md-4" id="">
850 845
 								 		<label for="order_name">市区:</label>
851 846
 								 		<select class="form-control input-sm" id="shi">
852 847
 								 			<option selected="selected" value="">请选择</option>
853 848
 								 		</select>
854 849
 								 	</div>
855
-								 	<div class="form-group col-md-4" id="sanjiliandong">
850
+								 	<div class="form-group col-md-4" id="">
856 851
 								 		<label for="order_name">县区:</label>
857 852
 								 		<select class="form-control input-sm" id="quxian">
858 853
 								 			<option selected="selected" value="">请选择</option>
859 854
 								 		</select>
860 855
 								 	</div>
861
-									<div class="form-group col-md-4" id="sanjiliandong">
856
+									<div class="form-group col-md-4" id="">
862 857
 										<label for="order_name">乡镇:</label>
863 858
 										<select class="form-control input-sm" id="xiang">
864 859
 											<option selected="selected" value="">请选择</option>
@@ -985,7 +980,7 @@
985 980
 									<table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
986 981
 										<thead>
987 982
 											<tr>
988
-												<th data-field="CallNumber" data-formatter="helper.filter.cutTel">电话号码</th>
983
+												<th data-field="CallNumber" data-formatter="formatterOprateExpe">电话号码</th>
989 984
 												<th data-field="CallState" data-formatter="formatterCallState">呼叫状态</th>
990 985
 												<th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>
991 986
 												<th data-field="UserCode">坐席工号</th>
@@ -1054,11 +1049,11 @@
1054 1049
 									</li>
1055 1050
 									<li class="form-group">
1056 1051
 										<label for="F_BusLabel" class="col-md-1">大区名称</label>
1057
-										<div class="col-md-2" id="sanjiliandong">
1052
+										<div class="col-md-2" id="">
1058 1053
 											<select class="col-md-3 form-control" id="customer_comaddress"></select>
1059 1054
 										</div>
1060 1055
 										<label for="F_BusLabel" class="col-md-1">分公司</label>
1061
-										<div class="col-md-2" id="sanjiliandong">
1056
+										<div class="col-md-2" id="">
1062 1057
 											<select class="col-md-3 form-control" id="customer_legalName">
1063 1058
 												<option value="">请选择</option>
1064 1059
 											</select>
@@ -1096,7 +1091,7 @@
1096 1091
 									</li>
1097 1092
 									<li class="form-group">
1098 1093
 										<label for="customer_taxPointDes" class="col-md-1">渠道类型</label>
1099
-										<div class="col-md-2" id="sanjiliandong">
1094
+										<div class="col-md-2" id="">
1100 1095
 											<select id="customer_taxPointDes" class="form-control "></select>
1101 1096
 										</div>
1102 1097
 									</li>
@@ -1116,7 +1111,7 @@
1116 1111
 											<input id="customer_address2" class="form-control" type="text" autocomplete="off" placeholder="请输入年销量" />
1117 1112
 										</div>
1118 1113
 										<label for="customer_Qualification" class="col-md-1">经营品牌</label>
1119
-										<div class="col-md-2" id="sanjiliandong">
1114
+										<div class="col-md-2" id="">
1120 1115
 											<select id="customer_Qualification" class="form-control" type="text"></select>
1121 1116
 										</div>
1122 1117
 									</li>
@@ -1161,7 +1156,7 @@
1161 1156
 									</li>
1162 1157
 									<li class="form-group">
1163 1158
 										<label for="customer_invoiceRange" class="col-md-1">信用等级</label>
1164
-										<div class="col-md-2" id="sanjiliandong">
1159
+										<div class="col-md-2" id="">
1165 1160
 											<select id="customer_invoiceRange" class="form-control" type="text"></select>
1166 1161
 										</div>
1167 1162
 									</li>
@@ -1181,25 +1176,25 @@
1181 1176
 
1182 1177
 									<li class="form-group">
1183 1178
 										<label for="F_BusLabel" class="col-md-1">省</label>
1184
-										<div class="col-md-2" id="sanjiliandong">
1179
+										<div class="col-md-2" id="">
1185 1180
 											<select class="col-md-3 form-control" id="shengji">
1186 1181
 												<option selected="selected" value="">请选择</option>
1187 1182
 											</select>
1188 1183
 										</div>
1189 1184
 										<label for="F_BusLabel" class="col-md-1">市</label>
1190
-										<div class="col-md-2" id="sanjiliandong">
1185
+										<div class="col-md-2" id="">
1191 1186
 											<select class="col-md-3 form-control" id="shiji">
1192 1187
 												<option selected="selected" value="">请选择</option>
1193 1188
 											</select>
1194 1189
 										</div>
1195 1190
 										<label for="F_BusLabel" class="col-md-1">区县</label>
1196
-										<div class="col-md-2" id="sanjiliandong">
1191
+										<div class="col-md-2" id="">
1197 1192
 											<select class="col-md-3 form-control" id="quxianji">
1198 1193
 												<option selected="selected" value="">请选择</option>
1199 1194
 											</select>
1200 1195
 										</div>
1201 1196
 										<label for="F_BusLabel" class="col-md-0">乡</label>
1202
-										<div class="col-md-2" id="sanjiliandong">
1197
+										<div class="col-md-2" id="">
1203 1198
 											<select class="col-md-3 form-control" id="xiangji">
1204 1199
 												<option selected="selected" value="">请选择</option>
1205 1200
 											</select>
@@ -1215,7 +1210,7 @@
1215 1210
 									<li class="form-group">
1216 1211
 
1217 1212
 										<label for="customer_FinancialManager" class="col-md-1">产品</label>
1218
-										<div class="col-md-2" id="sanjiliandong">
1213
+										<div class="col-md-2" id="">
1219 1214
 											<select id="customer_FinancialManager" class="form-control" type="text"></select>
1220 1215
 										</div>
1221 1216
 									</li>