Commit d95579e8 authored by agping's avatar agping

修改

parent b004d534
...@@ -1345,7 +1345,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css' ...@@ -1345,7 +1345,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//转介绍然人 记录 //转介绍然人 记录
var caozuo_table_introduce = ""; var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) { $.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>'; caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}); });
if(caozuo_table_introduce){ if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table); $("#caozuo_table_edit_introduce").html(caozuo_table);
......
...@@ -1340,7 +1340,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -1340,7 +1340,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
//转介绍然人 记录 //转介绍然人 记录
var caozuo_table_introduce = ""; var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) { $.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>'; caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}); });
if(caozuo_table_introduce){ if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table); $("#caozuo_table_edit_introduce").html(caozuo_table);
......
...@@ -1534,7 +1534,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -1534,7 +1534,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//转介绍人 记录 //转介绍人 记录
var caozuo_table_introduce = ""; var caozuo_table_introduce = "";
$.each(data['data']['user_invite_history'], function(i, item) { $.each(data['data']['user_invite_history'], function(i, item) {
caozuo_table += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>'; caozuo_table_introduce += '<tr><td>' + item.remark + '</td><td>' + item.name + '</td><td>' + item.create_time + '</td></tr>';
}); });
if(caozuo_table_introduce){ if(caozuo_table_introduce){
$("#caozuo_table_edit_introduce").html(caozuo_table); $("#caozuo_table_edit_introduce").html(caozuo_table);
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<td class="text-center">[%= it[item]['index_'] %]</td> <td class="text-center">[%= it[item]['index_'] %]</td>
<td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</a></td> <td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td> <td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-person-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]>[%= it[item]['bargain_sum_total'] %]</a></td> <td class="text-center"><a class="deal-number-details performance-person-click" href="#deal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td> <td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td> <td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td> <td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
...@@ -274,29 +274,33 @@ ...@@ -274,29 +274,33 @@
<!--门店-成交单数 --> <!--门店-成交单数 -->
<!--个人-成交单数 --> <!--个人-成交单数 -->
<script id="deal_number_details_tpl" type="text/template"> <script id="deal_number_details_tpl" type="text/template">
[% if(it["list"] && it["list"].length && it["list"].length>0) { %] [% if(it && it.length && it.length>0) { %]
[% var sw=function(s){switch(Number(s)){case 10:return"出租";case 20:return"增佣";case 30:return"代理";case 40:return"好处费";default:return s}}; %]
<tr> <tr>
<th class="text-center">排名</th> <th class="text-center">成交报告ID</th>
<th class="text-center">经纪人</th> <th class="text-center">提交时间</th>
<th class="text-center">业绩(元)</th> <th class="text-center">商铺地址</th>
<th class="text-center">成交单数</th> <th class="text-center">成交客户</th>
<th class="text-center">收款数</th> <th class="text-center">客户电话</th>
<th class="text-center">进场数</th> <th class="text-center">成交类型</th>
<th class="text-center">报备数</th> <th class="text-center">应收佣金</th>
<th class="text-center">新增商铺</th> <th class="text-center">操作</th>
<th class="text-center">新增客户</th>
</tr> </tr>
[% for(var item in it["list"]){ %] [% for(var item in it){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]"> <tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['index_'] %]</td> <td class="text-center">[%= it[item]['id'] %]</td>
<td class="text-center">[%= it["list"][item]['district_name']+'-'+it["list"][item]['store_name']+'-'+it["list"][item]['name'] %]</a></td> <td class="text-center">[%= it[item]['create_time'] %]</a></td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td> <td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum_total'] %]</td> <td class="text-center">[%= it[item]['user_name'] %]</td>
<td class="text-center">[%= it["list"][item]['paylog_total'] %]</td> <td class="text-center">[%= it[item]['user_phone'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num_total'] %]</td> <td class="text-center">[%= sw(it[item]['trade_type']) %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num_total'] %]</td> <td class="text-center">[%= it[item]['scale_fee'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num_total'] %]</td> <td class="text-center">
<td class="text-center">[%= it["list"][item]['add_user_num_total'] %]</td> <a class="btn1 btn-success details-btn" href="#modal_detail" data-toggle="modal" data-id='[%= it[item]["id"] %]'>详情</a>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
</td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -311,6 +315,8 @@ ...@@ -311,6 +315,8 @@
<!--个人-收款数 --> <!--个人-收款数 -->
<script id="collection_number_details_tpl" type="text/template"> <script id="collection_number_details_tpl" type="text/template">
[% if(it&&it[0]) { %] [% if(it&&it[0]) { %]
[% var swPayType=function(s){switch(Number(s)){case 10:return"支护宝";case 20:return"微信";case 30:return"pos机器";case 40:return"转账";case 50:return"现金";case 60:return"其他";default:return s}}; %]
[% var swType=function(s){switch(Number(s)){case 10:return"意向金";case 20:return"定金";case 30:return"保管金";case 40:return"押金";case 50:return"租金";case 60:return"进场费";case 70:return"转让费";case 80:return"其他";case 90:return"佣金";default:return s}}; %]
<tr> <tr>
<th class="text-center">收款时间</th> <th class="text-center">收款时间</th>
<th class="text-center">客户姓名</th> <th class="text-center">客户姓名</th>
...@@ -327,8 +333,8 @@ ...@@ -327,8 +333,8 @@
<td class="text-center">[%= it[item]['create_time'] %]</td> <td class="text-center">[%= it[item]['create_time'] %]</td>
<td class="text-center">[%= it[item]['user_name'] %]</td> <td class="text-center">[%= it[item]['user_name'] %]</td>
<td class="text-center">[%= it[item]['money'] %]</td> <td class="text-center">[%= it[item]['money'] %]</td>
<td class="text-center">[%= it[item]['pay_type'] %]</td> <td class="text-center">[%= swType(it[item]['type']) %]</td>
<td class="text-center">[%= it[item]['type'] %]</td> <td class="text-center">[%= swPayType(it[item]['pay_type']) %]</td>
<td class="text-center">[%= it[item]['landmark'] %]</td> <td class="text-center">[%= it[item]['landmark'] %]</td>
<td class="text-center">[%= it[item]['house_title'] %]</td> <td class="text-center">[%= it[item]['house_title'] %]</td>
<td class="text-center"> <td class="text-center">
...@@ -364,7 +370,7 @@ ...@@ -364,7 +370,7 @@
<td class="text-center">[%= it[item]['user_phone'] %]</td> <td class="text-center">[%= it[item]['user_phone'] %]</td>
<td class="text-center">[%= it[item]['predict_see_time'] %]</td> <td class="text-center">[%= it[item]['predict_see_time'] %]</td>
<td class="text-center">[%= it[item]['report_agent_name'] %]</td> <td class="text-center">[%= it[item]['report_agent_name'] %]</td>
<td class="text-center">[%= it[item]['house_title'] %]</td> <td class="text-center">[%= hideStr(it[item]['house_title']) %]</td>
<td class="text-center">[%= it[item]['predict_see_time'] %]</td> <td class="text-center">[%= it[item]['predict_see_time'] %]</td>
<td class="text-center"> <td class="text-center">
<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