From b3365f20bb97afe5398099f29a8b85f0be65a3d0 Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Thu, 26 Feb 2026 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=AE=A1=E7=90=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionSchedulingPlan/scheduling.js | 48 ++ .../components/indateDailog.vue | 416 +++++++++--------- .../components/processMainte/dsPartIndex.vue | 2 +- .../components/processMainte/partDetails.vue | 1 - .../processMainte/processPlanning.vue | 45 +- .../processManagement/taskProcessing.vue | 3 +- .../schedulingDashboard/container.vue | 6 +- .../production/executionProcess.vue | 131 +++--- .../production/executionWorkorder.vue | 119 ++--- .../production/processDeatils.vue | 128 ++++-- .../production/workorderDetails.vue | 123 ++++-- .../productionAnalysis.vue | 14 +- .../qualificationAnalysis.vue | 71 ++- 13 files changed, 681 insertions(+), 426 deletions(-) diff --git a/src/api/productionSchedulingPlan/scheduling.js b/src/api/productionSchedulingPlan/scheduling.js index 7952460..5c21aa2 100644 --- a/src/api/productionSchedulingPlan/scheduling.js +++ b/src/api/productionSchedulingPlan/scheduling.js @@ -72,3 +72,51 @@ export const getQualificationExecuteAnalysis = (current, size, params) => { }, }); }; + +// 生产执行(作业中心)workOrder/selectCenterExecuteList +export const getCenterExecuteList = params => { + return request({ + url: '/blade-scheduling/workOrder/selectCenterExecuteList', + method: 'get', + params: params + }); +}; + +// 订单执行明细/workOrder/selectOrderExecuteDetailPage +export const getOrderExecuteDetailPage = (current, size, params) => { + return request({ + url: '/blade-scheduling/workOrder/selectOrderExecuteDetailPage', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; + +//执行分析 工序 +export const getProcessExecutePage = (current, size, params) => { + return request({ + url: '/blade-scheduling/workOrder/selectProcessExecutePage', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; + +// 执行分析 工序执行明细 workOrder/selectProcessExecuteDetailPage +export const getProcessExecuteDetailPage = (current, size, params) => { + return request({ + url: '/blade-scheduling/workOrder/selectProcessExecuteDetailPage', + method: 'get', + params: { + ...params, + current, + size, + }, + }); +}; \ No newline at end of file diff --git a/src/views/processManagement/components/indateDailog.vue b/src/views/processManagement/components/indateDailog.vue index 3573a30..6f07aac 100644 --- a/src/views/processManagement/components/indateDailog.vue +++ b/src/views/processManagement/components/indateDailog.vue @@ -1,214 +1,228 @@ diff --git a/src/views/processManagement/components/processMainte/dsPartIndex.vue b/src/views/processManagement/components/processMainte/dsPartIndex.vue index c17abe3..5bc7f27 100644 --- a/src/views/processManagement/components/processMainte/dsPartIndex.vue +++ b/src/views/processManagement/components/processMainte/dsPartIndex.vue @@ -14,7 +14,7 @@
-

工艺版本:{{partVersion}}

+

工艺版本:{{partVersion}}5555

diff --git a/src/views/processManagement/components/processMainte/partDetails.vue b/src/views/processManagement/components/processMainte/partDetails.vue index 68a3dfe..d581c1d 100644 --- a/src/views/processManagement/components/processMainte/partDetails.vue +++ b/src/views/processManagement/components/processMainte/partDetails.vue @@ -11,7 +11,6 @@ 工艺版本: diff --git a/src/views/processManagement/components/processMainte/processPlanning.vue b/src/views/processManagement/components/processMainte/processPlanning.vue index b804340..53a3d1b 100644 --- a/src/views/processManagement/components/processMainte/processPlanning.vue +++ b/src/views/processManagement/components/processMainte/processPlanning.vue @@ -22,8 +22,10 @@ { this.data = this.transformCraftTree(res.data.data); this.partInfoData = res.data.data.partInfo; + this.$nextTick(() => { + this.autoSelectFirstProcess(); + }); if (this.partInfoData.partName == '石墨模') { let graphite = this.modelOption.find(item => item.name == '石墨模'); this.modelLevel = graphite.id; @@ -843,6 +848,21 @@ export default { } }); }, + autoSelectFirstProcess() { + if (!this.data?.[0]?.children?.length) return; + + // 获取第一个二级节点(工艺节点) + const firstCraft = this.data[0].children[0]; + + // 手动触发点击事件 + this.handleNodeClick(firstCraft, { + level: 2, + parent: { + data: this.data[0], + isRoot: false, + }, + }); + }, // 组织树转换 transformCraftTree(responseData) { const { partInfo, craftList } = responseData; @@ -861,29 +881,22 @@ export default { return { ...craftInfo, + id: craftInfo.id || `craft_${craftInfo.craftNo}`, // 👈 确保有唯一 id label: craftLabel, - processList: processList.map(process => { - return process.processInfo; - }), - rawData: craftInfo, // 保存工艺原始数据 + processList: processList.map(process => process.processInfo), + rawData: craftInfo, children: processList.map(process => { const { processInfo, projectList, measuringToolList, moldToolList } = process; - // 三级节点:工序名称 - const processLabel = processInfo.processName; - return { ...processInfo, - label: processLabel, - rawData: { - processInfo, - projectList, - measuringToolList, - moldToolList, - }, // 保存工序及关联数据 + id: processInfo.id || `process_${processInfo.processNo}`, // 👈 三级节点也需 id + label: processInfo.processName, + rawData: { processInfo, projectList, measuringToolList, moldToolList }, children: projectList.map(project => ({ - label: project.projectName, // 四级节点:项目名称 - rawData: project, // 保存项目原始数据 + label: project.projectName, + rawData: project, disabled: true, + id: project.id || `project_${project.projectCode}`, // 👈 四级节点 id })), }; }), diff --git a/src/views/processManagement/taskProcessing.vue b/src/views/processManagement/taskProcessing.vue index 3d94370..0a0b5e7 100644 --- a/src/views/processManagement/taskProcessing.vue +++ b/src/views/processManagement/taskProcessing.vue @@ -48,7 +48,8 @@ v-if="scope.row.taskStatus == 2" >完成 - 转派 diff --git a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue index 67d8da5..5bc6591 100644 --- a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue +++ b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue @@ -515,7 +515,7 @@ export default { currentViewEndTime: null, // 当前视图结束时间 legendStatus: { - completed: false, + completed: true, processing: true, pending: true, }, @@ -951,7 +951,7 @@ export default { } // 如果是重置操作,也应触发图例状态同步 if (type === 'reset') { - this.legendStatus.completed = false; + this.legendStatus.completed = true; this.legendStatus.processing = true; this.legendStatus.pending = true; this.handleLegendChange('reset'); @@ -1305,7 +1305,7 @@ export default { batchNo: '', //批次号 planStatusList: ['1', '2', '3'], }; - this.legendStatus.completed = false; + this.legendStatus.completed = true; this.legendStatus.processing = true; this.legendStatus.pending = true; diff --git a/src/views/productionSchedulingPlan/statisticalAnalysis/production/executionProcess.vue b/src/views/productionSchedulingPlan/statisticalAnalysis/production/executionProcess.vue index 87ac23e..b8edca9 100644 --- a/src/views/productionSchedulingPlan/statisticalAnalysis/production/executionProcess.vue +++ b/src/views/productionSchedulingPlan/statisticalAnalysis/production/executionProcess.vue @@ -15,41 +15,59 @@ @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" - @on-load="onLoad" > -