Blame view

ant-design-vue-jeecg/src/api/api.js 22.5 KB
肖超群 authored
1
import {getAction, deleteAction, putAction, postAction, httpAction} from '@/api/manage'
肖超群 authored
2
import Vue from 'vue'
谭毅彬 authored
3
import {UI_CACHE_DB_DICT_DATA, UI_CACHE_TRANSLATE_DATA, UI_CACHE_TRANSLATE_DICT_DATA} from "@/store/mutation-types"
肖超群 authored
4
5

//角色管理
肖超群 authored
6
7
8
9
const addRole = (params) => postAction("/sys/role/add", params);
const editRole = (params) => putAction("/sys/role/edit", params);
const checkRoleCode = (params) => getAction("/sys/role/checkRoleCode", params);
const queryall = (params) => getAction("/sys/role/queryall", params);
肖超群 authored
10
11

//用户管理
肖超群 authored
12
13
14
15
16
const addUser = (params) => postAction("/sys/user/add", params);
const editUser = (params) => putAction("/sys/user/edit", params);
const queryUserRole = (params) => getAction("/sys/user/queryUserRole", params);
const getUserList = (params) => getAction("/sys/user/list", params);
const frozenBatch = (params) => putAction("/sys/user/frozenBatch", params);
肖超群 authored
17
//验证用户是否存在
肖超群 authored
18
const checkOnlyUser = (params) => getAction("/sys/user/checkOnlyUser", params);
肖超群 authored
19
//改变密码
肖超群 authored
20
const changePassword = (params) => putAction("/sys/user/changePassword", params);
21
//系统激活API
22
const systemActivation = (params) => postAction("/sys/systemActivation", params);
肖超群 authored
23
24

//权限管理
肖超群 authored
25
26
27
28
29
const addPermission = (params) => postAction("/sys/permission/add", params);
const editPermission = (params) => putAction("/sys/permission/edit", params);
const getPermissionList = (params) => getAction("/sys/permission/list", params);
const getSystemMenuList = (params) => getAction("/sys/permission/getSystemMenuList", params);
const getSystemSubmenu = (params) => getAction("/sys/permission/getSystemSubmenu", params);
肖超群 authored
30
const getSystemSubmenuBatch = (params) => getAction('/sys/permission/getSystemSubmenuBatch', params)
肖超群 authored
31
32
33
34
35
36
37
38
39
const queryTreeList = (params) => getAction("/sys/permission/queryTreeList", params);
const queryTreeListForRole = (params) => getAction("/sys/role/queryTreeList", params);
const queryListAsync = (params) => getAction("/sys/permission/queryListAsync", params);
const queryRolePermission = (params) => getAction("/sys/permission/queryRolePermission", params);
const saveRolePermission = (params) => postAction("/sys/permission/saveRolePermission", params);
const queryPermissionsByUser = () => getAction("/sys/permission/getUserPermissionByToken");
const loadAllRoleIds = (params) => getAction("/sys/permission/loadAllRoleIds", params);
const getPermissionRuleList = (params) => getAction("/sys/permission/getPermRuleListByPermId", params);
const queryPermissionRule = (params) => getAction("/sys/permission/queryPermissionRule", params);
肖超群 authored
40
谭毅彬 authored
41
//部门管理
肖超群 authored
42
43
44
45
46
47
const queryDepartTreeList = (params) => getAction("/sys/sysDepart/queryTreeList", params);
const queryDepartTreeSync = (params) => getAction("/sys/sysDepart/queryDepartTreeSync", params);
const queryIdTree = (params) => getAction("/sys/sysDepart/queryIdTree", params);
const queryParentName = (params) => getAction("/sys/sysDepart/queryParentName", params);
const searchByKeywords = (params) => getAction("/sys/sysDepart/searchBy", params);
const deleteByDepartId = (params) => deleteAction("/sys/sysDepart/delete", params);
李泰瑜 authored
48
肖超群 authored
49
//二级部门管理
肖超群 authored
50
51
52
53
54
55
const queryDepartPermission = (params) => getAction("/sys/permission/queryDepartPermission", params);
const saveDepartPermission = (params) => postAction("/sys/permission/saveDepartPermission", params);
const queryTreeListForDeptRole = (params) => getAction("/sys/sysDepartPermission/queryTreeListForDeptRole", params);
const queryDeptRolePermission = (params) => getAction("/sys/sysDepartPermission/queryDeptRolePermission", params);
const saveDeptRolePermission = (params) => postAction("/sys/sysDepartPermission/saveDeptRolePermission", params);
const queryMyDepartTreeList = (params) => getAction("/sys/sysDepart/queryMyDeptTreeList", params);
肖超群 authored
56
57

//日志管理
肖超群 authored
58
59
const deleteLog = (params) => deleteAction("/sys/log/delete", params);
const deleteLogList = (params) => deleteAction("/sys/log/deleteBatch", params);
60
61
//获得所有接口日志名称
const getApiNameList = (params) => deleteAction("/monitor/apiLog/getApiNameList", params);
肖超群 authored
62
63

//数据字典
肖超群 authored
64
65
66
67
68
const addDict = (params) => postAction("/sys/dict/add", params);
const editDict = (params) => putAction("/sys/dict/edit", params);
const treeList = (params) => getAction("/sys/dict/treeList", params);
const addDictItem = (params) => postAction("/sys/dictItem/add", params);
const editDictItem = (params) => putAction("/sys/dictItem/edit", params);
肖超群 authored
69
谭毅彬 authored
70
//语言切换
71
72
const languageChange = (languageCode) => getAction(`/api/system/languageChange/${languageCode}`);
肖超群 authored
73
//字典标签专用(通过code获取字典数组)
74
export const ajaxGetDictItems = (code, params) => getAction(`/api/system/getDictItems/${code}`, params);
肖超群 authored
75
肖超群 authored
76
77
78
79
80
81
82
//从缓存中获取字典配置
function getDictItemsFromCache(dictCode) {
  if (Vue.ls.get(UI_CACHE_DB_DICT_DATA) && Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode]) {
    let dictItems = Vue.ls.get(UI_CACHE_DB_DICT_DATA)[dictCode];
    return dictItems;
  }
}
谭毅彬 authored
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
  tableName:    关联表名
  id:           关联ID
  language:     语种
  defaultValue: 未配置时返回默认值
 */
//从缓存中获取多语言配置
function getTranslateItemsFromCache(tableName, id, language, defaultValue) {
  let translateItems = Vue.ls.get(UI_CACHE_TRANSLATE_DATA);
  let res = defaultValue;
  //翻译
  translateItems.some(function (item) {
    if (item.relateTable == tableName && item.relateId == id) {
      if (language == 'zh-CN') {
        res = item.chinese;
      } else if (language == 'en-US') {
        res = item.english;
      }
      return true;
    }
  });
  return res;
}
肖超群 authored
106
谭毅彬 authored
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
//从缓存中获取国际化字典配置
function getTranslateDistItemsFromCache(tableName, id, language, defaultValue) {
  let translateItems = Vue.ls.get(UI_CACHE_TRANSLATE_DICT_DATA);
  let res = defaultValue;
  //翻译
  translateItems.some(function (item) {
    if (item.relateTable == tableName && item.relateId == id) {
      if (language == 'zh-CN') {
        res = item.chinese;
      } else if (language == 'en-US') {
        res = item.english;
      }
      return true;
    }
  });
  return res;
}
谭毅彬 authored
125
126
127
128
//国际化消息结果
function translateResultMessage(result, defaultValue) {
  let language = Vue.ls.get("language");
  let res = defaultValue;
谭毅彬 authored
129
130
131
  if (language == 'zh-CN' && result.messageChinese != '') {
    res = result.messageChinese;
  } else if (language == 'en-US' && result.messageEnglish != '') {
谭毅彬 authored
132
133
134
135
136
    res = result.messageEnglish;
  }
  return res;
}
谭毅彬 authored
137
138
139
140
141
142
143
144
145
//国际化数据字典
function translateDistItems(distData) {
  let language = Vue.ls.get("language");
  Object.keys(distData).forEach(function(key) {
    var itemDataList = distData[key];
    itemDataList.forEach((subItem) => {
      let temp = getTranslateDistItemsFromCache('sys_dict_item', subItem["id"], language, ''); // 确保提供正确的参数
      if (temp != null) {
        subItem["text"] = temp; // 确保 subItem 对象中存在 itemText 属性
谭毅彬 authored
146
        }
谭毅彬 authored
147
148
149
150
151
    })
  })
  return distData;
}
肖超群 authored
152
//系统通告
肖超群 authored
153
154
const doReleaseData = (params) => getAction("/sys/annountCement/doReleaseData", params);
const doReovkeData = (params) => getAction("/sys/annountCement/doReovkeData", params);
肖超群 authored
155
//获取系统访问量
肖超群 authored
156
157
const getLoginfo = (params) => getAction("/sys/loginfo", params);
const getVisitInfo = (params) => getAction("/sys/visitInfo", params);
肖超群 authored
158
159

// 根据部门主键查询用户信息
肖超群 authored
160
const queryUserByDepId = (params) => getAction("/sys/user/queryUserByDepId", params);
肖超群 authored
161
162

// 重复校验
肖超群 authored
163
const duplicateCheck = (params) => getAction("/sys/duplicate/check", params);
肖超群 authored
164
// 加载分类字典
肖超群 authored
165
const loadCategoryData = (params) => getAction("/sys/category/loadAllData", params);
肖超群 authored
166
167
const checkRuleByCode = (params) => getAction('/sys/checkRule/checkByCode', params)
//加载我的通告信息
肖超群 authored
168
const getUserNoticeInfo = (params) => getAction("/sys/sysAnnouncementSend/getMyAnnouncementSend", params);
肖超群 authored
169
const getTransitURL = url => `/sys/common/transitRESTful?url=${encodeURIComponent(url)}`
170
肖超群 authored
171
//根据用户编码,获取仓库信息
肖超群 authored
172
export const getWarehouseByUserCode = (params) => postAction('/sys/getWarehouseByUserCode', params);
肖超群 authored
173
//获取库区列表
肖超群 authored
174
export const getZoneList = (params) => getAction('/config/zone/getZoneList', params);
肖超群 authored
175
//获取容器类型列表
肖超群 authored
176
export const getContainerTypeList = (params) => getAction('/config/containerType/getContainerTypeList', params);
肖超群 authored
177
//获取库位类型列表
李泰瑜 authored
178
export const getLocationTypeList = (params) => getAction('/config/locationType/getLocationTypeList', params);
肖超群 authored
179
//获取库位类高度列表
肖超群 authored
180
export const getLocationHighList = (params) => postAction('/config/locationHigh/getLocationHighList', params);
肖超群 authored
181
//获取货主列表
肖超群 authored
182
export const getCompanyList = (params) => getAction('/config/company/getCompanyList', params);
183
184
//系统激活信息查询
export const querySystemActivationInfo = (params) => getAction('/sys/querySystemActivationInfo', params);
185
186
//获取盘点类型列表
export const getCountTypeList = (params) => getAction('/config/cycleCountPreference/getCountTypeList', params);
肖超群 authored
187
//获取承运商列表
肖超群 authored
188
export const getCarrierList = (params) => getAction('/config/carrier/getCarrierList', params);
肖超群 authored
189
//获取客户列表
肖超群 authored
190
export const getCustomerList = (params) => getAction('/config/customer/getCustomerList', params);
肖超群 authored
191
//获取供应商列表
肖超群 authored
192
export const getSupplierList = (params) => getAction('/config/supplier/getSupplierList', params);
肖超群 authored
193
//获取入库类型列表
肖超群 authored
194
export const getReceiptTypeList = (params) => getAction('/config/receiptType/getReceiptTypeList', params);
肖超群 authored
195
//获取出库类型列表
肖超群 authored
196
export const getShipmentTypeList = (params) => getAction('/config/shipmentType/getShipmentTypeList', params);
肖超群 authored
197
//根据物料编码查询物料信息
肖超群 authored
198
export const searchMaterialByCode = (params) => postAction('/config/material/searchMaterialByCode', params);
肖超群 authored
199
//根据入库单头ID查询入库单详情
肖超群 authored
200
export const listReceiveByReceiptId = (params) => postAction('/receipt/receiveHeader/listReceiveByReceiptId', params);
肖超群 authored
201
//创建入库任务
肖超群 authored
202
export const createReceiptTask = (params) => postAction('/receipt/receiptContainerHeader/createReceiptTask', params);
203
204
//批量创建入库任务
export const createReceiptBatchTask = (params) => postAction('/receipt/receiptContainerHeader/createReceiptBatchTask', params);
肖超群 authored
205
//完成WMS任务
肖超群 authored
206
export const completeTaskByWMS = (params) => postAction('/task/taskHeader/completeTaskByWMS', params);
肖超群 authored
207
//下发任务给WCS
肖超群 authored
208
export const execute = (params) => postAction('/task/taskHeader/execute', params);
209
//取消任务
肖超群 authored
210
export const cancelTask = (params) => postAction('/task/taskHeader/cancelTask?ids=' + params, params);
谭毅彬 authored
211
212
213
214

//盘点任务创建
export const createCycleCountDetailByInventory = (params) => postAction('/cycleCountDetail/cycleCountDetail/createCycleCountDetailByInventory', params);
215
216
//切换任务
export const switchTask = (params) => postAction('/task/taskHeader/switchTask?ids=' + params, params);
肖超群 authored
217
//自动配盘
肖超群 authored
218
export const autoCombination = (params) => postAction('/shipment/shipmentCombination/autoCombination', params);
肖超群 authored
219
220
//自动出库
export const autoShipment = (params) => postAction('/shipment/shipmentHeader/autoShipment', params);
221
222
//自动预配盘出库
export const autoShipmentAdvice = (params) => postAction('/shipment/shipmentHeader/autoShipmentAdvice', params);
223
224
//根据序列号扣减预配盘的库存
export const reduceInventoryDetailBySn = (params) => postAction('/shipment/shipmentCombination/reduceInventoryDetailBySn?snList=' + params, params);
肖超群 authored
225
//创建出库任务
肖超群 authored
226
export const createShipmentTask = (params) => postAction('/shipment/shipmentCombination/createShipmentTask', params);
肖超群 authored
227
228
//批量创建出库任务
export const createShipmentBatchTask = (params) => postAction('/shipment/shipmentCombination/createShipmentBatchTask', params);
肖超群 authored
229
//选择出库分拣口
肖超群 authored
230
export const selectSortingPort = (params) => postAction('/shipment/shipmentCombination/selectSortingPort', params);
肖超群 authored
231
//选择入库分拣口
肖超群 authored
232
export const selectSupplePort = (params) => postAction('/receipt/receiptContainerHeader/selectSupplePort', params);
233
234
//选择盘点分拣口
export const inventoryPort = (params) => postAction('/cycleCountDetail/cycleCountDetail/inventoryPort', params);
235
//创建空托盘入库任务
肖超群 authored
236
export const createEmptyIn = (params) => postAction('/task/taskHeader/createEmptyIn', params);
237
//创建空托盘出库任务
肖超群 authored
238
export const createEmptyOut = (params) => postAction('/task/taskHeader/createEmptyOut', params);
肖超群 authored
239
240
//选择空托盘出库整出口
export const selectEmptyOutPort = (params) => postAction('/task/taskHeader/selectEmptyOutPort', params);
241
//选择出库整出口
肖超群 authored
242
export const selectOutPort = (params) => postAction('/task/taskHeader/selectOutPort', params);
243
//选择出库分拣口
肖超群 authored
244
export const selectPickPort = (params) => postAction('/task/taskHeader/selectPickPort', params);
245
//创建移库任务
肖超群 authored
246
export const createTransferTask = (params) => postAction('/task/taskHeader/createTransferTask', params);
247
//创建出库查看任务
肖超群 authored
248
export const createCheckOutTask = (params) => postAction('/task/taskHeader/createCheckOutTask', params);
249
//选择站台
肖超群 authored
250
export const selectPort = (params) => postAction('/task/taskHeader/selectPort', params);
251
//创建跨站任务
肖超群 authored
252
export const createOverStationTask = (params) => postAction('/task/taskHeader/createOverStationTask', params);
253
//盘点任务创建
254
export const stockTakeTask = (params, headerId, code) => postAction('/cycleCountDetail/cycleCountDetail/stockTakeTask?ids=' + params + '&headerId=' + headerId + '&code=' + code, code);
255
256
//盘盈添加
export const increaseInInventoryGain = (params) => postAction('/cycleCountDetail/cycleCountDetail/increaseInInventoryGain', params);
李泰瑜 authored
257
//盘点任务生成
258
export const createCycleCoutTaskByDetailId = (params, toPort) => postAction('/cycleCountDetail/cycleCountDetail/createCycleCoutTaskByDetailId?cycleId=' + params + '&toPort=' + toPort, params);
肖超群 authored
259
//盘点登记
260
export const confirmGapQty = (params) => postAction('/cycleCountDetail/cycleCountDetail/confirmGapQty', params);
261
//创建空托盘组入库任务
肖超群 authored
262
export const createManyEmptyIn = (params) => postAction('/task/taskHeader/createManyEmptyIn', params);
263
//创建空托盘组出库任务
肖超群 authored
264
export const createManyEmptyOut = (params) => postAction('/task/taskHeader/createManyEmptyOut', params);
肖超群 authored
265
266
//批量创建空托盘组出库任务
export const batchCreateEmptyOut = (params) => postAction('/task/taskHeader/batchCreateEmptyOut', params);
267
//获取容器打印数据
肖超群 authored
268
export const getPrintContainer = (params) => postAction('/config/container/getPrintContent?ids=' + params, params);
269
//获取库位打印数据
肖超群 authored
270
export const getPrintLocation = (params) => postAction('/config/location/getPrintContent?ids=' + params, params);
271
//获取物料打印数据
肖超群 authored
272
export const getMaterialLocation = (params) => postAction('/config/material/getPrintContent?ids=' + params, params);
273
274
//获取物料类别列表
export const getMaterialTypeList = (params) => getAction('/config/materialType/getMaterialTypeList', params);
肖超群 authored
275
//根据出库单头ID查询出库单详情
肖超群 authored
276
export const listShipmentByShipmentDetailId = (params) => postAction('/shipment/shipmentCombination/listShipmentByShipmentDetailId', params);
肖超群 authored
277
//根据出库单详情选取库存
肖超群 authored
278
export const getInventoryFromShipmentDetail = (params) => postAction('/shipment/shipmentCombination/getInventoryFromShipmentDetail', params);
肖超群 authored
279
//配盘
肖超群 authored
280
export const combination = (params) => postAction('/shipment/shipmentCombination/combination', params);
281
//回传入库单
肖超群 authored
282
export const backErpReceipt = (params) => postAction('/receipt/receiptHeader/backErpReceipt', params);
283
//回传出库单
肖超群 authored
284
export const backErpShipment = (params) => postAction('/shipment/shipmentHeader/backErpShipment', params);
285
286
//合并出库单
export const mergeShipment = (params) => postAction('/shipment/shipmentHeader/mergeShipment', params);
李泰瑜 authored
287
//首页取值
肖超群 authored
288
289
290
291
292
export const deliveringAmount = (params) => postAction("/sys/home/deliveringAmount", params);
export const inventoryUtilization = (params) => postAction("/sys/home/inventoryUtilization", params);
export const inventoryStatus = (params) => postAction("/sys/home/inventoryStatus", params);
export const inventoryOverview = (params) => postAction("/sys/home/inventoryOverview", params);
export const getCommonData = (params) => postAction("/sys/home/getCommonData", params);
肖超群 authored
293
294
295
296
297
298
//执行AGV任务
export const executeAgv = (params) => postAction('/task/agvTask/execute?ids=' + params, params);
//完成AGV任务
export const completeAgv = (params) => postAction('/task/agvTask/complete?ids=' + params, params);
//取消AGV任务
export const cancelAgv = (params) => postAction('/task/agvTask/cancel?ids=' + params, params);
299
//修复空出数据
300
301
302
303
304
export const handleEmptyOut = (params) => postAction('/task/taskHeader/handleEmptyOut?id=' + params, params);
//修复取货错数据
export const handlePickupError = (params) => postAction('/task/taskHeader/handlePickupError?id=' + params, params);
//修复重入数据
export const handleDoubleIn = (params) => postAction('/task/taskHeader/handleDoubleIn?id=' + params, params);
305
306
307
308
//查询用户角色
export const queryWarehouse = (params) => getAction("/config/sysUserWarehouse/queryWarehouse", params);
//查询所有仓库
export const getAllWarehouseList = (params) => getAction("/config/warehouse/getAllWarehouseList", params);
肖超群 authored
309
310
//查询所有库区
export const getAllZoneList = (params) => getAction("/config/zone/getAllZoneList", params);
311
312
313
314
315
316
317
318

//入库单提交审核
export const createReceiptAuditFlow = (params) => getAction("/audit/audit/createReceiptAuditFlow", params);
//入库单审核
export const auditReceipt = (params) => getAction("/audit/audit/auditReceipt", params);
//查询审核流程进度
export const searchAuditFlow = (params) => getAction("/audit/audit/searchAuditFlow", params);
319
320
321
322
323
324
325
//出库单提交审核
export const createShipmentAuditFlow = (params) => getAction("/audit/audit/createShipmentAuditFlow", params);
//出库单审核
export const auditShipment = (params) => getAction("/audit/audit/auditShipment", params);

//查询是否开启审核流程
export const getDocumentAduitFlow = (params) => getAction("/config/parameterConfiguration/getDocumentAduitFlow", params);
肖超群 authored
326
327
328
//快速入库
export const quickReceipt = (params) => postAction("/task/taskHeader/quickReceipt", params);
//快速出库,批量快速出整托
329
export const shipmentInventoryHeader = (params) => postAction('/inventory/inventoryHeader/shipmentInventoryHeader', params);
肖超群 authored
330
//快速出库,批量快速出库存详情
331
export const shipmentInventoryDetail = (params) => postAction('/inventory/inventoryHeader/shipmentInventoryDetail', params);
肖超群 authored
332
333
//呼叫入库托盘
export const callReceiptBox = (params) => postAction('/receipt/receiptHeader/callbox', params);
肖超群 authored
334
335
//批量呼叫入库托盘
export const batchCallReceiptBox = (params) => postAction('/receipt/receiptHeader/batchCallBox', params);
肖超群 authored
336
337
//呼叫出库托盘
export const callShipmentBox = (params) => postAction('/shipment/shipmentHeader/callbox', params);
肖超群 authored
338
339
340
341
//根据收货ID查询收货单
export const listReceiveByReceiveId = (params) => postAction('/receipt/receiveHeader/listReceiveByReceiveId', params);
//收货
export const receive = (params) => postAction('/receipt/receiveHeader/receive', params);
肖超群 authored
342
343
//全部收货
export const receiveHeader = (params) => postAction('/receipt/receiveHeader/receiveHeader?id=' + params, params);
肖超群 authored
344
345
//越库
export const crossDocking = (params) => postAction('/receipt/receiptHeader/crossDocking?id=' + params, params);
肖超群 authored
346
347
//收货详情转质检
export const receiveDetailToQuality = (params) => postAction('/receipt/receiveHeader/receiveDetailToQuality?id=' + params, params);
348
//入库质检
肖超群 authored
349
350
351
export const qualityTesting = (params) => postAction('/receipt/qualityHeader/qualityTesting', params);
//全部转质检
export const receiveHeaderToQuality = (params) => postAction('/receipt/receiveHeader/receiveHeaderToQuality?id=' + params, params);
352
353
354
355
356
//生成库内质检任务
export const qualityInventoryDetail = (params) => postAction('/inventory/inventoryHeader/qualityInventoryDetail', params);
//质检登记
export const qualityRegister = (params) => postAction('/task/taskHeader/qualityRegister', params);
//创建出库任务,AGV去接
肖超群 authored
357
export const createShipmentTaskByAgv = (params) => postAction('/shipment/shipmentCombination/createShipmentTaskByAgv', params);
肖超群 authored
358
359
360
361
//批量创建出库任务,AGV去接
export const createBatchShipmentTaskByAgv = (params) => postAction('/shipment/shipmentCombination/createBatchShipmentTaskByAgv', params);
//创建出库任务和AGV去接
export const createShipmentTaskAndAgvTask = (params) => postAction('/shipment/shipmentCombination/createShipmentTaskAndAgvTask', params);
362
363
//完成平库出库
export const completeFlatShipment = (params) => postAction('/shipment/shipmentCombination/completeFlatShipment', params);
364
365
//平库入库
export const flatReceipt = (params) => postAction('/receipt/receiveHeader/flatReceipt', params);
肖超群 authored
366
367
//生成序列号物料
export const createSerialMaterial = (params) => postAction('/config/materialSn/batchAdd', params);
肖超群 authored
368
369
370
371
372
373
//合托
export const batchCreateCheckOut = (params) => postAction('/task/taskHeader/batchCreateCheckOut', params);
//增加库存数量
export const addInventoryDetail = (params) => postAction('/inventory/inventoryDetail/addInventoryDetail', params);
//扣减库存数量
export const reduceInventoryDetail = (params) => postAction('/inventory/inventoryDetail/reduceInventoryDetail', params);
肖超群 authored
374
肖超群 authored
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
// 中转HTTP请求
export const transitRESTful = {
  get: (url, parameter) => getAction(getTransitURL(url), parameter),
  post: (url, parameter) => postAction(getTransitURL(url), parameter),
  put: (url, parameter) => putAction(getTransitURL(url), parameter),
  http: (url, parameter) => httpAction(getTransitURL(url), parameter),
}

export {
  // imgView,
  // doMian,
  addRole,
  editRole,
  checkRoleCode,
  addUser,
  editUser,
  queryUserRole,
  getUserList,
  queryall,
  frozenBatch,
  checkOnlyUser,
  changePassword,
397
  systemActivation,
肖超群 authored
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
  getPermissionList,
  addPermission,
  editPermission,
  queryTreeList,
  queryListAsync,
  queryRolePermission,
  saveRolePermission,
  queryPermissionsByUser,
  loadAllRoleIds,
  getPermissionRuleList,
  queryPermissionRule,
  queryDepartTreeList,
  queryDepartTreeSync,
  queryIdTree,
  queryParentName,
  searchByKeywords,
  deleteByDepartId,
  deleteLog,
  deleteLogList,
  addDict,
  editDict,
  treeList,
  addDictItem,
  editDictItem,
  doReleaseData,
  doReovkeData,
  getLoginfo,
  getVisitInfo,
  queryUserByDepId,
  duplicateCheck,
  queryTreeListForRole,
  getSystemMenuList,
  getSystemSubmenu,
  getSystemSubmenuBatch,
  loadCategoryData,
  checkRuleByCode,
  queryDepartPermission,
  saveDepartPermission,
  queryTreeListForDeptRole,
  queryDeptRolePermission,
  saveDeptRolePermission,
  queryMyDepartTreeList,
  getUserNoticeInfo,
441
  getDictItemsFromCache,
442
443
  getApiNameList,
  languageChange,
谭毅彬 authored
444
  getTranslateItemsFromCache,
谭毅彬 authored
445
446
  translateDistItems,
  translateResultMessage
肖超群 authored
447
}