djbbl.js 2.29 KB
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 14:05:25
 */
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
 * @description: 添加补录记录
 * @param {*} data
 * @author: renchao
 */
export function addRepairRecord (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/addRepairRecord',
    method: 'post',
    data
  })
}
/**
 * @description: 删除流程
 * @param {*} params
 * @author: renchao
 */
export function deleteFlow (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow',
    method: 'get',
    params:params
  })
}

/**
 * @description: 删除补录记录
 * @param {*} params
 * @author: renchao
 */
export function deleteRepairRecord (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord?bsmRepair='+params,
    method: 'get',
  })
}

/**
 * @description: 初始化内容
 * @param {*} params
 * @author: renchao
 */
export function init (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair='+params,
    method: 'get',
  })
}

/**
 * @description: 左侧菜单集合
 * @param {*} params
 * @author: renchao
 */
export function leftMenubl (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu?bsmSlsq='+params,
    method: 'get',
    params
  })
}
/**
 * @description: 获取权利类型数组
 * @param {*} params
 * @author: renchao
 */
// export function getQllxByBdcdyid (params) {
//   return request({
//     url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid?bdcdyid='+params,
//     method: 'get',
//   })
// }
export function getQllxByBdcdyid (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid',
    method: 'get',
    params
  })
}
/**
 * @description: 保存数据
 * @param {*} data
 * @author: renchao
 */
export function save (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/save',
    method: 'post',
    data
  })
}

/**
 * @description: 发起业务申请流程
 * @param {*} data
 * @author: renchao
 */
 export function startBusinessFlow (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/startBusinessFlow',
    method: 'post',
    data
  })
}