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
971e1f30
Commit
971e1f30
authored
Jul 21, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品审核通过
parent
9f74555d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
src/views/businessGoods/index.vue
+27
-18
No files found.
src/views/businessGoods/index.vue
View file @
971e1f30
...
...
@@ -161,9 +161,7 @@
this
.
$message
.
error
(
'请选择项进行上架'
)
return
}
let
a
=
d
.
map
(
r
=>
{
return
r
.
stateName
}).
join
(
','
)
if
(
a
.
search
(
'平台下架'
)
!=
-
1
){
this
.
$message
.
error
(
'平台下架商品,无法操作'
)
return
;
...
...
@@ -197,25 +195,36 @@
if
(
a
.
search
(
'平台下架'
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
return
;
}
else
if
(
a
.
search
(
'有效'
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
return
;
}
else
if
(
a
.
search
(
''
)
!=
-
1
){
this
.
$message
.
error
(
'只能下架,上架商品'
)
}
else
if
(
a
.
search
(
'下架'
)
!=
-
1
){
this
.
$message
.
error
(
'商品已经下架'
)
return
;
}
else
if
(
a
.
search
(
'审核中'
)
!=
-
1
){
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'商品正在审核,是否确认下架'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
}).
then
(
function
()
{
return
isNotUpon
({
ids
:
ids
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'下架成功'
)
this
.
getList
(
this
.
page
)
})
}
else
{
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否下架已勾选的商品'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
isNotUpon
({
ids
:
ids
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'下架成功'
)
this
.
getList
(
this
.
page
)
})
}
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否下架已勾选的商品'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
isNotUpon
({
ids
:
ids
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'下架成功'
)
this
.
getList
(
this
.
page
)
})
},
// 批量删除
handleDelBatch
()
{
...
...
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