|
@@ -66,7 +66,7 @@
|
|
|
:style="{ height: tableHeight+70+'px' }"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ y: tableHeight-120}"
|
|
|
+ :scroll="{ y: tableHeight}"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 客户名称 -->
|
|
@@ -170,8 +170,8 @@ export default {
|
|
|
provinceSn: undefined, // 省
|
|
|
citySn: undefined, // 市
|
|
|
districtSn: undefined, // 区
|
|
|
- ruleType: undefined,//页面类型
|
|
|
- subsidyQueryStatus: 'NOT_FINISH'//状态默认值
|
|
|
+ ruleType: undefined, // 页面类型
|
|
|
+ subsidyQueryStatus: 'NOT_FINISH'// 状态默认值
|
|
|
},
|
|
|
totalData: null, // 合计
|
|
|
rules: {
|
|
@@ -212,18 +212,18 @@ export default {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '区域', dataIndex: 'subareaArea.subareaName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '分区', dataIndex: 'subareaArea.subareaAreaName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '客户名称', dataIndex: 'dealerEntity.dealerName', width: '14%', align: 'center', scopedSlots: { customRender: 'customName' }, ellipsis: true },
|
|
|
- { title: '开始时间', dataIndex: 'ruleStartDate', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '结束时间', dataIndex: 'ruleEndDate', width: '14%', align: 'center', scopedSlots: { customRender: 'endDate' } },
|
|
|
- { title: '状态', dataIndex: 'statusDictValue', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '区域', dataIndex: 'subareaArea.subareaName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '分区', dataIndex: 'subareaArea.subareaAreaName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '客户名称', dataIndex: 'dealerEntity.dealerName', width: '20%', align: 'left', scopedSlots: { customRender: 'customName' }, ellipsis: true },
|
|
|
+ { title: '开始时间', dataIndex: 'ruleStartDate', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '结束时间', dataIndex: 'ruleEndDate', width: '12%', align: 'center', scopedSlots: { customRender: 'endDate' } },
|
|
|
+ { title: '状态', dataIndex: 'statusDictValue', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
|
]
|
|
|
if (this.pageType === 'SERVICE_FEE') {
|
|
|
- arr.splice(7, 0, { title: '服务费比例(%)', dataIndex: 'ruleValue1', width: '14%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.splice(7, 0, { title: '服务费比例(%)', dataIndex: 'ruleValue1', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
} else {
|
|
|
- arr.splice(7, 0, { title: '运费补贴(元)', dataIndex: 'ruleValue1', width: '14%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.splice(7, 0, { title: '运费补贴(元)', dataIndex: 'ruleValue1', width: '12%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
return arr
|
|
|
}
|