Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linshenxs-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈超
linshenxs-shop
Commits
86adcd5d
Commit
86adcd5d
authored
Jul 22, 2022
by
10_noah@other.ren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品管理 上架下架问题修改
parent
de77daa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
src/views/businessGoods/index.vue
+4
-20
No files found.
src/views/businessGoods/index.vue
View file @
86adcd5d
...
@@ -150,16 +150,8 @@
...
@@ -150,16 +150,8 @@
}
}
for
(
let
j
=
0
;
j
<
d
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
d
.
length
;
j
++
){
let
obj
=
d
[
j
]
let
obj
=
d
[
j
]
if
(
obj
.
state
==
1
){
if
(
obj
.
state
!=
2
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 已上架"
)
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 不符合,上架仅作用于下架的商品"
)
return
;
}
if
(
obj
.
state
==
3
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 被平台下架,请先进行修改"
)
return
;
}
if
(
obj
.
state
==
0
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 审核中,请勿重复提交"
)
return
;
return
;
}
}
}
}
...
@@ -185,16 +177,8 @@
...
@@ -185,16 +177,8 @@
for
(
let
j
=
0
;
j
<
d
.
length
;
j
++
){
for
(
let
j
=
0
;
j
<
d
.
length
;
j
++
){
let
obj
=
d
[
j
]
let
obj
=
d
[
j
]
if
(
obj
.
state
==
0
){
if
(
obj
.
state
!=
1
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 审核中,不能下架"
)
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 不符合,下架仅作用于有效的商品"
)
return
;
}
if
(
obj
.
state
==
2
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 已下架"
)
return
;
}
if
(
obj
.
state
==
3
){
this
.
$message
.
error
(
"商品ID:"
+
obj
.
goodsId
+
" 已被平台下架"
)
return
;
return
;
}
}
}
}
...
...
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