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
9ea12cb3
Commit
9ea12cb3
authored
Dec 26, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commite
parent
6394f1a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
12 deletions
+175
-12
refundList.html
application/index/view/finance/refundList.html
+100
-5
refundList.js
public/resource/js/refundList.js
+75
-7
No files found.
application/index/view/finance/refundList.html
View file @
9ea12cb3
...
...
@@ -47,7 +47,14 @@
line-height
:
34px
;
display
:
inline-block
;
}
#file_input3
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
left
:
145px
;
height
:
35px
;
width
:
80px
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
...
...
@@ -277,8 +284,15 @@
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"javascript:;"
>
调整
出账
</a>
<a
href=
"javascript:;"
>
退款
出账
</a>
</li>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"choose_btn btn btn-default btn-info"
data-value=
"-1"
>
全部
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"1"
>
审核中
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"3"
>
已审核
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"2"
>
已退款
</button>
<button
type=
"button"
class=
"choose_btn btn btn-default"
data-value=
"4"
>
已驳回
</button>
</div>
</div>
<div
class=
"panel-body"
style=
"overflow:hidden;"
>
<div
class=
"table-responsive"
>
...
...
@@ -479,9 +493,9 @@
</form>
</div>
<div
class=
"modal-footer noprint"
id=
"hiddenOr"
>
<button
type=
"button"
class=
"btn btn-primary"
data-dismiss=
"modal"
id=
"check_yes
"
>
审核通过
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"check_no"
>
驳回
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"check_back"
>
转到已退款
</button>
<button
type=
"button"
class=
"btn btn-primary"
href=
"#modal_pass"
data-toggle=
"modal
"
>
审核通过
</button>
<button
type=
"button"
class=
"btn btn-primary"
href=
"#modal_false"
data-toggle=
"modal"
>
驳回
</button>
<button
type=
"button"
class=
"btn btn-primary"
href=
"#tuikuan_modal"
data-toggle=
"modal"
>
转到已退款
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"print"
>
打印
</button>
</div>
</div>
...
...
@@ -518,6 +532,86 @@
</div>
<!-- /.modal -->
</div>
<!--退款-->
<div
class=
"modal fade"
id=
"tuikuan_modal"
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=
"col-xs-12"
style=
"margin-top:20px;"
>
<div
class=
"col-xs-12"
style=
"padding-left:30px;"
>
<label>
上传转账图片和退款单手签版图片:
</label>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"file-upload-area p-a-0 "
>
<ul
class=
"img-pre-ul"
id=
"fujian_ul"
></ul>
<div
class=
"btn-area"
>
<input
class=
"btn btn-default"
type=
"file"
id=
"file_input3"
data-limittop=
"1"
/>
<!--修改上传文件的最大数字-->
<button
class=
"btn btn-default"
style=
"margin-left : 144px;"
>
选择图片
</button>
</div>
<div
class=
"col-xs-12 p-t-10"
id=
"container_body_img_area3"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"check_back"
>
确定
</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"
style=
"overflow:hidden;"
>
<label
class=
"col-xs-2"
>
备注
</label>
<div
class=
"col-xs-10"
>
<textarea
id=
"check_past"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"check_yes"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
class=
"modal fade"
id=
"modal_false"
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"
style=
"overflow:hidden;"
>
<label
class=
"col-xs-2"
>
备注
</label>
<div
class=
"col-xs-10"
>
<textarea
id=
"check_bohui"
class=
"form-control "
></textarea>
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"check_no"
>
确定
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</div>
\ No newline at end of file
public/resource/js/refundList.js
View file @
9ea12cb3
...
...
@@ -11,6 +11,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
listData
:
""
,
moneyTotal
:
""
,
agent_id_phone
:
''
,
check_status
:
-
1
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
...
...
@@ -89,15 +90,26 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
});
//审核通过
$
(
document
).
on
(
'click'
,
'#check_yes'
,
function
(
e
){
that
.
checkRefund
(
1
);
var
text
=
$
(
'#check_past'
).
val
();
that
.
checkRefund
(
1
,
text
);
});
//驳回
$
(
document
).
on
(
'click'
,
'#check_no'
,
function
(
e
){
that
.
checkRefund
(
4
);
var
text
=
$
(
'#check_bohui'
).
val
();
that
.
checkRefund
(
4
,
text
);
});
//已退款
$
(
document
).
on
(
'click'
,
'#check_back'
,
function
(
e
){
that
.
checkRefund
(
2
);
var
pictures
=
$
(
'#container_body_img_area3'
).
find
(
'.result'
);
var
picName
=
[];
pictures
.
each
(
function
(
i
,
event
){
picName
[
i
]
=
$
(
this
).
find
(
"img"
).
attr
(
"id"
)
})
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
return
false
;
}
that
.
checkRefund
(
2
,
picName
);
});
//二级联动
...
...
@@ -132,6 +144,60 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
that
.
search_person
();
}
});
$
(
'#file_input3'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area3'
).
append
(
'<div class="result"><img id="{0}" src="{1}" alt=""/> <span class="span-del3">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除,已有的则调用接口删除
_doc
.
on
(
'click'
,
'.span-del3'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
_doc
.
on
(
'click'
,
'.choose_btn '
,
function
(
e
){
that
.
check_status
=
e
.
target
.
dataset
.
value
;
$
(
'.btn-group'
).
find
(
"button.btn-info"
).
removeClass
(
"btn-info"
)
$
(
this
).
addClass
(
"btn-info"
)
})
},
smalltoBIG
:
function
(
n
)
{
...
...
@@ -158,15 +224,16 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
return
head
+
s
.
replace
(
/
(
零.
)
*零元/
,
'元'
).
replace
(
/
(
零.
)
+/g
,
'零'
).
replace
(
/^整$/
,
'零元整'
);
},
checkRefund
:
function
(
status
){
checkRefund
:
function
(
status
,
remark
){
var
that
=
refund
;
var
params
=
{
'refund_id'
:
that
.
check_id
,
'status'
:
status
'status'
:
status
,
'remark'
:
remark
}
$
.
post
(
'/index/checkRefund'
,
params
,
function
(){
$
.
post
(
'/index/checkRefund'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
$
(
'.modal'
).
modal
(
"hide"
)
}
else
{
alert
(
data
.
msg
);
}
...
...
@@ -499,6 +566,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
if
(
is_selt
){
params
.
is_self
=
is_selt
;
}
params
.
status
=
that
.
check_status
;
return
params
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment