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
4dbdbaa1
Commit
4dbdbaa1
authored
Dec 25, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加账单详情退款功能
parent
2468bc6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
24 deletions
+62
-24
getCollection.html
application/index/view/finance/getCollection.html
+9
-6
getCollection.js
public/resource/js/getCollection.js
+46
-17
receivables_template_tpl.html
public/resource/template/receivables_template_tpl.html
+7
-1
No files found.
application/index/view/finance/getCollection.html
View file @
4dbdbaa1
...
@@ -870,10 +870,13 @@
...
@@ -870,10 +870,13 @@
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款类型:
</span></strong>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款类型:
</span></strong>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<select
class=
"form-control"
id=
"back_type"
>
<select
class=
"form-control"
id=
"back_type"
>
<option
class=
"yixiangjin"
value=
"10"
>
意向金
</option>
<option
class=
""
value=
"-1"
>
请选择退款类型
</option>
<option
class=
"baoguanjin"
value=
"30"
>
保管金
</option>
<option
class=
""
value=
"10"
>
退意向金
</option>
<option
class=
"yixiangjin"
value=
"91"
>
中介费
</option>
<option
class=
""
value=
"10"
>
意向金转定
</option>
<option
class=
"yixiangjin"
value=
"92"
>
案场费
</option>
<option
class=
""
value=
"10"
>
退保管金
</option>
<option
class=
""
value=
"30"
>
保管金转定
</option>
<option
class=
""
value=
"91"
>
退中介费
</option>
<option
class=
""
value=
"92"
>
退案场费
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -915,7 +918,7 @@
...
@@ -915,7 +918,7 @@
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款方式:
</span></strong>
<strong><span
class=
"col-xs-4 ld-Marheight"
>
退款方式:
银行卡
</span></strong>
<span
id=
"back_price_type"
class=
"col-xs-6 ld-Marheight"
></span>
<span
id=
"back_price_type"
class=
"col-xs-6 ld-Marheight"
></span>
</div>
</div>
</div>
</div>
...
@@ -989,7 +992,7 @@
...
@@ -989,7 +992,7 @@
</form>
</form>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"saveChangeBtn"
>
提交
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
"
back_
saveChangeBtn"
>
提交
</button>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
<!-- /.modal-content -->
...
...
public/resource/js/getCollection.js
View file @
4dbdbaa1
...
@@ -120,7 +120,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -120,7 +120,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area3'
).
append
(
'<div class="result"><img
data-imgname
="{0}" src="{1}" alt=""/> <span class="span-del3">删除</span></div>'
.
stringFormatObj
({
$
(
'#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
,
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}));
...
@@ -232,7 +232,24 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -232,7 +232,24 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//操作----退款
//操作----退款
$
(
document
).
on
(
'click'
,
'.money_back'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'.money_back'
,
function
(
e
){
var
id
=
e
.
target
.
dataset
.
id
;
var
id
=
e
.
target
.
dataset
.
id
;
that
.
getBack
(
id
);
var
address
=
e
.
target
.
dataset
.
addr
;
var
comity_time
=
e
.
target
.
dataset
.
comity_tim
;
var
real_money
=
e
.
target
.
dataset
.
real_money
;
var
order_no
=
e
.
target
.
dataset
.
order_no
;
var
order_id
=
e
.
target
.
dataset
.
order_id
;
var
report_id
=
e
.
target
.
dataset
.
report_id
;
var
agent_id
=
e
.
target
.
dataset
.
agent_id
;
var
agent_name
=
e
.
target
.
dataset
.
agent_name
;
that
.
back_addr
=
address
;
that
.
back_time
=
comity_time
;
that
.
back_money
=
real_money
;
that
.
back_order_id
=
order_id
;
that
.
back_order_no
=
order_no
;
that
.
back_report_id
=
report_id
;
that
.
back_agent_name
=
agent_name
;
that
.
back_agent_id
=
agent_id
;
// that.getBack(id);
});
});
//操作----收款详情
//操作----收款详情
...
@@ -324,7 +341,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -324,7 +341,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
});
$
(
"#modal-linetime"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
$
(
"#modal-linetime"
).
on
(
"hidden.bs.modal"
,
function
(
event
){
that
.
initBackData
();
//
that.initBackData();
});
});
//调整
//调整
...
@@ -1286,9 +1303,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1286,9 +1303,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
saveBack
:
function
(){
saveBack
:
function
(){
var
that
=
receiv
;
var
that
=
receiv
;
var
params
=
that
.
getBackParams
();
var
params
=
that
.
getBackParams
();
$
.
post
(
''
,
params
,
function
(
data
){
$
.
post
(
'
/index/refundPayLog
'
,
params
,
function
(
data
){
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
console
.
log
(
data
)
console
.
log
(
data
)
$
(
'#modal-back'
).
modal
(
"hide"
)
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
@@ -1307,46 +1325,57 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1307,46 +1325,57 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
var
back_bank_name
=
$
(
'#back_bank_name'
).
val
();
var
back_bank_name
=
$
(
'#back_bank_name'
).
val
();
var
back_phone
=
$
(
'#back_phone'
).
val
();
var
back_phone
=
$
(
'#back_phone'
).
val
();
var
back_others
=
$
(
'#back_others'
).
val
();
var
back_others
=
$
(
'#back_others'
).
val
();
params
.
refund_way
=
0
;
params
.
pay_log_id
=
that
.
back_id
;
params
.
order_id
=
that
.
back_order_id
;
params
.
order_no
=
that
.
back_order_no
;
params
.
report_id
=
that
.
back_report_id
;
params
.
agent_id
=
that
.
back_agent_id
;
params
.
agent_name
=
that
.
back_agent_name
;
params
.
agent_id
=
that
.
back_agent_id
;
if
(
back_type
){
if
(
back_type
){
params
.
aaaaaa
=
back_type
;
params
.
type
=
back_type
;
};
};
if
(
back_price
){
if
(
back_price
){
params
.
back_price
=
back_price
;
params
.
refund_money
=
back_price
;
}
}
if
(
back_no
){
if
(
back_no
){
params
.
back_no
=
back_no
;
params
.
receipt_number
=
back_no
;
}
}
if
(
back_reason
){
if
(
back_reason
){
params
.
back_reason
=
back_reason
;
params
.
refund_cause
=
back_reason
;
}
}
if
(
back_price_user
){
if
(
back_price_user
){
params
.
back_price_user
=
back_price_user
;
params
.
card_no
=
back_price_user
;
}
}
if
(
back_bank
){
if
(
back_bank
){
params
.
ba
ck_ba
nk
=
back_bank
;
params
.
bank
=
back_bank
;
}
}
if
(
back_bank_name
){
if
(
back_bank_name
){
params
.
back_bank_
name
=
back_bank_name
;
params
.
name
=
back_bank_name
;
}
}
if
(
back_phone
){
if
(
back_phone
){
params
.
back_
phone
=
back_phone
;
params
.
phone
=
back_phone
;
}
}
if
(
back_others
){
if
(
back_others
){
params
.
back_others
=
back_others
;
params
.
remark
=
back_others
;
}
}
//图片数据处理
//图片数据处理
var
pictures
=
$
(
'#container_body_img_area3'
).
find
(
'.
pictures
'
);
var
pictures
=
$
(
'#container_body_img_area3'
).
find
(
'.
result
'
);
var
picName
=
""
;
var
picName
=
[]
;
pictures
.
each
(
function
(
i
,
event
){
pictures
.
each
(
function
(
i
,
event
){
picName
+=
$
(
this
).
attr
(
"id"
)
+
","
// picName += $(this).find("img").attr("id") + ","
picName
[
i
]
=
$
(
this
).
find
(
"img"
).
attr
(
"id"
)
})
})
console
.
log
(
picName
);
if
(
!
(
pictures
.
length
-
0
>
0
)
){
if
(
!
(
pictures
.
length
-
0
>
0
)
){
alert
(
"请选择图片"
);
alert
(
"请选择图片"
);
return
false
;
return
false
;
}
else
{
}
else
{
params
.
picName
=
JSON
.
stringify
(
picName
.
substr
(
0
,
picName
.
length
-
1
).
split
(
","
));
params
.
remark_img
=
picName
;
//
JSON.stringify(picName.substr(0,picName.length-1).split(","));
}
}
console
.
log
(
typeof
(
params
.
remark_img
))
return
params
;
return
params
;
},
},
...
...
public/resource/template/receivables_template_tpl.html
View file @
4dbdbaa1
...
@@ -37,7 +37,13 @@
...
@@ -37,7 +37,13 @@
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
data
-
house_number
=
'[%= it[item]['
house_number
'] %]'
data
-
transfer_name
=
'[%= it[item]['
transfer_name
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
type_num
=
'[%= it[item]['
type_num
'] %]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
pay_type
=
'[%= it[item]['
pay_type_num
'] %]'
>
调整
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-success money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
退款
<
/a
>
<
a
class
=
"btn1 btn-success money_back"
href
=
"#modal-back"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
data
-
income_time
=
'[%= it[item]['
income_time
'] %]'
data
-
real_money
=
'[%= it[item]['
real_money
'] %]'
data
-
addr
=
"[%= it[item]['address'] %]"
data
-
report_id
=
'[%= it[item]['
report_id
'] %]'
data
-
order_id
=
'[%= it[item]['
order_id
'] %]'
data
-
order_no
=
'[%= it[item]['
order_no
'] %]'
data
-
agent_id
=
'[%= it[item]['
agent_id
'] %]'
data
-
agent_name
=
'[%= it[item]['
agent_name
'] %]'
>
退款
<
/a
>
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
[
%
if
(
check_auth
(
'index/delPayLog'
))
{
%
]
<
a
class
=
"btn1 btn-success list_delete"
href
=
"#modal-delete"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"]%]'
>
删除
<
/a
>
<
a
class
=
"btn1 btn-success list_delete"
href
=
"#modal-delete"
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