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