fix : 修复需求汇总详情功能
This commit is contained in:
33
src/views/project-demand/summary/detail.vue
Normal file
33
src/views/project-demand/summary/detail.vue
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user