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
9db08c0c
Commit
9db08c0c
authored
May 04, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款修改
parent
07afed15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
891 additions
and
2 deletions
+891
-2
refund_order_list.html
application/index/view/finance/refund_order_list.html
+290
-2
refundOrderList.js
public/resource/js/refundOrderList.js
+577
-0
refundorder_template_tpl.html
public/resource/template/refundorder_template_tpl.html
+24
-0
No files found.
application/index/view/finance/refund_order_list.html
View file @
9db08c0c
{layout name="global/frame_tpl" /}
{layout name="global/frame_tpl" /}
已退款列表
<input
type=
"hidden"
class=
"page-load"
id=
"refundOrderList"
/>
\ 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">
<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="director">总监审核</a>
<a class="btn btn-default liudan_pic_btn" id="cashier">出纳审核</a>
</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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"follow_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出框 编辑 -->
<div
class=
"modal fade"
id=
"modal-edit"
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"
>
收款记录
</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-pass"
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"
>
<label
class=
"control-label"
>
备注:
</label>
<textarea
class=
"form-control"
rows=
"5"
id=
"note_text"
></textarea>
<!-- <span class="use-span text-danger">(必填)</span> -->
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<button
type=
"button"
class=
"btn btn-info"
data-dismiss=
"modal"
id=
"confirm_pass"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- 弹出框 跟进 -->
<div
class=
"modal fade"
id=
"modal-follow"
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"
>
<label
class=
"control-label"
>
备注:
</label>
<textarea
class=
"form-control"
rows=
"5"
id=
"note_text_re"
></textarea>
<!-- <span class="use-span text-danger">(必填)</span> -->
</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_follow"
>
确定
</button>
</div>
</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"
>
<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>
public/resource/js/refundOrderList.js
View file @
9db08c0c
define
([
'doT'
,
'text!temp/refundorder_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
follow
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
boxphoto
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
follow
.
getList
(
0
);
follow
.
event
();
},
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
follow
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
// 时间轴
$
(
document
).
delegate
(
".timeline"
,
"click"
,
function
()
{
//时间轴
follow
.
Timeline
();
});
// 编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Edit
();
});
$
(
document
).
delegate
(
"#confirm_edit"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
confirmEdit
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
Caozuo
();
});
//通过
$
(
document
).
delegate
(
"#confirm_pass"
,
"click"
,
function
()
{
//点击通过
follow
.
confirmPass
();
});
$
(
document
).
delegate
(
".is_pass"
,
"click"
,
function
()
{
//点击通过
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
});
// 点击新增分佣提成
$
(
document
).
delegate
(
"#new-commission"
,
"click"
,
function
()
{
//点击分佣提成
follow
.
newCommission
();
follow
.
Caozuo
();
});
//table切换
$
(
document
).
delegate
(
"#information"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Information
();
});
$
(
document
).
delegate
(
"#fees"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Fees
();
});
$
(
document
).
delegate
(
"#records"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Records
();
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
Submit_follow
();
});
//专员审核 总监审核 经理审核 出纳审核
$
(
document
).
delegate
(
"#commissioner"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Commissioner
();
});
$
(
document
).
delegate
(
"#manager"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Manager
();
});
$
(
document
).
delegate
(
"#director"
,
"click"
,
function
()
{
//点击操作跟进详情
follow
.
Director
();
});
$
(
document
).
delegate
(
"#cashier"
,
"click"
,
function
()
{
//出纳审核
follow
.
Cashier
();
});
//专员审核 总监审核 经理审核 出纳审核
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
if
(
$
(
"#cus_fang"
).
val
()
==
''
){
$
(
".user-ul2"
).
html
(
''
);
}
else
{
follow
.
search_phone2
();
}
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
follow
.
addphone2
(
this
);
});
},
addphone2
:
function
(
obj
){
var
user_ht
=
$
(
obj
).
html
();
$
(
"#cus_fang"
).
val
(
user_ht
);
$
(
".user-ul2"
).
html
(
''
);
follow
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
search_phone2
:
function
(){
//手机号
$
.
ajax
({
url
:
'/index/select_by_phone'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#cus_fang"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul2
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul2
+=
'<li class="addphone2" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
realname
+
'-'
+
item
.
phone
+
'</li>'
;
});
$
(
".user-ul2"
).
html
(
user_ul2
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
Timeline
:
function
(){
//获取时间轴
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/selectReportAll'
,
data
:
{
"order_id"
:
follow
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
console
.
log
(
data
.
data
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Edit
:
function
(){
//报告详情
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".Tswitch"
).
eq
(
2
).
hide
();
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/bargainInfo'
,
data
:
{
"id"
:
follow
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
".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
{
alert
(
'获取失败!'
);
}
}
});
},
confirmEdit
:
function
(){
//修改报告详情
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/editBargainInfo'
,
data
:
{
"id"
:
follow
.
house_id
,
"scale_fee"
:
$
(
".commission"
).
val
(),
"practical_fee"
:
$
(
".practical_fee"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
//通过
confirmPass
:
function
(){
//点击通过
console
.
log
(
$
(
'.btn-info'
).
index
());
var
a_url
;
if
(
$
(
'.btn-info'
).
index
()
==
0
){
a_url
=
"/index/checkReportAttache/0"
};
if
(
$
(
'.btn-info'
).
index
()
==
1
)
{
a_url
=
"/index/checkReportManager/1"
};
if
(
$
(
'.btn-info'
).
index
()
==
2
)
{
a_url
=
"/index/checkReportMajordomo/2"
};
if
(
$
(
'.btn-info'
).
index
()
==
3
)
{
a_url
=
"/index/checkReportCashier/3"
};
// console.log($('.btn-info').index());
console
.
log
(
follow
.
house_id
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
a_url
,
data
:
{
"id"
:
follow
.
house_id
,
"source"
:
1
,
"status"
:
10
,
"remark"
:
$
(
"#note_text"
).
val
(),
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
console
.
log
(
666
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
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切换
Information
:
function
(){
$
(
".Tswitch"
).
eq
(
0
).
show
();
$
(
".Tswitch"
).
eq
(
1
).
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
(){
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
show
();
$
(
".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
(){
$
(
".Tswitch"
).
eq
(
0
).
hide
();
$
(
".Tswitch"
).
eq
(
1
).
hide
();
$
(
".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
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
data
:
{
"id"
:
follow
.
house_id
,
"user_nick"
:
$
(
"#cus_name"
).
val
(),
"user_phone"
:
$
(
"#cus_phone"
).
html
(),
"agent_id"
:
follow
.
agent_id
,
//客方
"sex"
:
$
(
"#sex"
).
val
()
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
}
else
{
}
}
});
},
//专员审核
Commissioner
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-default"
);
$
(
"#commissioner"
).
addClass
(
"btn-info"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListAttache/0'
,
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
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
//专员审核
//经理审核
Manager
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-default"
);
$
(
"#manager"
).
addClass
(
"btn-info"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListManager/1'
,
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
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
//经理审核
//总监审核
Director
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
removeClass
(
"btn-info"
);
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-default"
);
$
(
"#director"
).
addClass
(
"btn-info"
);
$
(
"#cashier"
).
removeClass
(
"btn-info"
);
$
(
"#cashier"
).
addClass
(
"btn-default"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListMajordomo/2'
,
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
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
//总监审核
//出纳审核
Cashier
:
function
(
pageNo
)
{
$
(
"#commissioner"
).
addClass
(
"btn-default"
);
$
(
"#manager"
).
removeClass
(
"btn-info"
);
$
(
"#manager"
).
addClass
(
"btn-default"
);
$
(
"#director"
).
removeClass
(
"btn-info"
);
$
(
"#director"
).
addClass
(
"btn-default"
);
$
(
"#cashier"
).
removeClass
(
"btn-default"
);
$
(
"#cashier"
).
addClass
(
"btn-info"
);
console
.
log
(
$
(
'.btn-info'
).
index
());
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListCashier/3'
,
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
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
},
//出纳审核
getList
:
function
(
pageNo
)
{
follow
.
pageNo
=
pageNo
;
var
params
=
{};
params
.
pageNo
=
follow
.
pageNo
;
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/reportListAttache/0'
,
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
(
'refundorder_list_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
follow
.
pageSize
,
follow
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
}
};
return
follow
;
});
\ No newline at end of file
public/resource/template/refundorder_template_tpl.html
0 → 100644
View file @
9db08c0c
<script
id=
"refundorder_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'commission'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
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
>
<
a
class
=
"btn1 btn-success genjing"
href
=
"#modal-follow"
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]["id"] %]'
>
时间轴
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
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