|
@@ -61,7 +61,7 @@
|
|
|
<s-table
|
|
|
class="sTable"
|
|
|
ref="table"
|
|
|
- :style="{ height: tableHeight+84.5+'px' }"
|
|
|
+ :style="modes=='pages'?{ height: tableHeight+84.5+'px' }:{}"
|
|
|
size="small"
|
|
|
:row-selection="modes=='pages'?{ columnWidth: 40 }:{ columnWidth: 40, getCheckboxProps: record => ({ props: { disabled: !record.productEntity.purchasePrice || !(record.productEntity.onlineFalg == 1&& record.dealerScopeFlag == 1) } }) }"
|
|
|
@rowSelection="rowSelectionFun"
|
|
@@ -69,8 +69,9 @@
|
|
|
:rowKey="(record) => record.productSn"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="modes=='modals'?{ y: tableHeight }:{ x:tableWidth, y: tableHeight }"
|
|
|
+ :scroll="modes=='pages'?{ y: tableHeight }:{ x:tableWidth, y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
+ :pageSize="30"
|
|
|
bordered>
|
|
|
<!-- 采购数量 -->
|
|
|
<template slot="purchaseQty" slot-scope="text, record">
|
|
@@ -126,7 +127,7 @@ export default {
|
|
|
return {
|
|
|
loading: false,
|
|
|
tableHeight: 0,
|
|
|
- tableWidth: 950,
|
|
|
+ tableWidth: 960,
|
|
|
productType: [],
|
|
|
queryParam: { // 查询条件
|
|
|
code: '', // 产品编码
|
|
@@ -348,7 +349,7 @@ export default {
|
|
|
setTableH () {
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - (this.modes == 'pages' ? 200 : 320)
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - (this.modes == 'pages' ? 200 : 290)
|
|
|
})
|
|
|
}
|
|
|
},
|