fix : 重新提交全流程初步完成

This commit is contained in:
2024-05-20 23:01:53 +08:00
parent 6c80652416
commit 3270aeef06
12 changed files with 280 additions and 189 deletions

View File

@@ -344,7 +344,7 @@ const handleSubmit = async (instance) => {
})
let params = {
"specialFund": "2",
"projectName": "重新提交全流程测试",
"projectName": "重新提交全流程测试2024520",
"startTime": "2024-05-24 00:00:00",
"endTime": "2024-05-29 00:00:00",
"projectType": "3",
@@ -363,19 +363,18 @@ const handleSubmit = async (instance) => {
"resultForm": "3",
"projectImpact": "3",
"rdSubject": "3",
"affiliatedCompanyId": 93,
"affiliatedCompanyId": formData.value.affiliatedCompanyId,
"serviceDescription": "3",
"contentDescription": "3",
"specialFundAmount": "3",
deploymentId: deploymentId.value,
"singleFile": singleFile,
"files": otherFiles,
// "requirementId":route.query.id,
"requirementId": 102
"requirementId":route.query.id
}
// ...formData.value,
// deploymentId: deploymentId.value,
// files: files,
// fileList: files,
// requirementId:102
// }
let res = await requirementReported(params)
@@ -416,9 +415,9 @@ const handleResubmit = () => {
let params={
...formData.value,
deploymentId: deploymentId.value,
files: otherFiles,
fileList: otherFiles,
singleFile: singleFile,
requirementId: 102
requirementId: route.query.id
}
console.log('重新提交params',params)
resubmitReported(params).then(res => {
@@ -473,12 +472,11 @@ const init = async () => {
})
}
onMounted(async () => {
loading.value=true
await init()
if (route.query.projectId) {
loading.value=true
await getDetailInfo()
}
})
const staging = async () => {
}

View File

@@ -15,6 +15,7 @@ import {useProcessStore} from '@/stores/processStore.js';
import {getMapProjectStateInfo} from '@/components/steps/api';
import CollectionDetail from "@/components/DetailComponent/CollectionDetail.vue";
import {getSubCompOpt} from "@/api/user/user";
import {ElNotification} from "element-plus";
const route = useRoute()
const companyOption = ref([])
@@ -33,18 +34,25 @@ const getInfo = async (state) => {
await getCompanyOption()
summaryProcessViewer.value = false
loading.value = true
const {code, data} = await getMapProjectStateInfo(projectId, state)
summaryData.value = data;
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
processStore.endList.value = data.endList;
processStore.noTakeList.value = data.noTakeList;
processStore.refuseList.value = data.refuseList;
processStore.passList.value = data.passList;
nextTick(() => {
summaryProcessViewer.value = true
const {code, data,msg} = await getMapProjectStateInfo(projectId, state)
ElNotification({
title: '提示',
message: msg,
type: code === 1000 ? 'success' : 'error'
})
if(code===1000){
summaryData.value = data;
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
processStore.endList.value = data.endList;
processStore.noTakeList.value = data.noTakeList;
processStore.refuseList.value = data.refuseList;
processStore.passList.value = data.passList;
nextTick(() => {
summaryProcessViewer.value = true
})
}
}
const setDetail = (active) => {