fix : 修复归档附件bug
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user