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
8e1a6d52
authored
Apr 27, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整批量调价
parent
816d531e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
public/js/order.js
resources/views/detail/changeOrder.blade.php
public/js/order.js
View file @
8e1a6d52
...
@@ -1925,7 +1925,7 @@
...
@@ -1925,7 +1925,7 @@
// })
// })
// 设置折扣
// 设置折扣
$
(
'.set_goods_price'
).
off
().
on
(
'
keyup
'
,
function
(){
$
(
'.set_goods_price'
).
off
().
on
(
'
blur
'
,
function
(){
var
val
=
$
(
this
).
val
();
var
val
=
$
(
this
).
val
();
if
(
!
val
)
{
if
(
!
val
)
{
...
@@ -1948,11 +1948,19 @@
...
@@ -1948,11 +1948,19 @@
$
(
'.order-change-table'
).
find
(
'tbody tr'
).
each
(
function
(){
$
(
'.order-change-table'
).
find
(
'tbody tr'
).
each
(
function
(){
var
price
=
$
(
this
).
find
(
'.price'
).
val
();
var
price
=
$
(
this
).
find
(
'.price'
).
val
();
var
discount_price
=
parseFloat
(
price
*
discount
).
toFixed
(
4
);
var
origin_price
=
$
(
this
).
find
(
'.price'
).
data
(
'price'
);
var
discount_price
=
0
;
if
(
val
==
1
)
{
discount_price
=
origin_price
;
}
else
{
discount_price
=
parseFloat
(
price
*
discount
).
toFixed
(
4
);
}
$
(
this
).
find
(
'.price'
).
val
(
discount_price
);
$
(
this
).
find
(
'.price'
).
val
(
discount_price
);
})
})
$
(
'.order-change-table input'
).
triggerHandler
(
'
blur
'
);
// 自动触发
$
(
'.order-change-table input'
).
triggerHandler
(
'
keyup
'
);
// 自动触发
})
})
// 选择付款时间
// 选择付款时间
...
...
resources/views/detail/changeOrder.blade.php
View file @
8e1a6d52
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</td>
</td>
<td>
<td>
<span>
{{$currency}}
</span>
<span>
{{$currency}}
</span>
<input
class=
"price only_number"
name=
"change_info[{{$v['rec_id']}}][goods_price]"
data-origin=
"{{$v['original_price']}}"
value=
"{{$v['goods_price']}}"
>
<input
class=
"price only_number"
name=
"change_info[{{$v['rec_id']}}][goods_price]"
data-origin=
"{{$v['original_price']}}"
data-price=
"{{$v['goods_price']}}"
value=
"{{$v['goods_price']}}"
>
</td>
</td>
<!-- 销售类型为预售时展示 -->
<!-- 销售类型为预售时展示 -->
@if ($order_info['sale_type'] == 2)
@if ($order_info['sale_type'] == 2)
...
...
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