fix : 修复需求上报成果展示,需求新增专项资金校验

This commit is contained in:
2024-06-29 22:27:22 +08:00
parent a446dfcaa6
commit 3b884c0b78
5 changed files with 26 additions and 24 deletions

View File

@@ -412,7 +412,7 @@ const handleSubmit = debounce(async (instance) => {
if (formData.value.singleFile !== undefined) {
formData.value.singleFile = getFileParam(formData.value.singleFile)
}
// formData.value.resultForm=formData.value.resultForm?.map(item=>item).join(',')
formData.value.resultForm=JSON.stringify(formData.value.resultForm)
let params = {
...formData.value,
deploymentId: deploymentId.value,
@@ -466,7 +466,7 @@ const handleResubmit = debounce(() => {
if (formData.value.isSpecialFund && formData.value.specialFund === null) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}
// formData.value.resultForm=formData.value.resultForm?.map(item=>item).join(',')
formData.value.resultForm=JSON.stringify(formData.value.resultForm)
let params = {
...formData.value,
deploymentId: deploymentId.value,
@@ -499,6 +499,7 @@ const getDetailInfo = async () => {
})
if (res.code === 1000) {
res.data.formData.specialFundId = res.data.formData.specialFundId === 0 ? null : res.data.formData.specialFundId
res.data.formData.resultForm = JSON.parse(res.data.formData.resultForm)
formData.value = res.data.formData
loading.value = false
}