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
ccc681ed
authored
Dec 17, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
16c9be2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
public/js/order_service.js
public/js/order_service.js
View file @
ccc681ed
...
@@ -86,8 +86,8 @@
...
@@ -86,8 +86,8 @@
// 全退
// 全退
$
(
'.orderServiceForm'
).
find
(
'.select-all'
).
click
(
function
()
{
$
(
'.orderServiceForm'
).
find
(
'.select-all'
).
click
(
function
()
{
$
(
'.order-service-table'
).
find
(
'tbody tr'
).
each
(
function
()
{
$
(
'.order-service-table'
).
find
(
'tbody tr'
).
each
(
function
()
{
var
goods_number
=
$
(
this
).
find
(
'.origin-goods-number'
).
html
(
);
var
goods_number
=
parseInt
(
$
(
this
).
find
(
'.origin-goods-number'
).
html
()
);
var
service_goods_number
=
$
(
this
).
find
(
'.service-goods-number'
).
html
()
;
var
service_goods_number
=
parseInt
(
$
(
this
).
find
(
'.service-goods-number'
).
html
())
||
0
;
var
goods_price
=
$
(
this
).
find
(
'.origin-goods-price'
).
html
();
var
goods_price
=
$
(
this
).
find
(
'.origin-goods-price'
).
html
();
var
allow_num
=
(
goods_number
-
service_goods_number
)
||
''
;
var
allow_num
=
(
goods_number
-
service_goods_number
)
||
''
;
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
var
goods_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-price'
).
html
());
// 原订单单价
var
goods_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-price'
).
html
());
// 原订单单价
var
goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-number'
).
html
());
// 原订单数量
var
goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-number'
).
html
());
// 原订单数量
var
service_goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.service-goods-number'
).
html
());
// 已售后数量
var
service_goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.service-goods-number'
).
html
())
||
0
;
// 已售后数量
var
origin_amount
=
goods_price
*
(
goods_number
-
service_goods_number
);
// 商品可退金额
var
origin_amount
=
goods_price
*
(
goods_number
-
service_goods_number
);
// 商品可退金额
if
(
val
>
(
goods_number
-
service_goods_number
))
{
if
(
val
>
(
goods_number
-
service_goods_number
))
{
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
var
goods_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-price'
).
html
());
// 原订单单价
var
goods_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-price'
).
html
());
// 原订单单价
var
goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-number'
).
html
());
// 原订单数量
var
goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.origin-goods-number'
).
html
());
// 原订单数量
var
service_goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.service-goods-number'
).
html
());
// 已售后数量
var
service_goods_number
=
parseInt
(
$
(
this
).
parents
(
'tr'
).
find
(
'.service-goods-number'
).
html
())
||
0
;
// 已售后数量
var
origin_amount
=
goods_price
*
(
goods_number
-
service_goods_number
);
// 商品可退金额
var
origin_amount
=
goods_price
*
(
goods_number
-
service_goods_number
);
// 商品可退金额
var
adjust_number
=
$
(
this
).
parents
(
'tr'
).
find
(
'.adjust_number'
).
val
();
var
adjust_number
=
$
(
this
).
parents
(
'tr'
).
find
(
'.adjust_number'
).
val
();
...
...
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