Browse Source

收入分析

2545307760@qq.com 6 months ago
parent
commit
f147b6d12c

+ 44 - 13
web/src/view/approve/approveDetail/approveDetail.vue

@@ -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>

+ 2 - 3
web/src/view/approve/approveList/components/inspectList.vue

@@ -43,6 +43,7 @@
 </template>
 
 <script setup>
+// 审核列表
 defineOptions({
   name: 'InspectList'
 })
@@ -69,7 +70,6 @@ const itemApproveList = reactive([])
 const queryApproveList = () => {
   getExamineList(condition).then(res => {
     if (res.code === 0) {
-      console.log(res.data.list)
       const list = res.data.list
       itemApproveList.length = 0
       itemApproveList.push(...list)
@@ -79,8 +79,7 @@ const queryApproveList = () => {
 
 // 跳转到详情页
 const jumpApproveDetail = (row) => {
-  console.log(row)
-  router.push({ path: '/layout/approve/approveDetail', query: { id: row.ID }})
+  router.push({ path: '/layout/approve/approveDetail', query: { id: row.ID, type: 'inspect' }})
 }
 </script>
 

+ 2 - 1
web/src/view/approve/approveList/components/promoterList.vue

@@ -43,6 +43,7 @@
 </template>
 
 <script setup>
+// 申请列表
 defineOptions({
   name: 'PromoterList'
 })
@@ -79,7 +80,7 @@ const queryApproveList = () => {
 // 跳转到详情页
 const jumpApproveDetail = (row) => {
   // console.log(row.ID)
-  router.push({ path: '/layout/approve/approveDetail', query: { id: row.ID }})
+  router.push({ path: '/layout/approve/approveDetail', query: { id: row.ID, type: 'promoter' }})
 }
 </script>