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 }) }