Ben Lin
2025-03-11 8e977a7ec92bc1845079eda2473e9c3fc4691c8d
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
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { optionsListApi } from '/@/api/tigerapi/wms/wms_item';
import { h } from 'vue';
import { Tag } from 'ant-design-vue';
 
export const columns: BasicColumn[] = [
  {
    title: '条码',
    dataIndex: 'SN',
    width:300,
    sorter: true,
    resizable:true
  },
  {
    title: '物料代码',
    dataIndex: 'ITEM_CODE',
    width: 200,
    sorter: true,
    resizable:true
  },
  {
    title: '送货单',
    dataIndex: 'TRANS_NO',
    sorter: true,
    resizable:true
  },
  {
    title: '数量',
    dataIndex: 'QTY',
    sorter: true,
    resizable:true
  },
  {
    title: '中包条码',
    dataIndex: 'CARTON_NO',
    sorter: true,
    resizable:true
  },
  {
    title: '大包条码',
    dataIndex: 'PALLET_NO',
    sorter: true,
    resizable:true
  },
  // {
  //   title: '储存状态',
  //   dataIndex: 'STATUS',
  //   width: 180,
  //   resizable:true,
  //   customRender: ({ record }) => {
  //     const status = record.STATUS;
  //     let text = '';
  //     let color = '';
  //     switch (status) {
  //       case 0:
  //         text = '不存在';
  //         color = 'green';
  //         break;
  //       case 10:
  //         text = '送货中';
  //         color = 'blue';
  //         break;
  //       case 20:
  //         text = '待检验';
  //         color = 'green';
  //         break;
  //       case 30:
  //         text = '待入库';
  //         color = 'blue';
  //         break;
  //       case 40:
  //         text = '在库中';
  //         color = 'blue';
  //         break;
  //       case 50:
  //         text = '已下架';
  //         color = 'green';
  //         break;
  //       case 60:
  //         text = '已发料';
  //         color = 'red';
  //         break;
  //       case 70:
  //         text = '已上料';
  //         color = 'red';
  //         break;
  //       case 80:
  //         text = '已耗尽';
  //         color = 'green';
  //         break;
  //       case 90:
  //         text = '已退料';
  //         color = 'green';
  //         break;
  //       case 100:
  //         text = '已发货';
  //         color = 'green';
  //         break;
  //       default:
  //         break;
  //     }
  //     return h(Tag, { color: color }, () => text);
  //   },
  //   sorter: true,
  // },
];
 
export const searchFormSchema: FormSchema[] = [
  {
    field: 'TRANS_NO',
    label: '送货单',
    component: 'Input',
    colProps: { span: 8 },
  }
];