Commit 0b9224a0 by LJM

bug

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