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 @@ + + + + +