From 70ffe5c1ebff5dde4cf80448e2f2eaedaf88a0df Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 4 Jul 2024 12:30:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E5=88=86=E6=91=8A?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/expense-management/share/add.vue | 27 +++------------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/views/expense-management/share/add.vue b/src/views/expense-management/share/add.vue index f0917d6..29eb247 100644 --- a/src/views/expense-management/share/add.vue +++ b/src/views/expense-management/share/add.vue @@ -320,7 +320,7 @@ const handleSubmit = (instance) => { usrAllocations: formData.value.tableData, deploymentId: processInstanceData.value.deploymentId, } - console.log('params', params, formData.value.tableData) + // console.log('params', params, formData.value.tableData) const {code, msg} = await addAllocation(params) ElNotification({ title: '提示', @@ -346,8 +346,6 @@ const handleResubmit = (instance) => { }) return; } - let newUsrAllocationsObj = {} - let newUsrAllocationsObjArray = [] let researchPersonnelId = '' formData.value.tableData.forEach(item => { item.allocationId = formData.value.allocationId @@ -356,24 +354,6 @@ const handleResubmit = (instance) => { if (item.performance == 0) { item.performance = null } - newUsrAllocationsObj = { - allocationId: formData.value.allocationId, - id: item.id, - projectId: item.projectId, - projectName: item.projectName, - researchPersonnel: item.researchPersonnel, - researchPersonnelId: item.researchPersonnelId, - wagesPayable: item.wagesPayable, - performance: item.performance, - reserveFund: item.reserveFund, - socialSecurity: item.socialSecurity, - time: item.time, - subtotal: item.subtotal, - annuity: item.annuity, - workday: item.workday, - researchDuration: item.researchDuration, - } - newUsrAllocationsObjArray.push(newUsrAllocationsObj) }) if (!researchPersonnelId) { ElNotification({ @@ -383,15 +363,14 @@ const handleResubmit = (instance) => { }) return; } - console.log('formData.value.apportionmentMonth',new Date(formData.value.apportionmentMonth)) let params = { allocationId: formData.value.allocationId, shareName: formData.value.shareName, apportionmentMonth: formData.value.apportionmentMonth, - usrAllocations:newUsrAllocationsObjArray, + usrAllocations:formData.value.tableData, deploymentId: processInstanceData.value.deploymentId, } - console.log('params', params, formData.value.tableData) + // console.log('params', params, formData.value.tableData) const {code, msg} = await editAllocation(params) ElNotification({ title: '提示',