Commit e23b2fe3 by cpa

商家端上下架完善。

parent 8ffe4515
......@@ -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;
}
},
// 批量 下架
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment