From 171fa7ea9ff10f65cee04c3a43048ff809e32e14 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Thu, 21 Sep 2023 17:46:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E8=B4=A6=E7=B0=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/accounting/book.js | 55 ++++
src/views/accounting/book/index.vue | 455 ++++++++++++++++++++++++++++
2 files changed, 510 insertions(+)
create mode 100644 src/api/accounting/book.js
create mode 100644 src/views/accounting/book/index.vue
diff --git a/src/api/accounting/book.js b/src/api/accounting/book.js
new file mode 100644
index 00000000..ba63f6af
--- /dev/null
+++ b/src/api/accounting/book.js
@@ -0,0 +1,55 @@
+import request from '@/utils/request'
+
+// 创建会计账簿
+export function createAccountingBook(query,data) {
+ return request({
+ url: '/archives/accounting-book/create',
+ method: 'post',
+ params: query,
+ data: data
+ })
+}
+
+// 更新会计账簿
+export function updateAccountingBook(data) {
+ return request({
+ url: '/archives/accounting-book/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除会计账簿
+export function deleteAccountingBook(id) {
+ return request({
+ url: '/archives/accounting-book/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得会计账簿
+export function getAccountingBook(id) {
+ return request({
+ url: '/archives/accounting-book/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得会计账簿分页
+export function getAccountingBookPage(query) {
+ return request({
+ url: '/archives/accounting-book/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出会计账簿 Excel
+export function exportAccountingBookExcel(query) {
+ return request({
+ url: '/archives/accounting-book/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/views/accounting/book/index.vue b/src/views/accounting/book/index.vue
new file mode 100644
index 00000000..94dd1497
--- /dev/null
+++ b/src/views/accounting/book/index.vue
@@ -0,0 +1,455 @@
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 类型 |
+ 文件 |
+
+
+
+
+
+ 总 账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+ 明细账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+ 日记账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+