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) {
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)