diff --git a/src/api/accounting/flow.js b/src/api/accounting/flow.js new file mode 100644 index 00000000..7d2ffcdf --- /dev/null +++ b/src/api/accounting/flow.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建审批流程 +export function createFlow(data) { + return request({ + url: '/archives/flow/create', + method: 'post', + data: data + }) +} + +// 更新审批流程 +export function updateFlow(data) { + return request({ + url: '/archives/flow/update', + method: 'put', + data: data + }) +} + +// 删除审批流程 +export function deleteFlow(id) { + return request({ + url: '/archives/flow/delete?id=' + id, + method: 'delete' + }) +} + +// 获得审批流程 +export function getFlow(id) { + return request({ + url: '/archives/flow/get?id=' + id, + method: 'get' + }) +} + +// 获得审批流程分页 +export function getFlowPage(query) { + return request({ + url: '/archives/flow/page', + method: 'get', + params: query + }) +} + +// 导出审批流程 Excel +export function exportFlowExcel(query) { + return request({ + url: '/archives/flow/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue new file mode 100644 index 00000000..6968b097 --- /dev/null +++ b/src/views/accounting/flow/index.vue @@ -0,0 +1,372 @@ + + +