商品sku组合错乱

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

@ -223,9 +223,9 @@ export default class MultiSpec {
// 查找符合的旧记录
let oldSkuItem = {}
// if (oldSkuList.length === newSkuList.length) {
oldSkuItem = _.cloneDeep(oldSkuList[index])
// oldSkuItem = _.cloneDeep(oldSkuList[index])
// } 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]

Loading…
Cancel
Save