Commit 5a0d77f0 by lixiaomin

修改商品提示

parent f65252d5
...@@ -284,6 +284,10 @@ export default { ...@@ -284,6 +284,10 @@ export default {
sendForm.pics = JSON.stringify(sendForm.pics); sendForm.pics = JSON.stringify(sendForm.pics);
sendForm.goodsTagList = this.goodsTagList; sendForm.goodsTagList = this.goodsTagList;
if (sendForm.id != null) { if (sendForm.id != null) {
if(sendForm.state != "4"){
this.$message.error("下架商品之后才可以修改!");
return;
}
updateSpu(sendForm).then((response) => { updateSpu(sendForm).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
......
...@@ -196,6 +196,10 @@ export default { ...@@ -196,6 +196,10 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
if(row.state!="4"){
this.$message.error("下架商品之后才可以删除!");
return;
}
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm('本商品已在店铺中上架,删除商品会在店铺中下架,是否确认删除?') .confirm('本商品已在店铺中上架,删除商品会在店铺中下架,是否确认删除?')
......
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