| | |
| | | import { h } from 'vue' |
| | | import { $t } from '@/locales' |
| | | import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue' |
| | | |
| | | export function createStockTransferTableColumns({ enabledFields = [], handleView } = {}) { |
| | |
| | | return [ |
| | | { |
| | | type: 'globalIndex', |
| | | label: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 100, |
| | | fixed: 'right', |
| | | formatter: (row) => |
| | | h(ArtButtonTable, { |
| | | type: 'view', |
| | | text: '详情', |
| | | text: $t('common.actions.detail'), |
| | | onClick: () => handleView?.(row) |
| | | }) |
| | | } |