| | |
| | | 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: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'id', |
| | | label: 'ID', |
| | | label: $t('table.id'), |
| | | width: 90, |
| | | align: 'center', |
| | | formatter: (row) => row.id ?? '--' |
| | | }, |
| | | { |
| | | prop: 'dayTimeText', |
| | | label: '统计日期', |
| | | label: $t('pages.manager.inStatisticItem.table.dayTime'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.dayTimeText || '--' |
| | | }, |
| | | { |
| | | prop: 'locCode', |
| | | label: '库位', |
| | | label: $t('pages.manager.inStatisticItem.table.locCode'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.locCode || '--' |
| | | }, |
| | | { |
| | | prop: 'matnrCode', |
| | | label: '物料编码', |
| | | label: $t('pages.manager.inStatisticItem.table.matnrCode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.matnrCode || '--' |
| | | }, |
| | | { |
| | | prop: 'maktx', |
| | | label: '物料名称', |
| | | label: $t('pages.manager.inStatisticItem.table.maktx'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.maktx || '--' |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '数量', |
| | | label: $t('pages.manager.inStatisticItem.table.anfme'), |
| | | width: 120, |
| | | align: 'right', |
| | | formatter: (row) => row.anfme ?? '--' |
| | | }, |
| | | { |
| | | prop: 'batch', |
| | | label: '批次', |
| | | label: $t('pages.manager.inStatisticItem.table.batch'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.batch || '--' |
| | | }, |
| | | { |
| | | prop: 'unit', |
| | | label: '单位', |
| | | label: $t('table.unit'), |
| | | width: 90, |
| | | align: 'center', |
| | | formatter: (row) => row.unit || '--' |
| | | }, |
| | | { |
| | | prop: 'barcode', |
| | | label: '托盘码', |
| | | label: $t('pages.manager.inStatisticItem.table.barcode'), |
| | | minWidth: 160, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.barcode || '--' |
| | | }, |
| | | { |
| | | prop: 'createByText', |
| | | label: '创建人', |
| | | label: $t('table.createBy'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.createByText || '--' |
| | | }, |
| | | { |
| | | prop: 'createTimeText', |
| | | label: '创建时间', |
| | | label: $t('table.createTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.createTimeText || '--' |
| | | }, |
| | | { |
| | | prop: 'updateByText', |
| | | label: '更新人', |
| | | label: $t('table.updateBy'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.updateByText || '--' |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | label: $t('table.updateTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true, |
| | | formatter: (row) => row.updateTimeText || '--' |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 90, |
| | | align: 'center', |
| | | fixed: 'right', |