Просмотр исходного кода

报表分析-库存总账页面

lichao 4 лет назад
Родитель
Сommit
9d4ef809c2
1 измененных файлов с 11 добавлено и 9 удалено
  1. 11 9
      src/views/reportManagement/whgenleg/index.vue

+ 11 - 9
src/views/reportManagement/whgenleg/index.vue

@@ -498,7 +498,7 @@ export default {
           label: "fChargedate",
           name: "仓储费日期",
           checked: 0,
-          width: 100,
+          width: 150,
           fixed: "left",
         },
         {
@@ -548,14 +548,14 @@ export default {
           label: "fGrossweightD",
           name: "入库毛重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "12",
           label: "fNetweightD",
           name: "入库净重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "13",
@@ -569,14 +569,14 @@ export default {
           label: "fGrossweightC",
           name: "出库毛重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "15",
           label: "fNetweightC",
           name: "出库净重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "16",
@@ -590,14 +590,14 @@ export default {
           label: "fGrossweightblc",
           name: "结余毛重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "18",
           label: "fNetweightblc",
           name: "结余净重(kg)",
           checked: 0,
-          width: 100,
+          width: 200,
         },
         {
           surface: "19",
@@ -662,8 +662,6 @@ export default {
   },
   mounted() {
     this.$nextTick(() => {
-      // 根据浏览器高度设置初始高度
-      this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
       // 监听浏览器高度变化,改变表格高度
       window.onresize = () => {
         this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
@@ -908,6 +906,10 @@ export default {
         this.whgenlegList = response.rows;
         this.total = response.total;
         this.loading = false;
+        // 根据浏览器高度设置初始高度
+        setInterval(() => {
+          this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
+        }, 300)
       });
     },
     // 取消按钮