Commit 0b9224a0 by LJM

bug

parent 7e422f37
Showing with 9 additions and 5 deletions
...@@ -587,7 +587,7 @@ export default { ...@@ -587,7 +587,7 @@ export default {
//修改上架有效期 //修改上架有效期
this.dialogVisible3 = true; this.dialogVisible3 = true;
for (let i = 0; i < this.selectData.length; i++) { for (let i = 0; i < this.selectData.length; i++) {
this.selectData[i].cp_time_temp=this.selectData[i].cp_time; this.selectData[i].cp_time_temp = this.selectData[i].cp_time;
} }
this.cpdata = this.selectData; this.cpdata = this.selectData;
} }
...@@ -679,9 +679,10 @@ export default { ...@@ -679,9 +679,10 @@ export default {
return return
} }
var arr = []; var arr = [];
for (var i = 0; i < this.multipleSelection.length; i++) { arr = this.multipleSelection.map(obj => {
arr.push(this.multipleSelection[i]['goods_id']) return obj.goods_id;
} });
this.$http('post', "/api/sku/updateSkuStatus", { this.$http('post', "/api/sku/updateSkuStatus", {
sku_ids: arr.join(","), sku_ids: arr.join(","),
status: status == 1 ? 'passed' : 'offshelf' status: status == 1 ? 'passed' : 'offshelf'
...@@ -693,7 +694,10 @@ export default { ...@@ -693,7 +694,10 @@ export default {
}); });
this.getData() this.getData()
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
} }
......
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 sign in to comment