Ben Lin
2025-03-08 72675157c774fc4c6490bd1e49ca3c4aa25581f0
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
import { BasicColumn, FormSchema } from '/@/components/Table';
import { optionsListApi } from '/@/api/tigerapi/wms/finishedwarehouse';
import { h, unref } from 'vue';
import { Tag } from 'ant-design-vue';
import { useI18n } from '/@/hooks/web/useI18n';
import { useLocale } from '/@/locales/useLocale';
const { getLocale } = useLocale();
const { t: bt } = useI18n();
 
export const columns: BasicColumn[] = [
  {
    title: '单号',
    dataIndex: 'STOCK_NO',
    resizable: true,
    sorter: true,
    width: 200,
  },
  {
    title: '栈板号',
    dataIndex: 'PALLET_NO',
    resizable: true,
    sorter: true,
    width: 180,
  },
  {
    title: '入库时间',
    dataIndex: 'STOCK_TIME',
    resizable: true,
    sorter: true,
    width: 180,
  },
  {
    title: '是否完成',
    dataIndex: 'UP_FLAG',
    resizable: true,
    sorter: true,
    width: 180,
    customRender: ({ record }) => {
      const status = record.UP_FLAG;
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '未完成';
          color = '#C2C247';
          break;
        case 1:
          text = '完成';
          color = 'green';
          break;
        default:
          break;
      }
      return h(Tag, { color: color }, () => text);
    },
  },
  {
    title: '更新时间',
    dataIndex: 'UP_TIME',
    resizable: true,
    sorter: true,
    width: 180,
  },
  {
    title: '回写结果',
    dataIndex: 'UP_MSG',
    resizable: true,
    sorter: true,
    width: 580,
  },
];
 
export const searchFormSchema: FormSchema[] = [
  {
    field: 'WorkOrder',
    label: '工单号',
    colProps: { span: 8 },
    component: 'Input',
  },
];