zs
2025-04-29 e5ff622848b3af0d00fb1b4ec165513cca11878d
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
export const columns = [
  {
    type: 'seq',
    width: 60,
    title: '序号',
  },
  {
    field: 'areaNo',
    title: '库区编号',
  },
  {
    field: 'areaName',
    title: '库区名称',
  },
  {
    field: 'areaDesc',
    title: '描述',
  },
  {
    field: 'areaStatus',
    title: '库区状态',
    formatter: (value) => {
      // 根据 AreaStatusEnum 的值返回对应的描述
      switch (value) {
        case 'Active':
          return '启用'
        case 'Inactive':
          return '禁用'
        default:
          return value
      }
    },
  },
  {
    field: 'areaType',
    title: '库区类型',
    formatter: (value) => {
      // 根据 AreaTypeEnum 的值返回对应的描述
      switch (value) {
        case 1:
          return '原料库区'
        case 2:
          return '装卸区'
      }
    },
  },
  {
    field: 'storeCode',
    title: '仓库代码',
  },
  {
    field: 'storeName',
    title: '仓库名称',
  },
  {
    field: 'remark',
    title: '备注',
  },
]