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
2c99521a
Commit
2c99521a
authored
Sep 03, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
罚款
parent
edae7981
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
187 additions
and
134 deletions
+187
-134
fineMoney.html
application/index/view/finance/fineMoney.html
+34
-36
fineMoney.js
public/resource/js/fineMoney.js
+131
-64
fineMoney_list_template_tpl.html
public/resource/template/fineMoney_list_template_tpl.html
+22
-34
No files found.
application/index/view/finance/fineMoney.html
View file @
2c99521a
...
@@ -6,15 +6,15 @@
...
@@ -6,15 +6,15 @@
float
:
right
;
float
:
right
;
position
:
relative
;
position
:
relative
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
height
:
1
0
0px
;
height
:
1
8
0px
;
left
:
16
2px
;
left
:
-3
2px
;
width
:
100%
;
width
:
390px
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.user-ul-office
li
,
.user-ul-store
li
{
.user-ul-office
li
,
.user-ul-store
li
{
list-style
:
none
;
list-style
:
none
;
line-height
:
20px
;
line-height
:
20px
;
font-size
:
1
2
px
;
font-size
:
1
3
px
;
}
}
.form-group
{
.form-group
{
margin-bottom
:
6px
;
margin-bottom
:
6px
;
...
@@ -171,32 +171,30 @@
...
@@ -171,32 +171,30 @@
<tr>
<tr>
<td
colspan=
"14"
>
<td
colspan=
"14"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
提交时间:
</span>
<span
class=
"fore-span margin-top-ld"
>
提交时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4 margin-top-ld"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"submit_start_date"
name=
""
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
style=
"margin-top: 15px;"
>
-
</span>
<input
class=
"form-control btn4 margin-top-ld"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"submit_end_date"
name=
""
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="payment_start_date" name="" 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_date"
name=
"end_date"
type=
"date"
>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="payment_end_date" name="" type="date">-->
<span
class=
"fore-span ld-Marheight"
>
付款时间:
</span>
<select
class=
"form-control btn4 margin-top-ld state-pay"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
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_date"
name=
"end_date"
type=
"date"
>
<select
class=
"form-control btn4 ld-Marheight notice-lable"
>
<option
value=
""
>
状态
</option>
<option
value=
""
>
状态
</option>
<option
value=
"
1
"
>
待支付
</option>
<option
value=
"
0
"
>
待支付
</option>
<option
value=
"
2
"
>
已支付
</option>
<option
value=
"
1
"
>
已支付
</option>
<option
value=
"
3
"
>
已取消
</option>
<option
value=
"
2
"
>
已取消
</option>
</select>
</select>
<select
class=
"form-control btn4 ld-Marheight notice-lable"
>
<select
class=
"form-control btn4 margin-top-ld fine-item"
>
<option
value=
""
>
罚款项目
</option>
<option
value=
"1"
>
待支付
</option>
<option
value=
"2"
>
已支付
</option>
<option
value=
"3"
>
已取消
</option>
</select>
</select>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
release_title
"
placeholder=
"罚款ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
fine_id
"
placeholder=
"罚款ID"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
release_titl
e"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
submit_fine_nam
e"
placeholder=
"提交人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
release_titl
e"
placeholder=
"被罚款人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 margin-top-ld"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"
fine_nam
e"
placeholder=
"被罚款人姓名"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3
ld-Marheight"
id=
"search
"
>
搜索
</span>
<span
class=
"btn btn-info btn3
margin-top-ld"
id=
"search"
style=
"float:left ;
"
>
搜索
</span>
<span
class=
"btn btn-info btn3
ld-Marheight"
id=
"reset
"
>
重置
</span>
<span
class=
"btn btn-info btn3
margin-top-ld"
id=
"reset"
style=
"float:left ;
"
>
重置
</span>
<span
class=
"btn btn-info btn3
ld-Marheight"
id=
"export
"
>
导出excel
</span>
<span
class=
"btn btn-info btn3
margin-top-ld"
id=
"export"
style=
"float:left ;
"
>
导出excel
</span>
</form>
</form>
</td>
</td>
</tr>
</tr>
...
@@ -294,46 +292,46 @@
...
@@ -294,46 +292,46 @@
×
×
</button>
</button>
<h4
class=
"modal-title"
id=
"title"
>
<h4
class=
"modal-title"
id=
"title"
>
经纪人编辑
罚款详情
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
style=
"height: 560px;overflow-y: auto;overflow-x: hidden;"
>
<div
class=
"modal-body"
style=
"height: 560px;overflow-y: auto;overflow-x: hidden;"
>
<form
class=
"form-horizontal form-horizontal-edit"
>
<form
class=
"form-horizontal form-horizontal-edit"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
罚款ID:666
</label>
<label
class=
"col-sm-4 control-label"
>
罚款ID:
</label>
<span
id=
"fine_id_edit"
></span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
罚款金额:
</label>
<label
class=
"col-sm-4 control-label"
>
罚款金额:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
""
type=
"text"
value=
""
id=
"
title
"
>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
""
type=
"text"
value=
""
id=
"
fine_money_edit
"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
罚款类型:
</label>
<label
class=
"col-sm-4 control-label"
>
罚款类型:
</label>
<select
name=
"district_id"
class=
"form-control btn6"
disabled=
"disabled
"
>
<select
id=
"fine_type_edit"
class=
"form-control btn6
"
>
<option
value=
""
>
选择罚款类型
</option>
<option
value=
""
>
选择罚款类型
</option>
</select>
</select>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
处罚当事人:
</label>
<label
class=
"col-sm-4 control-label"
>
处罚当事人:
</label>
<span
style=
"margin-top: 7px;display: inline-block;"
>
99999
</span>
<span
style=
"margin-top: 7px;display: inline-block;"
id=
"fine_name_edit"
>
99999
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
提交人:
</label>
<label
class=
"col-sm-4 control-label"
>
提交人:
</label>
<span
style=
"margin-top: 7px;display: inline-block;"
>
99999
</span>
<span
style=
"margin-top: 7px;display: inline-block;"
id=
"submit_name_edit"
>
99999
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
提交时间:
</label>
<label
class=
"col-sm-4 control-label"
>
提交时间:
</label>
<span
style=
"margin-top: 7px;display: inline-block;"
>
99999
</span>
<span
style=
"margin-top: 7px;display: inline-block;"
id=
"tijiao"
>
99999
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
备注:
</label>
<label
class=
"col-sm-4 control-label"
>
备注:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
""
type=
"text"
value=
""
id=
"
title
"
>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"name"
placeholder=
""
type=
"text"
value=
""
id=
"
remark_edit
"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
状态:
</label>
<label
class=
"col-sm-4 control-label"
>
状态:
</label>
<span
style=
"margin-top: 7px;display: inline-block;"
>
99999
</span>
<span
style=
"margin-top: 7px;display: inline-block;"
id=
"edit_status"
>
99999
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
public/resource/js/fineMoney.js
View file @
2c99521a
...
@@ -5,20 +5,31 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -5,20 +5,31 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
pageSize
:
15
,
pageSize
:
15
,
agent_id
:
0
,
agent_id
:
0
,
idArray
:
''
,
idArray
:
''
,
confirm_old
:
''
,
//是否转勤
agent_id_add
:
''
,
editObj
:
''
,
//编辑返回的对象
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
"body"
).
append
(
template
+
template_binding
+
pctemplate_binding
);
$
(
"body"
).
append
(
template
+
template_binding
+
pctemplate_binding
);
// $("select[name=agent_status]").val('0');
agent
.
getList
();
agent
.
getList
();
agent
.
getPayItem
();
//获取搜索条件 罚款项目
agent
.
event
();
agent
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
$
(
document
).
on
(
"input"
,
"#district_id2_city"
,
function
()
{
//点击城市
$
(
document
).
on
(
"click"
,
"cancel-fine"
,
function
()
{
//取消罚款
//列表选择城市
//取消罚款
agent
.
getDistrictList
();
if
(
!
confirm
(
'是否取消罚款?'
))
{
return
;
};
agent
.
cancelFine
(
$
(
this
).
attr
(
'data-id'
));
});
$
(
document
).
on
(
"click"
,
"complete-fine"
,
function
()
{
//完成支付
//取消罚款
if
(
!
confirm
(
'是否确定转到已支付?'
))
{
return
;
};
agent
.
completeFine
(
$
(
this
).
attr
(
'data-id'
));
});
});
$
(
'#search'
).
click
(
function
(
pageNo
)
{
$
(
'#search'
).
click
(
function
(
pageNo
)
{
agent
.
getList
(
1
);
agent
.
getList
(
1
);
...
@@ -46,17 +57,14 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -46,17 +57,14 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
$
(
document
).
delegate
(
".agent_add"
,
"click"
,
function
()
{
//点击新增
$
(
".form-horizontal-add"
)[
0
].
reset
();
//重置表单
$
(
".form-horizontal-add"
)[
0
].
reset
();
//重置表单
//置空图片
$
(
'#container_body_img_area_positive'
).
html
(
''
);
//置空图片
$
(
'#container_body_img_area_positive'
).
html
(
''
);
agent
.
agent_id_add
=
''
;
//置空新增经纪人id
agent
.
getDistrict
();
agent
.
getDistrict
();
});
});
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
$
(
document
).
delegate
(
".edit"
,
"click"
,
function
()
{
//点击编辑
$
(
".form-horizontal-edit"
)[
0
].
reset
();
//重置表单
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
//置空图片
$
(
'#container_body_img_area_positive_edit'
).
html
(
''
);
//置空图片
$
(
'#container_body_img_area_positive_edit'
).
html
(
''
);
$
(
'#container_body_img_area_reverse_edit'
).
html
(
''
);
agent
.
Edit
();
agent
.
Edit
();
});
});
...
@@ -215,22 +223,33 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -215,22 +223,33 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
},
},
search_office
:
function
()
{
//搜索处罚人
search_office
:
function
()
{
//搜索处罚人
$
.
ajax
({
$
.
ajax
({
url
:
'/index/get
OfficeList
'
,
url
:
'/index/get
Broker_new
'
,
type
:
'
POST
'
,
type
:
'
get
'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
"pageNo"
:
1
,
"phone"
:
$
(
"#agent_id"
).
val
(),
"pageSize"
:
100
,
'all'
:
1
"office_address"
:
$
(
"#comit_office"
).
val
(),
},
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
var
user_ul
=
""
;
if
(
data
.
data
.
list
){
if
(
data
.
data
){
$
.
each
(
data
.
data
.
list
,
function
(
i
,
item
)
{
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="addphoneOffice" data-site="'
+
item
.
site_id
+
'" data-id="'
+
item
.
id
+
'">'
+
item
.
office_address
+
';-ID:'
+
item
.
id
+
'</li>'
;
if
(
item
.
status
==
0
||
item
.
status
==
4
){
});
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
}
user_ul
+=
'<li class="addphoneOffice" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
}
}
$
(
".user-ul-office"
).
html
(
user_ul
);
$
(
".user-ul-office"
).
html
(
user_ul
);
$
(
".user-ul-office"
).
show
();
$
(
".user-ul-office"
).
show
();
...
@@ -243,33 +262,35 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -243,33 +262,35 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
Edit
:
function
()
{
//获取
Edit
:
function
()
{
//获取
$
.
ajax
({
$
.
ajax
({
'type'
:
'GET'
,
'type'
:
'GET'
,
'url'
:
'/index/
saveAgent
'
,
//获取编辑数据
'url'
:
'/index/
getAmercementInfo
'
,
//获取编辑数据
data
:
{
data
:
{
"id"
:
agent
.
agent_id
"id"
:
agent
.
agent_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
)
{
agent
.
editObj
=
data
.
data
;
$
(
"#fine_id_edit"
).
html
(
data
.
data
.
id
);
$
(
"#edit-phone"
).
val
(
data
.
data
.
phone
);
$
(
"#fine_money_edit"
).
val
(
data
.
data
.
money
);
$
(
"input[name = id]"
).
val
(
data
.
data
.
id
);
$
(
"#fine_name_edit"
).
html
(
data
.
data
.
submit_agent_name
);
$
(
"input[name = phone]"
).
val
(
data
.
data
.
phone
);
$
(
"#submit_name_edit"
).
html
(
data
.
data
.
submit_agent_name
);
$
(
"input[name = name]"
).
val
(
data
.
data
.
name
);
$
(
"#tijiao"
).
html
(
data
.
data
.
create_time
);
$
(
"input[name = identity]"
).
val
(
data
.
data
.
id_card
);
//身份证号
$
(
"#remark_edit"
).
val
(
data
.
data
.
remarks
);
$
(
".card-name"
).
html
(
data
.
data
.
account
);
if
(
data
.
data
.
status
*
1
==
0
){
$
(
".card-num"
).
html
(
data
.
data
.
card_no
);
$
(
"#edit_status"
).
html
(
'待支付'
);
$
(
".card-account"
).
html
(
data
.
data
.
bank
);
}
else
if
(
data
.
data
.
status
*
1
==
1
){
$
(
"[name = district_id]"
).
val
(
data
.
data
.
district_id
);
$
(
"#edit_status"
).
html
(
'已支付'
);
if
(
data
.
data
.
district_id
)
{
}
else
{
agent
.
getDistrictStoreList
(
data
.
data
.
district_id
,
function
(
_data
)
{
$
(
"#edit_status"
).
html
(
'已取消'
);
// var _str = '';
}
var
_str
=
'<option value="0">全部</option>'
;
if
(
data
.
data
.
type
)
{
agent
.
getDistrictStoreList
(
data
.
data
.
type
,
function
(
_data
)
{
var
_str
=
'<option value="">罚款类型</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
store_
name
+
'</option>'
;
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
name
+
'</option>'
;
});
});
$
(
"
[name = store_id]"
).
html
(
_str
).
val
(
data
.
data
.
store_id
);
$
(
"
#fine_type_edit"
).
html
(
_str
).
val
(
data
.
data
.
type
);
});
});
}
else
{
}
else
{
...
@@ -316,7 +337,7 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -316,7 +337,7 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
var
params
=
{}
var
params
=
{}
params
.
type
=
$
(
"#fine_type"
).
val
();
params
.
type
=
$
(
"#fine_type"
).
val
();
params
.
money
=
$
(
"#money_add"
).
val
();
params
.
money
=
$
(
"#money_add"
).
val
();
params
.
remarks
=
$
(
"#remark
s
_add"
).
val
();
params
.
remarks
=
$
(
"#remark_add"
).
val
();
params
.
agent_id
=
agent
.
agent_id_add
;
//新增处罚人id
params
.
agent_id
=
agent
.
agent_id_add
;
//新增处罚人id
var
imgname
=
[];
//图片
var
imgname
=
[];
//图片
for
(
var
i
=
0
;
i
<
$
(
'.result-positive'
).
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$
(
'.result-positive'
).
length
;
i
++
)
{
...
@@ -336,7 +357,11 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -336,7 +357,11 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
alert
(
'处罚当事人必填!'
);
alert
(
'处罚当事人必填!'
);
return
false
;
return
false
;
}
}
if
(
params
.
remarks
==
''
)
{
alert
(
'罚款备注必填!'
);
return
false
;
}
console
.
log
(
params
.
remarks
)
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/addAmercement'
,
'url'
:
'/index/addAmercement'
,
...
@@ -440,31 +465,22 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -440,31 +465,22 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
var
params
=
{};
var
params
=
{};
params
.
pageNo
=
agent
.
pageNo
;
params
.
pageNo
=
agent
.
pageNo
;
params
.
pageSize
=
agent
.
pageSize
;
params
.
pageSize
=
agent
.
pageSize
;
params
.
search
=
$
(
"input[name='search']"
).
val
();
params
.
create_time
=
$
(
"#submit_start_date"
).
val
();
params
.
group_name
=
$
(
"input[name='groupname']"
).
val
();
params
.
end_time
=
$
(
"submit_end_date"
).
val
();
params
.
district_id
=
$
(
"#district_id2"
).
val
();
// params.create_time = $("#submit_start_date").val();付款时间
params
.
store_id
=
$
(
"#guest_stores"
).
val
();
// params.end_time = $("submit_end_date").val();
// params.site_id = $("#district_id2_city").val();//站点筛选
params
.
status
=
$
(
".state-pay"
).
val
();
params
.
status
=
$
(
"select[name=agent_status]"
).
val
();
params
.
type
=
$
(
".fine-item"
).
val
();
params
.
id_card
=
$
(
"#identity_id"
).
val
();
params
.
submit_name
=
$
(
"#submit_fine_name"
).
val
();
if
(
$
(
"#district_id2_city"
).
val
()){
params
.
name
=
$
(
"#fine_name"
).
val
();
if
(
!
$
(
"#district_id2"
).
val
()){
params
.
id
=
$
(
"#fine_id"
).
val
();
alert
(
'请选择部门进行搜索'
);
return
}
}
$
.
ajax
({
$
.
ajax
({
url
:
'/index/
AgentList
'
,
url
:
'/index/
getAmercementListPc
'
,
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
params
,
data
:
params
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
//获取对应的id
agent
.
idArray
=
new
Array
();
for
(
var
m
=
0
;
m
<
data
.
data
.
list
.
length
;
m
++
)
{
agent
.
idArray
[
m
]
=
data
.
data
.
list
[
m
].
id
;
}
//获取对应的id
//获取对应的id
var
temp
=
document
.
getElementById
(
'fine_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'fine_tpl'
).
innerHTML
;
var
doTempl
=
doT
.
template
(
temp
);
var
doTempl
=
doT
.
template
(
temp
);
...
@@ -479,7 +495,7 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -479,7 +495,7 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
},
},
//导出经纪人列表
//导出经纪人列表
maintableExport
:
function
(
pageNo
)
{
maintableExport
:
function
(
pageNo
)
{
window
.
open
(
'/index/
AgentList?excel=1'
+
'&'
+
'search='
+
$
(
"input[name='search']"
).
val
()
+
'&group_name='
+
$
(
"input[name='groupname']"
).
val
()
+
'&district_id='
+
$
(
"#district_id2"
).
val
()
+
'&store_id='
+
$
(
"#guest_stores"
).
val
()
+
'&status='
+
$
(
"select[name=agent_status]"
).
val
()
+
'&id_card='
+
$
(
"#identity
_id"
).
val
());
window
.
open
(
'/index/
getAmercementListExcel?'
+
'create_time='
+
$
(
"#submit_start_date"
).
val
()
+
'&end_time='
+
$
(
"#submit_end_date"
).
val
()
+
'&status='
+
$
(
".state-pay"
).
val
()
+
'&type='
+
$
(
".fine-item"
).
val
()
+
'&submit_name='
+
$
(
"#submit_fine_name"
).
val
()
+
'&name='
+
$
(
"#fine_name"
).
val
()
+
'&id='
+
$
(
"#fine
_id"
).
val
());
},
},
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
spandelList
:
function
(
n
)
{
//删除已经保存的图片都调用
$
.
ajax
({
$
.
ajax
({
...
@@ -496,6 +512,38 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -496,6 +512,38 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
}
}
});
});
},
},
//取消罚款
cancelFine
:
function
(
n
)
{
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{}
}
});
},
//罚款完成
completeFine
:
function
(
n
)
{
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
data
:
{
id
:
n
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
}
else
{}
}
});
},
getDistrict
:
function
()
{
getDistrict
:
function
()
{
$
.
ajax
({
$
.
ajax
({
url
:
'/broker/getAmercementType'
,
url
:
'/broker/getAmercementType'
,
...
@@ -516,6 +564,26 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -516,6 +564,26 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
}
}
});
});
},
},
getPayItem
:
function
()
{
$
.
ajax
({
url
:
'/broker/getAmercementType'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"AuthToken"
:
user_info_obj
.
AuthToken
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="">选择罚款类型</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
'.fine-item'
).
html
(
str
);
}
}
});
},
//获取城市所在部门
//获取城市所在部门
getDistrictList
:
function
(
fn
)
{
getDistrictList
:
function
(
fn
)
{
$
.
ajax
({
$
.
ajax
({
...
@@ -544,12 +612,11 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
...
@@ -544,12 +612,11 @@ define(['doT', 'text!temp/fineMoney_list_template_tpl.html', 'text!temp/phoneBin
},
},
getDistrictStoreList
:
function
(
id
,
fn
)
{
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
$
.
ajax
({
url
:
'/
index/getDistrictStoreList
'
,
url
:
'/
broker/getAmercementType
'
,
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
'id'
:
id
,
"AuthToken"
:
user_info_obj
.
AuthToken
"pageSize"
:
1000
},
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
public/resource/template/fineMoney_list_template_tpl.html
View file @
2c99521a
<script
id=
"fine_tpl"
type=
"text/template"
>
<script
id=
"fine_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
&&
it
.
length
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
data
-
groupname
=
"[%= it[item]['groupname'] %]"
class
=
"text-center"
>
<
tr
data
-
groupname
=
"[%= it[item]['groupname'] %]"
class
=
"text-center"
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"type_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"submit_agent_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"money"
]
%
]
<
/td
>
[
%
if
(
it
[
item
][
"agent_name"
]){
%
]
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"agent_name"
]
%
]
<
/td
>
[
%
}
else
{
%
]
<
td
class
=
"text-center"
><
/td
>
[
%
}
%
]
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"money"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"money"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"status_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
td
class
=
"text-center"
>
<
input
type
=
"hidden"
value
=
'[%= it[item]["agent_img"] %]'
>
[
%
if
(
it
[
item
][
"status"
]
*
1
==
0
){
%
]
<
img
src
=
'[%= it[item]["agent_img"] %]'
class
=
"diagram-image J_preview no-scroll-page-img"
<
a
class
=
"btn1 btn-success cancel-fine"
data
-
id
=
'[%= it[item]["id"] %]'
>
取消
<
/a
>
data
-
bimg
=
'[%= it[item]["agent_img"] %]'
>
<
a
class
=
"btn1 btn-success complete-fine"
data
-
id
=
'[%= it[item]["id"] %]'
>
转到已支付
<
/a
>
<
/td
>
[
%
}
%
]
<
td
class
=
"text-center"
>
[
%
if
(
it
[
item
][
"level"
]
==
10
)
{
%
]
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
<
/a
>
业务员
[
%
}
%
]
[
%
if
(
it
[
item
][
"level"
]
==
20
)
{
%
]
店长
[
%
}
%
]
[
%
if
(
it
[
item
][
"level"
]
==
30
)
{
%
]
总监
[
%
}
%
]
[
%
if
(
it
[
item
][
"level"
]
==
40
)
{
%
]
总监和店长
[
%
}
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"district_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"store_name"
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
"phone"
]
%
]
[
%
if
(
it
[
item
][
"status"
]
==
3
)
{
%
]
<
span
class
=
"btn1 btn-warning btn-xs"
>
已转勤
<
/span
>
[
%
}
%
]
<
/td
>
<
td
class
=
"number-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"score-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"text-center"
>
<
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
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
tr
>
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
10
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</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