Newer
Older
KaiFengPC / src / api / project / constructionPermits.js
@zhangdeliang zhangdeliang on 23 May 1 KB 初始化项目
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
  });
}