商品sku组合错乱

main
wangdong 6 months ago
parent 9f59bac136
commit 9f968113db
  1. 6
      src/common/model/goods/MultiSpec.js

@ -223,10 +223,10 @@ export default class MultiSpec {
// 查找符合的旧记录 // 查找符合的旧记录
let oldSkuItem = {} let oldSkuItem = {}
// if (oldSkuList.length === newSkuList.length) { // if (oldSkuList.length === newSkuList.length) {
oldSkuItem = _.cloneDeep(oldSkuList[index]) // oldSkuItem = _.cloneDeep(oldSkuList[index])
// } else { // } else {
// oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId) oldSkuItem = oldSkuList.find(item => newSkuList[index].tempId === item.goods_props.map(v => v.value.name).join('_'))
// } // }
const item = newSkuList[index] const item = newSkuList[index]

Loading…
Cancel
Save