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
35d91bb7
Commit
35d91bb7
authored
Aug 24, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩排行修改
parent
32c28f43
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
901 additions
and
39 deletions
+901
-39
realtimePerformance.html
application/index/view/realtime/realtimePerformance.html
+188
-0
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+3
-8
callPhoneIndex.js
public/resource/js/callPhoneIndex.js
+3
-5
myCollectionUserList.js
public/resource/js/myCollectionUserList.js
+3
-8
realtimePerformance.js
public/resource/js/realtimePerformance.js
+381
-2
user.js
public/resource/js/user.js
+3
-8
view_bargain.js
public/resource/js/view_bargain.js
+223
-0
commission_template_tpl.html
public/resource/template/commission_template_tpl.html
+2
-2
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+95
-6
No files found.
application/index/view/realtime/realtimePerformance.html
View file @
35d91bb7
...
...
@@ -169,6 +169,29 @@
</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"
>
...
...
@@ -329,3 +352,167 @@
</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>
商铺类型:
</span>
<span
id=
"bargaininfo_shop_type"
></span>
<br
/>
<span>
商铺地址:
</span><span
id=
"bargaininfo_internal_address"
></span><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>
<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><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"
>
分佣方
</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"
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>
</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>
\ No newline at end of file
public/resource/js/RemarkFollowIndex.js
View file @
35d91bb7
...
...
@@ -1320,17 +1320,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
"#user_label_edit"
).
val
(
2
);
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
...
...
public/resource/js/callPhoneIndex.js
View file @
35d91bb7
...
...
@@ -1252,14 +1252,12 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'css!style/home.css', 'c
$
(
"#user_label_edit"
).
val
(
2
);
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
}
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
...
...
public/resource/js/myCollectionUserList.js
View file @
35d91bb7
...
...
@@ -1315,17 +1315,12 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
$
(
"#user_label_edit"
).
val
(
2
);
};
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
...
...
public/resource/js/realtimePerformance.js
View file @
35d91bb7
define
([
'doT'
,
'text!temp/real_time_performance_template_tpl.html'
,
'
css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
define
([
'doT'
,
'text!temp/real_time_performance_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
)
{
realtime
=
{
pageNo
:
1
,
/*第几页*/
...
...
@@ -10,11 +10,17 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
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
:
''
,
district_store_agent_id
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
+
template_tax
);
realtime
.
getList
(
1
);
realtime
.
event
();
},
...
...
@@ -80,6 +86,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
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
);
//一级审核搜索
});
//正序
...
...
@@ -102,6 +110,56 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
document
.
getElementById
(
"maintable_form_search"
).
reset
();
realtime
.
is_today_yeji
=
0
;
});
//部门-业绩-弹出框
_doc
.
on
(
'click'
,
'.performance-number-details'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
realtime
.
switchTypeId
();
realtime
.
getPerformanceDetails
(
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'
,
'.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
);
});
},
...
...
@@ -131,6 +189,38 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return
''
;
}
},
//获取1表示个人业绩排行 2门店 3区域
switchType
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
3
;
case
1
:
return
2
;
case
2
:
return
1
;
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"
);
};
},
//获取部门业绩 门店业绩 个人业绩 的共用方法
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
...
...
@@ -164,6 +254,12 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
//获取统计时间
$
(
'#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
();
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
realtime
.
pageSize
,
realtime
.
getList
);
...
...
@@ -322,7 +418,289 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
};
}
});
},
//部门-业绩-弹出框-详情
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
};
$
.
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
(
'请求超时'
);
};
}
});
},
//部门-收款数-弹出框-详情
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
};
$
.
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
(
'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
(
'请求超时'
);
};
}
});
},
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
)
{
$
(
'#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
));
},
};
return
realtime
;
});
\ No newline at end of file
public/resource/js/user.js
View file @
35d91bb7
...
...
@@ -1504,17 +1504,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"#user_label_edit"
).
val
(
2
);
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
);
//转介绍编辑
if
(
data
.
data
.
user_invite_info
.
referrer_source
==
10
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
var
caozuo_table
=
""
;
...
...
public/resource/js/view_bargain.js
0 → 100644
View file @
35d91bb7
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
order_id
:
0
,
//订单id
panfangData
:
null
,
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
bargain
.
getList
(
1
);
bargain
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//主页面一级审核,二级审核,三级审核,结单四个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'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
//点击详情按钮事件,获取报告详情
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
bargain
.
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'
);
bargain
.
detailTabIndex
=
0
;
$
(
'.detail-modal-body-sec:nth-of-type(1)'
).
show
().
siblings
().
hide
();
bargain
.
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'
);
bargain
.
detailTabIndex
=
_this
.
index
();
$
(
'.detail-modal-body-sec:nth-of-type('
+
(
bargain
.
detailTabIndex
+
1
)
+
')'
).
show
().
siblings
().
hide
();
if
(
bargain
.
detailTabIndex
==
0
){
bargain
.
bargaininfoShow
();
}
else
if
(
bargain
.
detailTabIndex
==
1
){
bargain
.
maidShow
();
}
else
{
bargain
.
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
);
});
var
_doc
=
$
(
document
);
Timeline
:
function
()
{
//获取时间轴
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/selectReportAll'
,
data
:
{
"order_id"
:
bargain
.
bargain_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
console
.
log
(
data
.
data
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
bargaininfoShow
:
function
()
{
//报告详情
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
bargain
.
bargain_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
$
(
'#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
);
bargain
.
maidTotalCommission
=
Number
(
data
.
data
.
commission
);
//总佣金
bargain
.
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'
:
bargain
.
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
();
};
bargain
.
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'
:
bargain
.
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
(
'请求超时,请重试'
);
};
}
});
},
};
return
bargain
;
});
\ No newline at end of file
public/resource/template/commission_template_tpl.html
View file @
35d91bb7
<script
id=
"commission_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
[
0
]
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
data
-
id
=
"[%= it[item]['bargain_id'] %]"
data
-
orderid
=
"[%= it[item]['order_id'] %]"
data
-
fatherid
=
"[%= it[item]['father_id'] %]"
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
...
...
@@ -19,7 +19,7 @@
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
9
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
public/resource/template/real_time_performance_template_tpl.html
View file @
35d91bb7
...
...
@@ -19,9 +19,9 @@
<
td
class
=
"text-center"
>
<
a
class
=
"store-ranking"
href
=
"#modal-store"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['district_id'] %]"
>
[
%=
it
[
item
][
'district_name'
]
+
'-'
+
it
[
item
][
'name'
]
%
]
<
/a
>
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"performance-number-details"
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
=
"deal-number-details"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
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"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
...
...
@@ -60,9 +60,9 @@
<
td
class
=
"text-center"
>
<
a
class
=
"agent-ranking"
href
=
"#modal-agent"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'district_name'
]
+
'-'
+
it
[
item
][
'store_name'
]
+
'-'
+
it
[
item
][
'name'
]
%
]
<
/a
>
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"performance-number-details"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['store_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a>
</
td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
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
=
"approach-number-details"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
...
...
@@ -97,9 +97,9 @@
<
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
][
'performance_total'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"performance-number-details"
href
=
"#modal-performance-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['agent_id'] %]"
>
[
%=
it
[
item
][
'performance_total'
]
%
]
<
/a>
</
td
>
<
td
class
=
"text-center"
><
a
class
=
"deal-number-details"
href
=
"#modal-deal-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'bargain_sum_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"collection-number-details"
href
=
"#modal-collection-number-details"
data
-
toggle
=
"modal"
data
-
id
=
"[%= it[item]['agent_id'] %]"
>
[
%=
it
[
item
][
'paylog_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"approach-number-details"
href
=
"#modal-approach-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'march_in_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"reported-number-details"
href
=
"#modal-reported-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'look_at_num_total'
]
%
]
<
/a></
td
>
<
td
class
=
"text-center"
><
a
class
=
"newshop-number-details"
href
=
"#modal-newshop-number-details"
data
-
toggle
=
"modal"
>
[
%=
it
[
item
][
'add_house_num_total'
]
%
]
<
/a></
td
>
...
...
@@ -231,6 +231,51 @@
[
%
}
%
]
</script>
<!--部门-业绩 -->
<!--门店-业绩 -->
<!--个人-业绩 -->
<script
id=
"performance_details_tpl"
type=
"text/template"
>
[
%
if
(
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
>
<
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
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'trade_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
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"
>
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal_detail"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-success timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--部门-成交单数 -->
<!--门店-成交单数 -->
<!--个人-成交单数 -->
...
...
@@ -269,4 +314,48 @@
[
%
}
%
]
</script>
<!--部门-收款数 -->
<!--门店-收款数 -->
<!--个人-收款数 -->
<script
id=
"collection_number_details_tpl"
type=
"text/template"
>
[
%
if
(
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
>
<
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
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'trade_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
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"
>
<
a
class
=
"btn1 btn-success timeline2"
href
=
"#modal-time2"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
查看详情
<
/a
>
<
a
class
=
"btn1 btn-success timeline2"
href
=
"#modal-time2"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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