zhou zhou
14 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/views/basic-info/loc-area-rela/locAreaRelaTable.columns.js
@@ -1,4 +1,5 @@
import { h } from 'vue'
import { $t } from '@/locales'
import { ElTag } from 'element-plus'
import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
import { getLocAreaRelaStatusMeta } from './locAreaRelaPage.helpers'
@@ -10,16 +11,16 @@
  canEdit = true,
  canDelete = true
} = {}) {
  const operations = [{ key: 'view', label: '详情', icon: 'ri:eye-line' }]
  const operations = [{ key: 'view', label: $t('common.actions.detail'), icon: 'ri:eye-line' }]
  if (canEdit && handleEdit) {
    operations.push({ key: 'edit', label: '编辑', icon: 'ri:pencil-line' })
    operations.push({ key: 'edit', label: $t('common.actions.edit'), icon: 'ri:pencil-line' })
  }
  if (canDelete && handleDelete) {
    operations.push({
      key: 'delete',
      label: '删除',
      label: $t('common.actions.delete'),
      icon: 'ri:delete-bin-5-line',
      color: 'var(--art-error)'
    })
@@ -33,27 +34,27 @@
    },
    {
      type: 'globalIndex',
      label: '序号',
      label: $t('table.index'),
      width: 72,
      align: 'center'
    },
    {
      prop: 'locAreaIdText',
      label: '分区ID',
      label: $t('pages.basicInfo.locAreaRela.table.locAreaId'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.locAreaIdText || row.locAreaId || '--'
    },
    {
      prop: 'locIdText',
      label: '库位ID',
      label: $t('pages.basicInfo.locAreaRela.table.locId'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.locIdText || row.locId || '--'
    },
    {
      prop: 'status',
      label: '状态',
      label: $t('table.status'),
      width: 96,
      align: 'center',
      formatter: (row) => {
@@ -63,42 +64,42 @@
    },
    {
      prop: 'memo',
      label: '备注',
      label: $t('table.memo'),
      minWidth: 180,
      showOverflowTooltip: true,
      formatter: (row) => row.memo || '--'
    },
    {
      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: 120,
      align: 'center',
      fixed: 'right',