ly 1 éve
szülő
commit
ff35a4d5f7

+ 4 - 1
src/views/business/production/salary/form.vue

@@ -411,12 +411,14 @@
 
   function getSummaries(param) {
     const { columns, data } = param;
+    console.log(23, param);
+    
     const sums = [];
     columns.forEach((column, index) => {
       if (index === 0) {
         sums[index] = "合计";
         return;
-      } else if (index === 1) {
+      } else if (index === 1 ) {
         sums[index] = "";
         return;
       }
@@ -424,6 +426,7 @@
 
       if (!values.every((value) => isNaN(value))) {
         sums[index] = values.reduce((prev, curr) => {
+          console.log(23,prev, curr);
           const value = Number(curr);
           if (!isNaN(value)) {
             return (Number(prev) + Number(curr)).toFixed(2);

+ 1 - 1
src/views/business/production/salary/view.vue

@@ -429,7 +429,7 @@ function getSummaries(param) {
     if (index === 0) {
       sums[index] = "合计";
       return;
-    } else if (index === 1) {
+    } else if (index === 1||index === 6) {
       sums[index] = "";
       return;
     }