diff --git a/src/api/setting/fileCategory.js b/src/api/setting/fileCategory.js
new file mode 100644
index 00000000..681b35a3
--- /dev/null
+++ b/src/api/setting/fileCategory.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 创建档案分类
+export function createFileCategory(data) {
+ return request({
+ url: '/setting/file-category/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新档案分类
+export function updateFileCategory(data) {
+ return request({
+ url: '/setting/file-category/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除档案分类
+export function deleteFileCategory(id) {
+ return request({
+ url: '/setting/file-category/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得档案分类
+export function getFileCategory(id) {
+ return request({
+ url: '/setting/file-category/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得档案分类分页
+export function getFileCategoryPage(query) {
+ return request({
+ url: '/setting/file-category/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出档案分类 Excel
+export function exportFileCategoryExcel(query) {
+ return request({
+ url: '/setting/file-category/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/utils/dict.js b/src/utils/dict.js
index 4ce6fc3f..36d674c5 100644
--- a/src/utils/dict.js
+++ b/src/utils/dict.js
@@ -119,6 +119,10 @@ export const DICT_TYPE = {
ARCHIVES_MEDIA: 'archives_media',
// 档案借阅方式
ARCHIVES_APPLY: 'borrow_apply',
+ // 目录号
+ ARCHIVES_CATALOG_NUM: 'archives_catalog_num',
+ // 全宗号
+ ARCHIVES_CASE_NUM: 'archives_case_num',
}
/**
diff --git a/src/views/borrow/apply/index.vue b/src/views/borrow/apply/index.vue
index 007b3d61..8da472c9 100644
--- a/src/views/borrow/apply/index.vue
+++ b/src/views/borrow/apply/index.vue
@@ -31,10 +31,10 @@
-
+
@@ -175,6 +175,34 @@
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ />
@@ -259,9 +263,13 @@
-
+
+
+
+
+
+
+
{
+ this.userOptions = response.data.list;
+ });
+ },
/** 取消按钮 */
cancel() {
this.open = false;
@@ -387,7 +404,7 @@ export default {
/** 表单重置 */
reset() {
this.form = {
- borrowId: undefined,
+ id: undefined,
borrowCode: undefined,
borrowState: undefined,
reason: undefined,
@@ -424,8 +441,8 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
- const borrowId = row.borrowId;
- getBorrowApply(borrowId).then((response) => {
+ const id = row.id;
+ getBorrowApply(id).then((response) => {
this.form = response.data;
this.open = true;
this.title = "修改档案借阅申请";
@@ -438,7 +455,7 @@ export default {
return;
}
// 修改的提交
- if (this.form.borrowId != null) {
+ if (this.form.id != null) {
updateBorrowApply(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
@@ -456,11 +473,11 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const borrowId = row.borrowId;
+ const id = row.id;
this.$modal
- .confirm('是否确认删除档案借阅申请编号为"' + borrowId + '"的数据项?')
+ .confirm('是否确认删除档案借阅申请编号为"' + id + '"的数据项?')
.then(function () {
- return deleteBorrowApply(borrowId);
+ return deleteBorrowApply(id);
})
.then(() => {
this.getList();
diff --git a/src/views/setting/fileCategory/index.vue b/src/views/setting/fileCategory/index.vue
new file mode 100644
index 00000000..57491e87
--- /dev/null
+++ b/src/views/setting/fileCategory/index.vue
@@ -0,0 +1,440 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.custodyTime) }}
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择字典生成
+
+
+
+
+
+
+
+
+
+
+