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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import { DescItem } from '/@/components/Description/index';
import { BasicColumn } from '/@/components/Table/src/types/table';
import { Button } from '/@/components/Button';
import { Badge } from 'ant-design-vue';
export const refundData = {
a1: '1000000000',
a2: '已取货',
a3: '1234123421',
a4: '3214321432',
};
export const personData = {
b1: '付小小',
b2: '18100000000',
b3: '菜鸟仓储',
b4: '浙江省杭州市西湖区万塘路18号',
b5: '无',
};
export const refundSchema: DescItem[] = [
{
field: 'a1',
label: '取货单号',
},
{
field: 'a2',
label: '状态',
},
{
field: 'a3',
label: '销售单号',
},
{
field: 'a4',
label: '子订单',
},
];
export const personSchema: DescItem[] = [
{
field: 'b1',
label: '用户姓名',
},
{
field: 'b2',
label: '联系电话',
},
{
field: 'b3',
label: '常用快递',
},
{
field: 'b4',
label: '取货地址',
},
{
field: 'b5',
label: '备注',
},
];
export const refundTableSchema: BasicColumn[] = [
{
title: '商品编号',
width: 150,
dataIndex: 't1',
customRender: ({ record }) => {
return (
<Button type="link" size="small">
{() => record.t1}
</Button>
);
},
},
{
title: '商品名称',
width: 150,
dataIndex: 't2',
},
{
title: '商品条码',
width: 150,
dataIndex: 't3',
},
{
title: '单价 ',
width: 150,
dataIndex: 't4',
},
{
title: '数量(件) ',
width: 150,
dataIndex: 't5',
},
{
title: '金额',
width: 150,
dataIndex: 't6',
},
];
export const refundTimeTableSchema: BasicColumn[] = [
{
title: '时间',
width: 150,
dataIndex: 't1',
},
{
title: '当前进度',
width: 150,
dataIndex: 't2',
},
{
title: '状态',
width: 150,
dataIndex: 't3',
customRender: ({ record }) => {
return <Badge status="success" text={record.t3} />;
},
},
{
title: '操作员ID ',
width: 150,
dataIndex: 't4',
},
{
title: '耗时',
width: 150,
dataIndex: 't5',
},
];
export const refundTableData: any[] = [
{
t1: 1234561,
t2: '矿泉水 550ml',
t3: '12421432143214321',
t4: '2.00',
t5: 1,
t6: 2.0,
},
{
t1: 1234562,
t2: '矿泉水 550ml',
t3: '12421432143214321',
t4: '2.00',
t5: 2,
t6: 2.0,
},
{
t1: 1234562,
t2: '矿泉水 550ml',
t3: '12421432143214321',
t4: '2.00',
t5: 2,
t6: 2.0,
},
{
t1: 1234562,
t2: '矿泉水 550ml',
t3: '12421432143214321',
t4: '2.00',
t5: 2,
t6: 2.0,
},
];
export const refundTimeTableData: any[] = [
{
t1: '2017-10-01 14:10',
t2: '联系客户',
t3: '进行中',
t4: '取货员 ID1234',
t5: '5mins',
},
{
t1: '2017-10-01 14:10',
t2: '取货员出发',
t3: '成功',
t4: '取货员 ID1234',
t5: '5mins',
},
{
t1: '2017-10-01 14:10',
t2: '取货员接单',
t3: '成功',
t4: '系统',
t5: '5mins',
},
{
t1: '2017-10-01 14:10',
t2: '申请审批通过',
t3: '成功',
t4: '用户',
t5: '1h',
},
];