From a5a4e3196b08c3840c04e4e5a1da3d28c2727505 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 18 Feb 2024 00:04:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86=E3=80=90?= =?UTF-8?q?=E5=BE=85=E5=9B=9E=E6=AC=BE=E6=8F=90=E9=86=92=E3=80=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 42b8df47677a49bfef096e30127fe1fe40016e38) --- .../crm/backlog/tables/RemindReceivables.vue | 65 ------------------- 1 file changed, 65 deletions(-) diff --git a/src/views/crm/backlog/tables/RemindReceivables.vue b/src/views/crm/backlog/tables/RemindReceivables.vue index e375a53b..8ca3fd4d 100644 --- a/src/views/crm/backlog/tables/RemindReceivables.vue +++ b/src/views/crm/backlog/tables/RemindReceivables.vue @@ -68,26 +68,6 @@ :formatter="dateFormatter" width="180px" /> - - - import { DICT_TYPE } from '@/utils/dict' import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' -import download from '@/utils/download' import * as ReceivablePlanApi from '@/api/crm/receivable/plan' import * as UserApi from '@/api/system/user' import { RECEIVABLE_REMIND_TYPE } from './common' defineOptions({ name: 'ReceivablePlan' }) -const message = useMessage() // 消息弹窗 -const { t } = useI18n() // 国际化 - const loading = ref(true) // 列表的加载中 const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 @@ -122,7 +98,6 @@ const queryParams = reactive({ remindType: 1 }) const queryFormRef = ref() // 搜索的表单 -const exportLoading = ref(false) // 导出的加载中 /** 查询列表 */ const getList = async () => { @@ -142,46 +117,6 @@ const handleQuery = () => { getList() } -/** 重置按钮操作 */ -const resetQuery = () => { - queryFormRef.value.resetFields() - handleQuery() -} - -/** 添加/修改操作 */ -const formRef = ref() -const openForm = (type: string, id?: number) => { - formRef.value.open(type, id) -} - -/** 删除按钮操作 */ -const handleDelete = async (id: number) => { - try { - // 删除的二次确认 - await message.delConfirm() - // 发起删除 - await ReceivablePlanApi.deleteReceivablePlan(id) - message.success(t('common.delSuccess')) - // 刷新列表 - await getList() - } catch {} -} - -/** 导出按钮操作 */ -const handleExport = async () => { - try { - // 导出的二次确认 - await message.exportConfirm() - // 发起导出 - exportLoading.value = true - const data = await ReceivablePlanApi.exportReceivablePlan(queryParams) - download.excel(data, '回款计划.xls') - } catch { - } finally { - exportLoading.value = false - } -} - /** 初始化 **/ onMounted(async () => { await getList()