Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
350ee809
Commit
350ee809
authored
Jun 24, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c72d11c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2956 additions
and
21 deletions
+2956
-21
realtimePerformanceOffice.html
...cation/index/view/realtime/realtimePerformanceOffice.html
+843
-0
realtimePerformanceOffice.js
public/resource/js/realtimePerformanceOffice.js
+1518
-0
real_time_performance_office_template_tpl.html
...e/template/real_time_performance_office_template_tpl.html
+583
-0
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+12
-21
No files found.
application/index/view/realtime/realtimePerformanceOffice.html
0 → 100644
View file @
350ee809
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"realtimePerformanceOffice"
/>
<style
type=
"text/css"
>
/*客户详情*/
.followup-modal-list-area
{
height
:
258px
;
overflow-y
:
scroll
;
}
.form-control
[
disabled
]
{
background-color
:
#fff
;
}
.user_pic
{
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
}
.btn-guanbi
{
float
:
right
;
}
/*客户详情*/
.panel-body
{
padding-top
:
0
;
}
.left
{
float
:
left
;
}
.modal-body-width-w
{
width
:
1080px
;
}
.modal-body-width-h
{
height
:
686px
;
overflow-y
:
scroll
;
}
.modal-body-width-two-w
{
width
:
980px
;
}
.modal-body-width-two-h
{
height
:
686px
;
overflow-y
:
scroll
;
}
#rank_start_day
,
#rank_end_day
,
#performance_ranking
{
font-size
:
16px
;
}
/*倒序 正序 样式*/
.positive-sequence-yeji
,
.reverse-order-yeji
{
position
:
relative
;
margin-left
:
5px
;
cursor
:
pointer
;
font-size
:
23px
;
}
.positive-sequence-yeji
{
top
:
13px
;
}
.reverse-order-yeji
{
top
:
-5px
;
left
:
-28px
;
}
/*经纪人 搜索 下拉式*/
.left-phone
{
margin-left
:
10px
;
float
:
left
;
margin-top
:
-5px
;
width
:
230px
;
position
:
relative
;
}
.user-ul-agent
{
width
:
223px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
4px
;
z-index
:
999
;
}
.user-ul-agent
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
.total-performance-zong
{
margin-top
:
15px
!important
;
float
:
left
;
margin-left
:
55px
;
font-size
:
16px
;
font-weight
:
700
;
}
.results-sign
{
font-size
:
14px
;
font-weight
:
700
;
margin-top
:
7px
;
float
:
left
;
}
.performance-ranking-head
{
float
:
left
;
margin-right
:
30px
;
margin-top
:
5px
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
50px
;
margin-top
:
-100px
;
overflow
:
hidden
;
display
:
none
;
}
</style>
<div
id=
"page-content-wrapper tab-content"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
class=
"performance-ranking-head"
style=
""
><span
id=
"performance_ranking"
>
业绩排行
</span>
<span
id=
"rank_start_day"
></span>
至
<span
id=
"rank_end_day"
></span></a>
<select
class=
"form-control btn2-city"
id=
"realtime_city_choose"
style=
"display: none;margin-top: 0px;"
>
</select>
</li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"18"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn performance-district-click"
id=
'liudan_pic_btn_district'
>
部门业绩排行榜
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-store-click"
id=
'liudan_pic_btn_store'
>
门店业绩排行榜
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-person-click"
id=
'liudan_pic_btn_person'
>
个人业绩排行榜
</a>
<span
class=
"results-sign"
>
(注:业绩统计程序每小时跑一次,1小时内提交的业绩要等1小时后才显示在排行榜里)
</span>
</td>
</tr>
<!--部门业绩 门店业绩 个人业绩的搜索功能-->
<tr>
<td
colspan=
"18"
>
<form
id=
"maintable_form_search"
>
<!--<span class="btn btn-primary btn3 left" id="maintable_month">本月</span>-->
<!--<span class="btn btn-primary btn3 left" id="maintable_today">今天</span>-->
<span
class=
"fore-span margin-left-10"
>
时间:
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_create_time"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span margin-left-10"
>
-
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_end_time"
name=
"end_date"
type=
"date"
>
<!--部门 门店 搜索 门店 经纪人 显示-->
<!--二级联动-->
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id"
>
<option
value=
""
>
选择部门
</option>
</select>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
</select>
<div
class=
"left-phone"
>
<input
class=
"form-control margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_agent_name"
placeholder=
"选择经纪人"
type=
"text"
value=
""
>
<ul
class=
"user-ul-agent"
></ul>
</div>
<!--经纪人搜索 门店显示-->
<span
class=
"btn btn-primary btn3 search left"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-primary btn3 left"
id=
"maintable_reset"
>
重置
</span>
<span
class=
"btn btn-primary btn3 left"
id=
"export"
>
导出报表
</span>
<span
class=
"total-performance-zong left"
>
总计:
<span
class=
"total-performance"
></span></span>
</form>
</td>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出框-部门-门店详情 -->
<div
class=
"modal fade"
id=
"modal-store"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-w"
>
<div
class=
"modal-content modal-body-width-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking"
>
时间:
</span>
<span
id=
"rank_start_day_store"
></span>
至
<span
id=
"rank_end_day_store"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"store_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-门店-个人详情 -->
<div
class=
"modal fade"
id=
"modal-agent"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-w"
>
<div
class=
"modal-content modal-body-width-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent"
>
时间:
</span>
<span
id=
"rank_start_day_agent"
></span>
至
<span
id=
"rank_end_day_agent"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"agent_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-门店-个人详情 -->
<div
class=
"modal fade"
id=
"modal-agent-two"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"rank_start_day_agent_two"
></span>
至
<span
id=
"rank_end_day_agent_two"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"agent_details_list_two"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-业绩-详情 -->
<div
class=
"modal fade"
id=
"modal-performance-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"performance_details_time_start"
></span>
至
<span
id=
"performance_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"performance_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-成交单数-详情 -->
<div
class=
"modal fade"
id=
"modal-deal-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"deal_details_time_start"
></span>
至
<span
id=
"deal_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"deal_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-收款数-详情 -->
<div
class=
"modal fade"
id=
"modal-collection-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"collection_details_time_start"
></span>
至
<span
id=
"collection_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"collection_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-进场数-详情 -->
<div
class=
"modal fade"
id=
"modal-approach-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"approach_details_time_start"
></span>
至
<span
id=
"approach_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"approach_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-报备数-详情 -->
<div
class=
"modal fade"
id=
"modal-reported-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"reported_details_time_start"
></span>
至
<span
id=
"reported_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"reported_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-新增商铺-详情 -->
<div
class=
"modal fade"
id=
"modal-newshop-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"newshop_details_time_start"
></span>
至
<span
id=
"newshop_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"newshop_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-新增客户-详情 -->
<div
class=
"modal fade"
id=
"modal-newuser-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"newuser_details_time_start"
></span>
至
<span
id=
"newuser_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"newuser_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框-部门-团队人数-详情 -->
<div
class=
"modal fade"
id=
"modal-team-number-details"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-width-two-w"
>
<div
class=
"modal-content modal-body-width-two-h"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
<a
href=
"#"
><span
id=
"performance_ranking_agent_two"
>
时间:
</span>
<span
id=
"team_details_time_start"
></span>
至
<span
id=
"team_details_time_end"
></span></a>
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"team_number_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 时间轴 -->
<div
class=
"modal fade"
id=
"modal-time"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间轴
</h4>
</div>
<div
class=
"modal-body"
class=
"iframe-div-parent"
>
<iframe
class=
"iframe-time-line"
></iframe>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 详情 -->
<div
class=
"modal fade"
id=
"modal_detail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title detail-modal-header-tab"
>
<a
href=
"javascript:;"
class=
"btn btn-info"
>
成交信息
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
分佣提成
</a>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
开票税费
</a>
</h4>
</div>
<div
class=
"modal-body detail-modal-body"
>
<div>
<div
class=
"detail-modal-body-sec"
>
<form
class=
"detail-modal-bargaininfo-form"
>
<div
class=
"detail-modal-bargaininfo-main-left"
>
<span>
成交报告ID:
</span>
<span
id=
"bargaininfo_id_span"
></span>
<br
/>
<span>
商铺类型:
</span>
<span
id=
"bargaininfo_shop_type"
></span>
<br
/>
<span>
商铺地址:
</span><span
id=
"bargaininfo_internal_address"
></span>
<a
class=
"btn1 bargain-detail-shop btn-info"
href=
"#modal_shop_detail"
data-toggle=
"modal"
>
商铺
</a>
<br>
<span>
业态:
</span>
<input
class=
"form-control"
id=
"bargaininfo_yetai"
type=
"text"
><br>
<span>
客户姓名:
</span><span
id=
"bargaininfo_user_name"
></span><br>
<span>
成交类型:
</span>
<select
class=
"form-control"
id=
"bargaininfo_type"
>
<option
value=
"10"
>
出租
</option>
<option
value=
"20"
>
增佣
</option>
<option
value=
"30"
>
代理
</option>
<option
value=
"40"
>
好处费
</option>
</select>
<br
/>
<span>
应收总佣金:
</span>
<input
class=
"form-control"
id=
"bargaininfo_total_commission"
type=
"number"
>
元
<br>
</div>
<div
class=
"detail-modal-bargaininfo-main-right"
>
<span></span>
<br
/>
<!--<span>是否开业:</span>
<select class="form-control" id="bargaininfo_is_open">
<option value="0">否</option>
<option value="1">是</option>
</select> <br />-->
<span>
商铺号:
</span><span
id=
"bargaininfo_shop_num"
></span><br>
<!--<span>预计收款时间:</span><span id="bargaininfo_expect_payback_time"></span><br>-->
<span>
预计收款时间:
</span><input
type=
"date"
id=
"bargaininfo_expect_payback_time"
placeholder=
"请输入"
><br>
<span>
客户电话:
</span><span
id=
"bargaininfo_user_phone"
></span>
<a
class=
"btn1 caozuo genj_ure btn-info"
href=
"#modal_user_detail"
data-toggle=
"modal"
>
客户
</a>
<br>
<span>
成交日期:
</span><span
id=
"bargaininfo_create_time"
></span><br>
<span>
成交价:
</span>
<input
class=
"form-control"
id=
"bargaininfo_chengjiao_price"
type=
"number"
>
元
</div>
<div
class=
"detail-modal-bargaininfo-commission-inputpar"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"form-group detail-modal-bargaininfo-commission-sec"
>
<label
class=
""
>
实收佣金:
</label>
<div
class=
"input-group"
>
<input
type=
"number"
class=
"form-control"
placeholder=
"请输入"
>
<div
class=
"input-group-addon"
>
元
</div>
</div>
<label
class=
""
>
收佣日期:
</label>
<div
class=
"input-group"
>
<input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
>
</div>
<!--<mark href="javascript:;" class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png" /></mark>-->
</div>
</div>
<div
id=
"bargaininfo_commission_add_btn"
>
<img
src=
"/resource/image/jia2@2x.png"
/>
</div>
</div>
<div>
<span
class=
"detail-modal-bargaininfo-span-beizhu"
>
备注:
</span>
<textarea
id=
"bargaininfo_beizhu"
></textarea>
</div>
</form>
<div
class=
"tc"
>
<!--<button type="button" class="btn btn-primary" id="bargaininfo_btn_save">保存</button>-->
</div>
</div>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"detail-modal-maid-top-btn-area oh"
>
<!--<a class="btn btn-success" id="maid_new_btn" href="#modal_new_maid" data-toggle="modal">新增</a>-->
<!--<a id="maid_add_btn" class="btn btn-primary" data-toggle="modal">增加实收</a>
<a id="maid_count_btn" class="btn btn-primary" title="可自动计算实收佣金和合计">计算</a>-->
</div>
<!--<p class="text-right" id="maid_count_tips_p"><span>提示:</span>点击<span>计算</span>按钮可自动计算<span>实收佣金</span>和<span>合计</span>的内容</p>-->
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"maid_table_main"
>
<thead>
<tr>
<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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maid_new_table_list"
>
</tbody>
<tfoot>
<tr>
<td
class=
"text-center"
>
合计
</td>
<td
class=
"text-center"
></td>
<td
class=
"text-center"
></td>
<td
class=
"text-center"
></td>
<td
class=
"text-center"
id=
"maid_count_total_rate"
></td>
<td
class=
"text-center"
id=
"maid_count_total_yingfen"
></td>
<td
class=
"text-center"
id=
"maid_count_total_yufen"
></td>
<td
class=
"text-center"
id=
"maid_count_total_shouxu"
></td>
<td
class=
"text-center"
id=
"maid_count_total_cishan"
></td>
<td
class=
"text-center"
id=
"maid_count_total_xianjin"
></td>
<td
class=
"text-center"
id=
"maid_count_total_shishou"
></td>
<td
class=
"text-center"
></td>
<td
class=
"text-center"
></td>
<td
class=
"text-center"
></td>
</tr>
</tfoot>
</table>
<div
class=
"detail-modal-maid-bottom-btn-area text-right"
>
</div>
<!--分佣提成-->
</div>
<div
class=
"detail-modal-body-sec"
>
<div>
<div
class=
"tc"
>
</div>
<div
id=
"tax_main_box"
>
<!--内容为模板生成-->
</div>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
<!--商铺详情 跟进记录-->
<div
class=
"modal fade"
id=
"modal_shop_detail"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-one"
>
<div
class=
"modal-content"
style=
"height: 700px;"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title detail-modal-header-tab-liu"
>
<a
href=
"javascript:;"
class=
"btn btn-default"
>
查看商铺
</a>
<a
href=
"javascript:;"
class=
"btn btn-info"
>
商铺跟进
</a>
</h4>
</div>
<div
class=
"modal-body modal-body-one"
>
<div
class=
"detail-modal-body-sec-liu"
>
<iframe
class=
"iframe-shop-detail"
></iframe>
</div>
<div
class=
"detail-modal-body-sec-liu"
>
<div
class=
"followup-modal-list-area"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
""
id=
"modal_followup_table_list"
>
<tr>
<td>
电话跟进:测试测试测试测试测试测试测试测试测试测试测试测试
</td>
<td>
刘丹丹
</td>
<td>
2017-09-05 15:22:33
</td>
</tr>
<tr>
<td
colspan=
"3"
>
2017-09-05 15:22:33
</td>
</tr>
</tbody>
</table>
</div>
<!--<div class="followup-modal-comment-area">
<textarea></textarea>
</div>
<div class="btn-top-house">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="modal_followup_submit_btn">提交</button>
</div>-->
</div>
</div>
</div>
</div>
</div>
<!--客户详情 弹出框-->
<!--客户详情 客户跟进 不可编辑-->
<div
class=
"modal fade"
id=
"modal_user_detail"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-body-details"
style=
"width: 800px;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title text-info detail-modal-header-tab"
>
客户详情
</h4>
</div>
<div
class=
"modal-body modal-body1"
>
<div
class=
"detail-modal-body-sec"
>
<div
class=
"call-user-five"
></div>
<div
class=
"detail-modal-body-sec-2"
>
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<thead>
<tr>
<td>
<span
class=
"fore-span"
>
姓名:
</span>
<input
class=
"form-control btn6 cus_name input-border-0"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"name"
type=
"text"
disabled=
"disabled"
>
</td>
<td
width=
"35%"
>
<span
class=
"fore-span"
>
产生类型:
</span>
<span
class=
"fore-span source_type"
></span>
</td>
<td>
<span
class=
"fore-span"
>
面积:
</span>
<input
class=
"form-control btn6 input-border-0"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"area_demand"
type=
"number"
disabled=
"disabled"
><span
class=
"fore-span"
>
m²
</span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span"
>
客户编号:
</span>
<span
class=
"fore-span cus_id"
></span>
</td>
<td>
<span
class=
"fore-span"
>
性别:
</span>
<select
class=
"form-control btn6 sex input-border-0"
disabled=
"disabled"
>
<option
value=
"0"
class=
"successModel"
>
性别
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
</td>
<td>
<span
class=
"fore-span"
>
业态:
</span>
<select
class=
"form-control btn6 input-border-0"
name=
"industry_type_two"
disabled=
"disabled"
>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
百货零售
</option>
<option>
服装
</option>
<option>
亲子教育
</option>
<option>
休闲娱乐
</option>
</select>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span"
>
电话:
</span>
<span
class=
"fore-span cus_phone"
></span>
</td>
<td>
<span
class=
"fore-span"
>
价格:
</span>
<input
class=
"form-control btn6 input-border-0"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"price_demand"
type=
"number"
disabled=
"disabled"
><span
class=
"fore-span"
>
元/月
</span>
</td>
<td>
<span
class=
"fore-span"
>
VIP客户:
</span>
<select
class=
"form-control btn6 user_vip2 input-border-0"
disabled=
"disabled"
>
<option
value=
''
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span"
>
注册时间:
</span>
<span
class=
"fore-span registration_time"
></span>
</td>
<td>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"user_details_city fore-span"
>
</span>
</td>
<td>
<span
class=
"fore-span"
>
昵称:
</span>
<img
src=
""
alt=
""
class=
"fore-span diagram-image J_preview user_pic"
data-bimg=
''
/>
<span
class=
"fore-span cus_nick"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span"
>
创建时间:
</span>
<span
class=
"fore-span cus_date"
></span>
</td>
<!--<td>
</td>-->
<td>
<span
class=
"fore-span"
>
下载登录时间:
</span>
<span
class=
"fore-span firstlogin_time"
></span>
</td>
<td>
<span
class=
"fore-span"
>
客户标签:
</span>
<span
class=
"user_details_label fore-span"
>
</span>
</td>
</tr>
<tr>
<td>
<div
class=
"form-group"
>
<span
class=
"fore-span"
>
客方:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 cus_fang_edit input-border-0"
name=
"pwd"
autocomplete=
"off"
disabled=
"disabled"
>
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</td>
<td>
<span
class=
"fore-span"
>
是否转介绍:
</span>
<span
class=
"user-details-introduce fore-span"
></span>
</td>
<td>
<span
class=
"fore-span"
>
邀请人(介绍人):
</span>
<span
class=
"user-details-introduce-id fore-span"
></span>
</td>
</tr>
<tr>
<td>
<span
class=
"fore-span"
>
客户来源:
</span>
<span
class=
"user-source-details fore-span"
>
网络
</span>
</td>
<td></td>
<td></td>
</tr>
</thead>
</table>
<h4
class=
"modal-title-genjing clear text-info"
>
客户跟进
</h4>
<div
id=
"gen_jing_user"
>
<div
class=
"followup-modal-list-area"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"caozuo_table2"
>
</tbody>
</table>
</div>
<div
class=
"clear margin-top-ld"
>
</div>
<div
class=
"center-btn modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/js/realtimePerformanceOffice.js
0 → 100644
View file @
350ee809
define
([
'doT'
,
'text!temp/real_time_performance_office_template_tpl.html'
,
'text!temp/reportList_no_edit_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
realtime
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
20
,
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
district_id
:
0
,
//部门id
store_id
:
0
,
//门店id
store_id_Two
:
0
,
//二级门店id
is_today_yeji
:
0
,
//默认搜索的不是今天 传参数0
agents_id
:
''
,
panfangData
:
null
,
orderList
:
0
,
time_search_start
:
''
,
time_search_end
:
''
,
bargain_id
:
''
,
order_id
:
''
,
switchType
:
3
,
district_store_agent_id
:
''
,
agent_id_choose
:
''
,
order_ranking
:
'desc'
,
detail_shop_id
:
''
,
detail_user_id
:
''
,
detailTabIndexLiu
:
0
,
//查看 弹出框 tab切换 初始化
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
//初始化 站点城市筛选
realtime
.
getSiteTags
();
realtime
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
$
(
'.left-phone,#district_id,#guest_stores'
).
hide
();
//初始化 隐藏 部门 门店的搜索
$
(
'#district_id'
).
val
(
''
);
//置空 部门 id
$
(
'#guest_stores'
).
val
(
''
);
//置空 门店id
realtime
.
agent_id_choose
=
''
;
//将业绩排行的 经纪人id置空
//二级联动
realtime
.
getDistrict
(
function
(){
//有了列表 点击 调用门店列表
_doc
.
on
(
'input'
,
'#district_id'
,
function
(){
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
_this
.
next
().
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
){
realtime
.
getDistrictStoreList
(
_id
,
function
(
_data
){
var
_str
=
'<option value="">选择门店</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
_this
.
next
().
html
(
_str
);
});
}
else
{
};
});
});
//城市 筛选
_doc
.
on
(
'input'
,
'#realtime_city_choose'
,
function
()
{
realtime
.
getList
();
});
_doc
.
on
(
"input"
,
"#user_agent_name"
,
function
()
{
//客户列表 客方员工姓名 下拉式搜索
if
(
$
(
"#user_agent_name"
).
val
()
==
''
)
{
realtime
.
agent_id_choose
=
''
;
$
(
".user-ul-agent"
).
html
(
''
);
}
else
{
realtime
.
search_phone_agent
();
}
});
_doc
.
delegate
(
".addphone-agent"
,
"click"
,
function
()
{
//客户列表 客户员工 下拉式 搜索 点击li事件 获取id ul消失
realtime
.
addphoneAgent
(
this
);
});
//成交报告详情 点击商铺 查看商铺详情
_doc
.
on
(
'click'
,
'a[href="#modal_shop_detail"]'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_id
=
realtime
.
detail_shop_id
;
$
(
'.iframe-shop-detail'
).
attr
(
'src'
,
'/app_broker/shop_detail_pc?shop_id='
+
_id
);
//记得修改修改
$
(
'.detail-modal-header-tab-liu>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
$
(
'.detail-modal-body-sec-liu:nth-of-type(1)'
).
show
().
siblings
().
hide
();
});
//商铺详情页面 商铺跟进 商铺详情 切换
_doc
.
on
(
'click'
,
'.detail-modal-header-tab-liu>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
realtime
.
detailTabIndexLiu
=
_this
.
index
();
$
(
'.detail-modal-body-sec-liu:nth-of-type('
+
(
realtime
.
detailTabIndexLiu
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
realtime
.
detailTabIndexLiu
==
0
){
$
(
'.iframe-shop-detail'
).
attr
(
'src'
,
'/app_broker/shop_detail_pc?shop_id='
+
realtime
.
detail_shop_id
);
}
else
if
(
realtime
.
detailTabIndexLiu
==
1
){
realtime
.
getFollowupList
();
}
});
//成交报告详情 点击客户 查看客户详情
_doc
.
on
(
'click'
,
'a[href="#modal_user_detail"]'
,
function
(
e
){
var
_id
=
realtime
.
detail_user_id
;
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
realtime
.
Caozuo
();
});
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
// realtime.user_id = $(this).attr("data-id");
realtime
.
getGenjincon
();
});
//主页面 部门业绩 门店业绩 个人业绩 三个tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
realtime
.
mainTabIndex
=
_this
.
index
();
if
(
realtime
.
mainTabIndex
==
0
){
$
(
'.left-phone,#district_id,#guest_stores'
).
hide
();
$
(
'#district_id'
).
val
(
''
);
//置空 部门 id
$
(
'#guest_stores'
).
val
(
''
);
//置空 门店id
realtime
.
agent_id_choose
=
''
;
//将业绩排行的 经纪人id置空
}
if
(
realtime
.
mainTabIndex
==
1
){
$
(
'#district_id,#guest_stores'
).
show
();
$
(
'.left-phone'
).
hide
();
$
(
'#district_id'
).
val
(
''
);
//置空 部门 id
$
(
'#guest_stores'
).
val
(
''
);
//置空 门店id
realtime
.
agent_id_choose
=
''
;
//将业绩排行的 经纪人id置空
};
if
(
realtime
.
mainTabIndex
==
2
){
$
(
'.left-phone,#district_id,#guest_stores'
).
show
();
$
(
'#district_id'
).
val
(
''
);
//置空 部门 id
$
(
'#guest_stores'
).
val
(
''
);
//置空 门店id
realtime
.
agent_id_choose
=
''
;
//将业绩排行的 经纪人id置空
}
realtime
.
getList
(
1
);
});
//导出列表事件
_doc
.
on
(
'click'
,
'#export'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
realtime
.
mainTabIndex
==
0
){
realtime
.
exportListDistrict
();
}
if
(
realtime
.
mainTabIndex
==
1
){
realtime
.
exportListStore
();
}
if
(
realtime
.
mainTabIndex
==
2
){
realtime
.
exportListPerson
();
}
});
//点击部门列表-参数初始化
_doc
.
on
(
'click'
,
'.performance-district-click'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
switchType
=
3
;
realtime
.
district_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
store_id
=
''
;
realtime
.
agents_id
=
''
;
});
//点击门店列表-参数初始化
_doc
.
on
(
'click'
,
'.performance-store-click'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
switchType
=
2
;
realtime
.
district_id
=
''
;
realtime
.
store_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
agents_id
=
''
;
});
//点击个人列表-参数初始化
_doc
.
on
(
'click'
,
'.performance-person-click'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
switchType
=
1
;
realtime
.
district_id
=
''
;
realtime
.
store_id
=
''
;
realtime
.
agents_id
=
$
(
this
).
attr
(
"data-id"
);
});
//点击今天按钮事件 的搜素
_doc
.
on
(
'click'
,
'#maintable_today'
,
function
(
e
){
//获取当天的日期 格式如 mmmm-yy-dd
function
getNowFormatDate
()
{
var
date
=
new
Date
();
var
seperator1
=
"-"
;
var
month
=
date
.
getMonth
()
+
1
;
var
strDate
=
date
.
getDate
();
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"0"
+
month
;
}
if
(
strDate
>=
0
&&
strDate
<=
9
)
{
strDate
=
"0"
+
strDate
;
}
var
currentdate
=
date
.
getFullYear
()
+
seperator1
+
month
+
seperator1
+
strDate
;
return
currentdate
;
};
var
currentdate_
=
getNowFormatDate
();
$
(
"#maintable_create_time"
).
val
(
currentdate_
);
$
(
"#maintable_end_time"
).
val
(
currentdate_
);
realtime
.
is_today_yeji
=
1
;
realtime
.
getList
(
1
);
});
//点击 部门排行 的部门名字
_doc
.
on
(
'click'
,
'.store-ranking'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getListStore
(
1
);
});
//点击 门店排行 的门店名字
_doc
.
on
(
'click'
,
'.agent-ranking'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
store_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getListAgent
(
1
);
});
//点击 门店二级排行 的门店名字
_doc
.
on
(
'click'
,
'.store-ranking-two'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
store_id_Two
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getListAgentTwo
(
1
);
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
is_today_yeji
=
0
;
realtime
.
time_search_start
=
$
(
'#maintable_create_time'
).
val
();
realtime
.
time_search_end
=
$
(
'#maintable_end_time'
).
val
();
realtime
.
getList
(
1
);
//一级审核搜索
});
//正序
_doc
.
on
(
'click'
,
'.positive-sequence-yeji'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
orderList
=
1
;
realtime
.
order_ranking
=
'asc'
;
realtime
.
getList
(
1
);
});
//倒序
_doc
.
on
(
'click'
,
'.reverse-order-yeji'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
orderList
=
0
;
realtime
.
order_ranking
=
'desc'
;
realtime
.
getList
(
1
);
});
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
realtime
.
is_today_yeji
=
0
;
realtime
.
agent_id_choose
=
''
;
});
//部门-业绩-弹出框
_doc
.
on
(
'click'
,
'.performance-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
getPerformanceDetails
(
1
);
});
//部门-成交单数-弹出框
_doc
.
on
(
'click'
,
'.deal-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getDealDetails
(
1
);
});
//部门-收款数-弹出框
_doc
.
on
(
'click'
,
'.collection-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getcollectionNumberDetails
(
1
);
});
//部门-进场数-弹出框
_doc
.
on
(
'click'
,
'.approach-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getapproachNumberDetails
(
1
);
});
//部门-报备数-弹出框
_doc
.
on
(
'click'
,
'.reported-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getreportedNumberDetails
(
1
);
});
//部门-新增房源数-弹出框
_doc
.
on
(
'click'
,
'.newshop-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getnewshopNumberDetails
(
1
);
});
//部门-新增客户数-弹出框
_doc
.
on
(
'click'
,
'.newuser-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getnewuserNumberDetails
(
1
);
});
//部门-团队数-弹出框
_doc
.
on
(
'click'
,
'.team-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
district_store_agent_id
=
$
(
this
).
attr
(
"data-id"
);
realtime
.
getteamNumberDetails
(
1
);
});
//点击详情按钮事件,获取报告详情
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
realtime
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
$
(
'.detail-modal-header-tab>a:nth-of-type(1)'
).
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
realtime
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
realtime
.
bargaininfoShow
();
});
//详情弹出框里的tab点击事件,成交信息,分佣提成,开票税费
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
realtime
.
detailTabIndex
=
_this
.
index
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
realtime
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
realtime
.
detailTabIndex
==
0
){
realtime
.
bargaininfoShow
();
}
else
if
(
realtime
.
detailTabIndex
==
1
){
realtime
.
maidShow
();
}
else
{
realtime
.
taxShow
();
}
});
//时间轴点击事件
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_id
=
_this
.
closest
(
'tr'
).
data
(
'orderid'
);
console
.
log
(
_id
);
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
});
},
//获取部门业绩 门店业绩 个人业绩 不同的ajax请求url
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/office_index/selectDistrictPerformance'
;
case
1
:
return
'/office_index/selectStorePerformance'
;
case
2
:
return
'/office_index/selectIndividualPerformance'
;
default
:
return
''
;
}
},
//获取部门业绩 门店业绩 个人业绩 不同的模板
switchTpl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'realtimePerformance_list_tpl_one'
;
case
1
:
return
'realtimePerformance_list_tpl_two'
;
case
2
:
return
'realtimePerformance_list_tpl_three'
;
default
:
return
''
;
}
},
// //获取个人-门店-区域id
// switchTypeId: function(){
// if(realtime.mainTabIndex == 0){
// realtime.district_id = $(this).attr("data-id");
// realtime.store_id = '';
// realtime.agents_id = '';
// };
// if(realtime.mainTabIndex == 1){
// realtime.district_id = '';
// realtime.store_id = $(this).attr("data-id");
// realtime.agents_id = '';
// };
// if(realtime.mainTabIndex == 2){
// realtime.district_id = '';
// realtime.store_id = '';
// realtime.agents_id = $(this).attr("data-id");
// };
// },
// 导出列表 部门排行
exportListDistrict
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
.
trim
(
$
(
'#guest_stores'
).
val
());
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
var
site_id
=
$
(
'#realtime_city_choose'
).
val
();
window
.
open
(
'/office_index/selectDistrictPerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
+
'&site_id='
+
site_id
);
},
// 导出列表 门店排行
exportListStore
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
.
trim
(
$
(
'#guest_stores'
).
val
());
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
var
site_id
=
$
(
'#realtime_city_choose'
).
val
();
window
.
open
(
'/office_index/selectStorePerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
+
'&site_id='
+
site_id
);
},
// 导出列表 个人排行
exportListPerson
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
.
trim
(
$
(
'#guest_stores'
).
val
());
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
var
site_id
=
$
(
'#realtime_city_choose'
).
val
();
window
.
open
(
'/office_index/selectIndividualPerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
+
'&site_id='
+
site_id
);
},
//获取部门业绩 门店业绩 个人业绩 的共用方法
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
realtime
.
pageSize
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'district_id'
:
$
(
'#district_id'
).
val
(),
'store_id'
:
$
(
'#guest_stores'
).
val
(),
'agent_id'
:
realtime
.
agent_id_choose
,
'order'
:
realtime
.
order_ranking
,
'site_id'
:
$
(
'#realtime_city_choose'
).
val
()
};
$
.
ajax
({
type
:
'GET'
,
url
:
realtime
.
switchUrl
(),
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tpl
=
realtime
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
//获取统计时间
$
(
'#rank_start_day'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_end_day'
).
html
(
data
.
data
.
end_time
);
//初始化列表的时候 初始化时间
$
(
'#maintable_create_time'
).
val
(
data
.
data
.
start_time
);
$
(
'#maintable_end_time'
).
val
(
data
.
data
.
end_time
);
//不点击 搜索按钮 初始化时间
realtime
.
time_search_start
=
$
(
'#maintable_create_time'
).
val
();
realtime
.
time_search_end
=
$
(
'#maintable_end_time'
).
val
();
//部门 门店 经纪人 排行 业绩总计
$
(
'.total-performance'
).
html
(
data
.
data
.
performance_total
);
$
(
'#realtime_city_choose'
).
show
();
//显示 业绩排行的城市筛选
//分页代码 后端返回total 值
add_page
(
data
.
data
.
total
,
pageNo
,
realtime
.
pageSize
,
realtime
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//获取站点 标签
getSiteTags
:
function
()
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getSiteList'
,
data
:
{},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
var
_str
=
'<option value="">城市筛选</option>'
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
"#realtime_city_choose"
).
html
(
_str
);
$
(
"#realtime_city_choose"
).
val
(
user_info_obj
.
site_id
);
//初始化 城市
realtime
.
getList
(
1
);
}
else
{
alert
(
_data
[
'msg'
]);
}
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
//初始化 城市
initializationCityFunction
:
function
(
params
)
{
$
.
ajax
({
url
:
'/index/getCurrentCity'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
$
(
'#realtime_city_choose'
).
val
(
data
.
data
.
city
);
realtime
.
getList
(
1
);
}
});
},
//获取门店排行详情
getListStore
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
realtime
.
pageSize
,
'father_id'
:
realtime
.
district_id
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'order'
:
realtime
.
order_ranking
};
console
.
log
(
realtime
.
district_id
);
$
.
ajax
({
type
:
'GET'
,
url
:
'/office_index/selectStorePerformance'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'store_list_tpl'
).
innerHTML
);
$
(
"#store_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#rank_start_day_store'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_end_day_store'
).
html
(
data
.
data
.
end_time
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//获取经纪人详情
getListAgent
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
realtime
.
pageSize
,
'father_id'
:
realtime
.
store_id
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'order'
:
realtime
.
order_ranking
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/office_index/selectIndividualPerformance'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tpl
=
realtime
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'agent_list_tpl'
).
innerHTML
);
$
(
"#agent_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#rank_start_day_agent'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_end_day_agent'
).
html
(
data
.
data
.
end_time
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//获取经纪人(点击弹窗里的 门店 获取的)详情
getListAgentTwo
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
realtime
.
pageSize
,
'father_id'
:
realtime
.
store_id_Two
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'order'
:
realtime
.
order_ranking
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/office_index/selectIndividualPerformance'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tpl
=
realtime
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'agent_list_two_tpl'
).
innerHTML
);
$
(
"#agent_details_list_two"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#rank_start_day_agent_two'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_end_day_agent_two'
).
html
(
data
.
data
.
end_time
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-业绩-弹出框-详情
getPerformanceDetails
:
function
(
pageNo
){
var
params
=
{
'district_id'
:
realtime
.
district_id
,
'store_id'
:
realtime
.
store_id
,
'agents_id'
:
realtime
.
agents_id
,
'create_time_start'
:
realtime
.
time_search_start
,
'create_time_end'
:
realtime
.
time_search_end
,
'pageNo'
:
1
,
'pageSize'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/performanceInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'performance_details_tpl'
).
innerHTML
);
$
(
"#performance_details_list"
).
html
(
doTtmpl
(
data
.
data
.
data
));
//获取统计时间
$
(
'#performance_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#performance_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-收款数-弹出框-详情
getDealDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
,
'request_source_type'
:
1
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/bargainSumPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'deal_number_details_tpl'
).
innerHTML
);
$
(
"#deal_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#deal_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#deal_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-收款数-弹出框-详情
getcollectionNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/paylogListPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'collection_number_details_tpl'
).
innerHTML
);
$
(
"#collection_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#collection_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#collection_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-进场-弹出框-详情
getapproachNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/marchInListPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'approach_number_details_tpl'
).
innerHTML
);
$
(
"#approach_number_details_list"
).
html
(
doTtmpl
(
data
.
data
.
date
));
//获取统计时间
$
(
'#approach_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#approach_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-报备-弹出框-详情
getreportedNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/marchInListPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reported_number_details_tpl'
).
innerHTML
);
$
(
"#reported_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#reported_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#reported_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-报备-弹出框-详情
getreportedNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/followListPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reported_number_details_tpl'
).
innerHTML
);
$
(
"#reported_number_details_list"
).
html
(
doTtmpl
(
data
.
data
.
date
));
//获取统计时间
$
(
'#reported_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#reported_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-新增房源-弹出框-详情
getnewshopNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/housingResourcePcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'newshop_number_details_tpl'
).
innerHTML
);
$
(
"#newshop_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#newshop_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#newshop_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-新增客户-弹出框-详情
getnewuserNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/userResourcePcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'newuser_number_details_tpl'
).
innerHTML
);
$
(
"#newuser_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#newuser_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#newuser_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//部门-团队-弹出框-详情
getteamNumberDetails
:
function
(
pageNo
){
var
params
=
{
'id'
:
realtime
.
district_store_agent_id
,
'type'
:
realtime
.
switchType
,
'start_time'
:
realtime
.
time_search_start
,
'end_time'
:
realtime
.
time_search_end
,
'AuthToken'
:
user_info_obj
.
AuthToken
,
'page_no'
:
1
,
'page_size'
:
9999
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/teamNumPcInfo'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'team_number_details_tpl'
).
innerHTML
);
$
(
"#team_number_details_list"
).
html
(
doTtmpl
(
data
.
data
));
//获取统计时间
$
(
'#team_details_time_start'
).
html
(
realtime
.
time_search_start
);
$
(
'#team_details_time_end'
).
html
(
realtime
.
time_search_end
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
getDistrict
:
function
(
fn
)
{
//调用接口 产生列表 部门
$
.
ajax
({
url
:
'/index/getDistrict'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
district_name
+
'</option>'
;
});
$
(
"#district_id"
).
append
(
str
);
fn
&&
fn
();
}
}
});
},
getDistrictStoreList
:
function
(
id
,
fn
){
$
.
ajax
({
url
:
'/index/getDistrictStoreList'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'id'
:
id
,
"pageSize"
:
1000
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
search_phone_agent
:
function
()
{
//客户列表 客方员工 姓名的下拉式搜索
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#user_agent_name"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphone-agent" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul-agent"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
addphoneAgent
:
function
(
obj
)
{
//客户列表 客方姓名 搜索 input赋值
var
user_ht
=
$
(
obj
).
html
();
$
(
"#user_agent_name"
).
val
(
user_ht
);
$
(
".user-ul-agent"
).
html
(
''
);
realtime
.
agent_id_choose
=
$
(
obj
).
attr
(
"data-id"
);
},
bargaininfoShow
:
function
()
{
//报告详情
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
realtime
.
bargain_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
realtime
.
detail_shop_id
=
data
.
data
.
house_id
;
realtime
.
detail_user_id
=
data
.
data
.
user_id
;
$
(
'#bargaininfo_id_span'
).
html
(
data
.
data
.
id
);
$
(
'#bargaininfo_shop_type'
).
html
(
data
.
data
.
shop_type
==
'1'
?
'街铺'
:
'商场'
);
$
(
'#bargaininfo_is_open'
).
val
(
data
.
data
.
is_open
);
$
(
'#bargaininfo_beizhu'
).
val
(
data
.
data
.
content
);
$
(
"#bargaininfo_user_phone"
).
html
(
hideTel
(
data
.
data
.
user_phone
));
$
(
"#bargaininfo_user_name"
).
html
(
data
.
data
.
user_name
);
$
(
"#bargaininfo_internal_address"
).
html
(
data
.
data
.
internal_address
);
$
(
"#bargaininfo_shop_num"
).
html
(
data
.
data
.
house_number
);
$
(
"#bargaininfo_type"
).
val
(
data
.
data
.
trade_type
);
$
(
"#bargaininfo_total_commission"
).
val
(
data
.
data
.
commission
);
$
(
"#bargaininfo_create_time"
).
html
(
data
.
data
.
create_time
);
$
(
"#bargaininfo_expect_payback_time"
).
val
(
data
.
data
.
estimated_receipt_date
);
$
(
"#bargaininfo_yetai"
).
val
(
data
.
data
.
industry_type
);
$
(
"#bargaininfo_chengjiao_price"
).
val
(
data
.
data
.
price
);
realtime
.
maidTotalCommission
=
Number
(
data
.
data
.
commission
);
//总佣金
realtime
.
order_id
=
Number
(
data
.
data
.
order_id
);
//订单id
var
_inputAreaTempObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
if
(
data
.
data
.
practical_fee
){
if
(
data
.
data
.
practical_fee
.
length
>
0
){
_inputAreaTempObj
.
html
(
''
);
}
else
{
_inputAreaTempObj
.
html
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"></div><mark href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></mark></div>'
);
};
$
.
each
(
data
.
data
.
practical_fee
,
function
(
i
,
v
)
{
_inputAreaTempObj
.
append
(
'<div data-id="{id}" class="form-group detail-modal-bargaininfo-commission-sec"><label class="">实收佣金:</label><div class="input-group"><input type="number"class="form-control"placeholder="请输入"value="{0}"><div class="input-group-addon">元</div></div><label class="">收佣日期:</label><div class="input-group"><input type="date"class="form-control"placeholder="请输入"value="{1}"></div></div>'
.
stringFormatObj
({
'0'
:
v
.
money
,
'1'
:
v
.
income_time
,
'id'
:
v
.
fee_id
}));
});
};
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
maidShow
:
function
()
{
$
(
'#maid_new_btn'
).
hide
();
//默认隐藏新增按钮
$
(
"#maid_new_table_list"
).
html
(
''
);
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/commissionList'
,
data
:
{
'id'
:
realtime
.
bargain_id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
$
(
"#maid_new_table_list"
).
html
(
doT
.
template
(
$
(
'#reportList_maid_list_tpl'
).
html
())(
_data
));
var
_isShowAddBtnFlag
=
true
;
$
.
each
(
$
(
'.detail-modal-maid-span-time'
),
function
(
i
,
v
)
{
if
(
v
.
innerHTML
){
_isShowAddBtnFlag
=
false
;
};
});
//如果确认时间都有,都不为空,则把新增按钮显示出来
if
(
_isShowAddBtnFlag
){
$
(
'#maid_new_btn'
).
show
();
};
realtime
.
maidCount
(
2
);
//计算合计的内容
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
// 开票税费
taxShow
:
function
()
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getTallAge'
,
data
:
{
'bargain_id'
:
realtime
.
bargain_id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
$
(
"#tax_main_box"
).
html
(
doT
.
template
(
$
(
'#reportList_shuiFee_list_tpl'
).
html
())(
_data
.
data
));
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
maidCount
:
function
(
type
){
//计算每个实收佣金
var
_rateTotal
=
0
;
//分佣比例
var
_yingfenTotal
=
0
;
//应分佣金
var
_yufenTotal
=
0
;
//预分佣金
var
_shouxuTotal
=
0
;
//手续费
var
_cishanTotal
=
0
;
//慈善基金
var
_xianjinTotal
=
0
;
//现金奖
var
_shishouTotal
=
0
;
//实收佣金
//计算实收佣金
if
(
type
===
1
){
//如果是而类型1,则计算每个实收佣金,和合计
$
.
each
(
$
(
'.detail-modal-maid-span-practical-fee'
),
function
(
i
,
v
)
{
var
_vObj
=
$
(
v
);
var
a
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-real-fee'
).
html
());
//预分佣金
var
b
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-service-charge'
).
html
());
//手续费
var
c
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-charity-fund'
).
html
());
//慈善基金
var
d
=
Number
(
_vObj
.
parent
().
find
(
'.detail-modal-maid-span-cash'
).
html
());
//现金奖
var
_smallTotal
=
dealJineNum
(
a
-
b
-
c
-
d
);
_shishouTotal
+=
_smallTotal
;
_vObj
.
html
(
_smallTotal
);
});
$
(
'#maid_count_total_shishou'
).
html
(
dealJineNum
(
_shishouTotal
));
}
else
if
(
type
===
2
){
//如果是类型2,则直接计算合计
$
.
each
(
$
(
'.detail-modal-maid-span-practical-fee'
),
function
(
i
,
v
)
{
_shishouTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_shishou'
).
html
(
dealJineNum
(
_shishouTotal
));
}
else
{}
//计算分佣比例
$
.
each
(
$
(
'.detail-modal-maid-span-scale'
),
function
(
i
,
v
)
{
_rateTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_rate'
).
html
(
_rateTotal
+
'%'
);
//计算应分佣金
$
.
each
(
$
(
'.detail-modal-maid-td-should-commission'
),
function
(
i
,
v
)
{
_yingfenTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_yingfen'
).
html
(
dealJineNum
(
_yingfenTotal
));
//计算预分佣金
$
.
each
(
$
(
'.detail-modal-maid-span-real-fee'
),
function
(
i
,
v
)
{
_yufenTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_yufen'
).
html
(
dealJineNum
(
_yufenTotal
));
//计算手续费
$
.
each
(
$
(
'.detail-modal-maid-span-service-charge'
),
function
(
i
,
v
)
{
_shouxuTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_shouxu'
).
html
(
dealJineNum
(
_shouxuTotal
));
//计算慈善基金
$
.
each
(
$
(
'.detail-modal-maid-span-charity-fund'
),
function
(
i
,
v
)
{
_cishanTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_cishan'
).
html
(
dealJineNum
(
_cishanTotal
));
//计算现金奖
$
.
each
(
$
(
'.detail-modal-maid-span-cash'
),
function
(
i
,
v
)
{
_xianjinTotal
+=
Number
(
$
(
v
).
html
());
});
$
(
'#maid_count_total_xianjin'
).
html
(
dealJineNum
(
_xianjinTotal
));
},
// 获取客户详情
Caozuo
:
function
()
{
//获取跟进详情的数据
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/useraction_search'
,
data
:
{
"user_id"
:
realtime
.
detail_user_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
$
(
".user_pic"
).
attr
(
'src'
,
data
.
data
.
user_info
.
user_pic
);
//头像
$
(
".user_pic"
).
attr
(
'data-bimg'
,
data
.
data
.
user_info
.
user_pic
);
//鼠标放上去放大头像
$
(
".registration_time"
).
html
(
data
.
data
.
user_info
.
registration_time
);
$
(
".firstlogin_time"
).
html
(
data
.
data
.
user_info
.
first_login_time
);
//第一次登陆时间
$
(
".sex"
).
val
(
data
.
data
.
user_info
.
sex
);
//性别
$
(
".user_vip2"
).
val
(
data
.
data
.
user_info
.
vip
);
//是否vip
$
(
".cus_phone"
).
html
(
hideTel
(
data
.
data
.
user_info
.
user_phone
));
//电话
$
(
".cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//创建时间
$
(
".referrer_user"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//上传时间
$
(
".cus_fang_edit"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方详情
$
(
".cus_fang"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方编辑
$
(
"select[name=industry_type_two]"
).
val
(
data
.
data
.
user_info
.
industry_type
);
$
(
"input[name=price_demand]"
).
val
(
data
.
data
.
user_info
.
price_demand
*
1
);
$
(
"input[name=area_demand]"
).
val
(
data
.
data
.
user_info
.
area_demand
*
1
);
$
(
".user_details_label"
).
val
(
data
.
data
.
user_info
.
user_label
);
//客方详情 标签
$
(
".user_details_city"
).
html
(
data
.
data
.
user_info
.
city
+
data
.
data
.
user_info
.
disc
);
//客方详情 城市
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
if
(
data
.
data
.
user_info
.
source
==
10
)
{
$
(
".source_type"
).
html
(
'APP注册'
);
//客方
}
if
(
data
.
data
.
user_info
.
source
==
20
)
{
$
(
".source_type"
).
html
(
'经纪人新增'
);
}
if
(
data
.
data
.
user_info
.
source
==
30
)
{
$
(
".source_type"
).
html
(
'老数据报备客户'
);
}
if
(
data
.
data
.
user_info
.
user_label
==
1
)
{
$
(
".user_details_label"
).
html
(
'是租客也是房东'
);
$
(
"#user_label_edit"
).
val
(
1
);
}
if
(
data
.
data
.
user_info
.
user_label
==
2
)
{
$
(
".user_details_label"
).
html
(
'纯房东'
);
$
(
"#user_label_edit"
).
val
(
2
);
}
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
}
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
//获取 客户跟进信息
getGenjincon
:
function
()
{
//获取客户动态
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
checkLogin
();
$
.
ajax
({
url
:
'/broker/useraction_search'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
,
"user_id"
:
realtime
.
detail_user_id
,
"agent_id"
:
user_info_obj
.
id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
//客户动态 即跟进
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_date'
],
function
(
i
,
item
)
{
if
(
item
.
step_name
==
'report'
){
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
item
.
step
+
'到场时间:'
+
item
.
predict_see_time
+
'备注:'
+
item
.
intro
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
}
else
{
caozuo_table
+=
'<tr><td class="text-left follow-up-home" width="70%">'
+
item
.
step
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
}
});
if
(
caozuo_table
){
$
(
"#caozuo_table2"
).
html
(
caozuo_table
);
}
else
{
$
(
"#caozuo_table2"
).
html
(
'暂无跟进信息'
);
}
//滚动条 回到顶部
$
(
'.followup-modal-list-area'
).
scrollTop
(
0
);
}
}
});
},
//获取商铺跟进记录
getFollowupList
:
function
(){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
'type'
:
'get'
,
'url'
:
'/broker/getListByHouseId'
,
data
:
{
'house_id'
:
realtime
.
detail_shop_id
,
'AuthToken'
:
user_info_obj
.
AuthToken
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
&&
Array
.
isArray
(
data
.
data
)
&&
data
.
data
.
length
>
0
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
.
data
,
function
(
i
,
v
)
{
_htmlTemp
+=
'<tr><td>{0}</td><td>{1}</td><td>{2}</td></tr>'
.
stringFormatObj
({
'0'
:
dealPunctuation
(
v
.
step
),
'1'
:
v
.
agent_name
,
'2'
:
v
.
create_time
})
});
$
(
'#modal_followup_table_list'
).
html
(
_htmlTemp
);
}
else
{
$
(
'#modal_followup_table_list'
).
html
(
'<tr><td>暂无数据</td></tr>'
);
}
}
else
{
alert
(
'请登录!'
);
}
}
});
},
};
return
realtime
;
});
\ No newline at end of file
public/resource/template/real_time_performance_office_template_tpl.html
0 → 100644
View file @
350ee809
<!--部门业绩排行-->
<script
id=
"realtimePerformance_list_tpl_one"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
class
=
"maintable-tr-bar"
>
<
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"
>
业绩(元)
<
span
class
=
"glyphicon glyphicon-triangle-bottom positive-sequence-yeji"
><
/span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></
span
><
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['district_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"store-ranking"
href
=
"#modal-store"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'district_name'
]
%
]
<
/a
>
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"team-number-details performance-district-click"
href
=
"#modal-team-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'team_num'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-district-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-district-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details performance-district-click"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details performance-district-click"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details performance-district-click"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details performance-district-click"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--门店业绩排行-->
<script
id=
"realtimePerformance_list_tpl_two"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
class
=
"maintable-tr-bar"
>
<
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"
>
业绩(元)
<
span
class
=
"glyphicon glyphicon-triangle-bottom positive-sequence-yeji"
><
/span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></
span
><
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"agent-ranking"
href
=
"#modal-agent"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/a
>
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"team-number-details"
href
=
"#modal-team-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'team_num'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-store-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-store-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details performance-store-click"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details performance-store-click"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details performance-store-click"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details performance-store-click"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-store-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--个人业绩排行-->
<script
id=
"realtimePerformance_list_tpl_three"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
class
=
"maintable-tr-bar"
>
<
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"
>
业绩(元)
<
span
class
=
"glyphicon glyphicon-triangle-bottom positive-sequence-yeji"
><
/span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></
span
><
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
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
][
'followUp_sum_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-person-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['agent_id'] %]"
>
[
%=
it
[
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-person-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['agent_id'] %]"
>
[
%=
it
[
item
][
'add_house_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
=
"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
=
"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
=
"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
=
"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
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-门店业绩-->
<script
id=
"store_list_tpl"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"store-ranking-two"
href
=
"#modal-agent-two"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'store_name'
]
%
]
<
/a
>
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-store-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details performance-store-click"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details performance-store-click"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details performance-store-click"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details performance-store-click"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-store-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-store-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"team-number-details performance-store-click"
href
=
"#modal-team-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['store_id'] %]"
>
[
%=
it
[
"list"
][
item
][
'team_num'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--门店-个人业绩 -->
<script
id=
"agent_list_tpl"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'index_'
]
%
]
<
/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"
><
a
class
=
"performance-number-details performance-person-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-person-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-person-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-门店-个人 -->
<script
id=
"agent_list_two_tpl"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'index_'
]
%
]
<
/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"
><
a
class
=
"performance-number-details performance-person-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
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['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-person-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-person-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it['list'][item]['agent_id'] %]"
>
[
%=
it
[
'list'
][
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-业绩 -->
<!--门店-业绩 -->
<!--个人-业绩 -->
<script
id=
"performance_details_tpl"
type=
"text/template"
>
[
%
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
%
]
[
%
var
sw
=
function
(
s
){
switch
(
Number
(
s
)){
case
10
:
return
"出租"
;
case
20
:
return
"增佣"
;
case
30
:
return
"代理"
;
case
40
:
return
"好处费"
;
default
:
return
s
}};
%
]
[
%
if
(
it
[
0
])
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
成交报告
ID
<
/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
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['bargain_id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'commission_id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
sw
(
it
[
item
][
'trade_type'
])
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
hideStr
(
it
[
item
][
'landmark'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'house_id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'district_name'
]
+
'-'
+
it
[
item
][
'store_name'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'scale'
]
%
]
%<
/td
>
<
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'
)
||
(
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]["bargain_id"] %]'
>
详情
<
/a
>
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a>--
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-成交单数 -->
<!--门店-成交单数 -->
<!--个人-成交单数 -->
<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
>
<
th
class
=
"text-center"
>
成交报告
ID
<
/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
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['bargain_id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/a></
td
>
<
td
class
=
"text-left"
>
[
%=
hideStr
(
it
[
item
][
'internal_address'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
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'
)
||
(
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]["bargain_id"] %]'
>
详情
<
/a
>
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a>--
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-收款数 -->
<!--门店-收款数 -->
<!--个人-收款数 -->
<script
id=
"collection_number_details_tpl"
type=
"text/template"
>
[
%
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
>
<
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
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
swType
(
it
[
item
][
'type'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
swPayType
(
it
[
item
][
'pay_type'
])
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'house_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-进场数 -->
<!--门店-进场数 -->
<!--个人-进场数 -->
<script
id=
"approach_number_details_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
[
0
])
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/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"
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td>--
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-报备数 -->
<!--门店-报备数 -->
<!--个人-报备数 -->
<script
id=
"reported_number_details_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
[
0
])
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'report_agent_name'
]
%
]
<
/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"
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td>--
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-新增商铺数 -->
<!--门店-新增商铺数 -->
<!--个人-新增商铺数 -->
<script
id=
"newshop_number_details_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
[
0
])
{
%
]
<
tr
>
<
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
>
[
%
for
(
var
item
in
it
){
%
]
[
%
if
(
it
[
item
][
"status"
]
!=
3
)
{
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
}
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideStr
(
it
[
item
][
'internal_title'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%
if
(
it
[
item
][
'rent_type'
]
==
1
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
%
[
%
}
else
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
天
/
㎡
[
%
}
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
+
'-'
+
it
[
item
][
"shop_area_end"
]
%
]
㎡
[
%
}
else
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
%
]
㎡
[
%
}
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
item
][
'industry_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'last_phone_follow_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"status"
]
==
1
)
{
%
]
上架
[
%
}
else
if
(
it
[
item
][
"status"
]
==
2
){
%
]
下架
[
%
}
else
{
%
]
回收
[
%
}
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-新增客户 -->
<!--门店-新增客户 -->
<!--个人-新增客户 -->
<script
id=
"newuser_number_details_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
[
0
])
{
%
]
<
tr
>
<
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
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'last_phone_follow_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%
if
(
it
[
item
][
"user_status"
]
==
0
)
{
%
]
求租
[
%
}
else
if
(
it
[
item
][
"user_status"
]
==
1
)
{
%
]
已租
[
%
}
else
{
%
]
无效
[
%
}
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
item
][
'industry_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'area_demand'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-团队人数 -->
<!--门店-团队人数 -->
<!--个人-团队人数 -->
<script
id=
"team_number_details_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
[
0
])
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
注册时间
<
/th
>
<
th
class
=
"text-center"
>
用户
ID
<
/th
>
<
th
class
=
"text-center"
>
姓名
<
/th
>
<
th
class
=
"text-center"
>
手机号
<
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'phone'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/real_time_performance_template_tpl.html
View file @
350ee809
...
@@ -5,18 +5,15 @@
...
@@ -5,18 +5,15 @@
<
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
>
<
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"
>
业绩(元)
<
span
class
=
"glyphicon glyphicon-triangle-bottom positive-sequence-yeji"
><
/span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></
span
><
/th
>
<
th
class
=
"text-center"
>
业绩
(
商铺
+
办公楼
)
<
span
class
=
"glyphicon glyphicon-triangle-bottom positive-sequence-yeji"
><
/span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></
span
><
/th
>
<
th
class
=
"text-center"
>
业绩总
<
/th
>
<
th
class
=
"text-center"
>
实收
(
商铺
+
办公楼
)
<
/th
>
<
th
class
=
"text-center"
>
实收总
<
/th
>
<
/tr
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
id
=
"[%= it[item]['district_id'] %]"
>
<
tr
data
-
id
=
"[%= it[item]['district_id'] %]"
>
...
@@ -25,19 +22,13 @@
...
@@ -25,19 +22,13 @@
<
a
class
=
"store-ranking"
href
=
"#modal-store"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'district_name'
]
%
]
<
/a
>
<
a
class
=
"store-ranking"
href
=
"#modal-store"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'district_name'
]
%
]
<
/a
>
<
/td
>
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"team-number-details performance-district-click"
href
=
"#modal-team-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'team_num'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"team-number-details performance-district-click"
href
=
"#modal-team-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'team_num'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'followUp_sum_total'
]
%
]
+
[
%=
it
[
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'followUp_sum_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-district-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newuser-number-details performance-district-click"
href
=
"#modal-newuser-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_user_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-district-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-district-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details performance-district-click"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details performance-district-click"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details performance-district-click"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details performance-district-click"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a>+<a class="reported-number-details performance-district-click" href="#modal-reported-number-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]">
[
%= it[item
][
'look_at_num_total'
]
%]</
a
><
/td>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details performance-district-click"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details performance-district-click"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a>+<a class="approach-number-details performance-district-click" href="#modal-approach-number-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]">
[
%= it[item
][
'march_in_num_total'
]
%]</
a
><
/td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details performance-district-click"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details performance-district-click"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a>+<a class="collection-number-details performance-district-click" href="#modal-collection-number-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]">
[
%= it[item
][
'paylog_total'
]
%]</
a
><
/td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details performance-district-click"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a>+<a class="deal-number-details performance-district-click" href="#modal-deal-number-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]">
[
%= it[item
][
'bargain_sum_total'
]
%]</
a
><
/td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a>+<a class="performance-number-details performance-district-click" href="#modal-performance-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]" >
[
%= it[item
][
'performance_total'
]
%]</
a
><
/td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a>+<a class="performance-number-details performance-district-click" href="#modal-performance-details" data-toggle="modal" data-id="
[
%= it[item
][
'district_id'
]
%]" >
[
%= it[item
][
'performance_total'
]
%]</
a
><
/td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"performance-number-details performance-district-click"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a></
td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment