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
5478019e
Commit
5478019e
authored
Aug 06, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩明细
parent
adc1c760
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
26 deletions
+34
-26
performancesubsidiaryList.html
...view/performancesubsidiary/performancesubsidiaryList.html
+4
-4
forgetSubmitFinancial.js
public/resource/js/forgetSubmitFinancial.js
+7
-12
performance_subsidiary.js
public/resource/js/performance_subsidiary.js
+21
-8
forgetSubmitFinancial_template_tpl.html
...resource/template/forgetSubmitFinancial_template_tpl.html
+2
-2
No files found.
application/index/view/performancesubsidiary/performancesubsidiaryList.html
View file @
5478019e
...
...
@@ -90,8 +90,8 @@
<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"
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_internal_address"
placeholder=
"
商铺
地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_shop_num"
placeholder=
"
商铺
编号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_internal_address"
placeholder=
"
房源
地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_shop_num"
placeholder=
"
房源
编号"
type=
"text"
value=
""
>
<!--<input class="form-control btn2" data-rule-phoneus="false" data-rule-required="false" id="maintable_user_phone" placeholder="客户电话" type="text" value="">-->
<select
name=
"district_id"
class=
"form-control btn4"
>
<option
value=
""
>
分佣方所在部门
</option>
...
...
@@ -127,8 +127,8 @@
<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>
...
...
public/resource/js/forgetSubmitFinancial.js
View file @
5478019e
...
...
@@ -32,7 +32,8 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
_objTemp
.
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
bargain
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">全部</option>'
;
// var _str = '<option value="">全部</option>';
var
_str
=
''
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_name
+
'</option>'
;
});
...
...
@@ -87,16 +88,11 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
params
.
end_time
=
$
(
'#end_time'
)
.
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
params
.
bargain_id
=
$
(
'#bargain_id'
).
val
();
params
.
partial_id
=
bargain
.
agent_id_phone
;
//分佣方姓名 下拉式 搜索
params
.
district_id
=
$
(
"select[name='district_id'] option:selected"
).
val
();
//部门
params
.
daily_date
=
$
(
'#create_time'
)
.
val
();
// params.district_id = $("select[name='district_id'] option:selected").val();//部门 后端没有定义字段
params
.
store_id
=
$
(
"select[name='store_id'] option:selected"
).
val
();
//门店
$
.
ajax
({
url
:
'/index/
partialCommission
List'
,
//获取列表
url
:
'/index/
DailyUncommitted
List'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
...
...
@@ -105,10 +101,9 @@ define(['doT', 'text!temp/forgetSubmitFinancial_template_tpl.html', 'css!style/h
if
(
data
.
code
==
200
)
{
var
temp
=
document
.
getElementById
(
'forgetSubmitFinancial_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
data
.
list
));
$
(
"#money_total"
).
html
(
data
.
data
.
data
.
total_money
);
//实收总计
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
.
msg
);
}
...
...
public/resource/js/performance_subsidiary.js
View file @
5478019e
...
...
@@ -25,11 +25,17 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
$
(
this
).
index
();
//下标值
if
(
$
(
this
).
index
()
==
0
){
bargain
.
listUrl
=
'/index/performanceInfo'
;
//商铺
bargain
.
exportUrl
=
'/index/getPerformanceInfoExcel'
;
//商铺导出
}
else
if
(
$
(
this
).
index
()
==
1
){
bargain
.
listUrl
=
'/office_index/performanceInfo'
;
//办公楼
bargain
.
exportUrl
=
'/office_index/getPerformanceInfoExcel'
;
//办公楼导出
}
bargain
.
getList
(
1
);
});
//成交报告详情 点击商铺 查看商铺详情
_doc
.
on
(
'click'
,
'a[href="#modal_shop_detail"]'
,
function
(
e
){
...
...
@@ -73,7 +79,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
_doc
.
on
(
'click'
,
'.details-btn'
,
function
()
{
var
_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
_id
;
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc?orderid='
+
_id
).
load
;
if
(
bargain
.
mainTabIndex
==
0
){
//商铺
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc?otherbtn=no&orderid='
+
_id
).
load
;
}
else
{
//办公楼
$
(
'.iframe-bargaininfo-static'
).
attr
(
'src'
,
'/app_broker/bargaininfo_detail_static_pc_office?orderid='
+
_id
+
'&otherbtn=no'
).
load
;
}
});
...
...
@@ -83,8 +94,12 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
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
);
if
(
bargain
.
mainTabIndex
==
0
){
//商铺
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
_id
);
}
else
{
//办公楼
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc_financial?order_id='
+
_id
);
}
});
var
_doc
=
$
(
document
);
...
...
@@ -156,7 +171,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
var
name
=
$
(
'#agent_name'
).
val
();
var
phone
=
$
(
'#agent_phone'
).
val
();
var
bargain_id
=
$
(
'#bargain_id'
).
val
();
window
.
open
(
'/index/getPerformanceInfoExcel
?'
+
'shop_type='
+
shop_type
+
'&trade_type='
+
trade_type
+
'&create_time_start='
+
create_time_start
+
'&create_time_end='
+
create_time_end
+
'&landmark='
+
landmark
+
'&house_id='
+
house_id
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&name='
+
name
+
'&phone='
+
phone
);
window
.
open
(
bargain
.
exportUrl
+
'
?'
+
'shop_type='
+
shop_type
+
'&trade_type='
+
trade_type
+
'&create_time_start='
+
create_time_start
+
'&create_time_end='
+
create_time_end
+
'&landmark='
+
landmark
+
'&house_id='
+
house_id
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&name='
+
name
+
'&phone='
+
phone
);
},
// 获取客户详情
Caozuo
:
function
()
{
//获取跟进详情的数据
...
...
@@ -318,7 +333,7 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/performanceInfo'
,
//获取业绩明细列表
url
:
bargain
.
listUrl
,
//获取业绩明细列表
data
:
params
,
dataType
:
'json'
,
beforeSend
:
function
()
{
...
...
@@ -333,8 +348,6 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
$
(
'#performance_subsidiary_total'
).
html
(
data
.
data
.
scale_fee_sum
);
$
(
'#performance_subsidiary_total2'
).
html
(
data
.
data
.
real_fee
);
$
(
'#performance_subsidiary_total3'
).
html
((
data
.
data
.
scale_fee_sum
*
1
-
data
.
data
.
real_fee
*
1
).
toFixed
(
2
));
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
...
...
public/resource/template/forgetSubmitFinancial_template_tpl.html
View file @
5478019e
...
...
@@ -2,8 +2,8 @@
[
%
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
][
'
scale_fe
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
practical_fe
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
daily_dat
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
store_nam
e'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
...
...
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