Commit 3fd5ee2d authored by your yuchenglong's avatar your yuchenglong

update:商品库添加

parent d4ce8781
......@@ -491,17 +491,18 @@ export default {
if (this.comTableData.length == 0) {
this.comTableData.push(...this.multipleSelection);
} else {
for (var i in this.comTableData) {
for(var j in this.multipleSelection)
if (
this.comTableData[i].goods_sku_id !=
this.multipleSelection[j].goods_sku_id
) {
continue;
} else {
this.comTableData.push(this.multipleSelection[j]);
}
this.multipleSelection.forEach((item) => {
let num = 0;
this.comTableData.some((val) => {
num++;
if (val.goods_sku_id === item.goods_sku_id) {
val.goods_sku_id = item.goods_sku_id;
return true;
} else if (num === this.comTableData.length) {
this.comTableData.push(Object.assign({}, item));
}
});
});
}
},
......
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