Quellcode durchsuchen

来电弹屏添加短信

jinquanwu vor 6 Jahren
Ursprung
Commit
cc6a34b7f5
2 geänderte Dateien mit 47 neuen und 0 gelöschten Zeilen
  1. 29 0
      CallCenterWeb.UI/callScreen/call.js
  2. 18 0
      CallCenterWeb.UI/callScreen/callScreen.html

+ 29 - 0
CallCenterWeb.UI/callScreen/call.js

@@ -1358,6 +1358,35 @@ function buttonend(oid) {
1358 1358
 		}
1359 1359
 	})
1360 1360
 }
1361
+
1362
+$('#save_short').click(function(){//ID为test的元素点击时
1363
+	  duanxin();
1364
+	});
1365
+
1366
+//短信发送
1367
+function duanxin() {
1368
+
1369
+	$.post(huayi.config.callcenter_url + 'SMS/SMSSend', {
1370
+		  
1371
+		           name: $('#short_message').val(),//业务员姓名
1372
+		   		   phone: $('#short_phone').val(),//业务员电话
1373
+				   cusphone: $('#short_tel').val(),//客户电话
1374
+				
1375
+							
1376
+		 token: $.cookie("token")
1377
+	}, function(result) {
1378
+		result = $.parseJSON(result);
1379
+		if(result.state.toLowerCase() == "success") {
1380
+			debugger
1381
+				// parent.parent.layer.msg("工单完结成功!");
1382
+				cleanOrderForm();
1383
+				layer.msg("短信发送成功");		
1384
+			// top.workcount();
1385
+		}
1386
+	})
1387
+}
1388
+
1389
+
1361 1390
 //投诉和抽检客户 物料编号清空
1362 1391
 function  emptyct(){
1363 1392
 	$('#number').val('');

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

@@ -972,6 +972,24 @@
972 972
 									<button type="button" class="btn btn-primary btn-sm" id="save_order" style="display: none;">创建</button>
973 973
 									<button type="button" class="btn btn-primary btn-sm" onclick="cleanOrderForm()">清空</button>
974 974
 								</div>
975
+								<div class="form-group col-md-12 clearfix" style="margin-top: 50px;">
976
+									<div class="form-group col-md-4" id="">
977
+									 	<label for="order_handle">业务经理姓名:</label>
978
+									 	<input type="text" class="form-control input-sm" id="short_message" placeholder="请输入业务经理姓名">
979
+									</div>
980
+									<div class="form-group col-md-4" id="">
981
+									  	<label for="order_handle">业务经理电话:</label>
982
+									  	<input type="text" class="form-control input-sm" id="short_phone" placeholder="请输入业务经理电话">
983
+									</div>
984
+									<div class="form-group col-md-4" id="">
985
+									  	<label for="order_handle">客户电话:</label>
986
+									  	<input type="text" class="form-control input-sm" id="short_tel" placeholder="请输入客户电话">
987
+									</div>
988
+									
989
+								</div>
990
+								<div class="form-group text-center col-sm-12" style="margin-top: 10px;">
991
+									<button type="button" class="btn btn-primary btn-sm" id="save_short">发送</button>
992
+								</div>
975 993
 							</form>
976 994
 
977 995
 						</div>