Merge pull request 'fix : 修复归档附件bug' (#1018) from master into prod
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/1018
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user