djbRepair.js 2.88 KB
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 14:05:25
 */
import request from '@/utils/request'
import { log } from 'bpmn-js-token-simulation'
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?bsmSlsq='+params,
    method: 'get',
  })
}

/**
 * @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.bsmRepair+'&isEdit='+params.isEdit,
    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 {*} 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 getSsQlxx (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getSsQlxx',
    method: 'get',
    params
  })
}

/**
 * @description: 获取主体信息
 * @param {*} data
 * @author: renchao
 */
export function getZtQlxx (params) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getZtQlxx',
    method: 'get',
    params
  })
}
/**
 * @description: 发起业务申请流程
 * @param {*} data
 * @author: renchao
 */
 export function startBusinessFlow (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/startBusinessFlow',
    method: 'post',
    data
  })
}
/**
 * @description: 添加审核意见
 * @param {*} data
 * @author: renchao
 */
 export function addidea (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/sh',
    method: 'post',
    data
  })
}
/**
 * @description: 添加审核意见
 * @param {*} data
 * @author: renchao
 */
 export function getShList (data) {
   console.log(data);
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair='+data.bsmRepair,
    method: 'post',
    data
  })
}