Commit af229bc5 authored by agping's avatar agping

商铺跟进 业绩排行 修改

parent acd9cebc
......@@ -77,7 +77,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
_this.next().html(''); //先清空
if(_id && _id != '0') {
house.getDistrictStoreList(_id, function(_data) {
var _str = '<option value="0">全部</option>';
var _str = '<option value="">全部</option>';
$.each(_data, function(i, item) {
_str += '<option value="' + item.id + '">' + item.store_name + '</option>';
});
......@@ -191,9 +191,9 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
//var date="2014-05-08 00:22:11";
// date = new Date(Date.parse(date.replace(/-/g, "/")));
// date = date.getTime();
params.district_id = $('#district_id').val() * 1;//部门
params.store_id = $('#guest_stores').val() * 1;//门店
params.houseID = $('#houseID').val() * 1;//商铺 id
params.district_id = $('#district_id').val();//部门
params.store_id = $('#guest_stores').val();//门店
params.house_id = $('#houseID').val();//商铺 id
// params.user_name = $('#user_name').val();
params.name_or_phone = $('#user_phone').val();
......
......@@ -229,6 +229,7 @@
<!--门店-业绩 -->
<!--个人-业绩 -->
<script id="performance_details_tpl" type="text/template">
[% var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); %]
[% if(it[0]) { %]
<tr>
<th class="text-center">成交报告ID</th>
......@@ -257,7 +258,7 @@
<td class="text-center">[%= it[item]['scale_fee'] %]</td>
<td class="text-center">[%= it[item]['practical_fee'] %]</td>
<td class="text-center">
[% if(check_auth('index/bargainInfo')) { %]
[% if(check_auth('index/bargainInfo') || (it[item]['agent_id'] == user_info_obj.id)) { %]
<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>-->
......@@ -276,6 +277,7 @@
<!--门店-成交单数 -->
<!--个人-成交单数 -->
<script id="deal_number_details_tpl" type="text/template">
[% var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); %]
[% 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>
......@@ -299,7 +301,7 @@
<td class="text-center">[%= sw(it[item]['trade_type']) %]</td>
<td class="text-center">[%= it[item]['scale_fee'] %]</td>
<td class="text-center">
[% if(check_auth('index/bargainInfo')) { %]
[% if(check_auth('index/bargainInfo') || (it[item]['agent_id'] == user_info_obj.id)) { %]
<a class="btn1 btn-success details-btn" href="#modal_detail" data-toggle="modal" data-id='[%= it[item]["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