|
@@ -8,36 +8,7 @@ var mobile='';
|
|
|
var getClentListTimeout = null;
|
|
|
var clientname='';
|
|
|
|
|
|
-//列表 手机号码检索功能
|
|
|
-function fnMobile2Info(){
|
|
|
- mobile2InfoTimeout = null;
|
|
|
- if((/^1[34578]\d{9}$/.test(mobile))) {
|
|
|
- $.ajax({
|
|
|
- cache :false,
|
|
|
- type: 'GET',
|
|
|
- url: '/cloud/curing/ajax/curingInfo/' + mobile,
|
|
|
- //data: { mobile: mobile },
|
|
|
- dataType: 'json',
|
|
|
|
|
|
- context: $('body'),
|
|
|
- success: function (data) {
|
|
|
- if (data.status == 1) {
|
|
|
- fnStructureCuringUser([data.detail]);
|
|
|
- $('div[page]').hide();
|
|
|
- } else if (data.status == 2) {
|
|
|
- $('div[curingListBox]').hide();
|
|
|
- $('p[upClientBox]').show();
|
|
|
- $('b[curingMobile]').html(mobile);
|
|
|
- } else if (data.status == 3) {
|
|
|
- alert(data.msg);
|
|
|
- }
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- console.log('Ajax error!')
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-}
|
|
|
|
|
|
function fnSearchCuring(){
|
|
|
searchCuringTimeout = null;
|
|
@@ -263,9 +234,24 @@ $(function() {
|
|
|
refreshCuringPage(compilation,latestCompilation,'',sort);
|
|
|
});
|
|
|
|
|
|
+ /**
|
|
|
+ * 通行证账号检索养护用户--缓冲300
|
|
|
+ */
|
|
|
+ $('input[mobile2Info]').on('keyup', function(e){
|
|
|
+ if(mobile2InfoTimeout != null){
|
|
|
+ clearTimeout(mobile2InfoTimeout);
|
|
|
+ }
|
|
|
+ mobile = $(this).val();
|
|
|
+ if((/^1[34578]\d{9}$/.test(mobile))) {
|
|
|
+ mobile2InfoTimeout = setTimeout(fnMobile2Info, 300);
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
|
|
|
- //动态绑定 移除CLD客户事件
|
|
|
+//--------------用户详情界面相关---------
|
|
|
+ /**
|
|
|
+ * 动态绑定 移除CLD客户事件
|
|
|
+ */
|
|
|
$('button[relieveClientDo]').on('click', function(e){
|
|
|
//$('div[curinginfo]').delegate( 'a[relieveClientDo]','click', function(){
|
|
|
// 只获取第一个选中的值
|
|
@@ -333,6 +319,9 @@ $(function() {
|
|
|
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
//检索cld用户
|
|
|
$('input[getClentList]').on('keyup', function(e){
|
|
|
if(getClentListTimeout != null){
|
|
@@ -379,16 +368,7 @@ $(function() {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- //列表 缓存激活号码检索
|
|
|
- $('input[mobile2Info]').on('keyup', function(e){
|
|
|
- if(mobile2InfoTimeout != null){
|
|
|
- clearTimeout(mobile2InfoTimeout);
|
|
|
- }
|
|
|
- mobile = $(this).val();
|
|
|
- if((/^1[34578]\d{9}$/.test(mobile))) {
|
|
|
- mobile2InfoTimeout = setTimeout(fnMobile2Info, 300);
|
|
|
- }
|
|
|
- });
|
|
|
+
|
|
|
//列表 号码检索事件绑定
|
|
|
$('div[mobile2Info]').on('click', function(e){
|
|
|
mobile=$('input[mobile2Info]').val();
|