Commit 86adcd5d by 10_noah@other.ren

商品管理 上架下架问题修改

parent de77daa2
......@@ -150,16 +150,8 @@
}
for(let j=0;j<d.length;j++){
let obj= d[j]
if(obj.state==1){
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+" 审核中,请勿重复提交")
if(obj.state!=2){
this.$message.error("商品ID:"+obj.goodsId+" 不符合,上架仅作用于下架的商品")
return ;
}
}
......@@ -185,16 +177,8 @@
for(let j=0;j<d.length;j++){
let obj= d[j]
if(obj.state==0){
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+" 已被平台下架")
if(obj.state!=1){
this.$message.error("商品ID:"+obj.goodsId+" 不符合,下架仅作用于有效的商品")
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