zhou zhou
10 小时以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/views/orders/purchase/purchaseTable.columns.js
@@ -1,5 +1,6 @@
import { h } from 'vue'
import { ElTag } from 'element-plus'
import { $t } from '@/locales'
import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
import { getPurchaseStatusMeta } from './purchasePage.helpers'
@@ -14,7 +15,7 @@
} = {}) {
  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: 'code',
      label: 'PO单号',
@@ -146,29 +147,29 @@
    },
    {
      prop: 'operation',
      label: '操作',
      label: $t('table.operation'),
      width: 120,
      align: 'center',
      fixed: 'right',
      formatter: (row) => {
        const operations = [{ key: 'view', label: '详情', icon: 'ri:eye-line' }]
        const operations = [{ key: 'view', label: $t('common.actions.detail'), icon: 'ri:eye-line' }]
        if (handleViewItems) {
          operations.push({
            key: 'items',
            label: '明细',
            label: $t('common.actions.items'),
            icon: 'ri:list-check-3'
          })
        }
        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 && canDeleteRow(row)) {
          operations.push({
            key: 'delete',
            label: '删除',
            label: $t('common.actions.delete'),
            icon: 'ri:delete-bin-5-line',
            color: 'var(--art-error)'
          })