商品sku列表错乱问题修复

main
wangdong 6 months ago
parent f5b87fb608
commit 490cb66455
  1. 6
      src/common/model/goods/MultiSpec.js

@ -223,10 +223,10 @@ 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