fix : 修复需求汇总详情功能

This commit is contained in:
2024-05-19 13:18:03 +08:00
parent 10bc019866
commit 89d5c86d8b
6 changed files with 383 additions and 93 deletions

View File

@@ -0,0 +1,33 @@
<template>
<summary-detail :formData="summaryData.formData" :data="summaryData" :processViewer="summaryProcessViewer"/>
</template>
<script setup lang="jsx">
import {getInfo} from "@/api/project-demand";
const summaryData = ref({})
const summaryProcessViewer = ref(false)
const getDemandSummaryInfo = async () => {
if (!route.query.id) return
// await getCompanyOption()
getInfo(74).then(res => {
let data = res.data
summaryData.value = data;
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
})
})
}
getDemandSummaryInfo()
</script>
<style scoped>
</style>

View File

@@ -124,7 +124,7 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
return (
<div>
<el-button type={'primary'} link onClick={()=>{}} >详情</el-button>
<el-button type={'primary'} link onClick={()=>handleDetail()} >详情</el-button>
<el-button type={'primary'} link onClick={()=>handleAdd()} >上报</el-button>
</div>
)
@@ -164,6 +164,12 @@ const handleAdd = () => {
query: {}
})
}
const handleDetail = () => {
router.push({
name: 'Summary/detail',
query: {}
})
}
</script>
<style lang="scss" scoped>