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
488939e2
Commit
488939e2
authored
May 18, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收支明细修改
parent
127aa52a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
830 additions
and
504 deletions
+830
-504
account_statement.html
application/index/view/finance/account_statement.html
+25
-8
commission.html
application/index/view/finance/commission.html
+253
-2
statement.html
application/index/view/finance/statement.html
+12
-9
reportList.js
public/resource/js/reportList.js
+524
-473
stateMent.js
public/resource/js/stateMent.js
+10
-7
reportList_template_tpl.html
public/resource/template/reportList_template_tpl.html
+1
-1
statement_template_tpl.html
public/resource/template/statement_template_tpl.html
+5
-4
No files found.
application/index/view/finance/account_statement.html
View file @
488939e2
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,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=
"#"
>
成交报告
</a></li>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
...
@@ -63,21 +63,38 @@
...
@@ -63,21 +63,38 @@
<thead>
<thead>
<tr>
<tr>
<td
colspan=
"9"
>
<td
colspan=
"9"
>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"commissioner"
>
专员
审核
</a>
<a
class=
"btn btn-info liudan_pic_btn"
id=
"commissioner"
>
第一级
审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"manager"
>
经理
审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"manager"
>
第二级
审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"director"
>
总监
审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"director"
>
第三级
审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"cashier"
>
出纳审核
</a>
<a
class=
"btn btn-default liudan_pic_btn"
id=
"cashier"
>
已结单
</a>
</td>
</td>
</tr>
</tr>
<!--三级审核的搜索功能-->
<tr>
<td
colspan=
"9"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<!--<span class="fore-span ld-Marheight">-</span>-->
<!--<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="end_time" name="end_date" type="date">-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户电话"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 search"
id=
"search0"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
</form>
</td>
</tr>
<tr>
<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>
<th
class=
"text-center"
>
实收佣金
</th>
<th
class=
"text-center"
>
应收佣金(元)
</th>
<th
class=
"text-center"
>
操作
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</tr>
</thead>
</thead>
...
...
application/index/view/finance/commission.html
View file @
488939e2
{layout name="global/frame_tpl" /}
{layout name="global/frame_tpl" /}
分佣提成明细表
<input
type=
"hidden"
class=
"page-load"
id=
"stateMent"
/>
\ No newline at end of file
<style>
#note_text
{
width
:
80%
;
margin-left
:
48px
;
margin-top
:
-20px
;
}
#note_text_re
{
width
:
80%
;
margin-left
:
48px
;
margin-top
:
-20px
;
}
.Tswitch_one
{
display
:
none
;
}
.Tswitch_two
{
display
:
none
;
}
.left
{
float
:
left
;
width
:
340px
;
line-height
:
36px
;
}
.right
{
line-height
:
36px
;
}
.btn_2
{
width
:
60px
;
display
:
inline-block
;
height
:
26px
;
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>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
分佣提成明细表
</a></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=
"9"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
收佣日期:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<!--<span class="fore-span ld-Marheight">-</span>-->
<!--<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="end_time" name="end_date" type="date">-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"业务员姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"业务员手机号"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
</form>
</td>
</tr>
<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>
</thead>
<tbody
class=
"text-center"
id=
"business_list"
>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出框 编辑 -->
<div
class=
"modal fade"
id=
"modal-details"
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"
>
<span
class=
"btn btn-info"
id=
"information"
>
成交信息
</span>
<span
class=
"btn btn-default caozuo"
id=
"fees"
>
分佣提成
</span>
<span
class=
"btn btn-default"
id=
"records"
>
收款记录
</span>
</h4>
</div>
<div
class=
"modal-body modal-body-two"
>
<div
class=
"Tswitch"
>
<div
class=
"left"
>
<span>
商铺地址:
</span><span
class=
"internal_address"
></span><br>
<span>
客户姓名:
</span><span
class=
"user_name"
></span><br>
<span>
应收总佣金:
</span>
<input
class=
"form-control btn_2 commission"
type=
"text"
>
元
<br>
<span>
实收佣金:
</span>
<input
class=
"form-control btn_2 practical_fee"
type=
"text"
>
元
<br>
</div>
<div
class=
"right"
>
<span>
商铺名称:
</span><span
class=
"internal_title"
></span><br>
<span>
客户电话:
</span><span
class=
"user_phone"
></span><br>
<span>
提交日期:
</span><span
class=
"create_time"
></span><br>
</div>
<input
type=
"hidden"
class=
"page-pass"
/>
</div>
<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
class=
"Tswitch Tswitch_two"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
id=
"tcaozuo_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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"tcaozuo_table"
>
</table>
</div>
<br><br><br><br>
</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=
"confirm_edit"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 时间 -->
<div
class=
"modal fade"
id=
"modal-linetime"
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=
"del_msg"
>
时间轴
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
" "
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</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>
application/index/view/finance/statement.html
View file @
488939e2
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,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=
"#"
>
分佣提成明细表
</a></li>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
...
@@ -65,12 +65,15 @@
...
@@ -65,12 +65,15 @@
<tr>
<tr>
<td
colspan=
"9"
>
<td
colspan=
"9"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
结单时间
:
</span>
<span
class=
"fore-span ld-Marheight"
>
收佣日期
:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"create_time"
name=
"start_date"
type=
"date"
>
<
span
class=
"fore-span ld-Marheight"
>
-
</span
>
<
!--<span class="fore-span ld-Marheight">-</span>--
>
<
input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_time"
name=
"end_date"
type=
"date"
>
<
!--<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="end_time" name="end_date" type="date">--
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"客户电话"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_num"
placeholder=
"商铺号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_name"
placeholder=
"业务员姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"业务员手机号"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
<span
class=
"btn btn-info btn3"
id=
"export"
>
导出excel
</span>
...
@@ -78,11 +81,11 @@
...
@@ -78,11 +81,11 @@
</td>
</td>
</tr>
</tr>
<tr>
<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>
<th
class=
"text-center"
>
实收佣金(元)
</th>
<th
class=
"text-center"
>
实收佣金(元)
</th>
<th
class=
"text-center"
>
操作
</th>
<th
class=
"text-center"
>
操作
</th>
...
...
public/resource/js/reportList.js
View file @
488939e2
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/reportList_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
bargain
=
{
bargain
=
{
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
pageSize
:
10
,
pageSize
:
10
,
...
@@ -18,74 +18,100 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -18,74 +18,100 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
bargain
.
event
();
bargain
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
$
(
document
).
on
(
'click'
,
'#search0'
,
function
(
e
)
{
bargain
.
getList
(
1
);
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
});
$
(
document
).
on
(
'click'
,
'#search1'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
Manager
(
1
);
//二级审核搜索
});
$
(
document
).
on
(
'click'
,
'#search2'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
Director
(
1
);
//三级级审核搜索
});
$
(
document
).
on
(
'click'
,
'#searchStatement'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
Cashier
(
1
);
//结单搜索
});
});
$
(
"#reset"
).
click
(
function
()
{
//重置
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
});
});
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
bargain
.
Timeline
();
bargain
.
Timeline
();
});
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
Edit
();
bargain
.
Edit
();
});
});
$
(
document
).
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击编辑
$
(
document
).
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击编辑
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
bargain
.
bargain_id
=
$
(
this
).
attr
(
"data-id"
);
});
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击成交信息确定
bargain
.
confirmEdit
();
bargain
.
confirmEdit
();
});
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
bargain
.
Caozuo
();
bargain
.
Caozuo
();
});
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击收款记录
bargain
.
Records
();
bargain
.
Records
();
});
});
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过按钮
bargain
.
confirmPass
();
bargain
.
confirmPass
();
});
});
// 点击新增分佣提成
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
bargain
.
newCommission
();
bargain
.
newCommission
();
bargain
.
Caozuo
();
bargain
.
Caozuo
();
});
});
//table切换
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
bargain
.
Information
();
bargain
.
Information
();
});
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
bargain
.
Fees
();
bargain
.
Fees
();
});
});
//专员审核 总监审核 经理审核 出纳审核
//专员审核 总监审核 经理审核 出纳审核
$
(
document
).
delegate
(
"#commissioner"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#commissioner"
,
"click"
,
function
()
{
bargain
.
Commissioner
();
bargain
.
Commissioner
();
$
(
".search"
).
attr
(
"id"
,
"search0"
);
});
});
$
(
document
).
delegate
(
"#manager"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#manager"
,
"click"
,
function
()
{
bargain
.
Manager
();
bargain
.
Manager
();
$
(
".search"
).
attr
(
"id"
,
"search1"
);
});
});
$
(
document
).
delegate
(
"#director"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#director"
,
"click"
,
function
()
{
bargain
.
Director
();
bargain
.
Director
();
});
$
(
".search"
).
attr
(
"id"
,
"search2"
);
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
bargain
.
Cashier
();
});
});
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
bargain
.
Cashier
();
$
(
".search"
).
attr
(
"id"
,
"searchStatement"
);
});
},
},
Timeline
:
function
(){
//获取时间轴
Timeline
:
function
()
{
//获取时间轴
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/selectReportAll'
,
'url'
:
'/index/selectReportAll'
,
data
:
{
"order_id"
:
bargain
.
bargain_id
},
data
:
{
"order_id"
:
bargain
.
bargain_id
},
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
);
console
.
log
(
data
.
data
);
}
}
}
else
{
}
else
{
...
@@ -94,31 +120,33 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -94,31 +120,33 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
Edit
:
function
(){
//报告详情
Edit
:
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"
).
removeClass
(
"btn-default"
);
$
(
"#information"
).
addClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-info"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
bargain
.
bargain_id
},
data
:
{
"id"
:
bargain
.
bargain_id
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{
$
(
".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
);
$
(
".internal_address"
).
html
(
data
.
data
.
internal_address
);
$
(
".internal_address"
).
html
(
data
.
data
.
internal_address
);
$
(
".internal_title"
).
html
(
data
.
data
.
internal_title
);
$
(
".internal_title"
).
html
(
data
.
data
.
internal_title
);
$
(
".commission"
).
val
(
data
.
data
.
scale_fee
);
$
(
".commission"
).
val
(
data
.
data
.
scale_fee
);
$
(
".practical_fee"
).
val
(
data
.
data
.
practical_fee
);
$
(
".practical_fee"
).
val
(
data
.
data
.
practical_fee
);
}
}
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -126,19 +154,20 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -126,19 +154,20 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
}
}
});
});
},
},
confirmEdit
:
function
(){
//修改报告详情
confirmEdit
:
function
()
{
//修改报告详情
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
'url'
:
'/index/editBargainInfo'
,
data
:
{
"id"
:
bargain
.
bargain_id
,
data
:
{
"scale_fee"
:
$
(
".commission"
).
val
(),
"id"
:
bargain
.
bargain_id
,
"practical_fee"
:
$
(
".practical_fee"
).
val
()
"scale_fee"
:
$
(
".commission"
).
val
(),
},
"practical_fee"
:
$
(
".practical_fee"
).
val
()
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
)
{
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
)
{
bargain
.
getList
(
0
);
bargain
.
getList
(
0
);
}
else
{
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
...
@@ -147,203 +176,209 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -147,203 +176,209 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
});
});
},
},
//通过
//通过
confirmPass
:
function
(){
//点击通过
confirmPass
:
function
()
{
//点击通过
var
a_url
;
var
a_url
;
if
(
$
(
'.btn-info'
).
index
()
==
0
){
if
(
$
(
'.btn-info'
).
index
()
==
0
)
{
a_url
=
"/index/checkReportAttache/0"
a_url
=
"/index/checkReportAttache/0"
};
};
if
(
$
(
'.btn-info'
).
index
()
==
1
)
{
if
(
$
(
'.btn-info'
).
index
()
==
1
)
{
a_url
=
"/index/checkReportManager/1"
a_url
=
"/index/checkReportManager/1"
};
};
if
(
$
(
'.btn-info'
).
index
()
==
2
)
{
if
(
$
(
'.btn-info'
).
index
()
==
2
)
{
a_url
=
"/index/checkReportMajordomo/2"
a_url
=
"/index/checkReportMajordomo/2"
};
};
if
(
$
(
'.btn-info'
).
index
()
==
3
)
{
if
(
$
(
'.btn-info'
).
index
()
==
3
)
{
a_url
=
"/index/checkReportCashier/3"
a_url
=
"/index/checkReportCashier/3"
};
};
// console.log($('.btn-info').index());
// console.log($('.btn-info').index());
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
a_url
,
'url'
:
a_url
,
data
:
{
"id"
:
bargain
.
bargain_id
,
data
:
{
"source"
:
1
,
"id"
:
bargain
.
bargain_id
,
"status"
:
10
,
"source"
:
1
,
"remark"
:
$
(
"#note_text"
).
val
(),
"status"
:
10
,
},
"remark"
:
$
(
"#note_text"
).
val
(),
dataType
:
"json"
,
},
success
:
function
(
data
){
dataType
:
"json"
,
if
(
data
.
code
==
200
){
success
:
function
(
data
)
{
if
(
data
.
data
)
{
if
(
data
.
code
==
200
)
{
bargain
.
getList
(
1
);
if
(
data
.
data
)
{
}
bargain
.
getList
(
1
);
}
else
{
}
alert
(
'获取失败!'
);
}
else
{
}
alert
(
'获取失败!'
);
}
}
});
}
},
});
},
Caozuo
:
function
(){
//分佣提成数据
$
.
ajax
({
Caozuo
:
function
()
{
//分佣提成数据
'type'
:
'GET'
,
$
.
ajax
({
'url'
:
'/index/commissionList'
,
'type'
:
'GET'
,
data
:
{
"id"
:
bargain
.
bargain_id
},
'url'
:
'/index/commissionList'
,
dataType
:
"json"
,
data
:
{
success
:
function
(
data
){
"id"
:
bargain
.
bargain_id
if
(
data
.
code
==
200
){
},
if
(
data
.
data
)
{
dataType
:
"json"
,
var
caozuo_table
=
""
;
success
:
function
(
data
)
{
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
if
(
data
.
code
==
200
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
role_name
+
'</td><td>'
+
item
.
agent_name
+
'</td><td>'
+
item
.
store_name
if
(
data
.
data
)
{
+
'</td><td>'
+
item
.
scale
+
'</td><td>'
+
item
.
scale_fee
+
'</td><td>'
+
item
.
practical_fee
+
'</td><td>'
+
item
.
content
+
'</td></tr>'
;
var
caozuo_table
=
""
;
});
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
caozuo_table
+=
'<tr><td>'
+
item
.
role_name
+
'</td><td>'
+
item
.
agent_name
+
'</td><td>'
+
item
.
store_name
+
$
(
"#caozuo_table tr"
).
each
(
function
(
e
)
{
//不能为空
'</td><td>'
+
item
.
scale
+
'</td><td>'
+
item
.
scale_fee
+
'</td><td>'
+
item
.
practical_fee
+
'</td><td>'
+
item
.
content
+
'</td></tr>'
;
var
temp
=
$
(
"#caozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
6
).
html
();
//获取一列的值
});
if
(
temp
==
'null'
){
$
(
"#caozuo_table"
).
html
(
caozuo_table
);
$
(
"#caozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
6
).
html
(
" "
)
$
(
"#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
(
'获取失败!'
);
});
}
}
}
}
else
{
});
alert
(
'获取失败!'
);
},
}
}
});
},
// 收款记录
// 收款记录
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"
).
removeClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-default"
);
$
(
"#records"
).
addClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-info"
);
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/payLogList'
,
'url'
:
'/index/payLogList'
,
data
:
{
"id"
:
bargain
.
bargain_id
},
data
:
{
dataType
:
"json"
,
"id"
:
bargain
.
bargain_id
success
:
function
(
data
){
},
if
(
data
.
code
==
200
){
dataType
:
"json"
,
if
(
data
.
data
)
{
success
:
function
(
data
)
{
var
caozuo_table
=
""
;
if
(
data
.
code
==
200
)
{
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
if
(
data
.
data
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
create_time
+
'</td><td>'
+
item
.
money
+
'</td><td>'
+
item
.
type
var
caozuo_table
=
""
;
+
'</td><td>'
+
item
.
pay_type
+
'</td><td>'
+
item
.
agent_name
+
'</td></tr>'
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
});
caozuo_table
+=
'<tr><td>'
+
item
.
create_time
+
'</td><td>'
+
item
.
money
+
'</td><td>'
+
item
.
type
+
$
(
"#tcaozuo_table"
).
html
(
caozuo_table
);
'</td><td>'
+
item
.
pay_type
+
'</td><td>'
+
item
.
agent_name
+
'</td></tr>'
;
$
(
"#tcaozuo_table tr"
).
each
(
function
(
e
)
{
//不能为空
});
var
temp_one
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
4
).
html
();
$
(
"#tcaozuo_table"
).
html
(
caozuo_table
);
var
temp
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
();
//获取一列的值
$
(
"#tcaozuo_table tr"
).
each
(
function
(
e
)
{
//不能为空
var
temp_two
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
();
var
temp_one
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
4
).
html
();
// 支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
var
temp
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
();
//获取一列的值
if
(
temp
*
1
==
10
){
var
temp_two
=
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
();
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"支付宝"
)
// 支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
}
if
(
temp
*
1
==
10
)
{
if
(
temp
*
1
==
20
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"支付宝"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"微信"
)
}
}
if
(
temp
*
1
==
20
)
{
if
(
temp
*
1
==
30
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"微信"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"pos机器"
)
}
}
if
(
temp
*
1
==
30
)
{
if
(
temp
*
1
==
40
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"pos机器"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"转账"
)
}
}
if
(
temp
*
1
==
40
)
{
if
(
temp
*
1
==
50
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"转账"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"现金"
)
}
}
if
(
temp
*
1
==
50
)
{
if
(
temp
*
1
==
60
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"现金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"其他"
)
}
}
if
(
temp
*
1
==
60
)
{
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
3
).
html
(
"其他"
)
// 付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
}
if
(
temp_two
*
1
==
10
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"意向金"
)
// 付款类型 10意向金 20定金 30保管金 40押金 50 租金 60 进场费 70转让费 80其他
}
if
(
temp_two
*
1
==
10
)
{
if
(
temp_two
*
1
==
20
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"意向金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"定金"
)
}
}
if
(
temp_two
*
1
==
20
)
{
if
(
temp_two
*
1
==
30
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"定金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"保管金"
)
}
}
if
(
temp_two
*
1
==
30
)
{
if
(
temp_two
*
1
==
40
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"保管金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"押金"
)
}
}
if
(
temp_two
*
1
==
40
)
{
if
(
temp_two
*
1
==
50
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"押金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"租金"
)
}
}
if
(
temp_two
*
1
==
50
)
{
if
(
temp_two
*
1
==
60
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"租金"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"进场费"
)
}
}
if
(
temp_two
*
1
==
60
)
{
if
(
temp_two
*
1
==
70
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"进场费"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"转让费"
)
}
}
if
(
temp_two
*
1
==
70
)
{
if
(
temp_two
*
1
==
80
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"转让费"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"其他"
)
}
};
if
(
temp_two
*
1
==
80
)
{
if
(
temp_one
==
'null'
){
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
2
).
html
(
"其他"
)
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
4
).
html
(
" "
)
};
}
if
(
temp_one
==
'null'
)
{
$
(
"#tcaozuo_table"
).
find
(
"tr"
).
eq
(
e
).
find
(
"td"
).
eq
(
4
).
html
(
" "
)
});
}
}
}
else
{
});
alert
(
'获取失败!'
);
}
}
}
else
{
}
alert
(
'获取失败!'
);
});
}
},
}
});
newCommission
:
function
(){
//新增分佣提成
},
$
.
ajax
({
'type'
:
'POST'
,
newCommission
:
function
()
{
//新增分佣提成
'url'
:
'/index/addBargain'
,
$
.
ajax
({
data
:
{
"id"
:
bargain
.
bargain_id
,
'type'
:
'POST'
,
"role"
:
$
(
"#is_carefully_chosen"
).
val
(),
'url'
:
'/index/addBargain'
,
"scale"
:
$
(
"#commission-rate"
).
val
(),
data
:
{
"scale_fee"
:
$
(
"#should-commission"
).
val
(),
"id"
:
bargain
.
bargain_id
,
},
"role"
:
$
(
"#is_carefully_chosen"
).
val
(),
dataType
:
"json"
,
"scale"
:
$
(
"#commission-rate"
).
val
(),
success
:
function
(
data
){
"scale_fee"
:
$
(
"#should-commission"
).
val
(),
if
(
data
.
code
==
200
){
},
if
(
data
.
data
)
{
dataType
:
"json"
,
console
.
log
(
666
);
success
:
function
(
data
)
{
}
if
(
data
.
code
==
200
)
{
}
else
{
if
(
data
.
data
)
{
alert
(
'获取失败!'
);
console
.
log
(
666
);
}
}
}
}
else
{
});
alert
(
'获取失败!'
);
},
}
}
// table切换
});
Information
:
function
(){
},
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
// table切换
$
(
".Tswitch"
).
eq
(
2
).
hide
();
Information
:
function
()
{
$
(
"#information"
).
removeClass
(
"btn-default"
);
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
"#information"
).
addClass
(
"btn-info"
);
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
"#fees"
).
removeClass
(
"btn-info"
);
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
"#fees"
).
addClass
(
"btn-default"
);
$
(
"#information"
).
removeClass
(
"btn-default"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
removeClass
(
"btn-info"
);
},
$
(
"#fees"
).
addClass
(
"btn-default"
);
Fees
:
function
(){
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
"#records"
).
addClass
(
"btn-default"
);
$
(
".Tswitch"
).
eq
(
1
).
show
();
},
$
(
".Tswitch"
).
eq
(
2
).
hide
();
Fees
:
function
()
{
$
(
"#information"
).
removeClass
(
"btn-info"
);
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
".Tswitch"
).
eq
(
1
).
show
();
$
(
"#fees"
).
removeClass
(
"btn-default"
);
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
(
"#fees"
).
addClass
(
"btn-info"
);
$
(
"#information"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#information"
).
addClass
(
"btn-default"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
$
(
"#fees"
).
removeClass
(
"btn-default"
);
$
(
"#fees"
).
addClass
(
"btn-info"
);
},
$
(
"#records"
).
removeClass
(
"btn-info"
);
$
(
"#records"
).
addClass
(
"btn-default"
);
},
Submit_follow
:
function
()
{
//提交
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
...
@@ -352,263 +387,279 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
...
@@ -352,263 +387,279 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
"id"
:
bargain
.
bargain_id
,
"id"
:
bargain
.
bargain_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
bargain
.
agent_id
,
//客方
"agent_id"
:
bargain
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
"sex"
:
$
(
"#sex"
).
val
()
},
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{}
}
}
else
{}
}
else
{
}
}
}
});
});
},
},
//
专员
审核
//
一级
审核
Commissioner
:
function
(
pageNo
)
{
Commissioner
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-default"
);
$
(
"#commissioner"
).
removeClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListAttache/0'
,
url
:
'/index/reportListOne/1'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
// var user_info_obj = JSON.parse(decodeURIComponent(sessionStorage.getItem('pcUserInfo')));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
},
},
error
:
function
()
{
error
:
function
()
{
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
}
}
});
});
},
},
//
专员
审核
//
一级
审核
//
经理
审核
//
二级
审核
Manager
:
function
(
pageNo
)
{
Manager
:
function
(
pageNo
)
{
console
.
log
(
5555
);
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListManager/1'
,
url
:
'/index/reportListTwo/2'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
},
},
error
:
function
()
{
error
:
function
()
{
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
}
}
});
});
},
},
//经理审核
//二级审核
//
总监
审核
//
三级
审核
Director
:
function
(
pageNo
)
{
Director
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
bargain
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListMajordomo/2'
,
url
:
'/index/reportListThree/3'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
},
},
error
:
function
()
{
error
:
function
()
{
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
}
}
});
});
},
},
//总监审核
//三级审核
//
出纳审核
//
结单
Cashier
:
function
(
pageNo
)
{
Cashier
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-info"
);
bargain
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListCashier/3'
,
url
:
'/index/reportListStatement/4'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
},
},
error
:
function
()
{
error
:
function
()
{
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
}
}
});
});
},
},
//
出纳审核
//
结单
//搜索 列表渲染
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
bargain
.
pageNo
=
pageNo
;
bargain
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageNo
=
bargain
.
pageNo
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
pageSize
=
bargain
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
).
val
();
params
.
internal_address
=
$
(
'#internal_address'
).
val
();
params
.
user_phone
=
$
(
'#user_phone'
).
val
();
params
.
house_number
=
$
(
'#internal_num'
).
val
();
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/index/reportListAttache/0'
,
url
:
'/index/reportListOne/1'
,
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'reportList_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
};
};
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
},
},
error
:
function
()
{
error
:
function
()
{
alert
(
'error'
);
alert
(
'error'
);
},
},
complete
:
function
(
xhr
,
textStatus
)
{
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
alert
(
'请求超时'
);
};
};
}
}
});
});
}
}
};
};
...
...
public/resource/js/stateMent.js
View file @
488939e2
...
@@ -305,24 +305,27 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
...
@@ -305,24 +305,27 @@ define (['doT', 'text!temp/statement_template_tpl.html', 'css!style/home.css','c
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
business
.
pageNo
;
params
.
pageNo
=
business
.
pageNo
;
params
.
pageSize
=
business
.
pageSize
;
params
.
pageSize
=
business
.
pageSize
;
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
//
params
.
create_time
=
$
(
'#create_time'
)
.
val
();
params
.
end_time
=
$
(
'#end_time'
)
.
val
();
//
params
.
internal_address
=
$
(
'#internal_address'
)
.
val
();
params
.
internal_address
=
$
(
'#internal_address'
)
.
val
();
//
params
.
agent
=
$
(
'#user_name'
)
.
val
();
params
.
user_phone
=
$
(
'#user_phone'
)
.
val
();
//
// params.user_phone = $('#user_phone') .val();
params
.
house_number
=
$
(
'#internal_num'
)
.
val
();
$
.
ajax
({
$
.
ajax
({
url
:
'/index/
reportListStatement/4
'
,
//获取列表
url
:
'/index/
partialCommissionList
'
,
//获取列表
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
params
,
data
:
params
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
console
.
log
(
data
);
var
temp
=
document
.
getElementById
(
'statement_list_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'statement_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
data
.
list
));
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
business
.
pageSize
,
business
.
getList
);
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
business
.
pageSize
,
business
.
getList
);
}
}
});
});
},
},
...
...
public/resource/template/reportList_template_tpl.html
View file @
488939e2
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<
td
>
[
%=
it
[
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
check_auth
(
'index/bargainInfo'
))
{
%
]
[
%
if
(
check_auth
(
'index/bargainInfo'
))
{
%
]
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
check_auth
(
'index/checkReportAttache/0'
)
||
check_auth
(
'index/checkReportManager/1'
)
||
check_auth
(
'index/checkReportMajordomo/2'
)
||
check_auth
(
'index/checkReportCashier/3'
))
{
%
]
[
%
if
(
check_auth
(
'index/checkReportAttache/0'
)
||
check_auth
(
'index/checkReportManager/1'
)
||
check_auth
(
'index/checkReportMajordomo/2'
)
||
check_auth
(
'index/checkReportCashier/3'
))
{
%
]
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
通过
<
/a
>
<
a
class
=
"btn1 btn-success is_pass"
href
=
"#modal-pass"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
通过
<
/a
>
...
...
public/resource/template/statement_template_tpl.html
View file @
488939e2
...
@@ -3,12 +3,13 @@
...
@@ -3,12 +3,13 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'district_store'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'agent'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'scale_fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'commission'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'practical_fee'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 btn-info edit"
href
=
"#modal-details"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-info edit"
href
=
"#modal-details"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
<
a
class
=
"btn1 btn-info timeline"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
<
a
class
=
"btn1 btn-info timeline"
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
时间轴
<
/a
>
...
...
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