fix : 修复阶段变更/详情/编辑功能

This commit is contained in:
2024-06-04 18:23:42 +08:00
parent 8f1cc442ac
commit b9d33bd6e4
9 changed files with 228 additions and 42 deletions

View File

@@ -0,0 +1,55 @@
<template>
<ApprovalDetail :formData="summaryData.formData" :data="summaryData"
:processViewer="summaryProcessViewer" :loading="loading" :fileListShow="fileListShow"/>
<opinion v-if="summaryData.taskId" :formData="summaryData.formData" :taskId="summaryData.taskId"></opinion>
</template>
<script setup lang="jsx">
import {ElNotification} from "element-plus";
import {useProcessStore} from '@/stores/processStore.js';
import {getPhaseDetail} from "@/api/project-manage";
const route = useRoute()
const summaryData = ref({})
const summaryProcessViewer = ref(true)
const processStore = useProcessStore()
const loading = ref(false)
const fileListShow = ref('READ')
const getInfo = async () => {
fileListShow.value='READ'
const projectId = route.query.projectId
summaryProcessViewer.value = false
loading.value = true
const {code, data,msg} = await getPhaseDetail(projectId)
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
if (data.formPermMap["fileList"]) {
fileListShow.value = data.formPermMap["fileList"].perm
}
})
}else {
ElNotification({
title: '提示',
message: msg,
type: 'error'
})
if(msg==='查询结果为空'){
summaryData.value=[]
}
loading.value = false
}
}
getInfo()
</script>
<style scoped>
</style>