diff --git a/src/api/ea/electronicContracts.js b/src/api/ea/electronicContracts.js new file mode 100644 index 00000000..05340d8e --- /dev/null +++ b/src/api/ea/electronicContracts.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建合同档案 +export function createElectronicContracts(data) { + return request({ + url: '/ea/electronic-contracts/create', + method: 'post', + data: data + }) +} + +// 更新合同档案 +export function updateElectronicContracts(data) { + return request({ + url: '/ea/electronic-contracts/update', + method: 'put', + data: data + }) +} + +// 删除合同档案 +export function deleteElectronicContracts(id) { + return request({ + url: '/ea/electronic-contracts/delete?id=' + id, + method: 'delete' + }) +} + +// 获得合同档案 +export function getElectronicContracts(id) { + return request({ + url: '/ea/electronic-contracts/get?id=' + id, + method: 'get' + }) +} + +// 获得合同档案分页 +export function getElectronicContractsPage(query) { + return request({ + url: '/ea/electronic-contracts/page', + method: 'get', + params: query + }) +} + +// 导出合同档案 Excel +export function exportElectronicContractsExcel(query) { + return request({ + url: '/ea/electronic-contracts/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue new file mode 100644 index 00000000..8a2202de --- /dev/null +++ b/src/views/ea/electronicContracts/index.vue @@ -0,0 +1,449 @@ + + +