Newer
Older
KaiFengPC / src / api / project / constructionPermits.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';
// 搜索我创建的施工许可
export function getConstructionPermitsMyPage(params) {
  return request({
    url: '/business/projectConstructionPermits/myPage',
    method: 'get',
    params,
  });
}
// 搜索我创建的施工许可
export function getConstructionPermitsPage(params) {
  return request({
    url: '/business/projectConstructionPermits/page',
    method: 'get',
    params,
  });
}
// 新增施工许可
export function projectConstructionPermitsAdd(data) {
  return request({
    url: '/business/projectConstructionPermits/add',
    method: 'post',
    data,
  });
}

// 修改施工许可
export function projectConstructionPermitsEdit(data) {
  return request({
    url: '/business/projectConstructionPermits/edit',
    method: 'put',
    data,
  });
}

// 提交
export function projectConstructionPermitsStartWorkFlow(data) {
  return request({
    url: '/business/projectConstructionPermits/startWorkFlow',
    method: 'post',
    data,
  });
}

export function userList() {
  return request({
    url: '/system/user/list',
    method: 'get',
  });
}

// 提交
export function projectConstructionPermitsDetail(id) {
  return request({
    url: `/business/projectConstructionPermits/${id}`,
    method: 'get',
  });
}

// 删除
export function projectConstructionPermitsDel(ids) {
  return request({
    url: `/business/projectConstructionPermits/${ids}`,
    method: 'delete',
  });
}

export function workflowProcess(data) {
  return request({
    url: `/business/workflow-process/list-history-activity`,
    method: 'post',
    data,
  });
}
// 人工审查处理
export function projectConstructionPermitsApprove(data) {
  return request({
    url: '/business/projectConstructionPermits/approve',
    method: 'post',
    data,
  });
}