From e4025b90e9ddcecddaa4ec7e480ddd79382db99e Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Sun, 8 Jun 2025 23:08:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(expense-management):=20=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E6=8E=89=E7=A0=94=E5=8F=91=E4=BA=BA=E5=91=98=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E6=80=A7=E6=A3=80=E6=9F=A5=E4=BB=A3=E7=A0=81=20-=20?= =?UTF-8?q?=E5=9C=A8=20add.vue=20=E6=96=87=E4=BB=B6=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E4=BA=86=E4=B8=A4=E6=AE=B5=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E6=A3=80=E6=9F=A5=E7=A0=94=E5=8F=91=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=80=A7=E7=9A=84=E4=BB=A3=E7=A0=81=20-=20?= =?UTF-8?q?=E6=AD=A4=E4=BF=AE=E6=94=B9=E5=8F=AF=E8=83=BD=E6=98=AF=E4=B8=BA?= =?UTF-8?q?=E4=BA=86=E6=9A=82=E6=97=B6=E7=A6=81=E7=94=A8=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=80=A7=E6=A3=80=E6=9F=A5=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=88=96?= =?UTF-8?q?=E8=80=85=E5=87=86=E5=A4=87=E6=9B=BF=E6=8D=A2=E4=B8=BA=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../expense-management/share-detail/add.vue | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/src/views/expense-management/share-detail/add.vue b/src/views/expense-management/share-detail/add.vue index 764e864..3253efb 100644 --- a/src/views/expense-management/share-detail/add.vue +++ b/src/views/expense-management/share-detail/add.vue @@ -182,22 +182,22 @@ const selectProject=(row,index)=>{ const researchPersonnelNumObj = getSelectProjectAndResearchPersonnelNum(researchPersonnelIdArray) let repeatProjectName=getProjectName(row.projectId) // console.log('currentRow.value',currentRow.value) - for (let researchPersonnelIdKey in researchPersonnelNumObj) {//先判断人员是否重复 - if(currentRow.value.projectId){ - if(researchPersonnelNumObj[researchPersonnelIdKey]>1){ - ElNotification({ - title: '警告', - message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`, - type: 'warning', - }) - row.researchPersonnelId = '' - row.researchPersonnel = '' - row.companyName = '' - row.accountType = '' - } - } - - } + // for (let researchPersonnelIdKey in researchPersonnelNumObj) {//先判断人员是否重复 + // if(currentRow.value.projectId){ + // if(researchPersonnelNumObj[researchPersonnelIdKey]>1){ + // ElNotification({ + // title: '警告', + // message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`, + // type: 'warning', + // }) + // row.researchPersonnelId = '' + // row.researchPersonnel = '' + // row.companyName = '' + // row.accountType = '' + // } + // } + // + // } // for (let projectIdKey in projectNumObj) { // // console.log('projectNumObjKey', projectIdKey, projectNumObj[projectIdKey]) // if(projectNumObj[projectIdKey]>1){ @@ -263,27 +263,27 @@ const selectedResearchPersonnel = (select) => { repeatProjectName=getProjectName(projectIdKey) } } - for (let researchPersonnelIdKey in researchPersonnelNumObj) { - // console.log('researchPersonnelIdKey', researchPersonnelIdKey, researchPersonnelNumObj[researchPersonnelIdKey]) - if(researchPersonnelNumObj[researchPersonnelIdKey]>1&&repeatProjectName&¤tRow.value.projectId){ - isRepeatResearchPersonnel.value=true - ElNotification({ - title: '警告', - message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`, - type: 'warning', - }) - formData.value.tableData.forEach((item,index)=>{ - if (index === currentIndex.value) { - item.researchPersonnelId = '' - item.researchPersonnel = '' - item.companyName = '' - item.accountType = '' - } - }) - }else{ - userList.value = select - } - } + // for (let researchPersonnelIdKey in researchPersonnelNumObj) { + // // console.log('researchPersonnelIdKey', researchPersonnelIdKey, researchPersonnelNumObj[researchPersonnelIdKey]) + // if(researchPersonnelNumObj[researchPersonnelIdKey]>1&&repeatProjectName&¤tRow.value.projectId){ + // isRepeatResearchPersonnel.value=true + // ElNotification({ + // title: '警告', + // message: `${repeatProjectName} 项目下,同一个研发人员不能分摊多次!`, + // type: 'warning', + // }) + // formData.value.tableData.forEach((item,index)=>{ + // if (index === currentIndex.value) { + // item.researchPersonnelId = '' + // item.researchPersonnel = '' + // item.companyName = '' + // item.accountType = '' + // } + // }) + // }else{ + // userList.value = select + // } + // } } /**