diff --git a/src/views/modules/production/outboundLabelScan.vue b/src/views/modules/production/outboundLabelScan.vue index 8277bf6..443e943 100644 --- a/src/views/modules/production/outboundLabelScan.vue +++ b/src/views/modules/production/outboundLabelScan.vue @@ -20,6 +20,7 @@ export default { allNum:0, notifyQty:0, height:200, + detailHeight:250, siteList: [], delNotifyHeaderTableLoading:false, // 搜索表单对象 @@ -61,7 +62,10 @@ export default { }, mounted () { this.$nextTick(() => { - this.height = window.innerHeight - 475 + // 上下表格按 1/3 : 2/3 分配可用高度(225 为搜索表单、分页及导航等固定占用) + const available = window.innerHeight - 225 + this.height = Math.floor(available / 3) + this.detailHeight = Math.floor(available * 2 / 3) }) }, methods: { @@ -488,7 +492,7 @@ export default { diff --git a/src/views/modules/production/shippingScan.vue b/src/views/modules/production/shippingScan.vue index 7a9f62b..8478f58 100644 --- a/src/views/modules/production/shippingScan.vue +++ b/src/views/modules/production/shippingScan.vue @@ -21,6 +21,7 @@ export default { allNum:0, notifyQty:0, height:200, + detailHeight:250, siteList: [], delNotifyHeaderTableLoading:false, // 搜索表单对象 @@ -69,7 +70,10 @@ export default { }, mounted () { this.$nextTick(() => { - this.height = window.innerHeight - 475 + // 上下表格按 1/3 : 2/3 分配可用高度(225 为搜索表单、分页及导航等固定占用) + const available = window.innerHeight - 225 + this.height = Math.floor(available / 3) + this.detailHeight = Math.floor(available * 2 / 3) }) }, methods: { @@ -630,7 +634,7 @@ export default {