From 9276baaf6664e55e217253caca2151a10640764d Mon Sep 17 00:00:00 2001
From: zzq <a13193816592@163.com>
Date: 星期三, 27 九月 2023 11:31:46 +0800
Subject: [PATCH] “报表表格求和”

---
 src/views/reportForm/inventoryReport/index.vue |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/src/views/reportForm/inventoryReport/index.vue b/src/views/reportForm/inventoryReport/index.vue
index be0d63d..6acb2e2 100644
--- a/src/views/reportForm/inventoryReport/index.vue
+++ b/src/views/reportForm/inventoryReport/index.vue
@@ -30,6 +30,7 @@
             :table-list="tableList"
             @selTableCol="selTableCol"
             @tableRowClick="tableRowClick"
+            :showSummary="true"
           >
             <template slot="tableButton">
               <el-table-column
@@ -129,6 +130,7 @@
       ],
       tableList: {},
       showcol: ["浜у搧绫诲埆", "鍗曚綅鎴愭湰", "鎬讳环鍊�", "鍏ュ簱", "鍑哄簱"],
+      countcol:["鎬讳环鍊�","鍦ㄥ簱","鍙敤搴撳瓨","鍏ュ簱","鍑哄簱","棰勬祴"],
       searchOptions: [],
       commonDetail: {
         visible: false,
@@ -154,6 +156,7 @@
         tableInfomation: [],
         selectBox: true,
         showcol: this.showcol,
+        countcol:this.countcol,
         allcol: [],
         tableColumn: this.setTableColumn(this.showcol),
       };
@@ -172,7 +175,6 @@
         {
           label: "浜у搧",
           prop: "product",
-          isShowColumn: true,
           default: true,
           width:300,
           
@@ -181,66 +183,53 @@
         {
           label: "浜у搧绫诲埆",
           prop: "category",
-          isShowColumn: true,
           default: true,
           isShowColumn: showcol.includes("浜у搧绫诲埆"),
         },
         {
           label: "鍗曚綅鎴愭湰",
           prop: "cost",
-          isShowColumn: true,
           default: false,
           isShowColumn: showcol.includes("鍗曚綅鎴愭湰"),
         },
         {
           label: "鎬讳环鍊�",
           prop: "totalPrices",
-          isShowColumn: true,
           default: false,
           isShowColumn: showcol.includes("鎬讳环鍊�"),
         },
         {
           label: "鍦ㄥ簱",
           prop: "inStore",
-          isShowColumn: true,
           default: true,
         },
         {
           label: "鍙敤搴撳瓨",
           prop: "availableStore",
-          isShowColumn: true,
           default: true,
         },
         {
           label: "鍏ュ簱",
           prop: "inStorage",
-          isShowColumn: true,
           default: false,
           isShowColumn: showcol.includes("鍏ュ簱"),
         },
         {
           label: "鍑哄簱",
           prop: "toStore",
-          isShowColumn: true,
           isShowColumn: showcol.includes("鍑哄簱"),
           default: false,
         },
         {
           label: "棰勬祴",
           prop: "forecast",
-          isShowColumn: false,
           isShowColumn: showcol.includes("棰勬祴"),
           default: false,
         },
         {
           label: "鍗曚綅",
           prop: "unit",
-          isShowColumn: true,
           default: true,
-          // price:true
-          // status: true,
-          // propType: "mulitple",
-          // conversion: true,
         },
       ];
       return tableColumn;
@@ -292,12 +281,14 @@
     },
     // 鍘嗗彶
     handleHistoryClick(row) {
-      console.log(row, "two");
+      this.$router.push('/operate/allot')
     },
     // 琛ヨ揣
     handleAddGoods(row) {},
     // 浣嶇疆
-    handleLocation() {},
+    handleLocation() {
+      this.$router.push('/reportForm/locationReport')
+    },
     // 棰勬祴
     handleForecast() {},
   },

--
Gitblit v1.8.0