fix : 分摊研发人员回显

This commit is contained in:
2024-07-04 14:13:26 +08:00
parent c065008da0
commit 08bc318875

View File

@@ -214,13 +214,14 @@ const showPersonnelPicker = (row, index) => {
accountType: row.accountType,
}
userList.value=[userObj]
}else if(!row.researchPersonnel){
userList.value=[]
}
nextTick(() => {
userPicker.value.showUserPicker()
})
}
const selected = (select) => {
console.log('select',select)
if (!select || select.length === 0) {
return
}
@@ -232,7 +233,7 @@ const selected = (select) => {
item.accountType = select[0].accountType
}
})
// userList.value=select
userList.value=select
}
const getResearchOptions = async () => {
const res = await getResearchUser()
@@ -272,6 +273,8 @@ const handleCopy = (row) => {
let copyObj = {
projectId: row.projectId,
projectName: '',
accountType: row.accountType,
companyName: row.companyName,
researchPersonnelId: row.researchPersonnelId,
researchPersonnel: row.researchPersonnel,
wagesPayable: row.wagesPayable,