|
@@ -90,7 +90,6 @@
|
|
|
<div class="affix-cont" :style="{padding:hideFooter?0:'7px 0 4px'}">
|
|
|
<a-button
|
|
|
style="width: 100px;"
|
|
|
- :disabled="!hasSelect"
|
|
|
type="primary"
|
|
|
class="button-info"
|
|
|
@click="handleView()"
|
|
@@ -174,7 +173,7 @@ export default {
|
|
|
columns () {
|
|
|
const _this = this
|
|
|
const arr = [
|
|
|
- { title: '编号', dataIndex: 'no', width: '5%', align: 'center', customRender: function (text) { return text || '--' }},
|
|
|
+ { title: '序号', dataIndex: 'no', width: '5%', align: 'center', customRender: function (text) { return text || '--' }},
|
|
|
{ title: '销售单号', dataIndex: 'salesBillNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '客户名称', dataIndex: 'buyerName', width: '16%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '费用类型', dataIndex: 'convertExpenseAccountTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' }},
|
|
@@ -182,7 +181,7 @@ export default {
|
|
|
{ title: '促销名称', dataIndex: 'promotionTitle', width: '17%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '促销简称', dataIndex: 'promotionDescription', width: '17%', align: 'left', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
{ title: '规则简称', dataIndex: 'promotionRuleDescription', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, sorter: true },
|
|
|
- { title: '规则类型', dataIndex: 'promotionRuleTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '促销类型', dataIndex: 'promotionRuleTypeDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '8%', align: 'center' }
|
|
|
]
|
|
|
return arr
|
|
@@ -254,6 +253,10 @@ export default {
|
|
|
},
|
|
|
// 查看
|
|
|
handleView () {
|
|
|
+ if(!this.hasSelect){
|
|
|
+ this.$message.warning('请先勾选!')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.showViewModal = true
|
|
|
this.$refs.viewModal.setData(this.rowSelectionInfo&&this.rowSelectionInfo.selectedRows)
|
|
|
},
|