refactor(expense-management): 注释掉研发人员重复性检查代码
- 在 add.vue 文件中,注释掉了两段用于检查研发人员重复性的代码 - 此修改可能是为了暂时禁用重复性检查功能,或者准备替换为新的检查逻辑
This commit is contained in:
@@ -182,22 +182,22 @@ const selectProject=(row,index)=>{
|
|||||||
const researchPersonnelNumObj = getSelectProjectAndResearchPersonnelNum(researchPersonnelIdArray)
|
const researchPersonnelNumObj = getSelectProjectAndResearchPersonnelNum(researchPersonnelIdArray)
|
||||||
let repeatProjectName=getProjectName(row.projectId)
|
let repeatProjectName=getProjectName(row.projectId)
|
||||||
// console.log('currentRow.value',currentRow.value)
|
// console.log('currentRow.value',currentRow.value)
|
||||||
for (let researchPersonnelIdKey in researchPersonnelNumObj) {//先判断人员是否重复
|
// for (let researchPersonnelIdKey in researchPersonnelNumObj) {//先判断人员是否重复
|
||||||
if(currentRow.value.projectId){
|
// if(currentRow.value.projectId){
|
||||||
if(researchPersonnelNumObj[researchPersonnelIdKey]>1){
|
// if(researchPersonnelNumObj[researchPersonnelIdKey]>1){
|
||||||
ElNotification({
|
// ElNotification({
|
||||||
title: '警告',
|
// title: '警告',
|
||||||
message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`,
|
// message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`,
|
||||||
type: 'warning',
|
// type: 'warning',
|
||||||
})
|
// })
|
||||||
row.researchPersonnelId = ''
|
// row.researchPersonnelId = ''
|
||||||
row.researchPersonnel = ''
|
// row.researchPersonnel = ''
|
||||||
row.companyName = ''
|
// row.companyName = ''
|
||||||
row.accountType = ''
|
// row.accountType = ''
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
}
|
// }
|
||||||
// for (let projectIdKey in projectNumObj) {
|
// for (let projectIdKey in projectNumObj) {
|
||||||
// // console.log('projectNumObjKey', projectIdKey, projectNumObj[projectIdKey])
|
// // console.log('projectNumObjKey', projectIdKey, projectNumObj[projectIdKey])
|
||||||
// if(projectNumObj[projectIdKey]>1){
|
// if(projectNumObj[projectIdKey]>1){
|
||||||
@@ -263,27 +263,27 @@ const selectedResearchPersonnel = (select) => {
|
|||||||
repeatProjectName=getProjectName(projectIdKey)
|
repeatProjectName=getProjectName(projectIdKey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let researchPersonnelIdKey in researchPersonnelNumObj) {
|
// for (let researchPersonnelIdKey in researchPersonnelNumObj) {
|
||||||
// console.log('researchPersonnelIdKey', researchPersonnelIdKey, researchPersonnelNumObj[researchPersonnelIdKey])
|
// // console.log('researchPersonnelIdKey', researchPersonnelIdKey, researchPersonnelNumObj[researchPersonnelIdKey])
|
||||||
if(researchPersonnelNumObj[researchPersonnelIdKey]>1&&repeatProjectName&¤tRow.value.projectId){
|
// if(researchPersonnelNumObj[researchPersonnelIdKey]>1&&repeatProjectName&¤tRow.value.projectId){
|
||||||
isRepeatResearchPersonnel.value=true
|
// isRepeatResearchPersonnel.value=true
|
||||||
ElNotification({
|
// ElNotification({
|
||||||
title: '警告',
|
// title: '警告',
|
||||||
message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`,
|
// message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`,
|
||||||
type: 'warning',
|
// type: 'warning',
|
||||||
})
|
// })
|
||||||
formData.value.tableData.forEach((item,index)=>{
|
// formData.value.tableData.forEach((item,index)=>{
|
||||||
if (index === currentIndex.value) {
|
// if (index === currentIndex.value) {
|
||||||
item.researchPersonnelId = ''
|
// item.researchPersonnelId = ''
|
||||||
item.researchPersonnel = ''
|
// item.researchPersonnel = ''
|
||||||
item.companyName = ''
|
// item.companyName = ''
|
||||||
item.accountType = ''
|
// item.accountType = ''
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}else{
|
// }else{
|
||||||
userList.value = select
|
// userList.value = select
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user