From 19ee412b1f429cec6a795237ec259bca64493e7f Mon Sep 17 00:00:00 2001 From: JilingLee <18850011309@139.com> Date: Wed, 20 Sep 2023 11:26:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E5=87=AD=E8=AF=81=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E5=87=AD=E8=AF=81=E8=AF=A6=E6=83=85=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/accounting/voucher.js | 54 + src/api/accounting/voucherDetails.js | 54 + src/views/accounting/voucher/index.vue | 490 ++++++ src/views/accounting/voucherDetails/index.vue | 1322 +++++++++++++++++ 4 files changed, 1920 insertions(+) create mode 100644 src/api/accounting/voucher.js create mode 100644 src/api/accounting/voucherDetails.js create mode 100644 src/views/accounting/voucher/index.vue create mode 100644 src/views/accounting/voucherDetails/index.vue diff --git a/src/api/accounting/voucher.js b/src/api/accounting/voucher.js new file mode 100644 index 00000000..ba4e0fe1 --- /dev/null +++ b/src/api/accounting/voucher.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建会计凭证 +export function createVoucher(data) { + return request({ + url: '/accounting/voucher/create', + method: 'post', + data: data + }) +} + +// 更新会计凭证 +export function updateVoucher(data) { + return request({ + url: '/accounting/voucher/update', + method: 'put', + data: data + }) +} + +// 删除会计凭证 +export function deleteVoucher(id) { + return request({ + url: '/accounting/voucher/delete?id=' + id, + method: 'delete' + }) +} + +// 获得会计凭证 +export function getVoucher(id) { + return request({ + url: '/accounting/voucher/get?id=' + id, + method: 'get' + }) +} + +// 获得会计凭证分页 +export function getVoucherPage(query) { + return request({ + url: '/accounting/voucher/page', + method: 'get', + params: query + }) +} + +// 导出会计凭证 Excel +export function exportVoucherExcel(query) { + return request({ + url: '/accounting/voucher/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/accounting/voucherDetails.js b/src/api/accounting/voucherDetails.js new file mode 100644 index 00000000..22f0fc2e --- /dev/null +++ b/src/api/accounting/voucherDetails.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建凭证详情 +export function createVoucherDetails(data) { + return request({ + url: '/accounting/voucher-details/create', + method: 'post', + data: data + }) +} + +// 更新凭证详情 +export function updateVoucherDetails(data) { + return request({ + url: '/accounting/voucher-details/update', + method: 'put', + data: data + }) +} + +// 删除凭证详情 +export function deleteVoucherDetails(id) { + return request({ + url: '/accounting/voucher-details/delete?id=' + id, + method: 'delete' + }) +} + +// 获得凭证详情 +export function getVoucherDetails(id) { + return request({ + url: '/accounting/voucher-details/get?id=' + id, + method: 'get' + }) +} + +// 获得凭证详情分页 +export function getVoucherDetailsPage(query) { + return request({ + url: '/accounting/voucher-details/page', + method: 'get', + params: query + }) +} + +// 导出凭证详情 Excel +export function exportVoucherDetailsExcel(query) { + return request({ + url: '/accounting/voucher-details/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue new file mode 100644 index 00000000..4269ab2f --- /dev/null +++ b/src/views/accounting/voucher/index.vue @@ -0,0 +1,490 @@ + + + diff --git a/src/views/accounting/voucherDetails/index.vue b/src/views/accounting/voucherDetails/index.vue new file mode 100644 index 00000000..df03370a --- /dev/null +++ b/src/views/accounting/voucherDetails/index.vue @@ -0,0 +1,1322 @@ + + + + +