Commit 3be652d8 authored by 15008242619's avatar 15008242619

退库单退库入库,工艺审核节点增加试飞中心工艺员

parent 8c49b7c1
...@@ -90,8 +90,8 @@ export default { ...@@ -90,8 +90,8 @@ export default {
'items': [ 'items': [
{ {
'fieldName': 'source.name', 'fieldName': 'source.name',
'operator': 'EQ', 'operator': 'IN',
'value': '工艺员' 'value': ['工艺员', '试飞工艺员']
} }
], ],
'operator': 'AND' 'operator': 'AND'
...@@ -116,14 +116,30 @@ export default { ...@@ -116,14 +116,30 @@ export default {
] ]
} }
post('/DxGroupMemberLink/search', httpParams).then(res => { post('/DxGroupMemberLink/search', httpParams).then(res => {
const arr = []
const ids = []
res.items.content.forEach(item => {
if (ids.indexOf(item.target.id) === -1) {
ids.push(item.target.id)
arr.push({
value: item.target.id,
label: item.target.name + '/' + item.target.number
})
}
})
this.formData[0].data.forEach(item => { this.formData[0].data.forEach(item => {
item.key === 'userIds' && (item.component.options = res.items.content.map(row => { if (item.key === 'userIds') {
item.component.options = arr
}
/**
item.key === 'userIds' && (item.component.options = arr.map(row => {
return { return {
value: row.target.id, value: row.value,
label: row.target.name + '/' + row.target.number label: row.label
} }
} }
)) ))
*/
}) })
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
......
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