From d21ab03d85acee4eecb46934896d147520427ed2 Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:29:52 +0800 Subject: [PATCH] =?UTF-8?q?2024.10.31=20=E6=96=87=E6=A1=A3=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/part/partProductGroupInformation.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/modules/part/partProductGroupInformation.vue b/src/views/modules/part/partProductGroupInformation.vue index ca78668..ee1d928 100644 --- a/src/views/modules/part/partProductGroupInformation.vue +++ b/src/views/modules/part/partProductGroupInformation.vue @@ -2091,10 +2091,12 @@ export default { // 人工处理时间赋值 row.laborCycleTime = row.machCycleTime // 计算机器单位产出 - if (row.machCycleTime !== 0 && row.machCycleTime !== '0') { - row.machRunFactor = (1 / row.machCycleTime).toFixed(2) - }else { + if (row.machCycleTime === 0 || row.machCycleTime === '0') { row.machRunFactor = 0 + } else if(row.machCycleTime === '' || row.machCycleTime === null) { + row.machRunFactor = '' + } else { + row.machRunFactor = (1/row.machCycleTime).toFixed(2) } // 人工单位产出赋值 row.laborRunFactor = row.machRunFactor @@ -2105,6 +2107,8 @@ export default { // 计算人工单位产出 if (row.laborCycleTime === 0 || row.laborCycleTime === '0') { row.laborRunFactor = 0 + } else if(row.laborCycleTime === '' || row.laborCycleTime === null) { + row.laborRunFactor = '' } else { row.laborRunFactor = (1/row.laborCycleTime).toFixed(2) }