Blame view

src/api/djbbl.js 2.1 KB
xiaomiao committed
1 2 3 4 5 6 7 8
/*
 * @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'))
/**
xiaomiao committed
9
 * @description: 添加补录记录
xiaomiao committed
10 11 12
 * @param {*} data
 * @author: renchao
 */
xiaomiao committed
13
export function addRepairRecord (data) {
xiaomiao committed
14
  return request({
xiaomiao committed
15
    url: SERVER.SERVERAPI + '/rest/djbRepair/addRepairRecord',
xiaomiao committed
16 17 18 19 20
    method: 'post',
    data
  })
}
/**
xiaomiao committed
21
 * @description: 删除流程
22
 * @param {*} params
xiaomiao committed
23 24
 * @author: renchao
 */
25
export function deleteFlow (params) {
xiaomiao committed
26
  return request({
xiaomiao committed
27
    url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow',
28 29
    method: 'get',
    params:params
xiaomiao committed
30 31 32 33
  })
}

/**
xiaomiao committed
34
 * @description: 删除补录记录
35
 * @param {*} params
xiaomiao committed
36 37
 * @author: renchao
 */
38
export function deleteRepairRecord (params) {
xiaomiao committed
39
  return request({
40 41
    url: SERVER.SERVERAPI + '/rest/djbRepair/deleteRepairRecord?bsmRepair='+params,
    method: 'get',
xiaomiao committed
42 43 44 45
  })
}

/**
xiaomiao committed
46
 * @description: 初始化内容
47
 * @param {*} params
xiaomiao committed
48 49
 * @author: renchao
 */
50
export function init (params) {
xiaomiao committed
51
  return request({
52 53
    url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair='+params,
    method: 'get',
xiaomiao committed
54 55 56 57
  })
}

/**
xiaomiao committed
58
 * @description: 左侧菜单集合
59
 * @param {*} params
xiaomiao committed
60 61
 * @author: renchao
 */
62
export function leftMenubl (params) {
xiaomiao committed
63
  return request({
64 65 66
    url: SERVER.SERVERAPI + '/rest/djbRepair/leftMenu?bsmSlsq='+params,
    method: 'get',
    params
xiaomiao committed
67 68
  })
}
69 70 71 72 73
/**
 * @description: 获取权利类型数组
 * @param {*} params
 * @author: renchao
 */
tianhaohao@pashanhoo.com committed
74
export function getQllxByBdcdyid (params) {
75
  return request({
xiaomiao committed
76
    url: SERVER.SERVERAPI + '/rest/djbDetail/getQllxByBdcdyid',
77
    method: 'get',
tianhaohao@pashanhoo.com committed
78
    params
79 80
  })
}
xiaomiao committed
81
/**
xiaomiao committed
82
 * @description: 保存数据
xiaomiao committed
83 84 85
 * @param {*} data
 * @author: renchao
 */
xiaomiao committed
86
export function save (data) {
xiaomiao committed
87
  return request({
xiaomiao committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101
    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',
xiaomiao committed
102 103 104 105
    method: 'post',
    data
  })
}