From 9b20252e27c30d1eba95eadc54ace5dff2ffb44c Mon Sep 17 00:00:00 2001 From: zwq Date: Tue, 16 Jul 2024 09:30:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=A9=E6=96=99=E3=80=81?= =?UTF-8?q?=E7=8F=AD=E7=BB=84=E3=80=81=E4=BB=93=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/coreProduct.js | 10 +- src/api/base/groupClasses.js | 7 + src/api/base/groupSchedulingPlan.js | 125 +++ src/api/base/groupSchedulingRule.js | 54 + src/api/base/groupTeamScheduling.js | 9 +- src/api/base/material.js | 91 +- src/api/base/materialProductBom.js | 4 +- src/api/base/product.js | 4 +- src/api/extend/processEquMaterialBom.js | 6 +- src/api/monitoring/statisticalData.js | 2 +- src/views/base/coreWorkOrder/allocation.vue | 8 +- src/views/base/material/SmallTitle.vue | 65 -- src/views/base/material/add-or-updata.vue | 608 ++++------- src/views/base/material/attr-add.vue | 141 --- src/views/base/material/index.vue | 506 ++++++--- .../base/materialProductBom/add-or-updata.vue | 37 +- .../base/materialProductBom/attr-add.vue | 12 +- .../base/materialUseLog/add-or-updata.vue | 206 ++-- src/views/base/mixins/basic-page.js | 11 +- src/views/base/mixins/code-filter.js | 22 +- .../equipment/analysis/quality/index.vue | 4 +- .../AlarmGroup/components/BasicDrawer.vue | 6 +- .../BindGroup/components/BasicDrawer.vue | 6 +- .../equipment/timing-diagram/output/index.vue | 6 +- .../equipment/timing-diagram/status/index.vue | 8 +- .../processEquMaterialBom/add-or-updata.vue | 4 +- .../extend/processEquMaterialBom/attr-add.vue | 22 +- .../groupClasses/components/groupClassAdd.vue | 31 - .../groupClasses/components/statusBtn.vue | 52 + src/views/group/base/groupClasses/index.vue | 509 ++++----- .../groupTeam/components/groupTeamAdd.vue | 49 +- .../base/groupTeam/components/statusBtn.vue | 9 +- .../base/groupTeam/components/workerEdit.vue | 4 +- src/views/group/base/groupTeam/index.vue | 21 +- .../group/base/groupTeamScheduling/index.vue | 972 +++++++++--------- .../components/schedulingPlanConfigAdd.vue | 260 +++++ .../group/base/schedulingPlanConfig/index.vue | 233 +++++ .../components/schedulingRuleConfigAdd.vue | 280 +++++ .../components/tableSelect.vue | 44 + .../group/base/schedulingRuleConfig/index.vue | 261 +++++ .../components/teamProductionDetail.vue | 10 +- .../warehouse/warehouse-info/BarChart.vue | 131 +++ src/views/warehouse/warehouse-info/index.vue | 454 ++------ .../add-or-updata.vue | 0 .../add-or-updata1.vue | 0 src/views/warehouse/warehouse-info1/index.vue | 413 ++++++++ 46 files changed, 3571 insertions(+), 2146 deletions(-) create mode 100644 src/api/base/groupSchedulingPlan.js create mode 100644 src/api/base/groupSchedulingRule.js delete mode 100644 src/views/base/material/SmallTitle.vue delete mode 100644 src/views/base/material/attr-add.vue create mode 100644 src/views/group/base/groupClasses/components/statusBtn.vue create mode 100644 src/views/group/base/schedulingPlanConfig/components/schedulingPlanConfigAdd.vue create mode 100644 src/views/group/base/schedulingPlanConfig/index.vue create mode 100644 src/views/group/base/schedulingRuleConfig/components/schedulingRuleConfigAdd.vue create mode 100644 src/views/group/base/schedulingRuleConfig/components/tableSelect.vue create mode 100644 src/views/group/base/schedulingRuleConfig/index.vue create mode 100644 src/views/warehouse/warehouse-info/BarChart.vue rename src/views/warehouse/{warehouse-info => warehouse-info1}/add-or-updata.vue (100%) rename src/views/warehouse/{warehouse-info => warehouse-info1}/add-or-updata1.vue (100%) create mode 100644 src/views/warehouse/warehouse-info1/index.vue 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 @@