zhou zhou
3 天以前 50e95b985a72fcec4a93a2470e9efdfb2620148a
rsf-design/src/views/orders/out-stock-item/outStockItemTable.columns.js
@@ -2,96 +2,96 @@
import { ElTag } from 'element-plus'
import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue'
export function createOutStockItemTableColumns({ handleActionClick } = {}) {
export function createOutStockItemTableColumns({ handleActionClick, t } = {}) {
  return [
    { type: 'globalIndex', label: '序号', width: 72, align: 'center' },
    { type: 'globalIndex', label: t('table.index'), width: 72, align: 'center' },
    {
      prop: 'orderCode',
      label: '出库单号',
      label: t('pages.orders.outStockItem.table.orderCode'),
      minWidth: 160,
      showOverflowTooltip: true,
      formatter: (row) => row.orderCode || '--'
    },
    {
      prop: 'poCode',
      label: 'PO单号',
      label: t('pages.orders.outStockItem.table.poCode'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.poCode || '--'
    },
    {
      prop: 'platItemId',
      label: '平台行号',
      label: t('pages.orders.outStockItem.table.platItemId'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.platItemId || '--'
    },
    {
      prop: 'matnrCode',
      label: '物料编码',
      label: t('pages.orders.outStockItem.table.matnrCode'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.matnrCode || '--'
    },
    {
      prop: 'maktx',
      label: '物料名称',
      label: t('pages.orders.outStockItem.table.maktx'),
      minWidth: 220,
      showOverflowTooltip: true,
      formatter: (row) => row.maktx || '--'
    },
    {
      prop: 'batch',
      label: '批次',
      label: t('pages.orders.outStockItem.table.batch'),
      minWidth: 120,
      showOverflowTooltip: true,
      formatter: (row) => row.batch || '--'
    },
    {
      prop: 'splrBatch',
      label: '供应商批次',
      label: t('pages.orders.outStockItem.table.splrBatch'),
      minWidth: 140,
      showOverflowTooltip: true,
      formatter: (row) => row.splrBatch || '--'
    },
    {
      prop: 'stockUnit',
      label: '库存单位',
      label: t('pages.orders.outStockItem.table.stockUnit'),
      width: 100,
      align: 'center',
      formatter: (row) => row.stockUnit || '--'
    },
    {
      prop: 'anfme',
      label: '数量',
      label: t('pages.orders.outStockItem.table.anfme'),
      width: 100,
      align: 'right',
      formatter: (row) => row.anfme ?? '--'
    },
    {
      prop: 'workQty',
      label: '执行数量',
      label: t('pages.orders.outStockItem.table.workQty'),
      width: 100,
      align: 'right',
      formatter: (row) => row.workQty ?? '--'
    },
    {
      prop: 'qty',
      label: '已出数量',
      label: t('pages.orders.outStockItem.table.qty'),
      width: 100,
      align: 'right',
      formatter: (row) => row.qty ?? '--'
    },
    {
      prop: 'fieldsIndex',
      label: '字段索引',
      label: t('pages.orders.outStockItem.table.fieldsIndex'),
      minWidth: 150,
      showOverflowTooltip: true,
      formatter: (row) => row.fieldsIndex || '--'
    },
    {
      prop: 'statusText',
      label: '状态',
      label: t('pages.orders.outStockItem.table.status'),
      width: 96,
      align: 'center',
      formatter: (row) =>
@@ -99,14 +99,14 @@
    },
    {
      prop: 'updateTimeText',
      label: '更新时间',
      label: t('pages.orders.outStockItem.table.updateTime'),
      minWidth: 170,
      showOverflowTooltip: true,
      formatter: (row) => row.updateTimeText || '--'
    },
    {
      prop: 'operation',
      label: '操作',
      label: t('table.operation'),
      width: 92,
      fixed: 'right',
      formatter: (row) =>