|
@@ -133,6 +133,19 @@
|
|
|
</a-card>
|
|
|
<a-card size="small" :bordered="false">
|
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
|
+ <div style="margin-bottom:12px;text-align: right;">
|
|
|
+ <span>显示:</span>
|
|
|
+ <a-tree-select
|
|
|
+ size="small"
|
|
|
+ v-model="showCols"
|
|
|
+ style="min-width: 200px"
|
|
|
+ dropdownMatchSelectWidth
|
|
|
+ :maxTagCount="3"
|
|
|
+ :tree-data="colsArr"
|
|
|
+ tree-checkable
|
|
|
+ placeholder="请选择要显示的列(多选)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<!-- 列表 -->
|
|
|
<s-table
|
|
|
class="sTable fixPagination"
|
|
@@ -262,8 +275,22 @@ export default {
|
|
|
},
|
|
|
totalData: null,
|
|
|
operatorList: [], // 操作员下拉数据
|
|
|
- addrProvinceList: [] // 省下拉
|
|
|
-
|
|
|
+ addrProvinceList: [], // 省下拉
|
|
|
+ colsArr: [
|
|
|
+ {
|
|
|
+ title: '直接差价金额(明细)',
|
|
|
+ value: 'directRebateAmountInfo',
|
|
|
+ key: 'directRebateAmountInfo',
|
|
|
+ disabled: !this.$hasPermissions('M_salesOrderTotalList_salesPrice')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '间接差价金额(明细)',
|
|
|
+ value: 'indirectRebateAmountInfo',
|
|
|
+ key: 'indirectRebateAmountInfo',
|
|
|
+ disabled: !this.$hasPermissions('M_salesOrderTotalList_salesPrice')
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ showCols: []// 需要显示列
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -275,8 +302,8 @@ export default {
|
|
|
{ title: '销售审核时间', dataIndex: 'auditDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '客户名称', dataIndex: 'dealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ // { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ // { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '总下推数量', dataIndex: 'totalQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '下推数量(促)', dataIndex: 'giftQty', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
// { title: '实售价', dataIndex: 'totalRealAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -322,7 +349,17 @@ export default {
|
|
|
arr.push({ title: '特约金额', dataIndex: 'totalSpecialAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.$hasPermissions('M_salesOrderTotalList_salesPrice')) {
|
|
|
+ if (this.showCols.includes('directRebateAmountInfo')) {
|
|
|
+ arr.push({ title: '直接上级差价', dataIndex: 'indirectRebateAmount1', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '直接指定差价', dataIndex: 'indirectRebateAmount2', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '直接总部差价', dataIndex: 'indirectRebateAmount3', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
arr.push({ title: '直接差价金额', dataIndex: 'directRebateAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ if (this.showCols.includes('indirectRebateAmountInfo')) {
|
|
|
+ arr.push({ title: '间接上级差价', dataIndex: 'indirectRebateAmount4', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '间接指定差价', dataIndex: 'indirectRebateAmount5', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '间接总部差价', dataIndex: 'indirectRebateAmount6', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
arr.push({ title: '间接差价金额', dataIndex: 'indirectRebateAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
arr.push({ title: '返利', dataIndex: 'rebateAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
arr.push({ title: '优惠金额', dataIndex: 'discountAmount', width: 70, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
@@ -464,7 +501,7 @@ export default {
|
|
|
},
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
- this.tableHeight = window.innerHeight - tableSearchH - 216
|
|
|
+ this.tableHeight = window.innerHeight - tableSearchH - 252
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|