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

@@ -41,8 +41,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="专项资金名称" prop="specialFundId">
<el-select v-model="formData.specialFundId" placeholder="请选择专项资金名称" clearable filterable :disabled="!formData.isSpecialFund">
<el-form-item label="专项资金名称" prop="specialFundId" v-if="formData.isSpecialFund">
<el-select v-model="formData.specialFundId" placeholder="请选择专项资金名称" clearable filterable >
<el-option
v-for="item in specialFundOption"
:key="item.value"
@@ -158,7 +158,7 @@ const specialFundOption = ref([])
const form = ref(null)
const fileList = ref([])
const loading = ref(false)
const showTable = ref(false)
const showTable = ref(true)
const processStore = useProcessStore()
const processInstanceData = ref()
const formPermMap = ref(new Map());

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
}

View File

@@ -136,6 +136,7 @@ const handleDelete = (row) => {
})
if (res.code === 1000) {
formData.value.files.splice(formData.value.files.findIndex((item) => item.id === row.fileId), 1);
showTable.value = formData.value.files.length !== 0;
}
});
}
@@ -246,7 +247,7 @@ const init = async () => {
} else {
ElNotification({
title: '提示',
message: msg,
message: res.msg,
type: 'error'
})
}