Commit 8c36983d authored by jingnan's avatar jingnan 👀

配套明细增加区域传值,占用的时候会用

parent 688e1296
...@@ -179,11 +179,23 @@ export default { ...@@ -179,11 +179,23 @@ export default {
if (this.hideMaterial) { if (this.hideMaterial) {
this.tableData.forEach(row => { this.tableData.forEach(row => {
if (!row.extMaterial.resType2.typeCode.includes('金属材料') && !row.extMaterial.resType2.typeCode.includes('工装') && !row.extMaterial.resType2.typeCode.includes('工具') && !row.extMaterial.resType2.typeCode.includes('设备')) { if (!row.extMaterial.resType2.typeCode.includes('金属材料') && !row.extMaterial.resType2.typeCode.includes('工装') && !row.extMaterial.resType2.typeCode.includes('工具') && !row.extMaterial.resType2.typeCode.includes('设备')) {
row.parentAreaName = this.basicData.extProcessPlan &&
this.basicData.extProcessPlan.extSupportings &&
this.basicData.extProcessPlan.extSupportings[0] &&
this.basicData.extProcessPlan.extSupportings[0].extDxProductArea &&
this.basicData.extProcessPlan.extSupportings[0].extDxProductArea.extname || ''
resData.push(row) resData.push(row)
} }
}) })
} else { } else {
resData = this.tableData resData = this.tableData.map(item => {
item.parentAreaName = this.basicData.extProcessPlan &&
this.basicData.extProcessPlan.extSupportings &&
this.basicData.extProcessPlan.extSupportings[0] &&
this.basicData.extProcessPlan.extSupportings[0].extDxProductArea &&
this.basicData.extProcessPlan.extSupportings[0].extDxProductArea.extname || ''
return item
})
} }
return resData return resData
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment