|
@@ -77,7 +77,7 @@ export default {
|
|
field: '',
|
|
field: '',
|
|
key: 'a',
|
|
key: 'a',
|
|
title: '序号',
|
|
title: '序号',
|
|
- width: 40,
|
|
|
|
|
|
+ width: 30,
|
|
align: 'center',
|
|
align: 'center',
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
@@ -85,7 +85,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{ field: 'promotionRuleType', key: 'ruletype', width: 100, title: '活动类型', align: 'center', fixed: 'left' },
|
|
{ field: 'promotionRuleType', key: 'ruletype', width: 100, title: '活动类型', align: 'center', fixed: 'left' },
|
|
- { field: 'promotionRuleDesc', key: 'ruledesc', width: 150, title: '规则简称', align: 'center', fixed: 'left' },
|
|
|
|
|
|
+ { field: 'promotionRuleDesc', key: 'ruledesc', width: 100, title: '规则简称', align: 'center', fixed: 'left' },
|
|
{
|
|
{
|
|
title: '门槛产品(数量/金额)',
|
|
title: '门槛产品(数量/金额)',
|
|
children: [
|
|
children: [
|
|
@@ -93,28 +93,21 @@ export default {
|
|
field: 'col2',
|
|
field: 'col2',
|
|
key: 'b',
|
|
key: 'b',
|
|
title: '已选',
|
|
title: '已选',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col3',
|
|
field: 'col3',
|
|
key: 'c',
|
|
key: 'c',
|
|
title: '已关联',
|
|
title: '已关联',
|
|
- width: 100,
|
|
|
|
- align: 'center'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- field: 'col4',
|
|
|
|
- key: 'd',
|
|
|
|
- title: '合计',
|
|
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col5',
|
|
field: 'col5',
|
|
key: 'e',
|
|
key: 'e',
|
|
title: '差额',
|
|
title: '差额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -126,35 +119,28 @@ export default {
|
|
field: 'col6',
|
|
field: 'col6',
|
|
key: 'f',
|
|
key: 'f',
|
|
title: '配额',
|
|
title: '配额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col7',
|
|
field: 'col7',
|
|
key: 'g',
|
|
key: 'g',
|
|
title: '已选',
|
|
title: '已选',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col8',
|
|
field: 'col8',
|
|
key: 'k',
|
|
key: 'k',
|
|
title: '已关联',
|
|
title: '已关联',
|
|
- width: 100,
|
|
|
|
- align: 'center'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- field: 'col9',
|
|
|
|
- key: 'j',
|
|
|
|
- title: '合计',
|
|
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col10',
|
|
field: 'col10',
|
|
key: 'l',
|
|
key: 'l',
|
|
title: '差额',
|
|
title: '差额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -166,21 +152,21 @@ export default {
|
|
field: 'col11',
|
|
field: 'col11',
|
|
key: 'z',
|
|
key: 'z',
|
|
title: '额度',
|
|
title: '额度',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col12',
|
|
field: 'col12',
|
|
key: 'x',
|
|
key: 'x',
|
|
title: '已选',
|
|
title: '已选',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col13',
|
|
field: 'col13',
|
|
key: 'v',
|
|
key: 'v',
|
|
title: '差额',
|
|
title: '差额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -192,28 +178,28 @@ export default {
|
|
field: 'col14',
|
|
field: 'col14',
|
|
key: 'm',
|
|
key: 'm',
|
|
title: '额度',
|
|
title: '额度',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col15',
|
|
field: 'col15',
|
|
key: 'n',
|
|
key: 'n',
|
|
title: '已选',
|
|
title: '已选',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col16',
|
|
field: 'col16',
|
|
key: 'kq',
|
|
key: 'kq',
|
|
title: '结余',
|
|
title: '结余',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col17',
|
|
field: 'col17',
|
|
key: 'jw',
|
|
key: 'jw',
|
|
title: '超支',
|
|
title: '超支',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
@@ -225,34 +211,34 @@ export default {
|
|
field: 'col18',
|
|
field: 'col18',
|
|
key: 'mpe',
|
|
key: 'mpe',
|
|
title: '配额',
|
|
title: '配额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col19',
|
|
field: 'col19',
|
|
key: 'nyx',
|
|
key: 'nyx',
|
|
title: '已选',
|
|
title: '已选',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
field: 'col20',
|
|
field: 'col20',
|
|
key: 'jce',
|
|
key: 'jce',
|
|
title: '差额',
|
|
title: '差额',
|
|
- width: 100,
|
|
|
|
|
|
+ width: 50,
|
|
align: 'center'
|
|
align: 'center'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- { field: 'totalCategory', key: 'ks', title: '款数', width: 100, align: 'center', fixed: 'right' },
|
|
|
|
- { field: 'totalQty', key: 'dsl', title: '数量', width: 100, align: 'center', fixed: 'right' },
|
|
|
|
- { field: 'totalAmount', key: 'dje', title: '总金额', width: 100, align: 'center', fixed: 'right' },
|
|
|
|
- { field: 'lossAmount', key: 'dyhje', title: '优惠金额', width: 100, align: 'center', fixed: 'right' },
|
|
|
|
|
|
+ { field: 'totalCategory', key: 'ks', title: '款数', width: 50, align: 'center', fixed: 'right' },
|
|
|
|
+ { field: 'totalQty', key: 'dsl', title: '数量', width: 50, align: 'center', fixed: 'right' },
|
|
|
|
+ { field: 'totalAmount', key: 'dje', title: '总金额', width: 60, align: 'center', fixed: 'right' },
|
|
|
|
+ { field: 'lossAmount', key: 'dyhje', title: '优惠金额', width: 60, align: 'center', fixed: 'right' },
|
|
{
|
|
{
|
|
field: '',
|
|
field: '',
|
|
key: 'action',
|
|
key: 'action',
|
|
title: '操作',
|
|
title: '操作',
|
|
- width: 250,
|
|
|
|
|
|
+ width: 180,
|
|
center: 'center',
|
|
center: 'center',
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
renderBodyCell: ({ row, column, rowIndex }, h) => {
|
|
@@ -278,7 +264,7 @@ export default {
|
|
class={row.disabled ? 'button-success' : 'button-error'}
|
|
class={row.disabled ? 'button-success' : 'button-error'}
|
|
on-click={() => this.enableRow(row)}
|
|
on-click={() => this.enableRow(row)}
|
|
>
|
|
>
|
|
- {row.disabled ? '启用' : '禁用'}规则
|
|
|
|
|
|
+ {row.disabled ? '启用' : '禁用'}
|
|
</a-button>
|
|
</a-button>
|
|
{!row.disabled ? <a-dropdown>
|
|
{!row.disabled ? <a-dropdown>
|
|
<a-menu slot="overlay" on-click={(e) => this.handleImportClick(e, row)} id={'salesEdit-menu-import-' + row.id}>
|
|
<a-menu slot="overlay" on-click={(e) => this.handleImportClick(e, row)} id={'salesEdit-menu-import-' + row.id}>
|
|
@@ -292,6 +278,7 @@ export default {
|
|
id={'salesEdit-menu-import-plaction-' + row.id}
|
|
id={'salesEdit-menu-import-plaction-' + row.id}
|
|
type="link"
|
|
type="link"
|
|
class="button-primary"
|
|
class="button-primary"
|
|
|
|
+ size="small"
|
|
>
|
|
>
|
|
导入产品 <a-icon type="down" />
|
|
导入产品 <a-icon type="down" />
|
|
</a-button>
|
|
</a-button>
|