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
| import { BasicColumn } from '/@/components/Table';
| import { FormSchema } from '/@/components/Table';
| import { optionsListApi } from '/@/api/tigerapi/wms/wms_item';
| import { h } from 'vue';
| import { Tag, Tooltip } from 'ant-design-vue';
|
| export const columns: BasicColumn[] = [
| {
| title: '锡膏UPN编码',
| dataIndex: 'UPN',
| width: 200,
| sorter: true,
| resizable: true
| },
| {
| title: 'CPN编码',
| dataIndex: 'CPN',
| width: 200,
| sorter: true,
| resizable: true
| },
| {
| title: '线别',
| dataIndex: 'LINE_CODE',
| width: 150,
| sorter: true,
| resizable: true
| },
| {
| title: '关联钢网',
| dataIndex: 'SMT_STENCIL',
| width: 150,
| sorter: true,
| resizable: true
| },
| {
| title: '状态',
| dataIndex: 'STATUS',
| width: 100,
| sorter: true,
| resizable: true,
| customRender: ({ record }) => {
| const status = record.STATUS;
| var text = '';
| var color = '';
| switch (status) {
| case 0:
| text = '登记';
| color = 'green';
| break;
| case 1:
| text = '入库';
| color = 'blue';
| break;
| case 2:
| text = '回温';
| color = 'blue';
| break;
| case 3:
| text = '领用';
| color = 'blue';
| break;
| case 4:
| text = '上线';
| color = 'blue';
| break;
| case 5:
| text = '搅拌';
| color = 'blue';
| break;
| case 6:
| text = '下线';
| color = 'blue';
| break;
| case 7:
| text = '用毕';
| color = 'blue';
| break;
| default:
| break;
| }
| return h(Tooltip, { title: 'xxxxxx' }, () => h(Tag, { color: color }, () => text));
| },
| },
| {
| title: '创建人',
| dataIndex: 'CREATE_USER',
| width: 100,
| sorter: true,
| resizable: true
| }
| ,
| {
| title: '创建时间',
| dataIndex: 'CREATE_TIME',
| width: 100,
| sorter: true,
| resizable: true
| }
| ];
|
| export const searchFormSchema: FormSchema[] = [
| {
| field: 'UPN',
| label: '锡膏UPN编码',
| component: 'Input',
| colProps: { span: 8 },
| }
| ];
|
|