Commit e23b2fe3 by cpa

商家端上下架完善。

parent 8ffe4515
...@@ -162,19 +162,16 @@ ...@@ -162,19 +162,16 @@
return return
} }
let a = d.map(r => { return r.stateName }).join(',') let a = d.map(r => { return r.stateName }).join(',')
if(a.search('下架') != -1){ if(a.search('审核中') != -1){
let ids = d.map(r => { return r.id }).join(',') this.$message.error('只作用于商家下架的商品,已经上架正在审核')
this.$confirm('请确认是否上架已勾选的商品', '提示', { return;
confirmButtonText: '确定', }else if (a.search('平台下架') != -1){
cancelButtonText: '取消', this.$message.error('只作用于商家下架的商品,平台下架商品。')
type: 'warning' return;
}).then(function () { }else if(a.search('有效') != -1) {
return isUpon({ids: ids}) this.$message.error('只作用于商家下架的商品,商品已经上架。')
}).then(data => { return;
this.$message.success('上架成功') }else {
this.getList(this.page)
})
}else if(a.search('审核拒绝') != -1){
let ids = d.map(r => { return r.id }).join(',') let ids = d.map(r => { return r.id }).join(',')
this.$confirm('请确认是否上架已勾选的商品', '提示', { this.$confirm('请确认是否上架已勾选的商品', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -187,16 +184,6 @@ ...@@ -187,16 +184,6 @@
this.getList(this.page) 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