|
|
@@ -0,0 +1,84 @@
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <tips-custom>
|
|
|
+ <template #title>
|
|
|
+ <span class="font-24 bold">{{ detail.name }}</span>
|
|
|
+ <el-tag class="ml-20">{{ detail.tagsName }}</el-tag>
|
|
|
+ <el-tag class="ml-10">{{ detail.report_type_name }}</el-tag>
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <top :project-id="projectId" />
|
|
|
+ </template>
|
|
|
+ </tips-custom>
|
|
|
+ <!-- content-->
|
|
|
+ <div>
|
|
|
+ <el-card>
|
|
|
+ <div style="height: 4200px"></div>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+ <!-- buttom-->
|
|
|
+ <div class="bottom flex flex-center flex-justify-end">
|
|
|
+ <div class="padding">
|
|
|
+ <el-button type="primary" plain>退 库</el-button>
|
|
|
+ <el-button type="primary" plain>上报审核</el-button>
|
|
|
+ <el-button type="primary">上报到固定资产</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<route>
|
|
|
+{
|
|
|
+path: '/project',
|
|
|
+name: '项目详情',
|
|
|
+meta: { layout: 'empty','show': false}
|
|
|
+}
|
|
|
+</route>
|
|
|
+
|
|
|
+<script>
|
|
|
+import tipsCustom from '@/components/tips-custom/index.vue'
|
|
|
+import top from '@/views/project/componens/top.vue'
|
|
|
+import confing from '@/config/website.js'
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: { tipsCustom, top },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ projectId: '',
|
|
|
+ detail: {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.projectId = this.$route.query.id
|
|
|
+ this.getInfo()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getInfo() {
|
|
|
+ this.$api.project.projectMapInfo(this.projectId).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.detail = res.data
|
|
|
+ this.detail.tagsName =
|
|
|
+ this.detail.tags === 1 ? '政府投资项目' : '企业投资项目'
|
|
|
+ const status = confing.reportTypes.find(
|
|
|
+ ele => ele.value === this.detail.report_type
|
|
|
+ )
|
|
|
+ if (status) {
|
|
|
+ this.detail.report_type_name = status.label
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.bottom {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ height: 66px;
|
|
|
+ width: 1300px;
|
|
|
+ background-color: white;
|
|
|
+ box-shadow: 0px -5px 10px rgba(52, 52, 52, 0.1);
|
|
|
+}
|
|
|
+</style>
|