diff --git a/src/api/archives/record.js b/src/api/archives/record.js index 0be03494..6e213ca9 100644 --- a/src/api/archives/record.js +++ b/src/api/archives/record.js @@ -52,3 +52,13 @@ export function exportRecordExcel(query) { responseType: 'blob' }) } + + +// 生成编码 +export function createCodeRule(data) { + return request({ + url: '/archives/code-rule/create', + method: 'post', + data: data + }) +} \ No newline at end of file diff --git a/src/api/ea/electronicAssets/assetFile.js b/src/api/ea/electronicAssets/assetFile.js new file mode 100644 index 00000000..f88f03a0 --- /dev/null +++ b/src/api/ea/electronicAssets/assetFile.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建资产档案 +export function createElectronicAssets(data) { + return request({ + url: '/ea/electronic/create', + method: 'post', + data: data + }) +} + +// 更新资产档案 +export function updateElectronicAssets(data) { + return request({ + url: '/ea/electronic/update', + method: 'put', + data: data + }) +} + +// 删除资产档案 +export function deleteElectronicAssets(id) { + return request({ + url: '/ea/electronic/delete?id=' + id, + method: 'delete' + }) +} + +// 获得资产档案 +export function getElectronicAssets(id) { + return request({ + url: '/ea/electronic/get?id=' + id, + method: 'get' + }) +} + +// 获得资产档案分页 +export function getElectronicAssetsPage(query) { + return request({ + url: '/ea/electronic/page', + method: 'get', + params: query + }) +} + +// 导出资产档案 Excel +export function exportElectronicAssetsExcel(query) { + return request({ + url: '/ea/electronic/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index 55cc3491..cb72de9b 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -109,7 +109,10 @@ export const DICT_TYPE = { BS_SUPPLIER_TYPE: 'supplier_centre_state', // 采购进度(采购状态) BS_PROCUREMENT_TYPE: 'supplier_procurement_state', - + // 档案类型 + ARCHIVES_FILE_TYPE: 'archives_file_type', + // 归档状态 + ARCHIVES_FILE_STATUS: 'archives_file_status', } /** diff --git a/src/views/archives/record/index.vue b/src/views/archives/record/index.vue index 0957679d..9c6448f3 100644 --- a/src/views/archives/record/index.vue +++ b/src/views/archives/record/index.vue @@ -1,103 +1,55 @@ + + diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue new file mode 100644 index 00000000..fc3ac964 --- /dev/null +++ b/src/views/ea/electronicAssets/index.vue @@ -0,0 +1,667 @@ + + +