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