Commit ea2e97d1 authored by agping's avatar agping

全部成交 报告 修改

parent 7e79bcd4
...@@ -100,14 +100,13 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -100,14 +100,13 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
record.pageNo = pageNo;//接收参数 record.pageNo = pageNo;//接收参数
var params = {}; var params = {};
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
console.log(user_info_obj); params.start_time = $('#create_time_start').val();
console.log(user_info_obj.AuthToken); params.end_time = $('#create_time_end').val();
params.create_time_start = $('#create_time_start').val();
params.create_time_end = $('#create_time_end').val();
params.report_agent_name = $('#user_name').val(); params.report_agent_name = $('#user_name').val();
params.report_agent_phone = $('#user_phone').val(); params.report_agent_phone = $('#user_phone').val();
params.house_title = $('#house_title').val(); params.internal_title = $('#house_title').val();
params.user_phone = $('#report_agent_phone').val(); params.user_phone = $('#report_agent_phone').val();
// var start_ = $('#create_time_start').val()+" 00:00:00"; // var start_ = $('#create_time_start').val()+" 00:00:00";
// date_start =new Date(Date.parse(start_.replace(/-/g, "/"))); // date_start =new Date(Date.parse(start_.replace(/-/g, "/")));
// params.start_time =date_start.getTime()*0.001; // params.start_time =date_start.getTime()*0.001;
...@@ -117,14 +116,11 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -117,14 +116,11 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
// date_end =new Date(Date.parse(end_.replace(/-/g, "/"))); // date_end =new Date(Date.parse(end_.replace(/-/g, "/")));
// console.log(date_end); // console.log(date_end);
// params.end_time =date_end.getTime()*0.001; // params.end_time =date_end.getTime()*0.001;
params.AuthToken = user_info_obj.AuthToken;
params.agent_id = user_info_obj.id;
params.type = 1;
params.page_no = record.pageNo; params.page_no = record.pageNo;
params.page_size = record.pageSize; params.page_size = record.pageSize;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/broker/reportListForPc', //约带看记录 对接接口(2.9.6 有权限的人 才能看到) url: '/index/inspectionRecordAll', //约带看记录 对接接口(2.9.6 有权限的人 才能看到)
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
...@@ -133,7 +129,7 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -133,7 +129,7 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('inspectionRecordAll_list_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('inspectionRecordAll_list_tpl').innerHTML);
$("#follow_list").html(doTtmpl(data.data.result)); $("#follow_list").html(doTtmpl(data.data.list));
/*分页代码*/ /*分页代码*/
console.log(data.data.total); console.log(data.data.total);
add_page(data.data.total, pageNo, record.pageSize, record.getList); add_page(data.data.total, pageNo, record.pageSize, record.getList);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<td>[%= hideTel(it[item]['user_phone']) %]</td> <td>[%= hideTel(it[item]['user_phone']) %]</td>
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['report_agent_name'] %]</td> <td>[%= it[item]['report_agent_name'] %]</td>
<td>[%= it[item]['house_title'] %]</td> <td>[%= it[item]['internal_title'] %]</td>
<td>[%= it[item]['predict_see_time'] %]</td> <td>[%= it[item]['predict_see_time'] %]</td>
<td> <td>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment