Browse Source

信件导出导出台账功能实现

master
21819 2 years ago
parent
commit
05030a31dd
  1. 29
      src/views/work/Query.vue

29
src/views/work/Query.vue

@ -110,7 +110,11 @@
<div>
<el-button type="primary" @click="checkMail">信件核对</el-button>
<el-button type="primary" @click="outputSelectedMail" class="ml-4">信件导出</el-button>
<el-popconfirm title="是否导出当前筛选条件的所有信件?" @confirm="exportLedger">
<template #reference>
<el-button type="primary" @click="getList" class="ml-4">台账导出</el-button>
</template>
</el-popconfirm>
</div>
<div>
<el-button type="primary" @click="getList">查询</el-button>
@ -184,8 +188,6 @@
<el-button type="primary" link @click="handleMailLabel(row.id)">标签</el-button>
<el-button type="primary" link @click="handleTodoByChange(row.id)"
v-show="handleMailCategory(row)">转为待办</el-button>
<el-button type="primary" link @click="handleDelete(row.id)"
v-show="IsdeleteMail(row)">删除</el-button>
</template>
</el-table-column>
</el-table>
@ -232,8 +234,6 @@ import { getToken } from '@/utils/auth'
import axios from 'axios'
import { useRouterParamsStore } from "@/stores/modules/routerParams";
import { useRoute } from "vue-router";
import feedback from "@/utils/feedback";
import {deleteMail} from "@/api/mail";
const rowKey = "id";
const loading = ref(false)
@ -511,31 +511,12 @@ const handleTodoByChange = (mailId: any) => {
showTodoByChange.value = true
activeMailId.value = mailId
}
const handleDelete = async (mailId: any) => {
if(mailId == ""||mailId == null){
return;
}
await feedback.confirm("确定要删除?");
await deleteMail({id:mailId});
feedback.msgSuccess("删除成功");
getList()
};
const handleMailCategory = (row: any) => {
const allowChangeList = ['终止类', '无效类']
return allowChangeList.includes(row.mailCategory)
}
const IsdeleteMail = (row: any) => {
const allowChangeList = ['first_sign', 'first_distribute']
return allowChangeList.includes(row.flowKey)
}
getList()
</script>

Loading…
Cancel
Save