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
fbf23e74
Commit
fbf23e74
authored
Mar 12, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
确认分佣 红包提现
parent
0ca05ecd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
156 additions
and
0 deletions
+156
-0
account_statement.html
application/index/view/finance/account_statement.html
+58
-0
reportList.js
public/resource/js/reportList.js
+48
-0
reportList_template_tpl.html
public/resource/template/reportList_template_tpl.html
+50
-0
No files found.
application/index/view/finance/account_statement.html
View file @
fbf23e74
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"reportList"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"reportList"
/>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.envelope-details
{
font-size
:
18px
;
font-weight
:
600
;
}
.clear
{
.clear
{
clear
:
both
;
clear
:
both
;
}
}
...
@@ -434,6 +438,7 @@
...
@@ -434,6 +438,7 @@
<div
href=
"#modal_date_select"
data-toggle=
"modal"
>
打开收佣日期选择框(默认隐藏)
</div>
<div
href=
"#modal_date_select"
data-toggle=
"modal"
>
打开收佣日期选择框(默认隐藏)
</div>
<a
id=
"maid_ok_btn"
class=
"btn btn-primary"
data-toggle=
"modal"
>
确认分佣
</a>
<a
id=
"maid_ok_btn"
class=
"btn btn-primary"
data-toggle=
"modal"
>
确认分佣
</a>
<a
id=
"maid_save_btn"
class=
"btn btn-primary"
data-toggle=
"modal"
>
保存
</a>
<a
id=
"maid_save_btn"
class=
"btn btn-primary"
data-toggle=
"modal"
>
保存
</a>
<a
class=
"btn btn-success envelope-list"
href=
"#modal-envelope"
data-toggle=
"modal"
data-id=
'[%= it[item]["id"] %]'
>
红包提现
</a>
</div>
</div>
<!--分佣提成-->
<!--分佣提成-->
</div>
</div>
...
@@ -1205,4 +1210,56 @@
...
@@ -1205,4 +1210,56 @@
<!-- /.modal-content -->
<!-- /.modal-content -->
</div>
</div>
<!-- /.modal -->
<!-- /.modal -->
</div>
<!--红包提现 弹出框-->
<div
class=
"modal fade"
id=
"modal-envelope"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 1100px;"
>
<div
class=
"modal-content"
style=
"height: 639px;"
>
<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=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<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"
>
客户ID
</th>
<th
class=
"text-center"
>
客户昵称
</th>
<th
class=
"text-center"
>
客户手机号
</th>
<th
class=
"text-center"
>
活动ID
</th>
<th
class=
"text-center"
>
状态
</th>
<th
class=
"text-center"
>
发放时间
</th>
<th
class=
"text-center"
>
发放人
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_envelope_list"
>
</tbody>
</table>
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 30px;"
>
注:确认分佣后系统会立即返现500元现金给客户
</div>
<div
class=
"envelope-details"
style=
"margin-bottom: 10px;"
>
邀请成交奖励:
</div>
<div>
成交客户: 客户ID:45123,周小雨 139****5642
</div>
<div>
成交客户的邀请人:客户ID:4512,洛可可 138****3214
</div>
<div
class=
"envelope-details"
style=
"margin-top: 10px;"
>
注:确认分佣后系统会立即返现500元现金给客户
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button btn2"
class=
"btn btn-primary"
id=
""
data-dismiss=
"modal"
>
确认分佣
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
</div>
\ No newline at end of file
public/resource/js/reportList.js
View file @
fbf23e74
...
@@ -90,6 +90,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -90,6 +90,11 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
closest
(
'tr'
).
attr
(
"data-id"
);
bargain
.
getReceiptList
();
bargain
.
getReceiptList
();
});
});
//红包提现
_doc
.
on
(
"click"
,
".envelope-list"
,
function
()
{
// bargain.bargain_id = 127;
bargain
.
getEnvelopeList
();
});
//转到一级审核
//转到一级审核
_doc
.
on
(
'click'
,
'.maintable-btn-trans-one'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.maintable-btn-trans-one'
,
function
(
e
){
...
@@ -1841,6 +1846,49 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -1841,6 +1846,49 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
// 红包提现
getEnvelopeList
:
function
(
pageNo
){
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
100
,
'bargain_id'
:
127
,
'source'
:
-
1
,
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getCollection'
,
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
(
'envelope_template_tpl'
).
innerHTML
);
$
(
"#maintable_envelope_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
//导出列表 成交报告 审核
//导出列表 成交报告 审核
exportList
:
function
()
{
exportList
:
function
()
{
var
excel
=
1
;
var
excel
=
1
;
...
...
public/resource/template/reportList_template_tpl.html
View file @
fbf23e74
...
@@ -227,4 +227,53 @@
...
@@ -227,4 +227,53 @@
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
<!--红包返现-->
<script
id=
"envelope_template_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'bargain_id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'current_agent_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'store_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'real_money'
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
'is_refund'
]
==
1
){
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
<
td
>
正常
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
,
被退款
<
/td
>
<
td
>
正常
,
被退款
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
],
被退款
)
<
/td
>
<
td
>
被调整
+
被退款
<
/td
>
[
%
}
else
{
%
]
<
td
>
被退款
<
/td
>
[
%
}
%
]
[
%
}
else
{
%
]
[
%
if
(
it
[
item
][
'source'
]
==
0
)
{
%
]
<
td
>
正常收款
<
/td
>
<
td
>
正常
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
1
)
{
%
]
<
td
>
正常收款
<
/td
>
<
td
>
正常
<
/td
>
[
%
}
else
if
(
it
[
item
][
'source'
]
==
2
)
{
%
]
<
td
>
被调整收款
(
调整
ID
:[
%=
it
[
item
][
'source_id'
]
%
])
<
/td
>
<
td
>
被调整
<
/td
>
[
%
}
else
{
%
]
<
td
>--<
/td
>
[
%
}
%
]
[
%
}
%
]
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"14"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
</script>
\ No newline at end of file
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