From 0c09e25a1fb8a7e0d271bc5086d4759af2217768 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 26 Sep 2024 14:54:21 +0800 Subject: [PATCH] =?UTF-8?q?2024-09-26=20RFQ=20=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/routingManagement.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue index 6554a51..a41b032 100644 --- a/src/views/modules/part/routingManagement.vue +++ b/src/views/modules/part/routingManagement.vue @@ -396,10 +396,10 @@ - + - + @@ -3516,7 +3516,11 @@ export default { // 人工处理时间赋值 this.componentData.laborCycleTime = this.componentData.machCycleTime // 计算机器单位产出 - this.componentData.machRunFactor = 1/this.componentData.machCycleTime + if (this.componentData.machCycleTime != 0) { + this.componentData.machRunFactor = 1/this.componentData.machCycleTime + } else { + this.componentData.machRunFactor = 0 + } // 人工单位产出赋值 this.componentData.laborRunFactor = this.componentData.machRunFactor }, @@ -3524,7 +3528,11 @@ export default { // 人工处理时间改变 changeLaborCycleTime () { // 计算人工单位产出 - this.componentData.laborRunFactor = 1/this.componentData.laborCycleTime + if (this.componentData.laborCycleTime == 0) { + this.componentData.laborRunFactor = 0 + } else { + this.componentData.laborRunFactor = 1/this.componentData.laborCycleTime + } }, // 加工中心输入校验