done.js
4.14 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/**
* done tab store
* @author: leo
* @date: 04/05/2017
*/
export default () => {
return {
filters: {
orderNo: {
label: '入库单号',
model: '',
holder: '入库单号',
},
expressNo: {
label: '物流单号',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodCode: {
label: '商品编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
merChantCode: {
label: '商家编码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodBarCode: {
label: '商品条码',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
orderTime: {
label: '下单时间',
labelSpan: 6,
model: '',
holder: '',
fieldSpan: 18
},
prodStatus: {
label: '商品状态',
labelSpan: 6,
fieldSpan: 18,
model: -1,
options: [
{
value: -1,
label: '全部'
},
{
value: 2,
label: '已处理'
},
{
value: -2,
label: '已处理超时'
},
{
value: 3,
label: '收货完成'
}
]
}
},
page: {
total: 0,
current: 1
},
table: {
cols: [
{
type: 'selection',
width: 60,
align: 'center'
},
{
title: '下单时间',
key: 'createTime',
align: 'center'
},
{
title: '商品信息',
align: 'center',
render(row){
return `<cell-prd-info
:sku="row.productSku"
color="mock"
:size="row.sizeName"
></cell-prd-info>`
}
},
{
title: '订单收发货',
align: 'center',
render(row){
return `<cell-dispatch
:store-num="row.inStoreNum"
:buy-num="row.buyingNums"
:lack-num="row.lackNum">
</cell-dispatch>`;
}
},
{
title: '发货',
align: 'center',
render(row){
return `<p>发货数:${row.shipmentsNums}</p>`
}
},
{
title: '缺货',
align: 'center',
render(row){
return `<p>缺货数:${row.lackNum}</p>`
}
},
{
title: '状态',
align: 'center',
render(row) {
let ot = row.isOvertime;
ot = ot === 'N' ? true : false;
return `<span v-if="${ot}">待处理</span>
<span v-else>待处理(超时)</span>`;
}
},
{
title: '入库单号',
key: 'proRequisitionFormId',
align: 'center',
}
],
list: []
}
}
};