diff --git a/src/views/Outsourcing/OutsourcingQCSearch/index.vue b/src/views/Outsourcing/OutsourcingQCSearch/index.vue
index c4a471a8..ee7edf7e 100644
--- a/src/views/Outsourcing/OutsourcingQCSearch/index.vue
+++ b/src/views/Outsourcing/OutsourcingQCSearch/index.vue
@@ -180,7 +180,7 @@ export default {
if (index === 0) {
sums[index] = '总价'
} else if (index === 3) {
- const values = data.map(item => Number(item['批次数量']))
+ const values = data.map(item => Number(item['批次数量']) || 0)
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
@@ -195,7 +195,7 @@ export default {
sums[index] = 'N/A'
}
} else if (index === 4) {
- const values = data.map(item => Number(item['检验数量']))
+ const values = data.map(item => Number(item['检验数量']) || 0)
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
@@ -210,7 +210,7 @@ export default {
sums[index] = 'N/A'
}
} else if (index === 5) {
- const values = data.map(item => Number(item['不合格数量']))
+ const values = data.map(item => Number(item['不合格数量']) || 0)
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index 4227dce6..216b91d3 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -7,7 +7,7 @@
外协厂家:
下达任务日期:
-