|
@@ -87,7 +87,7 @@
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ x: 1495 }"
|
|
|
+ :scroll="{ x: 1495, y: tableHeight }"
|
|
|
bordered>
|
|
|
<!-- 采购单号 -->
|
|
|
<template slot="purchaseBillNo" slot-scope="text, record">
|
|
@@ -150,6 +150,7 @@ export default {
|
|
|
supplierList: [],
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
time: [], // 创建时间
|
|
|
+ tableHeight: 0,
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
purchaseBillNo: '',
|
|
@@ -181,6 +182,9 @@ export default {
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
|
+ if (this.tableHeight == 0) {
|
|
|
+ this.tableHeight = window.innerHeight - 440
|
|
|
+ }
|
|
|
// 创建时间
|
|
|
if (this.time && this.time.length > 0) {
|
|
|
this.queryParam.beginDate = moment(this.time[0]).format(this.dateFormat)
|