|
|
@ -227,7 +227,11 @@ export default class MultiSpec { |
|
|
|
// if (oldSkuList.length === newSkuList.length) {
|
|
|
|
// if (oldSkuList.length === newSkuList.length) {
|
|
|
|
// oldSkuItem = _.cloneDeep(oldSkuList[index])
|
|
|
|
// oldSkuItem = _.cloneDeep(oldSkuList[index])
|
|
|
|
// } else {
|
|
|
|
// } else {
|
|
|
|
oldSkuItem = oldSkuList.find(item => newSkuList[index].tempId === item.goods_props.map(v => v.value.name).join('_')) |
|
|
|
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 |
|
|
|
|
|
|
|
) |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
const item = newSkuList[index] |
|
|
|
const item = newSkuList[index] |
|
|
|