index.js
2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/**
* on sell page store
* @author: GeXuHui <qi.li@yoho.cn>
* @date: 2017/07/26
*/
import timeFormat from 'filters/time-format';
export default function() {
return {
tableCols: [{
title: '商品图片',
width: 120,
align: 'center',
render: (h, params) => {
let directives = [{name: 'prod-img', value: params.row.productSku, modifiers: {sku: true}}];
return (
<img {...{directives}}/>
);
}
},
{
title: '订单号',
key: 'orderCode',
align: 'center',
},
{
title: 'SKU',
key: 'productSku',
align: 'center'
},
{
title: '瑕疵类型',
key: 'typeName',
align: 'center'
},
{
title: '备注',
key: 'remark',
align: 'center'
},
{
title: '创建时间',
width: 150,
render: (h, params) => {
return (
<span>{timeFormat(params.row.createTime)}</span>
);
},
align: 'center'
},
{
title: '操作',
key: 'action',
align: 'center',
render: (h, params) => {
return (
<div class="action-btn-row">
<i-button type="success" size="small" onClick={() => this.editImg(params.row)}>
<i class="ivu-icon ivu-icon-eye" style="margin-right: 5px;vertical-align: top;font-size: 16px;"></i>
查看明细</i-button>
</div>
);
}
}],
tableData: [],
pageData: {
total: 0,
current: 1,
pageSize: 20
},
filters: {
orderCode: {
label: '订单号',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
productSku: {
label: 'SKU编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
}
}
};
}