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 + } }, // 加工中心输入校验