import request from '@/utils/request' // 创建排班计划配置基础信息 export function createGroupPlan(data) { return request({ url: '/base/group-scheduling-plan/create', method: 'post', data: data }) } // 更新排班计划配置基础信息 export function updateGroupPlan(data) { return request({ url: '/base/group-scheduling-plan/update', method: 'put', data: data }) } // 删除排班计划配置基础信息 export function deleteGroupPlan(id) { return request({ url: '/base/group-scheduling-plan/delete?id=' + id, method: 'delete' }) } // 获得排班计划配置基础信息 export function getGroupPlan(id) { return request({ url: '/base/group-scheduling-plan/get?id=' + id, method: 'get' }) } // 获得排班计划配置基础信息分页 export function getGroupPlanPage(query) { return request({ url: '/base/group-scheduling-plan/page', method: 'get', params: query }) } // 获得所有排班计划列表 export function groupPlanList() { return request({ url: '/base/group-scheduling-plan/listAll', method: 'get' }) } // 获得排班计划相关班组列表 export function groupPlanTeamList(id) { return request({ url: '/base/group-scheduling-plan-team/teamListByPlanId?planId=' + id, method: 'get' }) } // 获得排班计划相关班次列表 export function groupPlanClassesList(id) { return request({ url: '/base/group-scheduling-plan-classes/classesListByPlanId?planId=' + id, method: 'get' }) } // 获取code export function getCode() { return request({ url: '/base/group-scheduling-plan/getCode', method: 'get' }) } // 导出排班计划配置基础信息 Excel export function exportGroupPlanExcel(query) { return request({ url: '/base/group-scheduling-plan/export-excel', method: 'get', params: query, responseType: 'blob' }) } // 获得产线工段树形结构 export function getGroupPlanTree() { return request({ url: '/base/group-scheduling-plan/getLineSectionTree', method: 'get' }) } // 创建排班计划产线工段 export function createGroupPlanLine(data) { return request({ url: '/base/group-scheduling-plan-line-section/createPlanLineSection', method: 'post', data: data }) } // 更新排班计划产线工段 export function updateGroupPlanLine(data) { return request({ url: '/base/group-scheduling-plan-line-section/updatePlanLineSection', method: 'put', data: data }) } // 获得排班计划配置基础信息 export function getGroupPlanLine(id) { return request({ url: '/base/group-scheduling-plan-line-section/getLineSectionByPlanId?planId=' + id, method: 'get' }) } // 获得当前登录用户所在部门id export function getLoginUserDeptId() { return request({ url: '/base/group-scheduling-plan-line-section/getLoginUserDeptId', method: 'get' }) }