djbRepair.js 3.3 KB
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2024-05-16 09:23:43
 */
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?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) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getShList?bsmRepair=' + data.bsmRepair,
    method: 'post',
    data
  })
}

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


/**
 * @description: 初始化材料信息
 * @param {*} data
 * @author: renchao
 */
export function repairInitClml (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/repairInitClml',
    method: 'post',
    data
  })
}