diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue index a3914b2..d858451 100644 --- a/src/components/DetailComponent/ProjectApply.vue +++ b/src/components/DetailComponent/ProjectApply.vue @@ -669,11 +669,11 @@ const handleSubmit = async (instance) => { if (props.step == 50) { let files = [] if (props.mode === 'resubmit') { - attachment.value.allFileList?.forEach(item => { + attachment.value.allFileList.forEach(item => { files.push(getFileParam(item)) }) } else { - otherFileList.value?.forEach(item => { + otherFileList.value.forEach(item => { files.push(getFileParam(item)) }) } @@ -696,10 +696,10 @@ const handleSubmit = async (instance) => { let params = { deploymentId: deploymentId.value, requirementId: route.query.id, - fileList: files||[], + ...localFormData.value, + fileList: files, // singleFile: attachment.value.singleFile, projectId: route.query.projectId, - ...localFormData.value, actualEconomicEstimate: parseFloat(localFormData.value.actualEconomicEstimate), specialFundAmount: parseFloat(localFormData.value.specialFundAmount), preProcess: JSON.stringify(localFormData.value.preProcess) @@ -707,7 +707,7 @@ const handleSubmit = async (instance) => { if (sessionParams.value.preProcess && !localFormData.value.preProcess) { params.preProcess = JSON.stringify(sessionParams.value.preProcess) } - console.log('params', params) + console.log('params', params.fileList) let res if (props.mode === 'resubmit') { res = await resubmitConclusion(params)