|
@@ -76,7 +76,7 @@
|
|
|
:rowKey="(record) => record.id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ x: 1760, y: tableHeight }"
|
|
|
+ :scroll="{ y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 产品分类 -->
|
|
@@ -175,13 +175,13 @@ export default {
|
|
|
// 设置表头
|
|
|
getColumns () {
|
|
|
this.columns = [
|
|
|
- { title: '序号', dataIndex: 'no', width: 70, align: 'center', fixed: 'left' },
|
|
|
- { title: '变更时间', dataIndex: 'updateDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品编码', dataIndex: 'productEntity.code', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '品牌', dataIndex: 'productEntity.productBrandName', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 120, align: 'center' },
|
|
|
- { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
+ { title: '变更时间', dataIndex: 'updateDate', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'productEntity.name', width: '11%', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品编码', dataIndex: 'productEntity.code', width: '11%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '品牌', dataIndex: 'productEntity.productBrandName', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '8%', align: 'center' },
|
|
|
+ { title: '单位', dataIndex: 'productEntity.unit', width: '4%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
]
|
|
|
const cArr = [
|
|
|
{
|
|
@@ -189,8 +189,8 @@ export default {
|
|
|
dataIndex: 'hterminaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeTerminalPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterTerminalPrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeTerminalPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterTerminalPrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -198,11 +198,11 @@ export default {
|
|
|
dataIndex: 'sterminaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeCarOwnersPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterCarOwnersPrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeCarOwnersPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterCarOwnersPrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
},
|
|
|
- { title: '变更原因', dataIndex: 'changeReason', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
|
+ { title: '变更原因', dataIndex: 'changeReason', width: '7%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
|
]
|
|
|
getCurrentDealer().then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -212,8 +212,8 @@ export default {
|
|
|
dataIndex: 'sdtermindfaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeProvincePrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterProvincePrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeProvincePrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterProvincePrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
},
|
|
|
{
|
|
@@ -221,8 +221,8 @@ export default {
|
|
|
dataIndex: 'sdterminaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeCityPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeCityPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
})
|
|
|
} else if (res.data.dealerLevel && res.data.dealerLevel == 'CITY') { // 市级
|
|
@@ -231,8 +231,8 @@ export default {
|
|
|
dataIndex: 'sdterminaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeCityPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeCityPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterCityPrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
})
|
|
|
}
|
|
@@ -242,8 +242,8 @@ export default {
|
|
|
dataIndex: 'gterminaldsdPrice',
|
|
|
align: 'center',
|
|
|
children: [
|
|
|
- { title: '变更前', dataIndex: 'beforeSpecialPrice', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '变更后', scopedSlots: { customRender: 'afterSpecialPrice' }, width: 80, align: 'center' }
|
|
|
+ { title: '变更前', dataIndex: 'beforeSpecialPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '变更后', scopedSlots: { customRender: 'afterSpecialPrice' }, width: '4%', align: 'center' }
|
|
|
]
|
|
|
})
|
|
|
}
|
|
@@ -328,7 +328,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 233
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 235
|
|
|
}
|
|
|
},
|
|
|
watch: {
|