Browse Source

完善回款返利核对

zhanglei
yunuo970428 4 months ago
parent
commit
b0982387e8
  1. 4
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/specialrebatecheckInfo.vue
  2. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiDaiBanInfo.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiEdit.vue
  4. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/zhuanxiangfanliheduiYiBanInfo.vue

4
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

4
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

4
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

4
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

Loading…
Cancel
Save