Commit ce3a98c4 authored by jingnan's avatar jingnan 👀

检验人任务执行操作工无数据时前端报错修改

parent 98bc160d
...@@ -342,11 +342,11 @@ export default { ...@@ -342,11 +342,11 @@ export default {
item.inspectPerson = [] item.inspectPerson = []
item.prodTask.forEach(element => { item.prodTask.forEach(element => {
if (element.subTypeName === 'CheckOut') { if (element.subTypeName === 'CheckOut') {
if (element.extProcessSkillUser) { if (element.extProcessSkillUser && element.extProcessSkillUser.dxUserInfo) {
item.inspectPerson.push(element.extProcessSkillUser.dxUserInfo.name) item.inspectPerson.push(element.extProcessSkillUser.dxUserInfo.name)
} }
} else if (element.subTypeName === 'FitOut') { } else if (element.subTypeName === 'FitOut') {
if (element.extProcessSkillUser) { if (element.extProcessSkillUser && element.extProcessSkillUser.dxUserInfo) {
item.operatPerson.push(element.extProcessSkillUser.dxUserInfo.name) item.operatPerson.push(element.extProcessSkillUser.dxUserInfo.name)
} }
} }
......
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
vice: (p.prodTask && vice: (p.prodTask &&
p.prodTask.filter(t => t.subTypeName === 'FitOut') p.prodTask.filter(t => t.subTypeName === 'FitOut')
.map((q) => { .map((q) => {
return q.extProcessSkillUser ? q.extProcessSkillUser.dxUserInfo.name : '' return q.extProcessSkillUser && q.extProcessSkillUser.dxUserInfo ? q.extProcessSkillUser.dxUserInfo.name : ''
}) })
.join(' ')) .join(' '))
}, },
...@@ -264,7 +264,7 @@ export default { ...@@ -264,7 +264,7 @@ export default {
(p.prodTask && (p.prodTask &&
p.prodTask.filter(t => t.subTypeName === 'CheckOut') p.prodTask.filter(t => t.subTypeName === 'CheckOut')
.map((q) => { .map((q) => {
return q.extProcessSkillUser ? q.extProcessSkillUser.dxUserInfo.name : '' return q.extProcessSkillUser && q.extProcessSkillUser.dxUserInfo ? q.extProcessSkillUser.dxUserInfo.name : ''
}) })
.join(' ')), .join(' ')),
planStateCode: planStateCode:
......
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