refactor(project-demand): 优化需求变更时特殊基金逻辑
This commit is contained in:
@@ -388,7 +388,7 @@ import {useCacheStore} from '@/stores/cache.js'
|
|||||||
import {useProcessStore} from '@/stores/processStore.js';
|
import {useProcessStore} from '@/stores/processStore.js';
|
||||||
import {getSubCompOpt} from "@/api/user/user";
|
import {getSubCompOpt} from "@/api/user/user";
|
||||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||||
import {getFormInfo} from "@/api/project-demand";
|
import {getFormInfo, getInfo} from "@/api/project-demand";
|
||||||
import {getFundOption} from "@/api/special-fund";
|
import {getFundOption} from "@/api/special-fund";
|
||||||
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
import UserPicker from "@/views/workflow/process/common/UserPicker.vue";
|
||||||
|
|
||||||
@@ -474,18 +474,17 @@ if (name.value === 'Summary/edit') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const changeRequirement=async ()=>{
|
const changeRequirement=async ()=>{
|
||||||
console.log('formData.requirementId',formData.requirementId)
|
await getInfo(formData.value.requirementId).then(res => {
|
||||||
// await getFormInfo(route.query.id).then(res => {
|
if (res.code === 1000) {
|
||||||
// if (res.code === 1000) {
|
|
||||||
// formData.value.requirementDefaultName = res.data.requirementName
|
console.log('formData.requirementId',formData.value.requirementId,res)
|
||||||
// // loading.value = false
|
formData.value.isSpecialFund = res.data.formData.isSpecialFund
|
||||||
// formData.value.isSpecialFund = res.data.isSpecialFund
|
if ( res.data.formData.isSpecialFund) {
|
||||||
// if (res.data.isSpecialFund) {
|
formData.value.specialFundId = res.data.formData.specialFundId
|
||||||
// formData.value.specialFundId = res.data.specialFundId
|
formData.value.specialFund = res.data.formData.specialFund
|
||||||
// formData.value.specialFund = res.data.specialFund
|
}
|
||||||
// }
|
}
|
||||||
// }
|
})
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
const changeCollectData = () => {
|
const changeCollectData = () => {
|
||||||
if (name.value === 'Summary/edit') {
|
if (name.value === 'Summary/edit') {
|
||||||
|
|||||||
Reference in New Issue
Block a user