| | |
| | | import { h } from 'vue' |
| | | import { $t } from '@/locales' |
| | | import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue' |
| | | import { getTaskActionList } from './taskPage.helpers' |
| | | |
| | | export function createTaskTableColumns(handleActionClick) { |
| | | export function createTaskTableColumns({ handleActionClick, createExpandContent }) { |
| | | return [ |
| | | ...(createExpandContent |
| | | ? [ |
| | | { |
| | | type: 'expand', |
| | | width: 56, |
| | | formatter: (row) => createExpandContent(row) |
| | | } |
| | | ] |
| | | : []), |
| | | { |
| | | prop: 'taskCode', |
| | | label: '任务号', |
| | | label: $t('pages.task.search.taskCode'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'taskStatusLabel', |
| | | label: '任务状态', |
| | | label: $t('table.status'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'taskTypeLabel', |
| | | label: '任务类型', |
| | | label: $t('table.type'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'warehTypeLabel', |
| | | label: '设备类型', |
| | | label: $t('pages.task.detail.warehType'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'orgLoc', |
| | | label: '源库位', |
| | | label: $t('pages.task.search.orgLoc'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'orgSiteLabel', |
| | | label: '源站点', |
| | | label: $t('pages.task.detail.orgSite'), |
| | | minWidth: 160, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'targLoc', |
| | | label: '目标库位', |
| | | label: $t('pages.task.search.targLoc'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'targSiteLabel', |
| | | label: '目标站点', |
| | | label: $t('pages.task.detail.targSite'), |
| | | minWidth: 160, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'barcode', |
| | | label: '托盘码', |
| | | label: $t('pages.task.search.barcode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'robotCode', |
| | | label: '机器人编码', |
| | | label: $t('pages.task.detail.robotCode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'sort', |
| | | label: '优先级', |
| | | label: $t('pages.task.detail.priority'), |
| | | width: 100, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | label: $t('table.updateTime'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 120, |
| | | align: 'center', |
| | | fixed: 'right', |
| | | formatter: (row) => |
| | | h('div', [ |