Commit ce3a98c4 authored by jingnan's avatar jingnan 👀

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

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