jiangping
2023-08-21 2837bdd57f72e386bbf9a725e7b3a13e5eb9e930
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
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/ext/materialExt/page', data, {
    trim: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/ext/materialExt/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/ext/materialExt/updateById', data)
}
 
// 单位类型
export function getCategoryUnionListByOrg () {
  return request.get('/ext/materialExt/getCategoryUnionListByOrg')
}
// 详情
export function materialExtById (id) {
  return request.get(`/ext/materialExt/${id}`)
}
 
// 单位类型
export function getUnitListByOrg () {
  return request.post('/ext/materialExt/getUnitListByOrg')
}
 
// 失效
export function updateMateriaStatus (data) {
  return request.get('/ext/materialExt/updateMateriaStatus' + data)
}
 
// 子组织失效失效
export function updateChildMateriaStatus (data) {
  return request.get('/ext/materialExt/updateChildMateriaStatus' + data)
}
 
// 分配
export function distributionMaterial (data) {
  return request.get('/ext/materialExt/distributionMaterial' + data)
}
 
// 查询所有物料
export function getList (data) {
  return request.post('/ext/materialExt/getListByCondition', data)
}