Qukatie 2 vuotta sitten
vanhempi
commit
4cd4aad02a
2 muutettua tiedostoa jossa 40 lisäystä ja 0 poistoa
  1. 20 0
      src/views/purchaseOrder/js/optionList.js
  2. 20 0
      src/views/salesOrder/js/optionList.js

+ 20 - 0
src/views/purchaseOrder/js/optionList.js

@@ -16,6 +16,26 @@ export const option = {
   menuWidth: 150,
   searchIcon: true,
   searchIndex: 2,
+  showSummary: true,
+  summaryText: "合计",
+  sumColumnList: [
+    {
+      name: "debitAmount",
+      type: "sum"
+    },
+    {
+      name: "deliveringAmount",
+      type: "sum"
+    },
+    {
+      name: "balanceAmount",
+      type: "sum"
+    },
+    {
+      name: "settlmentAmount",
+      type: "sum"
+    }
+  ],
   column: [
     {
       label: "单号",

+ 20 - 0
src/views/salesOrder/js/optionList.js

@@ -15,6 +15,26 @@ export const option = {
   menuWidth: 70,
   searchIcon: true,
   searchIndex: 2,
+  showSummary: true,
+  summaryText: "合计",
+  sumColumnList: [
+    {
+      name: "debitAmount",
+      type: "sum"
+    },
+    {
+      name: "deliveringAmount",
+      type: "sum"
+    },
+    {
+      name: "balanceAmount",
+      type: "sum"
+    },
+    {
+      name: "settlmentAmount",
+      type: "sum"
+    }
+  ],
   column: [
     {
       label: "单号",