Commit 53d9b524 by 张立顺

fix 判空处理

1 parent 570a74e9
......@@ -427,15 +427,18 @@ export default {
specificationName = specificationName + goodsSpecificationNameList[subIndex].specificationName
specificationType = specificationType + goodsSpecificationNameList[subIndex].type
})
item.seriesConfigList = item.seriesConfigList.map(item => {
if (item.hasOwnProperty('updatedDate')) {
delete item.updatedDate
}
if (item.hasOwnProperty('createdDate')) {
delete item.createdDate
}
return item
})
if (item.seriesConfigList) {
item.seriesConfigList = item.seriesConfigList.map(item => {
if (item.hasOwnProperty('updatedDate')) {
delete item.updatedDate
}
if (item.hasOwnProperty('createdDate')) {
delete item.createdDate
}
return item
})
}
goodsSpecificationList.push({
baseGoodsId: data.baseGoodsId,
goodsCode: data.goodsCode,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!