| | |
| | | import { h } from 'vue' |
| | | import { ElTag } from 'element-plus' |
| | | import { $t } from '@/locales' |
| | | import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue' |
| | | |
| | | export function createTaskLogTableColumns({ handleView } = {}) { |
| | | return [ |
| | | { type: 'selection', width: 48, align: 'center' }, |
| | | { type: 'globalIndex', label: '序号', width: 72, align: 'center' }, |
| | | { type: 'globalIndex', label: $t('table.index'), width: 72, align: 'center' }, |
| | | { |
| | | prop: 'taskCode', |
| | | label: '任务号', |
| | | label: $t('pages.manager.taskLog.table.taskCode'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'taskStatusText', |
| | | label: '任务状态', |
| | | label: $t('pages.manager.taskLog.table.taskStatus'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'taskTypeText', |
| | | label: '任务类型', |
| | | label: $t('pages.manager.taskLog.table.taskType'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'orgLoc', |
| | | label: '源库位', |
| | | label: $t('pages.manager.taskLog.table.orgLoc'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'orgSite', |
| | | label: '源站点', |
| | | label: $t('pages.manager.taskLog.table.orgSite'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'targLoc', |
| | | label: '目标库位', |
| | | label: $t('pages.manager.taskLog.table.targLoc'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'targSite', |
| | | label: '目标站点', |
| | | label: $t('pages.manager.taskLog.table.targSite'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'barcode', |
| | | label: '托盘码', |
| | | label: $t('pages.manager.taskLog.table.barcode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'robotCode', |
| | | label: '机器人编码', |
| | | label: $t('pages.manager.taskLog.table.robotCode'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'startTimeText', |
| | | label: '开始时间', |
| | | label: $t('pages.manager.taskLog.table.startTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'endTimeText', |
| | | label: '结束时间', |
| | | label: $t('pages.manager.taskLog.table.endTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'status', |
| | | label: '状态', |
| | | label: $t('table.status'), |
| | | width: 100, |
| | | align: 'center', |
| | | formatter: (row) => |
| | |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | label: $t('table.updateTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 92, |
| | | align: 'center', |
| | | fixed: 'right', |