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
e23b2fe3
Commit
e23b2fe3
authored
Jul 21, 2022
by
cpa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商家端上下架完善。
parent
8ffe4515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
23 deletions
+10
-23
src/views/businessGoods/index.vue
+10
-23
No files found.
src/views/businessGoods/index.vue
View file @
e23b2fe3
...
...
@@ -162,19 +162,16 @@
return
}
let
a
=
d
.
map
(
r
=>
{
return
r
.
stateName
}).
join
(
','
)
if
(
a
.
search
(
'下架'
)
!=
-
1
){
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否上架已勾选的商品'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
isUpon
({
ids
:
ids
})
}).
then
(
data
=>
{
this
.
$message
.
success
(
'上架成功'
)
this
.
getList
(
this
.
page
)
})
}
else
if
(
a
.
search
(
'审核拒绝'
)
!=
-
1
){
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
(
'只作用于商家下架的商品,商品已经上架。'
)
return
;
}
else
{
let
ids
=
d
.
map
(
r
=>
{
return
r
.
id
}).
join
(
','
)
this
.
$confirm
(
'请确认是否上架已勾选的商品'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -187,16 +184,6 @@
this
.
getList
(
this
.
page
)
})
}
else
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
(
'只作用于商家下架的商品,商品已经上架。'
)
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