From 228a45451a906d216ac67c7fc4018f17c0b9c312 Mon Sep 17 00:00:00 2001 From: JiilingLee <462362@qq.com> Date: Sat, 7 Oct 2023 17:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accounting/attachment.js | 54 ++++ src/views/accounting/attachment/index.vue | 326 ++++++++++++++++++++++ 2 files changed, 380 insertions(+) create mode 100644 src/api/accounting/attachment.js create mode 100644 src/views/accounting/attachment/index.vue diff --git a/src/api/accounting/attachment.js b/src/api/accounting/attachment.js new file mode 100644 index 00000000..c5dbcce4 --- /dev/null +++ b/src/api/accounting/attachment.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建会计附件 +export function createAttachment(data) { + return request({ + url: '/accounting/attachment/create', + method: 'post', + data: data + }) +} + +// 更新会计附件 +export function updateAttachment(data) { + return request({ + url: '/accounting/attachment/update', + method: 'put', + data: data + }) +} + +// 删除会计附件 +export function deleteAttachment(id) { + return request({ + url: '/accounting/attachment/delete?id=' + id, + method: 'delete' + }) +} + +// 获得会计附件 +export function getAttachment(id) { + return request({ + url: '/accounting/attachment/get?id=' + id, + method: 'get' + }) +} + +// 获得会计附件分页 +export function getAttachmentPage(query) { + return request({ + url: '/accounting/attachment/page', + method: 'get', + params: query + }) +} + +// 导出会计附件 Excel +export function exportAttachmentExcel(query) { + return request({ + url: '/accounting/attachment/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue new file mode 100644 index 00000000..442a4913 --- /dev/null +++ b/src/views/accounting/attachment/index.vue @@ -0,0 +1,326 @@ + + +