| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- import request from '@/utils/request'
- // 创建流程
- export function create(data) {
- return request({
- url: '/bpm/oa-business/commit',
- method: 'post',
- data: data
- })
- }
- //驳回或撤回后再次提交通用用事项审批流程信息
- export function reCommit(data) {
- return request({
- url: '/bpm/oa-business/reCommit',
- method: 'post',
- data: data
- })
- }
- // 暂存数据保存
- export function save(data) {
- return request({
- url: '/bpm/oa-business/staging',
- method: 'post',
- data: data
- })
- }
- // 暂存数据删除
- export function deleteById(id) {
- return request({
- url: '/bpm/oa-business/delete?id=' + id,
- method: 'delete'
- })
- }
- // 关闭审批流程信息
- export function closeById(id) {
- return request({
- url: '/bpm/oa-business/close?id=' + id,
- method: 'delete'
- })
- }
- // 获得详情
- export function getDetail(id) {
- return request({
- url: '/bpm/oa-business/get?id=' + id,
- method: 'get'
- })
- }
- // 获得列表
- export function getListData(query) {
- return request({
- url: '/bpm/oa-business/page',
- method: 'get',
- params: query
- })
- }
- // 导出列表
- export function exportList(query) {
- return request({
- url: '/bpm/oa-business/export-excel',
- method: 'get',
- params: query,
- responseType: 'blob'
- })
- }
- //审批同意通用事项审批流程信息
- export function agree(data) {
- return request({
- url: '/bpm/oa-business/agree',
- method: 'post',
- data: data
- })
- }
- //驳回通用事项审批流程信息
- export function disagree(data) {
- return request({
- url: '/bpm/oa-business/disagree',
- method: 'post',
- data: data
- })
- }
- //撤回通用事项审批流程信息
- export function revocation(data) {
- return request({
- url: '/bpm/oa-business/revocation',
- method: 'post',
- data: data
- })
- }
|