From 320e864d7f91cf8a948fa652eb88a6f64d26c799 Mon Sep 17 00:00:00 2001
From: JilingLee <18850011309@139.com>
Date: Fri, 8 Sep 2023 11:06:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BD=92=E6=A1=A3=E7=AE=A1=E7=90=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/archives/record.js | 54 ++++
src/views/archives/record/index.vue | 454 ++++++++++++++++++++++++++++
src/views/bs/expenseApply/index.vue | 6 +-
3 files changed, 511 insertions(+), 3 deletions(-)
create mode 100644 src/api/archives/record.js
create mode 100644 src/views/archives/record/index.vue
diff --git a/src/api/archives/record.js b/src/api/archives/record.js
new file mode 100644
index 00000000..0be03494
--- /dev/null
+++ b/src/api/archives/record.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 创建归档
+export function createRecord(data) {
+ return request({
+ url: '/archives/record/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新归档
+export function updateRecord(data) {
+ return request({
+ url: '/archives/record/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除归档
+export function deleteRecord(id) {
+ return request({
+ url: '/archives/record/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得归档
+export function getRecord(id) {
+ return request({
+ url: '/archives/record/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得归档分页
+export function getRecordPage(query) {
+ return request({
+ url: '/archives/record/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出归档 Excel
+export function exportRecordExcel(query) {
+ return request({
+ url: '/archives/record/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/views/archives/record/index.vue b/src/views/archives/record/index.vue
new file mode 100644
index 00000000..0957679d
--- /dev/null
+++ b/src/views/archives/record/index.vue
@@ -0,0 +1,454 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择字典生成
+
+
+
+
+
+
+
+ 请选择字典生成
+
+
+
+
+ 请选择字典生成
+
+
+
+
+ 请选择字典生成
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/bs/expenseApply/index.vue b/src/views/bs/expenseApply/index.vue
index be49b695..d6b39aac 100644
--- a/src/views/bs/expenseApply/index.vue
+++ b/src/views/bs/expenseApply/index.vue
@@ -122,7 +122,6 @@ export default {
list: [],
// 查询参数
queryParams: {
- remark: null,
destinationLocation: null,
pageNo: 1,
pageSize: 10,
@@ -141,7 +140,7 @@ export default {
createBy: null,
createTime: [],
updateBy: null,
- sortingFields: { order: "desc" }
+ // sortingFields: { order: "desc" }
},
};
},
@@ -178,6 +177,7 @@ export default {
/** 查询列表 */
getList() {
this.loading = true;
+ console.log(this.queryParams)
// 执行查询
getExpenseApplyPage(this.queryParams).then(response => {
this.list = response.data.list || [];
@@ -328,4 +328,4 @@ export default {
\ No newline at end of file
+