...
|
...
|
@@ -50,13 +50,35 @@ export default function() { |
|
|
key: 'returnedSupplierId'
|
|
|
},
|
|
|
{
|
|
|
title: '供应商',
|
|
|
align: 'center',
|
|
|
key: 'supplierName'
|
|
|
},
|
|
|
{
|
|
|
title: '品牌',
|
|
|
align: 'center',
|
|
|
key: 'brandName'
|
|
|
},
|
|
|
{
|
|
|
title: '已退/请退数量',
|
|
|
align: 'center'
|
|
|
align: 'center',
|
|
|
render: (h, params) => {
|
|
|
const row = params.row;
|
|
|
const outNum = row.totalOutNums;
|
|
|
const num = row.totalNums;
|
|
|
let percent = 100;
|
|
|
|
|
|
if (num) {
|
|
|
percent = outNum / num * 100;
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
<div>
|
|
|
<i-progress percent={percent} hide-info></i-progress>
|
|
|
<span>{outNum}/{num}</span>
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: '物流信息',
|
...
|
...
|
@@ -82,19 +104,23 @@ export default function() { |
|
|
{
|
|
|
title: '操作',
|
|
|
align: 'center',
|
|
|
width: 140,
|
|
|
render: (h, params) => {
|
|
|
const row = params.row;
|
|
|
|
|
|
return (
|
|
|
<div>
|
|
|
<i-button type="primary"
|
|
|
onClick={() => this.goDetail(row)}>
|
|
|
详情
|
|
|
</i-button>
|
|
|
<i-button type="primary">导出</i-button>
|
|
|
<span class="action-btn">
|
|
|
<i-button type="success" size="small"
|
|
|
onClick={() => this.goDetail(row)}>
|
|
|
详情
|
|
|
</i-button>
|
|
|
</span>
|
|
|
<span><i-button type="primary" size="small">导出</i-button></span>
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
className: 'action-column'
|
|
|
}
|
|
|
],
|
|
|
dataList: [],
|
...
|
...
|
|