Blame view

src/api/djbbl.js 2.64 KB
xiaomiao committed
1 2 3 4 5 6
/*
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-05-16 14:05:25
 */
import request from '@/utils/request'
xiaomiao committed
7
import { log } from 'bpmn-js-token-simulation'
xiaomiao committed
8 9
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
xiaomiao committed
10
 * @description: 添加补录记录
xiaomiao committed
11 12 13
 * @param {*} data
 * @author: renchao
 */
xiaomiao committed
14
export function addRepairRecord (data) {
xiaomiao committed
15
  return request({
xiaomiao committed
16
    url: SERVER.SERVERAPI + '/rest/djbRepair/addRepairRecord',
xiaomiao committed
17 18 19 20 21
    method: 'post',
    data
  })
}
/**
xiaomiao committed
22
 * @description: 删除流程
23
 * @param {*} params
xiaomiao committed
24 25
 * @author: renchao
 */
26
export function deleteFlow (params) {
xiaomiao committed
27
  return request({
xiaomiao committed
28
    url: SERVER.SERVERAPI + '/rest/djbRepair/deleteFlow?bsmSlsq='+params,
29
    method: 'get',
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({
xiaomiao committed
52
    url: SERVER.SERVERAPI + '/rest/djbRepair/init?bsmRepair='+params.bsmRepair+'&isEdit='+params.isEdit,
53
    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
    url: SERVER.SERVERAPI + '/rest/djbRepair/save',
    method: 'post',
    data
  })
}

/**
tianhaohao@pashanhoo.com committed
95 96 97 98
 * @description: 获取上手信息
 * @param {*} data
 * @author: renchao
 */
99
export function getSsQlxx (params) {
tianhaohao@pashanhoo.com committed
100 101 102 103 104 105 106 107 108 109 110 111
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getSsQlxx',
    method: 'get',
    params
  })
}

/**
 * @description: 获取主体信息
 * @param {*} data
 * @author: renchao
 */
112
export function getZtQlxx (params) {
tianhaohao@pashanhoo.com committed
113 114 115 116 117 118 119
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/getZtQlxx',
    method: 'get',
    params
  })
}
/**
xiaomiao committed
120 121 122 123 124 125 126
 * @description: 发起业务申请流程
 * @param {*} data
 * @author: renchao
 */
 export function startBusinessFlow (data) {
  return request({
    url: SERVER.SERVERAPI + '/rest/djbRepair/startBusinessFlow',
xiaomiao committed
127 128 129 130
    method: 'post',
    data
  })
}