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
161bd9eb
authored
Jul 29, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整售后
parent
46dfc89d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
public/js/order_service.js
public/js/order_service.js
View file @
161bd9eb
...
...
@@ -232,6 +232,15 @@
})
})
// 选择售后类型
$
(
'.service_type'
).
change
(
function
()
{
var
val
=
$
(
this
).
val
();
if
(
val
==
2
)
{
// 出库类型,则校验申请数量
$
(
'.adjust_number'
).
trigger
(
'keyup'
);
}
})
// 数量输入校验
$
(
document
).
delegate
(
'.adjust_number'
,
'keyup'
,
function
()
{
var
val
=
$
(
this
).
val
();
...
...
@@ -247,12 +256,16 @@
var
service_type
=
$
(
'.service_type'
).
val
();
// 售后类型
var
fqty
=
$
(
this
).
parents
(
'tr'
).
find
(
'.fqty'
).
text
();
if
(
service_type
==
2
)
{
// 出库退货
if
(
parseInt
(
val
)
>
parseInt
(
fqty
))
{
layer
.
tips
(
'不能超过订单出库数量'
,
$
(
this
));
$
(
this
).
val
(
''
);
return
false
;
}
if
(
service_type
==
2
&&
parseInt
(
val
)
>
parseInt
(
fqty
))
{
// 出库退货
layer
.
tips
(
'不能超过订单出库数量'
,
$
(
this
));
$
(
this
).
val
(
''
);
return
false
;
}
if
(
service_type
==
1
&&
fqty
)
{
// 未出库取消类型 且 出库数量存在
layer
.
tips
(
'该明细已出库,不支持未出库取消类型'
,
$
(
this
));
$
(
this
).
val
(
''
);
return
false
;
}
var
single_pre_price
=
parseFloat
(
$
(
this
).
parents
(
'tr'
).
find
(
'.single_pre_price'
).
html
());
// 原订单均摊单价
...
...
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