diff --git a/src/utils/useTableMaxHeight.js b/src/utils/useTableMaxHeight.js new file mode 100644 index 0000000..a6537a1 --- /dev/null +++ b/src/utils/useTableMaxHeight.js @@ -0,0 +1,43 @@ +export default { + data() { + return { + tableHeight: 100 + } + }, + methods: { + calculateHeight() { + let conditionHeight = 0 + if (this.pageHeaderRef && this.pageHeaderRef.offsetHeight) { + conditionHeight = this.pageHeaderRef.offsetHeight + } + + + const remainingHeight = window.innerHeight - this.fixedHeight - conditionHeight + this.tableHeight = Math.max(remainingHeight, this.minHeight) + } + }, + mounted() { + this.$nextTick(() => { + this.calculateHeight() + window.addEventListener('resize', this.calculateHeight) + }); + + }, + beforeDestroy() { + window.removeEventListener('resize', this.calculateHeight) + }, + props: { + pageHeaderRef: { + type: HTMLElement, + default: null + }, + fixedHeight: { + type: Number, + default: 200 + }, + minHeight: { + type: Number, + default: 350 + } + } +} diff --git a/src/views/mes/dailyReportNew/index.vue b/src/views/mes/dailyReportNew/index.vue index 3a749d5..363580a 100644 --- a/src/views/mes/dailyReportNew/index.vue +++ b/src/views/mes/dailyReportNew/index.vue @@ -93,7 +93,7 @@ - + diff --git a/src/views/mes/production/index.vue b/src/views/mes/production/index.vue index 8ea5433..3e35da7 100644 --- a/src/views/mes/production/index.vue +++ b/src/views/mes/production/index.vue @@ -19,24 +19,17 @@ clearable /> - + - + - - - @@ -87,7 +80,9 @@ - + + @@ -250,6 +245,9 @@ export default { const { columns, data } = param; const sums = []; columns.forEach((column, index) => { + if (column.label === "工厂编码"){ + return; + } if (index === 0) { sums[index] = '合计'; return; diff --git a/src/views/wms/matetowsnsap/index.vue b/src/views/wms/matetowsnsap/index.vue index 29d6060..2c50247 100644 --- a/src/views/wms/matetowsnsap/index.vue +++ b/src/views/wms/matetowsnsap/index.vue @@ -1,5 +1,6 @@ - + @@ -122,6 +134,11 @@ lgort + + + @@ -144,8 +161,8 @@ -
- +
+ - - - - + + + + + + + + + + 搜索 重置 @@ -136,8 +149,9 @@ +
- + @@ -360,11 +374,19 @@