zhou zhou
6 小时以前 7c2bffa1a495cc4a3a263f654c08c231009c5c4e
rsf-design/src/views/orders/delivery/deliveryTable.columns.js
@@ -1,78 +1,79 @@
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 { getDeliveryActionList } from './deliveryPage.helpers.js'
export function createDeliveryTableColumns({ handleActionClick } = {}) {
  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: '单号',
      label: $t('pages.orders.delivery.search.code'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.code || '--'
    },
    {
      prop: 'platId',
      label: 'ERP主单标识',
      label: $t('pages.orders.delivery.search.platId'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.platId || '--'
    },
    {
      prop: 'typeLabel',
      label: '单据类型',
      label: $t('pages.orders.delivery.search.type'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.typeLabel || '--'
    },
    {
      prop: 'wkTypeLabel',
      label: '业务类型',
      label: $t('pages.orders.delivery.search.wkType'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.wkTypeLabel || '--'
    },
    {
      prop: 'source',
      label: '单据来源',
      label: $t('pages.orders.delivery.search.source'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.source || '--'
    },
    {
      prop: 'anfme',
      label: '应收数量',
      label: $t('pages.orders.delivery.table.anfme'),
      width: 110,
      align: 'right',
      formatter: (row) => row.anfme ?? '--'
    },
    {
      prop: 'workQty',
      label: '执行中数量',
      label: $t('pages.orders.delivery.table.workQty'),
      width: 110,
      align: 'right',
      formatter: (row) => row.workQty ?? '--'
    },
    {
      prop: 'qty',
      label: '实收数量',
      label: $t('pages.orders.delivery.table.qty'),
      width: 110,
      align: 'right',
      formatter: (row) => row.qty ?? '--'
    },
    {
      prop: 'platCode',
      label: '平台单号',
      label: $t('pages.orders.delivery.table.platCode'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.platCode || '--'
    },
    {
      prop: 'status',
      label: '状态',
      label: $t('pages.orders.transfer.search.status'),
      width: 96,
      align: 'center',
      formatter: (row) =>
@@ -80,7 +81,7 @@
    },
    {
      prop: 'exceStatusText',
      label: '执行状态',
      label: $t('pages.orders.delivery.search.exceStatus'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) =>
@@ -88,28 +89,28 @@
    },
    {
      prop: 'startTimeText',
      label: '计划出库时间',
      label: $t('pages.orders.delivery.table.startTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.startTimeText || '--'
    },
    {
      prop: 'endTimeText',
      label: '计划出库结束时间',
      label: $t('pages.orders.delivery.table.endTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.endTimeText || '--'
    },
    {
      prop: 'memo',
      label: '备注',
      label: $t('pages.orders.delivery.search.memo'),
      minWidth: 180,
      showOverflowTooltip: true,
      formatter: (row) => row.memo || '--'
    },
    {
      prop: 'operation',
      label: '操作',
      label: $t('table.operation'),
      width: 120,
      align: 'center',
      fixed: 'right',