|
|
|
@ -222,11 +222,11 @@ export default class MultiSpec { |
|
|
|
|
for (const index in newSkuList) { |
|
|
|
|
// 查找符合的旧记录
|
|
|
|
|
let oldSkuItem = {} |
|
|
|
|
/* if (oldSkuList.length === newSkuList.length) { |
|
|
|
|
// if (oldSkuList.length === newSkuList.length) {
|
|
|
|
|
oldSkuItem = _.cloneDeep(oldSkuList[index]) |
|
|
|
|
} else { |
|
|
|
|
oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId) |
|
|
|
|
} */ |
|
|
|
|
// } else {
|
|
|
|
|
// oldSkuItem = oldSkuList.find(item => item.tempId === newSkuList[index].tempId)
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
const item = newSkuList[index] |
|
|
|
|
|
|
|
|
@ -397,10 +397,10 @@ export default class MultiSpec { |
|
|
|
|
const skuItem = skuList[skuIndex] |
|
|
|
|
for (const colIndex in columns) { |
|
|
|
|
const value = skuItem[columns[colIndex].field] |
|
|
|
|
if (value === '' || value === null) { |
|
|
|
|
this.error = `${columns[colIndex].name}不能为空` |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
// if (value === '' || value === null) {
|
|
|
|
|
// this.error = `${columns[colIndex].name}不能为空`
|
|
|
|
|
// return false
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|