ソースを参照

台账合计错位

zhouhao 2 年 前
コミット
0cbaee51e2
1 ファイル変更7 行追加7 行削除
  1. 7 7
      src/views/finance/standbook_list.vue

+ 7 - 7
src/views/finance/standbook_list.vue

@@ -903,22 +903,22 @@ export default {
         if (index === 0) {
           sums[index] = '合计'
         }
-        if (index === 7) {
+        if (index === 10) {
           sums[index] = this.computedFn(data, 1)
         }
-        if (index === 8) {
+        if (index === 11) {
           sums[index] = this.computedFn(data, 2)
         }
-        if (index === 9) {
+        if (index === 12) {
           sums[index] = this.computedFn(data, 3)
         }
-        if (index === 10) {
+        if (index === 13) {
           sums[index] = this.computedFn(data, 4)
         }
-        if (index === 11) {
+        if (index === 14) {
           sums[index] = this.computedFn(data, 5)
         }
-        if (index === 12) {
+        if (index === 15) {
           sums[index] = this.computedFn(data, 6)
         }
         // if (index === 13) {
@@ -931,7 +931,7 @@ export default {
         //       return prev + curr;
         //     } else {
         //       return prev;
-        //     }
+        //     }`
         //   }, 0);
         //   sums[index] = numToFixed(aa);
         // }