Commit 53d9b524 by 张立顺

fix 判空处理

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