From 23ebe0eac2a8d8ceeb541c5482fae675a0ffb0e5 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Wed, 13 Sep 2023 16:19:53 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=80=9F=E9=98=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/borrow/apply.js | 54 ++++
src/utils/dict.js | 6 +
src/views/borrow/apply/index.vue | 491 ++++++++++++++++++++++++++++++
src/views/borrow/record/index.vue | 491 ++++++++++++++++++++++++++++++
4 files changed, 1042 insertions(+)
create mode 100644 src/api/borrow/apply.js
create mode 100644 src/views/borrow/apply/index.vue
create mode 100644 src/views/borrow/record/index.vue
diff --git a/src/api/borrow/apply.js b/src/api/borrow/apply.js
new file mode 100644
index 00000000..702603bc
--- /dev/null
+++ b/src/api/borrow/apply.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 创建档案借阅申请
+export function createBorrowApply(data) {
+ return request({
+ url: '/archives/borrow-apply/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新档案借阅申请
+export function updateBorrowApply(data) {
+ return request({
+ url: '/archives/borrow-apply/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除档案借阅申请
+export function deleteBorrowApply(id) {
+ return request({
+ url: '/archives/borrow-apply/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得档案借阅申请
+export function getBorrowApply(id) {
+ return request({
+ url: '/archives/borrow-apply/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得档案借阅申请分页
+export function getBorrowApplyPage(query) {
+ return request({
+ url: '/archives/borrow-apply/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出档案借阅申请 Excel
+export function exportBorrowApplyExcel(query) {
+ return request({
+ url: '/archives/borrow-apply/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/utils/dict.js b/src/utils/dict.js
index cb72de9b..4ce6fc3f 100644
--- a/src/utils/dict.js
+++ b/src/utils/dict.js
@@ -113,6 +113,12 @@ export const DICT_TYPE = {
ARCHIVES_FILE_TYPE: 'archives_file_type',
// 归档状态
ARCHIVES_FILE_STATUS: 'archives_file_status',
+ // 借阅申请状态
+ BORROW_APPLY: 'borrow_apply',
+ // 档案借阅介质
+ ARCHIVES_MEDIA: 'archives_media',
+ // 档案借阅方式
+ ARCHIVES_APPLY: 'borrow_apply',
}
/**
diff --git a/src/views/borrow/apply/index.vue b/src/views/borrow/apply/index.vue
new file mode 100644
index 00000000..007b3d61
--- /dev/null
+++ b/src/views/borrow/apply/index.vue
@@ -0,0 +1,491 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.returnTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/borrow/record/index.vue b/src/views/borrow/record/index.vue
new file mode 100644
index 00000000..016d1ed0
--- /dev/null
+++ b/src/views/borrow/record/index.vue
@@ -0,0 +1,491 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.returnTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+