|
|
|
@ -1,5 +1,5 @@ |
|
|
|
<script setup> |
|
|
|
<script setup> |
|
|
|
import {reportPage,recessedData} from '@/api/entryWindow/index' |
|
|
|
import {reportPage,recessedData, excelEntryWindowList} from '@/api/entryWindow/index' |
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
import useCatchStore from "@/stores/modules/catch"; |
|
|
|
import {listPolice} from "@/api/system/police"; |
|
|
|
import {listPolice} from "@/api/system/police"; |
|
|
|
import {timeFormat} from "@/utils/util"; |
|
|
|
import {timeFormat} from "@/utils/util"; |
|
|
|
@ -14,6 +14,7 @@ const dict = catchStore.getDicts(["procurementMethod"]); |
|
|
|
const tableData = ref([]) |
|
|
|
const tableData = ref([]) |
|
|
|
const ressDialog =ref(false) |
|
|
|
const ressDialog =ref(false) |
|
|
|
const activeTab = ref('all') |
|
|
|
const activeTab = ref('all') |
|
|
|
|
|
|
|
const exportLoading = ref(false) |
|
|
|
const stageNodeMap = { |
|
|
|
const stageNodeMap = { |
|
|
|
pending: ['initial', 'review'], |
|
|
|
pending: ['initial', 'review'], |
|
|
|
auditing: ['first', 'second', 'third', 'Lead'], |
|
|
|
auditing: ['first', 'second', 'third', 'Lead'], |
|
|
|
@ -140,6 +141,19 @@ const getList =async ()=>{ |
|
|
|
total.value=res.total |
|
|
|
total.value=res.total |
|
|
|
loading.value=false |
|
|
|
loading.value=false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handleExcel = async ()=>{ |
|
|
|
|
|
|
|
if (exportLoading.value) return; |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
exportLoading.value = true; |
|
|
|
|
|
|
|
await excelEntryWindowList(query.value); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
console.error('导出失败', e); |
|
|
|
|
|
|
|
feedback.msgError("导出失败"); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
exportLoading.value = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//重置 |
|
|
|
//重置 |
|
|
|
const reset =()=>{ |
|
|
|
const reset =()=>{ |
|
|
|
query.value = createDefaultQuery(); |
|
|
|
query.value = createDefaultQuery(); |
|
|
|
@ -432,6 +446,7 @@ const isAdminShow = ()=>{ |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<div class="flex end"> |
|
|
|
<div class="flex end"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
|
|
|
|
<el-button type="primary" :loading="exportLoading" @click="handleExcel">导出</el-button> |
|
|
|
<el-button type="primary" @click="getList"> |
|
|
|
<el-button type="primary" @click="getList"> |
|
|
|
<template #icon> |
|
|
|
<template #icon> |
|
|
|
<icon name="el-icon-Search"/> |
|
|
|
<icon name="el-icon-Search"/> |
|
|
|
|