|
|
|
@ -220,7 +220,6 @@ export default class MultiSpec { |
|
|
|
|
if (!oldSkuList.length || !newSkuList.length) { |
|
|
|
|
return newSkuList |
|
|
|
|
} |
|
|
|
|
console.log(oldSkuList, newSkuList) |
|
|
|
|
for (const index in newSkuList) { |
|
|
|
|
// 查找符合的旧记录
|
|
|
|
|
let oldSkuItem = {} |
|
|
|
@ -230,7 +229,7 @@ export default class MultiSpec { |
|
|
|
|
oldSkuItem = oldSkuList.find( |
|
|
|
|
(item) => |
|
|
|
|
newSkuList[index].tempId === |
|
|
|
|
(item.goods_props && item.goods_props.length > 0) ? item.goods_props.map((v) => v.value.name).join('_') : item.tempId |
|
|
|
|
((item.goods_props && item.goods_props.length > 0) ? item.goods_props.map((v) => v.value.name).join('_') : item.tempId) |
|
|
|
|
) |
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
@ -262,7 +261,6 @@ export default class MultiSpec { |
|
|
|
|
} |
|
|
|
|
return newSkuList |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 生成sku表格字段名
|
|
|
|
|
buildSkuColumns (rowSpanArr) { |
|
|
|
|
const specList = this.multiSpecData.specList |
|
|
|
|