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
8c1954a8
Commit
8c1954a8
authored
Apr 27, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务修改
parent
10f20785
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
179 additions
and
34 deletions
+179
-34
index.html
application/index/view/finance/index.html
+88
-9
reportList.js
public/resource/js/reportList.js
+91
-25
No files found.
application/index/view/finance/index.html
View file @
8c1954a8
...
@@ -20,18 +20,35 @@
...
@@ -20,18 +20,35 @@
.left
{
.left
{
float
:
left
;
float
:
left
;
width
:
340px
;
width
:
340px
;
line-height
:
3
0
px
;
line-height
:
3
6
px
;
}
}
.right
{
.right
{
line-height
:
3
0
px
;
line-height
:
3
6
px
;
}
}
.btn_2
{
.btn_2
{
width
:
60px
;
width
:
60px
;
display
:
inline-block
;
display
:
inline-block
;
height
:
26px
;
height
:
26px
;
padding
:
3px
6px
padding
:
3px
6px
}
}
.edit_new
{
float
:
right
;
margin-bottom
:
5px
;
margin-top
:
-10px
;
}
.form-control-one
{
display
:
inline-block
;
width
:
40%
;
}
#form_search
{
line-height
:
48px
;
}
.modal-body-two
{
height
:
500px
;
overflow-y
:
scroll
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -39,7 +56,7 @@
...
@@ -39,7 +56,7 @@
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
成交报告-未接单
</a></li>
<li><a
href=
"#"
>
成交报告-未接单
8
</a></li>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
...
@@ -91,11 +108,11 @@
...
@@ -91,11 +108,11 @@
</button>
</button>
<h4
class=
"modal-title"
>
<h4
class=
"modal-title"
>
<span
class=
"btn btn-info"
id=
"information"
>
成交信息
</span>
<span
class=
"btn btn-info"
id=
"information"
>
成交信息
</span>
<span
class=
"btn btn-
inf
o"
id=
"fees"
>
分佣提成
</span>
<span
class=
"btn btn-
default caozu
o"
id=
"fees"
>
分佣提成
</span>
<span
class=
"btn btn-
info
"
id=
"records"
>
收款记录
</span>
<span
class=
"btn btn-
default
"
id=
"records"
>
收款记录
</span>
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body
modal-body-two
"
>
<div
class=
"Tswitch"
>
<div
class=
"Tswitch"
>
<div
class=
"left"
>
<div
class=
"left"
>
<span>
商铺地址:
</span><span
class=
"internal_address"
></span><br>
<span>
商铺地址:
</span><span
class=
"internal_address"
></span><br>
...
@@ -108,8 +125,27 @@
...
@@ -108,8 +125,27 @@
<span>
客户电话:
</span><span
class=
"user_phone"
></span><br>
<span>
客户电话:
</span><span
class=
"user_phone"
></span><br>
<span>
提交日期:
</span><span
class=
"create_time"
></span><br>
<span>
提交日期:
</span><span
class=
"create_time"
></span><br>
</div>
</div>
<input
type=
"hidden"
class=
"page-pass"
/>
</div>
</div>
<div
class=
"Tswitch Tswitch_one"
>
分佣提成
<br>
<div
class=
"Tswitch Tswitch_one"
>
<!--分佣提成-->
<a
class=
"btn btn-success edit_new"
href=
"#modal-new"
data-toggle=
"modal"
>
新增
</a>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"caozuo_hide"
>
<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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"caozuo_table"
>
</table>
<!--分佣提成-->
</div>
</div>
<div
class=
"Tswitch Tswitch_two"
>
收款记录
</div>
<div
class=
"Tswitch Tswitch_two"
>
收款记录
</div>
...
@@ -201,13 +237,56 @@
...
@@ -201,13 +237,56 @@
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"
confirm_delete
"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"
"
>
删除
删除
</button>
</button>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- /.modal -->
</div>
</div>
<!-- 分佣提成新增 -->
<div
class=
"modal fade"
id=
"modal-new"
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"
>
<div
class=
"modal-body"
id=
""
>
<!-- 新增分佣提成 -->
<form
id=
"form_search"
>
分佣方:
<select
class=
"form-control form-control-one"
id=
"is_carefully_chosen"
>
<option
value=
"0"
>
请选择
</option>
<option
value=
"1"
>
盘方
</option>
<option
value=
"2"
>
客方
</option>
<option
value=
"3"
>
反签
</option>
<option
value=
"4"
>
独家
</option>
<option
value=
"5"
>
合作方
</option>
</select><br>
<span>
业务员:
</span><input
class=
"form-control form-control-one"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
" "
placeholder=
""
type=
"text"
value=
""
><br>
<span>
所属门店:
</span><input
class=
"form-control form-control-one"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
" "
placeholder=
""
type=
"text"
value=
""
><br>
<span>
分佣比例:
</span><input
class=
"form-control form-control-one"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"commission-rate"
placeholder=
""
type=
"text"
value=
""
><br>
<span>
应分佣金:
</span><input
class=
"form-control form-control-one"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"should-commission"
placeholder=
""
type=
"text"
value=
""
><br>
</form>
<!-- 新增分佣提成 -->
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
id=
"new-commission"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
public/resource/js/reportList.js
View file @
8c1954a8
...
@@ -36,10 +36,17 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -36,10 +36,17 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
follow
.
Edit
();
follow
.
Edit
();
});
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
confirmEdit
();
follow
.
confirmEdit
();
});
});
// =========三个按钮=========
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
Caozuo
();
});
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
newCommission
();
follow
.
Caozuo
();
});
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Information
();
follow
.
Information
();
});
});
...
@@ -48,9 +55,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -48,9 +55,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Records
();
follow
.
Records
();
});
});
// ===================
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
follow
.
Submit_follow
();
...
@@ -98,7 +103,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -98,7 +103,6 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
// 时间轴
Timeline
:
function
(){
//获取时间轴
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
...
@@ -116,8 +120,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -116,8 +120,10 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
// 编辑
Edit
:
function
(){
//报告详情
Edit
:
function
(){
//报告详情
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
'url'
:
'/index/bargainInfo'
,
...
@@ -125,8 +131,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -125,8 +131,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
if
(
data
.
data
)
{
console
.
log
(
data
.
data
.
commission
);
$
(
".create_time"
).
html
(
data
.
data
.
create_time
);
$
(
".create_time"
).
html
(
data
.
data
.
create_time
);
$
(
".user_phone"
).
html
(
data
.
data
.
user_phone
);
$
(
".user_phone"
).
html
(
data
.
data
.
user_phone
);
$
(
".user_name"
).
html
(
data
.
data
.
user_name
);
$
(
".user_name"
).
html
(
data
.
data
.
user_name
);
...
@@ -142,10 +147,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -142,10 +147,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
},
},
confirmEdit
:
function
(){
//修改报告详情
confirmEdit
:
function
(){
//修改报告详情
console
.
log
(
22
);
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/
b
argainInfo'
,
'url'
:
'/index/
editB
argainInfo'
,
data
:
{
"id"
:
follow
.
house_id
,
data
:
{
"id"
:
follow
.
house_id
,
"scale_fee"
:
$
(
".commission"
).
val
(),
"scale_fee"
:
$
(
".commission"
).
val
(),
"practical_fee"
:
$
(
".practical_fee"
).
val
()
"practical_fee"
:
$
(
".practical_fee"
).
val
()
...
@@ -153,15 +157,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -153,15 +157,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
if
(
data
.
data
)
{
// console.log(data.data.commission);
// $(".create_time").html(data.data.create_time);
// $(".user_phone").html(data.data.user_phone);
// $(".user_name").html(data.data.user_name);
// $(".internal_address").html(data.data.internal_address);
// $(".internal_title").html(data.data.internal_title);
// $(".commission").val(data.data.commission);
// $(".practical_fee").val(data.data.practical_fee);
}
}
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -169,28 +165,95 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -169,28 +165,95 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
Caozuo
:
function
(){
//分佣提成获取跟进详情的数据
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/commissionList'
,
data
:
{
"id"
:
follow
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
role
+
'</td><td>'
+
item
.
agent_name
+
'</td><td>'
+
item
.
store_name
+
'</td><td>'
+
item
.
scale
+
'</td><td>'
+
item
.
scale_fee
+
'</td><td>'
+
item
.
practical_fee
+
'</td><td>'
+
item
.
content
+
'</td></tr>'
;
});
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
$
(
"#caozuo_table tr"
).
each
(
function
(
e
)
{
//不能为空
var
temp
=
$
(
"#caozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
6
).
html
();
//获取一列的值
if
(
temp
==
'null'
){
$
(
"#caozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
6
).
html
(
" "
)
}
});
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
// 新增分佣提成
newCommission
:
function
(){
//新增分佣提成
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/addBargain'
,
data
:
{
"id"
:
follow
.
house_id
,
"role"
:
$
(
"#is_carefully_chosen"
).
val
(),
"scale"
:
$
(
"#commission-rate"
).
val
(),
"scale_fee"
:
$
(
"#should-commission"
).
val
(),
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
console
.
log
(
666
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
// 新增分佣提成
// table切换
// ===========666=========
Information
:
function
(){
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
"#information"
).
removeClass
(
"btn-default"
);
$
(
"#information"
).
addClass
(
"btn-info"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
},
},
Fees
:
function
(){
Fees
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
show
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
"#information"
).
removeClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
removeClass
(
"btn-default"
);
$
(
"#fees"
).
addClass
(
"btn-info"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
},
},
Records
:
function
(){
Records
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
show
();
$
(
".Tswitch"
).
eq
(
2
).
show
();
$
(
"#information"
).
removeClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-default"
);
$
(
"#records"
).
addClass
(
"btn-info"
);
},
},
// =====================
Submit_follow
:
function
()
{
//提交
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
...
@@ -212,6 +275,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -212,6 +275,9 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
// 提交新增分佣提成
//提交新增分佣提成
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
follow
.
pageNo
=
pageNo
;
follow
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
...
...
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