|
@@ -21,7 +21,6 @@ function refreshCuringPage(compilation,latestCompilation,sortField,sort,wd){
|
|
|
|
|
|
}
|
|
|
|
|
|
-//列表 手机号码检索功能
|
|
|
/**
|
|
|
* 通行证账号检索用户--刷新列表和分页
|
|
|
* @returns
|
|
@@ -29,36 +28,56 @@ function refreshCuringPage(compilation,latestCompilation,sortField,sort,wd){
|
|
|
function fnMobile2Info(){
|
|
|
mobile2InfoTimeout = null;
|
|
|
if((/^1[34578]\d{9}$/.test(mobile))) {
|
|
|
-
|
|
|
refreshCuringPage('','','','',mobile);
|
|
|
-
|
|
|
- /*$.ajax({
|
|
|
- cache :false,
|
|
|
- type: 'GET',
|
|
|
- url: '/cloud/curing/ajax/curingInfo/' + mobile,
|
|
|
- //data: { mobile: mobile },
|
|
|
- dataType: 'json',
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 刷新用户详情页
|
|
|
+ * @param ssoid
|
|
|
+ * @param client_id
|
|
|
+ * @returns
|
|
|
+ */
|
|
|
+function refreshCuringPageDetail(ssoid,client_id){
|
|
|
+ $.ajax({
|
|
|
+ cache :false,
|
|
|
+ type: 'GET',
|
|
|
+ url: '/cloud/curing/ajax/getCuringBySsoid',
|
|
|
+ data: {ssoid: encodeURI(ssoid),client_id:encodeURI(client_id)},
|
|
|
+ dataType: 'json',
|
|
|
+ success: function(data){
|
|
|
+ if(data.status==1||data.status==2){
|
|
|
+ //设置 养护用户信息
|
|
|
+ var objHtml=buildCuringInfo(data.detail.userInfo);
|
|
|
+ $('div[curingInfo] curing').html(objHtml);
|
|
|
|
|
|
- context: $('body'),
|
|
|
- success: function (data) {
|
|
|
- if (data.status == 1) {
|
|
|
- fnStructureCuringUser([data.detail]);
|
|
|
- fnPage(data.pageData);
|
|
|
- $('div[pageDetail]').hide();
|
|
|
- }
|
|
|
-// else if (data.status == 2) {
|
|
|
-// $('div[curingListBox]').hide();
|
|
|
-// $('p[upClientBox]').show();
|
|
|
-// $('b[curingMobile]').html(mobile);
|
|
|
-// }
|
|
|
- else if (data.status == 3) {
|
|
|
- alert(data.msg);
|
|
|
+ //设置CLD客户信息
|
|
|
+ if(data.detail.curingInfo.updateTotal!=0){
|
|
|
+ $("#id").val(id);
|
|
|
+ var clientHtml=relevanceClient(data.detail.clientInfo);
|
|
|
+ $('div[curingInfo] curingClient').html(clientHtml);
|
|
|
}
|
|
|
- },
|
|
|
- error: function (xhr, type) {
|
|
|
- console.log('Ajax error!')
|
|
|
+
|
|
|
+
|
|
|
+ //设置养护详情页里产品升级信息
|
|
|
+ var upMajorBoxHtml=buildCuringCompilation(data);
|
|
|
+ $('tbody[upMajorBox]').html(upMajorBoxHtml);
|
|
|
+
|
|
|
+ //设置养护日志
|
|
|
+ var operateLogHtml=buildCuringOperateLog(data.detail.operateLog);
|
|
|
+ $('div[operateLog] curingOperate').html(operateLogHtml);
|
|
|
+
|
|
|
+ setTimeout(autoHeight, 400);
|
|
|
+
|
|
|
+ //autoHeight();
|
|
|
+ $('#detail').modal('show');
|
|
|
+ }else if(data.status==3){
|
|
|
+ alert(data.msg);
|
|
|
}
|
|
|
- })*/
|
|
|
- }
|
|
|
+ },
|
|
|
+ error: function(xhr, type){
|
|
|
+ console.log('Ajax error!')
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|