fix(project-demand): 修复专项基金选择问题

This commit is contained in:
dj
2025-05-21 12:55:23 +08:00
parent 9adea1060c
commit 673a26368a

View File

@@ -434,6 +434,7 @@ import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.v
import {getFormInfo, getInfo} from "@/api/project-demand";
import {getFundOption} from "@/api/special-fund";
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
import {nextTick} from "vue";
const authStore = useAuthStore()
const changeDiagram = ref(false)
@@ -721,6 +722,9 @@ const handleSubmit = debounce(async (instance) => {
}
if (formData.value.isSpecialFund && !formData.value.specialFund) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}else{
formData.value.specialFundId=0
formData.value.specialFund=null
}
if (formData.value.masterProjectId) {
formData.value.masterProjectName = getProjectName(formData.value.masterProjectId)
@@ -781,6 +785,9 @@ const handleResubmit = debounce((instance) => {
formData.value.optionalChargeLeadership = optionalChargeLeadershipList.value
if (formData.value.isSpecialFund && !formData.value.specialFund) {
formData.value.specialFund = getFundName(formData.value.specialFundId)
}else{
formData.value.specialFundId=0
formData.value.specialFund=null
}
if (formData.value.masterProjectId) {
formData.value.masterProjectName = getProjectName(formData.value.masterProjectId)