Mr.Shi
2023-08-11 5a7fb4358eb902ce139096f20ef3c0625adcd7f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/ext/warehouseExt/QXpage', data, {
    trim: true
  })
  // return request.post('/ext/warehouseExt/page', data, {
  //   trim: true
  // })
}
 
// 导出Excel
export function exportExcel (data) {
  return request.post('/ext/warehouseExt/exportExcel', data, {
    trim: true,
    download: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/ext/warehouseExt/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/ext/warehouseExt/updateById', data)
}
 
// 删除
export function deleteById (id) {
  return request.get(`/ext/warehouseExt/delete/${id}`)
}
 
// 批量删除
export function deleteByIdInBatch (ids) {
  return request.get('/ext/warehouseExt/delete/batch', {
    params: {
      ids
    }
  })
}
 
// 获取所有仓库
export function queryWarehouseAllData (data) {
  return request.post('/ext/warehouseExt/queryAllData', data)
}
 
// 部门人员
export function departments (data) {
  return request.post('/ext/companyUserExt/allUser', data)
}
 
// 仓库失效
export function updateMateriaStatus (id, status) {
  return request.get(`/ext/warehouseExt/upsateStatus?id=${id}&status=${status}`)
}
 
// 启用禁用货位
export function updateHWStatus (id, useLocation) {
  return request.get(`/ext/warehouseExt/updateHWStatus?id=${id}&useLocation=${useLocation}`)
}
 
// 启用禁用货位
export function warehouseExt (id) {
  return request.get(`/ext/warehouseExt/${id}`)
}
 
// 货位
export function queryWareHouserAndLocaltion (data) {
  return request.post('/ext/warehouseExt/queryWareHouserAndLocaltion', data)
}