zhou zhou
16 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/views/basic-info/loc-area-mat-rela/locAreaMatRelaTable.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 { getLocAreaMatRelaStatusMeta } from './locAreaMatRelaPage.helpers'
@@ -10,14 +11,14 @@
  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: '删除', icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
    operations.push({ key: 'delete', label: $t('common.actions.delete'), icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
  }
  return [
@@ -28,69 +29,69 @@
    },
    {
      type: 'globalIndex',
      label: '序号',
      label: $t('table.index'),
      width: 72,
      align: 'center'
    },
    {
      prop: 'areaMatIdText',
      label: '主单',
      label: $t('pages.basicInfo.locAreaMatRela.table.areaMatId'),
      minWidth: 200,
      showOverflowTooltip: true,
      formatter: (row) => row.areaMatIdText || row.areaMatId || '--'
    },
    {
      prop: 'areaIdText',
      label: '库区',
      label: $t('pages.basicInfo.locAreaMatRela.table.areaId'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.areaIdText || '--'
    },
    {
      prop: 'code',
      label: '编号',
      label: $t('pages.basicInfo.locAreaMatRela.table.code'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.code || '--'
    },
    {
      prop: 'matnrIdText',
      label: '物料',
      label: $t('pages.basicInfo.locAreaMatRela.table.matnrId'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.matnrIdText || '--'
    },
    {
      prop: 'groupIdText',
      label: '物料分组',
      label: $t('pages.basicInfo.locAreaMatRela.table.groupId'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.groupIdText || '--'
    },
    {
      prop: 'locTypeIdText',
      label: '库位类型',
      label: $t('pages.basicInfo.locAreaMatRela.table.locTypeId'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.locTypeIdText || '--'
    },
    {
      prop: 'locIdText',
      label: '库位',
      label: $t('pages.basicInfo.locAreaMatRela.table.locId'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.locIdText || '--'
    },
    {
      prop: 'relationTypeText',
      label: '关系类型',
      label: $t('pages.basicInfo.locAreaMatRela.table.relationType'),
      width: 110,
      align: 'center',
      formatter: (row) => row.relationTypeText || '--'
    },
    {
      prop: 'status',
      label: '状态',
      label: $t('table.status'),
      width: 96,
      align: 'center',
      formatter: (row) => {
@@ -100,28 +101,28 @@
    },
    {
      prop: 'memo',
      label: '备注',
      label: $t('table.memo'),
      minWidth: 180,
      showOverflowTooltip: true,
      formatter: (row) => row.memo || '--'
    },
    {
      prop: 'createTimeText',
      label: '创建时间',
      label: $t('table.createTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.createTimeText || '--'
    },
    {
      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',