fix : 修复归档附件bug

This commit is contained in:
dj
2025-05-28 23:50:59 +08:00
parent 7c2d713035
commit 9758981d3f

View File

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