|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div
|
|
|
- style="height: 760px"
|
|
|
+ style="height: 800px"
|
|
|
class="bg-white"
|
|
|
>
|
|
|
<div class="basicInformation">
|
|
@@ -85,29 +85,48 @@
|
|
|
:span="9"
|
|
|
>
|
|
|
<el-row>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="5">
|
|
|
<el-button
|
|
|
icon="Notebook"
|
|
|
type="primary"
|
|
|
+ @click="supplyFile"
|
|
|
>补充文件</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col
|
|
|
+ v-show="detailType === 'inspect'"
|
|
|
+ :span="5"
|
|
|
+ >
|
|
|
<el-button
|
|
|
- size="large"
|
|
|
- icon="Back"
|
|
|
- @click="openRepulse"
|
|
|
+ icon="Back"
|
|
|
+ @click="openRepulse"
|
|
|
>打回申请</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col
|
|
|
+ v-show="detailType === 'inspect'"
|
|
|
+ :span="5"
|
|
|
+ >
|
|
|
<el-button
|
|
|
- size="large"
|
|
|
- icon="Right"
|
|
|
+ icon="Right"
|
|
|
>审核通过</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-table style="margin-top: 30px">
|
|
|
- <el-table-column label="ID" align="center"></el-table-column>
|
|
|
- <el-table-column label="文件名称" align="center"></el-table-column>
|
|
|
+ <el-table
|
|
|
+ style="margin-top: 30px"
|
|
|
+ height="620px"
|
|
|
+ :data="fileList"
|
|
|
+ border
|
|
|
+ stripe
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ label="ID"
|
|
|
+ align="center"
|
|
|
+ prop="ID"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="文件名称"
|
|
|
+ align="center"
|
|
|
+ prop="name"
|
|
|
+ />
|
|
|
</el-table>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -141,11 +160,12 @@ defineOptions({
|
|
|
name: 'ApproveDetail'
|
|
|
})
|
|
|
import { onMounted, reactive, ref } from 'vue'
|
|
|
-import { useRoute } from 'vue-router'
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
import { getProjectProcessId } from '@/api/process'
|
|
|
import { queryFileList } from '@/api/file'
|
|
|
import sign from '@/assets/sign.png'
|
|
|
const route = useRoute()
|
|
|
+const router = useRouter()
|
|
|
onMounted(() => {
|
|
|
queryProjectProcessById()
|
|
|
})
|
|
@@ -169,6 +189,8 @@ const infoSteps = ref(0)
|
|
|
const applyPeople = ref('')
|
|
|
// 审核人
|
|
|
const checkPeople = ref('')
|
|
|
+// 文件列表
|
|
|
+const fileList = reactive([])
|
|
|
const queryProjectProcessById = () => {
|
|
|
const id = route.query.id
|
|
|
getProjectProcessId(id).then(res => {
|
|
@@ -189,6 +211,8 @@ const queryProjectProcessById = () => {
|
|
|
queryFileList(fileCondition).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
console.log(res.data.list)
|
|
|
+ fileList.length = 0
|
|
|
+ fileList.push(...res.data.list)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -205,6 +229,13 @@ const openRepulse = () => {
|
|
|
repulseShow.value = true
|
|
|
}
|
|
|
const repulseApply = () => {}
|
|
|
+// 补充文件
|
|
|
+const supplyFile = () => {
|
|
|
+ router.push({ path: '/layout/projectManage/projectDetails', query: { code: comprehensive.code }})
|
|
|
+}
|
|
|
+
|
|
|
+// 详情类型
|
|
|
+const detailType = route.query.type
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|