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