info.js
1.83 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
/**
* Created by TaoHuang on 2017/6/20.
*/
export default function() {
return {
tableCols: [
{
title: 'sku',
key: 'sku',
align: 'center'
},
{
title: '条码',
key: 'skuFactoryCode',
align: 'center'
},
{
title: '商品图片',
align: 'center',
render: (h, params) => {
let directives = [
{name: 'prod-img', value: params.row.skn, modifiers: {skn: true}}
];
return (
<div>
<img {...{directives}}></img>
</div>
);
}
},
{
title: '商品名称',
key: 'productName',
align: 'center'
},
{
title: '规格',
align: 'center',
render: (h, params) => {
return (
<div>{params.row.colorName}/{params.row.size}</div>
);
}
},
{
title: '入库单号/已发数',
align: 'center',
render: (h, params) => {
return (
<div>{params.row.boList.map((i) => {
return (
<div>{i.proRequisitionFormId}/{i.num}</div>
);
})}</div>
);
}
}
],
tableData: [],
id: null,
time: null,
storeroomName: null,
address: null,
adminName: null
};
}