|
@@ -181,14 +181,14 @@ export default {
|
|
|
width: '25%',
|
|
|
align: 'center',
|
|
|
customRender: (text, row, index) => {
|
|
|
- return row.category.indexOf('合计') < 0 ? <a-button type="link" class="button-default">{text}</a-button> : (<a-button type="link" class="button-error" style="font-weight:bold;font-size:14px;">{text}</a-button>)
|
|
|
+ return row.category.indexOf('合计') < 0 ? <a-button size="small" type="link" class="button-default">{text}</a-button> : (<a-button size="small" type="link" class="button-error" style="font-weight:bold;font-size:14px;">{text}</a-button>)
|
|
|
} },
|
|
|
- { title: '成本', dataIndex: 'cost', width: '10%', align: 'right', customRender: renderContent },
|
|
|
- { title: '销售额', dataIndex: 'amount', width: '10%', align: 'right', customRender: renderContent },
|
|
|
- { title: '毛利', dataIndex: 'gross', width: '10%', align: 'right', customRender: renderContent },
|
|
|
+ { title: '成本', dataIndex: 'cost', width: '10%', align: 'center', customRender: renderContent },
|
|
|
+ { title: '销售额', dataIndex: 'amount', width: '10%', align: 'center', customRender: renderContent },
|
|
|
+ { title: '毛利', dataIndex: 'gross', width: '10%', align: 'center', customRender: renderContent },
|
|
|
{ title: '毛利率', dataIndex: 'grossMargin', width: '10%', align: 'center', customRender: renderContent },
|
|
|
- { title: '促销费用', dataIndex: 'promo', width: '10%', align: 'right', customRender: renderContent },
|
|
|
- { title: '减促销费用的毛利', dataIndex: 'removePromoGross', width: '10%', align: 'right', customRender: renderContent },
|
|
|
+ { title: '促销费用', dataIndex: 'promo', width: '10%', align: 'center', customRender: renderContent },
|
|
|
+ { title: '减促销费用的毛利', dataIndex: 'removePromoGross', width: '10%', align: 'center', customRender: renderContent },
|
|
|
{ title: '促销费用占比', dataIndex: 'promoRatio', width: '10%', align: 'center', customRender: renderContent }
|
|
|
]
|
|
|
return arr
|