diff --git a/src/api/base/coreProduct.js b/src/api/base/coreProduct.js index 476a60b5..fa67db60 100644 --- a/src/api/base/coreProduct.js +++ b/src/api/base/coreProduct.js @@ -1,9 +1,9 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-11-04 10:42:50 - * @LastEditors: DY - * @Description: + * @LastEditTime: 2024-07-08 14:35:17 + * @LastEditors: zwq + * @Description: */ import request from '@/utils/request' @@ -61,7 +61,7 @@ export function getCoreProductPage(query) { // 获得所有列表 export function getCoreProductList(query) { return request({ - url: '/base/core-product/listAll', + url: '/base/core-product-material/listAll', method: 'get', params: query }) @@ -108,4 +108,4 @@ export function getCoreProductAttrPage(query) { method: 'get', params: query }) -} \ No newline at end of file +} diff --git a/src/api/base/groupClasses.js b/src/api/base/groupClasses.js index bfc626b7..c512d06a 100644 --- a/src/api/base/groupClasses.js +++ b/src/api/base/groupClasses.js @@ -51,6 +51,13 @@ export function getCode() { }) } +// 获得可用的班次列表 +export function listClassesEnabled() { + return request({ + url: '/base/group-classes/listEnable', + method: 'get' + }) +} // 导出班次基础信息 Excel export function exportGroupClassesExcel(query) { return request({ diff --git a/src/api/base/groupSchedulingPlan.js b/src/api/base/groupSchedulingPlan.js new file mode 100644 index 00000000..44743f1b --- /dev/null +++ b/src/api/base/groupSchedulingPlan.js @@ -0,0 +1,125 @@ +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' + }) +} diff --git a/src/api/base/groupSchedulingRule.js b/src/api/base/groupSchedulingRule.js new file mode 100644 index 00000000..d93d02fc --- /dev/null +++ b/src/api/base/groupSchedulingRule.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建排班规则基础信息 +export function createGroupRule(data) { + return request({ + url: '/base/group-scheduling-rule/create', + method: 'post', + data: data + }) +} + +// 更新排班规则基础信息 +export function updateGroupRule(data) { + return request({ + url: '/base/group-scheduling-rule/update', + method: 'put', + data: data + }) +} + +// 删除排班规则基础信息 +export function deleteGroupRule(id) { + return request({ + url: '/base/group-scheduling-rule/delete?id=' + id, + method: 'delete' + }) +} + +// 获得排班规则基础信息 +export function getGroupRule(id) { + return request({ + url: '/base/group-scheduling-rule/get?id=' + id, + method: 'get' + }) +} + +// 获得排班规则基础信息分页 +export function getGroupRulePage(query) { + return request({ + url: '/base/group-scheduling-rule/page', + method: 'get', + params: query + }) +} + +// 导出排班规则基础信息 Excel +export function exportGroupRuleExcel(query) { + return request({ + url: '/base/group-scheduling-rule/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/api/base/groupTeamScheduling.js b/src/api/base/groupTeamScheduling.js index be88f707..f6ccc85b 100644 --- a/src/api/base/groupTeamScheduling.js +++ b/src/api/base/groupTeamScheduling.js @@ -8,7 +8,14 @@ export function getPreset(query) { params: query }) } - +// 获取某月预排班 +export function getScheduling(query) { + return request({ + url: '/base/group-team-scheduling/getScheduling', + method: 'get', + params: query + }) +} // 批量创建-更新排班信息 export function createOrUpdateList(data) { return request({ diff --git a/src/api/base/material.js b/src/api/base/material.js index 26e495a0..ba6c1e2a 100644 --- a/src/api/base/material.js +++ b/src/api/base/material.js @@ -1,9 +1,9 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-10-24 11:22:28 - * @LastEditors: DY - * @Description: + * @LastEditTime: 2024-07-05 10:09:18 + * @LastEditors: zwq + * @Description: */ import request from '@/utils/request' @@ -61,7 +61,7 @@ export function getMaterialPage(query) { // 获得物料列表 export function getMaterialList(query) { return request({ - url: '/base/material/listbyfilter', + url: '/base/core-product-material/listAll', method: 'get', params: query }) @@ -118,4 +118,85 @@ export function getMaterialAttr(query) { method: 'get', params: query }) -} \ No newline at end of file +} +// 获得物料树结构 +export function getMaterialTree() { + return request({ + url: '/base/core-product-material-type/listTree', + method: 'get' + }) +} + +// 创建物料树 +export function createMaterialTree(data) { + return request({ + url: '/base/core-product-material-type/create', + method: 'post', + data: data + }) +} + +// 更新物料树 +export function updateMaterialTree(data) { + return request({ + url: '/base/core-product-material-type/update', + method: 'put', + data: data + }) +} + +// 删除物料树 +export function deleteMaterialTree(id) { + return request({ + url: '/base/core-product-material-type/delete?id=' + id, + method: 'delete' + }) +} + +// 获得产品物料分页 +export function getProductMaterialPage(query) { + return request({ + url: '/base/core-product-material/page', + method: 'get', + params: query + }) +} +// 删除产品物料 +export function deleteProductMaterial(id) { + return request({ + url: '/base/core-product-material/delete?id=' + id, + method: 'delete' + }) +} +// 创建产品物料 +export function createProductMaterial(data) { + return request({ + url: '/base/core-product-material/create', + method: 'post', + data: data + }) +} + +// 更新产品物料 +export function updateProductMaterial(data) { + return request({ + url: '/base/core-product-material/update', + method: 'put', + data: data + }) +} +// 获得产品物料 +export function getProductMaterial(id) { + return request({ + url: '/base/core-product-material/get?id=' + id, + method: 'get' + }) +} + +// 获得产品物料code +export function getProductMaterialCode() { + return request({ + url: '/base/core-product-material/getCode', + method: 'POST' + }) +} diff --git a/src/api/base/materialProductBom.js b/src/api/base/materialProductBom.js index 4721ab2a..9bdefcfd 100644 --- a/src/api/base/materialProductBom.js +++ b/src/api/base/materialProductBom.js @@ -3,7 +3,7 @@ * @Date: 2023-10-21 11:50:46 * @LastEditTime: 2023-11-27 17:54:28 * @LastEditors: DY - * @Description: + * @Description: */ import request from '@/utils/request' @@ -70,7 +70,7 @@ export function getMaterialPBList(query) { // 获得产品列表 export function getProList(query) { return request({ - url: '/base/core-product/listAll', + url: '/base/core-product-material/listAll', method: 'get', params: query }) diff --git a/src/api/base/product.js b/src/api/base/product.js index 4956018b..2924c882 100644 --- a/src/api/base/product.js +++ b/src/api/base/product.js @@ -2,7 +2,7 @@ import request from '@/utils/request' // 获得产品列表 export function getProductAll() { return request({ - url: '/base/core-product/listAll', + url: '/base/core-product-material/listAll', method: 'get' }) -} \ No newline at end of file +} diff --git a/src/api/extend/processEquMaterialBom.js b/src/api/extend/processEquMaterialBom.js index 0a01aa7d..af8075b1 100644 --- a/src/api/extend/processEquMaterialBom.js +++ b/src/api/extend/processEquMaterialBom.js @@ -1,8 +1,8 @@ /* * @Author: zhp * @Date: 2023-11-07 19:47:48 - * @LastEditTime: 2023-11-23 13:57:41 - * @LastEditors: zhp + * @LastEditTime: 2024-07-08 14:33:12 + * @LastEditors: zwq * @Description: */ import request from '@/utils/request' @@ -99,7 +99,7 @@ export function getProcessEquMaterialBomDet(data) { export function getMaterialList(data) { return request({ - url: '/base/material/listbyfilter', + url: '/base/core-product-material/listAll', method: 'get', data: data }) diff --git a/src/api/monitoring/statisticalData.js b/src/api/monitoring/statisticalData.js index 2d0f19be..0bc1200e 100644 --- a/src/api/monitoring/statisticalData.js +++ b/src/api/monitoring/statisticalData.js @@ -25,7 +25,7 @@ export function getWorkOrderList(query) { } export function getProductList(query) { return request({ - url: '/base/core-product/listAll', + url: '/base/core-product-material/listAll', method: 'get', params: query, }) diff --git a/src/views/base/coreWorkOrder/allocation.vue b/src/views/base/coreWorkOrder/allocation.vue index 24f3f5cc..551fcaa8 100644 --- a/src/views/base/coreWorkOrder/allocation.vue +++ b/src/views/base/coreWorkOrder/allocation.vue @@ -1,8 +1,8 @@