Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bf702ea8
authored
Mar 30, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'zjl_iteration_20200318'
parents
19a4fc83
e920bc66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
public/js/refund.js
resources/views/detail/return.blade.php
public/js/refund.js
View file @
bf702ea8
...
@@ -387,6 +387,7 @@
...
@@ -387,6 +387,7 @@
$
(
'.return_num'
).
keyup
(
function
()
{
$
(
'.return_num'
).
keyup
(
function
()
{
var
removal_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.removal_number'
).
val
());
// 出库数量
var
removal_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.removal_number'
).
val
());
// 出库数量
var
single_pre_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.single_pre_price'
).
val
());
// 均摊单价
var
single_pre_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.single_pre_price'
).
val
());
// 均摊单价
var
pay_amount
=
$
(
'.pay_amount'
).
val
();
var
val
=
$
(
this
).
val
();
// 退货数量
var
val
=
$
(
this
).
val
();
// 退货数量
if
(
val
>
removal_number
)
{
if
(
val
>
removal_number
)
{
...
@@ -409,6 +410,10 @@
...
@@ -409,6 +410,10 @@
return_total
=
return_total
.
toFixed
(
2
);
return_total
=
return_total
.
toFixed
(
2
);
if
(
return_total
>
pay_amount
)
{
// 如果四舍五入后的退款金额大于支付金额,则把支付金额赋值给退款金额
return_total
=
pay_amount
;
}
$
(
'.return_amount'
).
val
(
return_total
);
$
(
'.return_amount'
).
val
(
return_total
);
$
(
'.return_amount_val'
).
text
(
currency_sign
+
return_total
);
$
(
'.return_amount_val'
).
text
(
currency_sign
+
return_total
);
})
})
...
...
resources/views/detail/return.blade.php
View file @
bf702ea8
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<input
type=
"hidden"
name=
"return_info[mobile]"
value=
"{{isset($user_info['mobile']) ? $user_info['mobile'] : $user_mobile}}"
>
<input
type=
"hidden"
name=
"return_info[mobile]"
value=
"{{isset($user_info['mobile']) ? $user_info['mobile'] : $user_mobile}}"
>
<input
type=
"hidden"
name=
"return_info[email]"
value=
"{{isset($user_info['email']) ? $user_info['email'] : ''}}"
>
<input
type=
"hidden"
name=
"return_info[email]"
value=
"{{isset($user_info['email']) ? $user_info['email'] : ''}}"
>
<input
type=
"hidden"
name=
"return_info[company_name]"
value=
"{{ isset($company_info['com_name']) ? $company_info['com_name'] : '' }}"
>
<input
type=
"hidden"
name=
"return_info[company_name]"
value=
"{{ isset($company_info['com_name']) ? $company_info['com_name'] : '' }}"
>
<input
type=
"hidden"
name=
"return_info[pay_amount]"
value=
"{{ $order_info['order_amount'] + $order_price_info['pay_preferential'] }}"
>
<input
type=
"hidden"
class=
"pay_amount"
name=
"return_info[pay_amount]"
value=
"{{ $order_info['order_amount'] + $order_price_info['pay_preferential'] }}"
>
<input
type=
"hidden"
name=
"pay_id"
value=
"{{$order_pay_log[0]['pay_id']}}"
>
<input
type=
"hidden"
name=
"pay_id"
value=
"{{$order_pay_log[0]['pay_id']}}"
>
<!-- 退货方式 -->
<!-- 退货方式 -->
...
...
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