From b0982387e8fa509ee8f13dcedc8e26688ee6a44f Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 25 Dec 2024 13:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=9B=9E=E6=AC=BE=E8=BF=94?= =?UTF-8?q?=E5=88=A9=E6=A0=B8=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specialrebatecheck/specialrebatecheckInfo.vue | 4 +++- .../zhuanxiangfanliheduiDaiBanInfo.vue | 4 +++- .../zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue | 4 +++- .../zhuanxiangfanliheduiYiBanInfo.vue | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheckInfo.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheckInfo.vue index 8ca87b3f11..cf79297a55 100644 --- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheckInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheckInfo.vue @@ -168,7 +168,7 @@ export default { return } const values = data.map(item => Number(item[column.property])) - if (column.property !== 'rebateTypeValue' && column.property !== 'num' && column.property !== 'purchaseSystemName' && column.property !== 'brandName') { + if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { @@ -178,6 +178,8 @@ export default { } }, 0) sums[index] += '' + } else { + sums[index] = '' } }) return sums diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiDaiBanInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiDaiBanInfo.vue index a0b8af833f..8efc1e8121 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiDaiBanInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiDaiBanInfo.vue @@ -239,7 +239,7 @@ export default { return } const values = data.map(item => Number(item[column.property])) - if (column.property !== 'rebateTypeValue' && column.property !== 'num' && column.property !== 'purchaseSystemName' && column.property !== 'brandName') { + if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { @@ -249,6 +249,8 @@ export default { } }, 0) sums[index] += '' + } else { + sums[index] = '' } }) return sums diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue index 1107186f60..6a4b46db8b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue @@ -433,7 +433,7 @@ export default { return } const values = data.map(item => Number(item[column.property])) - if (column.property !== 'rebateTypeValue' && column.property !== 'num' && column.property !== 'purchaseSystemName' && column.property !== 'brandName') { + if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { @@ -443,6 +443,8 @@ export default { } }, 0) sums[index] += '' + } else { + sums[index] = '' } }) return sums diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiYiBanInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiYiBanInfo.vue index 5e570d5b54..6beb000770 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiYiBanInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiYiBanInfo.vue @@ -202,7 +202,7 @@ export default { return } const values = data.map(item => Number(item[column.property])) - if (column.property !== 'rebateTypeValue' && column.property !== 'num' && column.property !== 'purchaseSystemName' && column.property !== 'brandName') { + if (!values.every(value => isNaN(value))) { sums[index] = values.reduce((prev, curr) => { const value = Number(curr) if (!isNaN(value)) { @@ -212,6 +212,8 @@ export default { } }, 0) sums[index] += '' + } else { + sums[index] = '' } }) return sums