From 954077c8167ac5a1ecd1bdf1996c0699d22eaca8 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Fri, 22 Sep 2023 18:03:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=9A=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accounting/report.js | 54 ++++ src/views/accounting/report/index.vue | 373 ++++++++++++++++++++++++++ 2 files changed, 427 insertions(+) create mode 100644 src/api/accounting/report.js create mode 100644 src/views/accounting/report/index.vue diff --git a/src/api/accounting/report.js b/src/api/accounting/report.js new file mode 100644 index 00000000..0fdefb91 --- /dev/null +++ b/src/api/accounting/report.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建会计报表 +export function createAccountingReport(data) { + return request({ + url: '/archives/accounting-report/create', + method: 'post', + data: data + }) +} + +// 更新会计报表 +export function updateAccountingReport(data) { + return request({ + url: '/archives/accounting-report/update', + method: 'put', + data: data + }) +} + +// 删除会计报表 +export function deleteAccountingReport(id) { + return request({ + url: '/archives/accounting-report/delete?id=' + id, + method: 'delete' + }) +} + +// 获得会计报表 +export function getAccountingReport(id) { + return request({ + url: '/archives/accounting-report/get?id=' + id, + method: 'get' + }) +} + +// 获得会计报表分页 +export function getAccountingReportPage(query) { + return request({ + url: '/archives/accounting-report/page', + method: 'get', + params: query + }) +} + +// 导出会计报表 Excel +export function exportAccountingReportExcel(query) { + return request({ + url: '/archives/accounting-report/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/accounting/report/index.vue b/src/views/accounting/report/index.vue new file mode 100644 index 00000000..ba7571cb --- /dev/null +++ b/src/views/accounting/report/index.vue @@ -0,0 +1,373 @@ + + +