summaryrefslogtreecommitdiff
path: root/config/procurementItemsColumnsConfig.ts
blob: dd922f91f7246e72b033dcd95d7b970cc530fc71 (plain)
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
import { ProcurementItem } from "@/db/schema/items"

export interface ProcurementItemColumnConfig {
  id: keyof ProcurementItem
  label: string
  group?: string
  excelHeader?: string
  type?: string
  sortable?: boolean
  filterable?: boolean
  width?: number
}

export const procurementItemsColumnsConfig: ProcurementItemColumnConfig[] = [
  {
    id: "itemCode",
    label: "품목코드",
    excelHeader: "품목코드",
    type: "text",
    sortable: true,
    filterable: true,
    width: 150,
  },
  {
    id: "itemName",
    label: "품목명",
    excelHeader: "품목명",
    type: "text",
    sortable: true,
    filterable: true,
    width: 250,
  },
  {
    id: "material",
    label: "재질",
    excelHeader: "재질",
    type: "text",
    sortable: true,
    filterable: true,
    width: 120,
  },
  {
    id: "specification",
    label: "규격",
    excelHeader: "규격",
    type: "text",
    sortable: true,
    filterable: true,
    width: 200,
  },
  {
    id: "unit",
    label: "단위",
    excelHeader: "단위",
    type: "text",
    sortable: true,
    filterable: true,
    width: 80,
  },
  {
    id: "isActive",
    label: "활성화여부",
    excelHeader: "활성화여부",
    type: "text",
    sortable: true,
    filterable: true,
    width: 100,
  },
  {
    id: "createdBy",
    label: "등록자",
    excelHeader: "등록자",
    type: "text",
    sortable: true,
    filterable: true,
    width: 120,
  },
  {
    id: "createdAt",
    label: "등록일시",
    excelHeader: "등록일시",
    type: "date",
    sortable: true,
    filterable: true,
    width: 130,
  },
]