chenrui 1 ay önce
ebeveyn
işleme
e3a4cbcfab

+ 1 - 1
src/views/setting/dailyReportSettings/categoryTargetList.vue

@@ -274,7 +274,7 @@ export default {
     handleChange (val, row, column) {
       const _this = this
       const newColumn = _this.padZero(column)
-      row['value' + newColumn] = val
+      row['value' + newColumn] = val || 0
       row.summation = _this.calculateTotal(row)
       // _this.dataSources[column * 1 - 1] = row
     },

+ 1 - 1
src/views/setting/dailyReportSettings/estimatedOrderList.vue

@@ -287,7 +287,7 @@ export default {
     handleChange (val, row, column) {
       const _this = this
       const newColumn = _this.padZero(column)
-      row['value' + newColumn] = val
+      row['value' + newColumn] = val || 0
       row.summation = _this.calculateTotal(row)
       // _this.dataSources[column * 1 - 1] = row
     },

+ 1 - 1
src/views/setting/dailyReportSettings/partitionTargetList.vue

@@ -300,7 +300,7 @@ export default {
     handleChange (val, row, column) {
       const _this = this
       const newColumn = _this.padZero(column)
-      row['value' + newColumn] = val
+      row['value' + newColumn] = val || 0
       row.summation = _this.calculateTotal(row)
       // _this.dataSources[column * 1 - 1] = row
     },