Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integral-mall
Overview
Overview
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
integralMall
integral-mall
Commits
049a1b82
Commit
049a1b82
authored
Sep 18, 2021
by
黑潮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 库存判断
parent
e77aa558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
getSkuList.vue
src/components/getSkuList.vue
+2
-2
No files found.
src/components/getSkuList.vue
View file @
049a1b82
...
...
@@ -294,11 +294,11 @@ export default {
}
if
(
this
.
intergralModal
.
type
===
'stock'
)
{
//库存
if
(
!
params
.
virtualStock
)
{
if
(
!
params
.
virtualStock
&&
params
.
virtualStock
!==
0
)
{
this
.
$message
.
error
(
'请输入库存'
);
return
false
;
}
if
(
Number
(
params
.
virtualStock
)
===
0
)
{
if
(
Number
(
params
.
virtualStock
)
+
Number
(
this
.
currentStock
)
===
0
)
{
this
.
$message
.
error
(
'库存为0不允许修改'
);
return
false
;
}
...
...
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