gaoluyang
2025-12-04 a3230f8e5ad10ddbfdf2fb866073eb7ddfb54dbf
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
import request from '@/utils/request'
 
// 获取产线树形结构
export function getDeptPositionTree() {
  return request({
    url: '/productionLine/listTree',
    method: 'get'
  })
}
 
// 新增产线或工序
export function addDeptPosition(data) {
  return request({
    url: '/productionLine/add',
    method: 'post',
    data: data
  })
}
 
// 修改产线或工序
export function updateDeptPosition(data) {
  return request({
    url: '/productionLine/update',
    method: 'post',
    data: data
  })
}
 
// 删除产线或工序
export function deleteDeptPosition(id) {
  return request({
    url: '/productionLine/delete',
    method: 'delete',
    data: id
  })
}
 
// 查询工序列表(根据parentId)
export function laborConfListPage(query) {
    return request({
        url: '/productionLine/pageList',
        method: 'get',
        params: query
    })
}