zhou zhou
23 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
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
117
118
import { h } from 'vue'
import { ElTag } from 'element-plus'
import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue'
import { $t } from '@/locales'
 
export function createInStatisticItemTableColumns({ handleView } = {}) {
  return [
    {
      type: 'globalIndex',
      label: $t('table.index'),
      width: 72,
      align: 'center'
    },
    {
      prop: 'id',
      label: $t('table.id'),
      width: 90,
      align: 'center',
      formatter: (row) => row.id ?? '--'
    },
    {
      prop: 'dayTimeText',
      label: $t('pages.manager.inStatisticItem.table.dayTime'),
      minWidth: 130,
      showOverflowTooltip: true,
      formatter: (row) => row.dayTimeText || '--'
    },
    {
      prop: 'locCode',
      label: $t('pages.manager.inStatisticItem.table.locCode'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.locCode || '--'
    },
    {
      prop: 'matnrCode',
      label: $t('pages.manager.inStatisticItem.table.matnrCode'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.matnrCode || '--'
    },
    {
      prop: 'maktx',
      label: $t('pages.manager.inStatisticItem.table.maktx'),
      minWidth: 180,
      showOverflowTooltip: true,
      formatter: (row) => row.maktx || '--'
    },
    {
      prop: 'anfme',
      label: $t('pages.manager.inStatisticItem.table.anfme'),
      width: 120,
      align: 'right',
      formatter: (row) => row.anfme ?? '--'
    },
    {
      prop: 'batch',
      label: $t('pages.manager.inStatisticItem.table.batch'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.batch || '--'
    },
    {
      prop: 'unit',
      label: $t('table.unit'),
      width: 90,
      align: 'center',
      formatter: (row) => row.unit || '--'
    },
    {
      prop: 'barcode',
      label: $t('pages.manager.inStatisticItem.table.barcode'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.barcode || '--'
    },
    {
      prop: 'createByText',
      label: $t('table.createBy'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.createByText || '--'
    },
    {
      prop: 'createTimeText',
      label: $t('table.createTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.createTimeText || '--'
    },
    {
      prop: 'updateByText',
      label: $t('table.updateBy'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.updateByText || '--'
    },
    {
      prop: 'updateTimeText',
      label: $t('table.updateTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.updateTimeText || '--'
    },
    {
      prop: 'operation',
      label: $t('table.operation'),
      width: 90,
      align: 'center',
      fixed: 'right',
      formatter: (row) =>
        h(ArtButtonTable, {
          type: 'view',
          onClick: () => handleView?.(row)
        })
    }
  ]
}